feat(skills): auto-load skills into system prompt + CLI install commands - #891
feat(skills): auto-load skills into system prompt + CLI install commands#891h4sht wants to merge 1 commit into
Conversation
Skills now behave like Claude Code — installed skills are automatically loaded into the agent's system prompt and always available without needing to call the `skill` tool. CLI commands: - /skills install <owner/repo> [--skill <name>] — download a skill via npx - /skills list — show all installed skills System prompt injection: - Loaded skills are injected into the system prompt with YAML frontmatter stripped, so the agent always has their full instructions available - The `skill` tool remains for backward compatibility but is no longer required since skills are pre-loaded Agent prompt update: - base2 agent prompt reflects that skills are pre-loaded and tells the agent to use /skills slash commands instead of npx skills add
|
Thanks for tackling this — auto-loading skills so the agent doesn't have to remember to call A few things need fixing before this is portable:
Fix the injection issue first — that's the blocking concern — then address the prompt-bloat/opt-in question. |
Summary
Skills now behave like Claude Code — installed skills are automatically loaded into the agent's system prompt and always available without needing the agent to explicitly call the `skill` tool.
Problem
Before this PR, skills were a cumbersome two-step process:
This meant:
Solution
1. CLI Commands
Two new slash commands:
`/skills install <owner/repo> [--skill ]` — Downloads a skill via `npx skills add` into `.agents/skills/`. Shows install output and refreshes the skill registry. Installed skills will be available in the next session (use `/new`).
`/skills list` — Shows all currently installed skills with their names and descriptions.
2. System Prompt Auto-Injection
When a session starts, all loaded skills are injected directly into the agent's system prompt as a `# Pre-loaded Skills` section. The YAML frontmatter is stripped so the model only sees the actual instructions. The agent is told it does NOT need to call the `skill` tool.
3. Updated Agent Prompt
The base2 agent prompt now reflects that skills are pre-loaded and directs users to use `/skills install` slash commands instead of `npx skills add`.
Files Changed
Backward Compatibility
Known Limitations