Custom API Optimizer
Paste the following prompt into your AI chat to install this skill:
Please install @user_cd97370d/alpsmonkey-custom-api-optimizer according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem: The Custom API Gap
In WorkBuddy custom API mode, the framework forwards input to a third-party model and returns that model's output. Reasoning, Tool Calling, and Image Input can be enabled, but official docs do not promise that custom models match built-in models exactly in the Agent Loop. In practice, third-party models often lack the user's domain method, output preferences, and acceptance habits, while short prompts do not reliably reproduce the workflow.
Workflow: Configuration-Driven Injection
The skill centers on profile.json: onboarding selects use case, enhancements, and style, then distills experience rules, style constraints, and template requirements into a ≤800-character expert_prompt. Before running, it checks models.json for custom or third-party endpoints and asks whether to enable optimization.
- Domain hit: inject the expert prompt when task keywords match
domain_keywords. - Style enhancement: generate instructions from
structured_output,pareto,fast_direct, ordetailed. - Retrieval enhancement: call
rag_searchorconversation_searchon domain tasks when enabled inpreferred_tools. - Plan contract: for
mediumorcomplextasks, declareGoal,Input,Dependencies,Steps,Risks,Tool Needs, andAcceptance, then validate field presence.
Boundaries
It does not simulate reasoning chains or hard-code tool names. Orchestration, tool use, and reasoning still depend on the framework and model capability flags. Simple tasks skip injections, and unconfirmed runs execute the original task to avoid false triggers.
Use Cases
- When writing an industry analysis in WorkBuddy via a third-party endpoint, declare goal, dependencies, and acceptance before execution.
- Write personal SOPs, banned terms, and output templates into profile.json so later content tasks inject them automatically.
- For data-analysis tasks matching keywords, choose structured output or Pareto focus and optionally trigger retrieval.
- Use the task-plan contract validation for complex coding tasks to fill missing fields before starting.
Best For
- WorkBuddy users on custom endpoints who want third-party model output to follow their domain SOPs and formats.
- Report, copy, or analysis authors who need tables, templates, and banned terms injected automatically.
- Engineers managing multiple third-party models who want complex tasks validated against plan-contract fields first.
- Analysts who want history retrieval only on domain tasks to avoid wasting tokens.
Related Skills
Run a grilling session to interact with or test AI agents.
A systematic prompt optimization skill that refines prompts using a four-step distillation framework (diagnose, structure, think, compress) and methodologies from four prompting masters.
Tencent Cloud OCR agent for K-12 exam grading with async full-sheet or single-question marking, handwritten answer recognition, correctness, knowledge points, and coordinates.
Quickly converts a user's input, list, or screenshot into a multi-page workbench, supporting template selection, custom builds, and responsive layouts.