-
Notifications
You must be signed in to change notification settings - Fork 8
docs: Add guide for using skills in AgentSkills/Claude format #238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This adds documentation for the new example in software-agent-sdk that demonstrates how to use skills following the AgentSkills standard (compatible with Claude's format). The guide covers: - AgentSkills directory structure (SKILL.md, scripts/, references/, assets/) - Using load_skills_from_dir() and discover_skill_resources() - How skill location is passed to the agent prompt - A complete example with ROT13 encryption skill Related to: OpenHands/software-agent-sdk#1599 Co-authored-by: openhands <openhands@all-hands.dev>
77ecfea to
086d9fe
Compare
|
@OpenHands run the sync script to update this example |
|
I'm on it! neubig can track my progress at all-hands.dev |
- Update skill-loading.mdx to use rot13-encryption skill directory name - Update pr-review.mdx workflow file Co-authored-by: openhands <openhands@all-hands.dev>
|
I ran the sync script to update the code blocks in the documentation. The changes have been committed and pushed to the Summary of ChangesThe sync script (
Checklist
The PR #238 has been updated with the synced code blocks. |
|
@OpenHands reflect xingyaoww's comment, and also make sure that the docs will appear in the sidebar appropriately |
|
I'm on it! neubig can track my progress at all-hands.dev |
Per reviewer feedback, combined the AgentSkills/Claude format documentation directly into the existing skill.mdx file and reorganized for better flow: - Added 'Inline Skills' section for code-defined skills - Added 'Loading Skills from Disk (AgentSkills Standard)' section with: - Directory structure - SKILL.md format - Loading functions (load_skills_from_dir, discover_skill_resources) - Skill location in prompts - ROT13 encryption example - Renamed 'Message Suffixes' section to 'Customizing Agent Context' - Removed separate skill-loading.mdx file - Updated docs.json navigation to remove skill-loading entry Co-authored-by: openhands <openhands@all-hands.dev>
|
I've addressed xingyaoww's comment by merging the Summary of ChangesWhat was done:
Files changed:
The PR at #238 has been updated with these changes. |
The SDK repository was renamed from agent-sdk to software-agent-sdk. This commit syncs the workflow example to match the current SDK source. Co-authored-by: openhands <openhands@all-hands.dev>
Link to issue #1646 discussing alignment with AgentSkills standard for skills without triggers. Co-authored-by: openhands <openhands@all-hands.dev>
Major rewrite of skill documentation to clearly explain: - AgentSkills progressive disclosure model - Skill categorization flow diagram - Behavior differences between AgentSkills and legacy formats - How triggers work with AgentSkills format (best of both worlds) Key clarifications: - SKILL.md files always use progressive disclosure - SKILL.md with triggers: listed in available_skills AND auto-inject on trigger - Legacy skills without triggers: full content in REPO_CONTEXT - Legacy skills with triggers: listed in available_skills, inject on trigger Co-authored-by: openhands <openhands@all-hands.dev>
- Replace ugly ASCII flow diagram with CardGroup cards - Simplify behavior table to focus on user-facing behavior - Use Tabs component for system prompt examples - Remove internal implementation details (is_agentskills_format) - Clarify that OpenHands extends AgentSkills standard with triggers - Change Warning to Info for triggers extension (it's a feature, not a problem) Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Major reorganization focused on user understanding: 1. Start with 'Two Types of Skills' - the key concept users need 2. Add 'Quick Start' with minimal code example 3. Add 'How It Works' with Steps component showing the flow 4. Simplify SKILL.md section with cleaner frontmatter table 5. Remove confusing 'How Skills Appear in System Prompt' section (this was implementation detail, not user-facing) 6. Use Tip instead of Info for actionable advice The goal is: users understand WHAT skills do before HOW to configure them. Co-authored-by: openhands <openhands@all-hands.dev>
Reorganize documentation to clearly show the three approaches: 1. AGENTS.md (Recommended for repos) - At repo root, auto-loaded - Model variants: CLAUDE.md, GEMINI.md - Works with other AI tools 2. Keyword-Triggered Skills - Activated by keywords in user messages - Content injected as <EXTRA_INFO> - Keeps system prompt lean 3. Always-Active Skills (Code-Based) - For programmatic control - Full content in system prompt This makes it clear when to use each approach. Co-authored-by: openhands <openhands@all-hands.dev>
Reorganize to focus on SDK implementation with clear loading methods: 1. Always-loaded context - AGENTS.md (auto-loaded via load_project_skills) - Inline skills (trigger=None) 2. Trigger-loaded context - KeywordTrigger for on-demand injection 3. Progressive disclosure (AgentSkills) - SKILL.md format via load_skills_from_dir - Optional triggers for both listing AND injection Reference overview pages for concepts, focus on code here. Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Engel Nyst <engel.nyst@gmail.com>
Co-authored-by: Engel Nyst <engel.nyst@gmail.com>
enyst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, much better than it was, thank you!
We can iterate on details from here.
Double-check (since last summary)
What changedFile updated:
|
Summary
This PR adds documentation for the new example in software-agent-sdk that demonstrates how to use skills following the AgentSkills standard (compatible with Claude's format).
Changes
New Guide:
sdk/guides/skill-loading.mdxA comprehensive guide covering:
SKILL.md,scripts/,references/, andassets/directoriesload_skills_from_dir()anddiscover_skill_resources()functionsNavigation Update
Added the new guide to
docs.jsonnavigation, placed after the existing "Agent Skills & Context" guide.Code Sync
The guide includes a code block that references
examples/05_skills_and_plugins/01_loading_agentskills/main.pyfrom the agent-sdk repository. This follows the sync pattern used by other guides, allowing thesync-docs-code-blocksworkflow to keep the documentation in sync with the source code.Related PRs
Checklist
Co-authored-by: openhands openhands@all-hands.dev