feat(skills): auto-load skills into system prompt + CLI install commands#891
Open
h4sht wants to merge 1 commit into
Open
feat(skills): auto-load skills into system prompt + CLI install commands#891h4sht wants to merge 1 commit into
h4sht 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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