1.4 KiB
1.4 KiB
name, description, metadata
| name | description | metadata | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| model-skill-injector | Injects model-specific best-practice context into bootstrap depending on the active LLM (Anthropic vs OpenAI) |
|
model-skill-injector
Fires on agent:bootstrap and appends a model-family-specific best-practices
hint file to the bootstrap context, so the agent always knows which tool-design
rules apply for the currently active model — without bloating the base system
prompt.
What it does
- Reads the active model string from the event config (
agents.defaults.model.primary). - Detects the model family by model name only:
- Anthropic — any model containing
claude - OpenAI — any model containing
gpt
- Anthropic — any model containing
- Injects the corresponding hint file from the workspace
skills/llm-tool-best-practices/folder as a virtual bootstrap file namedMODEL_HINTS.md. - If the model is unknown / not matched, injects a neutral fallback noting both families.
Files
- Anthropic hints:
skills/llm-tool-best-practices/hints/anthropic.md - OpenAI hints:
skills/llm-tool-best-practices/hints/openai.md - Fallback:
skills/llm-tool-best-practices/hints/generic.md
Notes
- Runs read-only; never writes files.
- Only injects the targeted section — does not load the full best-practices doc each turn.