Introduction¶
After connecting an OpenAI-compatible third-party endpoint in WorkBuddy, the model can often handle conversations normally but performs significantly worse than built-in models on complex tasks. It lacks the domain methodology, output style, and task templates automatically injected by the framework, making responses prone to being “generic” and difficult to implement. Switching models or stacking long system prompts can partially alleviate this, but maintenance costs are high, and it disconnects from WorkBuddy’s native expert system.
The custom-api-optimizer (SkillHub coordinates @user_cd97370d/alpsmonkey-custom-api-optimizer) described below addresses this scenario: it injects profile.expert_prompt (domain expert context)—which the framework does not automatically provide in custom API mode—at the prompt layer, bringing third-party models closer to the performance of built-in models in specific domains. The Skill is based on the universal SKILL.md format, is community-sourced, categorized as ai-agent, and the current version displayed on SkillHub is v2.3.1.
What is this¶
custom-api-optimizer is a “Custom API / Third-party Model Mode Optimizer” for all WorkBuddy users: the first use guides you to generate your own Expert Pack (domain methodology, style, templates, etc.), which is then automatically applied within the same mode, eliminating the need to manually write long system descriptions every time.
It is maintained and published under the SkillHub community account user_cd97370d; the page summary reads “Let custom APIs achieve performance close to built-in models.” The tag requires_api_key=false indicates that the Skill itself does not require an additional API Key (third-party models still use the Key configured in your WorkBuddy model settings).
Core Features¶
Completing expert_prompt at the prompt layer¶
WorkBuddy injects variables like ExpertPrompt via templates and expert markets in the built-in model path; custom API mode does not equivalently carry this set of “domain expert context.” This Skill writes profile.expert_prompt at the prompt layer, delivering the methodology, style, and templates you have consolidated in your Expert Pack to the third-party endpoint, bridging the gap with built-in models on domain tasks.
First-time Expert Pack guidance, subsequent automatic application¶
The first trigger initiates a configuration guide to help you generate and solidify a personal Expert Pack. Afterward, it is automatically mounted along the same usage path, so you don’t need to repeatedly explain “I am in field X, please output in format Y.”
Reasoning & Tools: Handled by native WorkBuddy switches¶
Chain-of-Thought (CoT) and tool calling are provided by the Reasoning and Tool Calling switches in WorkBuddy Model Settings. This Skill does not redundantly simulate reasoning or tool protocols at the prompt layer, nor does it hardcode specific task management tool names, avoiding redundancy with framework capabilities.
Trigger Conditions (Explicitly declared to reduce false positives)¶
Various phrasings can trigger it, but the core is “Custom API / Third-party Model” + clear context. Examples:
- “API + Context” structure: e.g., “API help me analyze this data”;
- Directly saying “optimize custom API,” “custom model optimization”;
- Declaring “use custom model,” “third-party model,” etc.
It does not trigger if an isolated “API” appears without subsequent task context, preventing the Skill from loading accidentally just because the word API is mentioned in daily conversation. The first time it guides the Expert Pack; subsequent uses apply automatically.
Supporting validation and tests¶
The Skill package includes profile.schema.json (Expert Pack structure validation) and tests/test_profile.py (minimal test set) to facilitate basic consistency checks after modifying the Expert Pack.
Installation and Activation¶
Install SkillHub CLI (if not installed)¶
command -v skillhub && skillhub --version
If not installed, follow the official SkillHub instructions to perform a full installation (CLI + default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
CLI only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
Install this Skill¶
During installation, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized:
skillhub install @user_cd97370d/alpsmonkey-custom-api-optimizer --dir <your skills directory>
The SkillHub page also supports sending the full sentence below to an AI to perform the installation according to the official documentation:
Please install `@user_cd97370d/alpsmonkey-custom-api-optimizer` based on https://skillhub.cn/install/skillhub.md.
Common client skills paths (excerpted from SkillHub installation docs):
| Environment | skills directory |
|---|---|
| WorkBuddy | ~/.workbuddy/skills/ |
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
After installation, restart or refresh the Agent according to your client’s requirements to load the Skill.
Working with WorkBuddy Custom Models¶
Third-party models must be saved and available in WorkBuddy Settings → Models (or compatible OpenAI-format endpoint configuration); this Skill is not responsible for filling in URLs, API Keys, or model names. It only optimizes the expert context on the prompt side when you enter the custom API usage path and meet the trigger conditions. Model capability switches (Tool Calling, Reasoning, etc.) should still be enabled separately in the model configuration.
Typical Usage¶
-
Select the configured Custom API / Third-party Model in WorkBuddy.
-
Trigger the Skill with a sentence containing context, for example:
Use the custom model to help me sort out the anomalies in this sales data and output conclusions according to the weekly report template.
Or:
Optimize custom API: I want to do a competitor feature comparison, please write it according to the table structure in my Expert Pack.
-
On first use, follow the Skill’s guidance to complete the Expert Pack (methodology, style, templates, etc.), write it into the relevant
profilefields, and ensure the structure is constrained byprofile.schema.json. -
Subsequent similar requests will automatically carry
profile.expert_promptunder trigger conditions, eliminating the need to paste long system descriptions repeatedly. When you need to change the domain or style, update the Expert Pack according to the instructions within the Skill and usetests/test_profile.pyfor a smoke check.
Applicable Scenarios & Notes¶
Who it is for
- Those who work in WorkBuddy’s Custom API mode long-term, where tasks rely on clear domain methods or fixed output templates;
- Those who want to reuse the “Expert Pack” concept rather than maintaining a giant system prompt for every third-party model;
- Those who have enabled WorkBuddy’s Reasoning / Tool Calling and need the prompt layer to only supplement “domain experts” without reinventing the tool protocols.
Limitations & Notes
- The Skill optimizes the expert context at the prompt layer and cannot replace the reasoning ceiling of weak models themselves; if the endpoint is unstable or capabilities do not match declarations, performance remains limited by the model and gateway.
- Triggering relies on explicit context; simply saying “API” will not load it, avoiding accidental triggers.
- SkillHub page statistics (at the time of review): Rating 100000, Downloads 2805; the actual installation count depends on your local
skillhub installand whether the Agent points to the correct--dir. - The page displays version v2.3.1; if the local package version differs from the page, the version returned by your installation source prevails.
Conclusion¶
custom-api-optimizer supplements the profile.expert_prompt missing in WorkBuddy’s Custom API mode at the prompt layer, using a reusable Expert Pack to align the domain performance of third-party models with the built-in path, while leaving CoT and tool calling to the framework’s native switches. To install or view instructions, you can open the SkillHub page:
- https://www.skillhub.cn/skills/user_cd97370d/alpsmonkey-custom-api-optimizer
- https://api.skillhub.cn/user_cd97370d/alpsmonkey-custom-api-optimizer