Improve Skills for Agent Documents
Review and improve skills in a capability file to produce excellent agent skill
documents. Focus on toolReferences and implementationReference sections.
When to Use
- •Reviewing skills with
agent:sections in capability files - •Improving tool references for better agent skill documents
- •Restructuring implementation references for clarity
- •Ensuring generated SKILL.md files are useful and complete
Context
Skills with agent: sections generate SKILL.md files using
apps/pathway/templates/skill.template.md. The template:
- •Renders
toolReferencesas a Required Tools table automatically - •Renders
implementationReferenceas a Reference section
Because the template handles tool rendering separately, the
implementationReference must NOT duplicate tool information.
Core Principles
Outcome-Oriented Instructions
Skills exist to help someone achieve an outcome. The implementationReference
should provide clear step-by-step instructions that guide the reader from
start to finish—not a scattered collection of code snippets or best practices.
Ask: "If I follow these instructions, will I achieve the skill's stated purpose?"
Minimal Essential Tooling
Recommend only the core tools required to achieve the skill's outcome. A focused set of 2-4 essential tools is more valuable than an exhaustive list.
Ask: "Could someone complete this skill without this tool?" If yes, omit it.
Process
- •Identify the capability to review (ask if not specified)
- •Read the capability file from
apps/schema/examples/capabilities/{id}.yaml - •For each skill with an
agent:section, review and improve - •Study the updated skill by running
npx fit-pathway skill <name> --agent - •Iterate until the skill document is clear, complete, and well-structured
Tool References Review
Aim for 2-4 essential tools per skill. Check that toolReferences:
- •Include only tools essential to achieve the skill's core outcome
- •Include the primary tool used in
implementationReferencecode samples - •Prefer open source tools and libraries over commercial offerings (exceptions: ubiquitous platforms like AWS, GitHub, Azure, GCP are fine)
- •Have accurate, concise
descriptionfields - •Have specific
useWhenguidance relevant to this skill (not generic) - •Include
urlfor official documentation where available - •Include
iconfield where appropriate using Simple Icons names (usetask,python,typescriptas generic fallbacks)
Exclude:
- •Nice-to-have tools that aren't central to the implementation
- •Alternative tools (pick one, don't list options)
- •Generic utilities (linters, formatters) unless skill-specific
- •Tools mentioned only in passing
Implementation Reference Review
Check that implementationReference:
- •Follows a logical sequence from setup to implementation to verification
- •Does NOT contain tool tables or "Technology Stack" sections (duplicates
toolReferences) - •Provides step-by-step guidance to achieve the skill's purpose
- •Shows complete, working code (not fragments or pseudocode)
- •Connects the steps so the reader understands the flow
- •Includes verification so the reader knows when they've succeeded
Common Problems to Fix
| Problem | Fix |
|---|---|
| Too many tools | Keep only 2-4 essential tools for core outcome |
| Scattered snippets | Restructure as numbered steps or logical flow |
| Tool lists in reference | Remove (already in toolReferences) |
| Code without context | Add prose explaining what each section achieves |
| Missing setup | Add installation/configuration steps |
| No verification | Add "you'll know it works when..." guidance |
| Generic best practices | Make specific to achieving the skill's outcome |
Good Structure Pattern
## Setup [Installation and configuration] ## Step 1: [First action] [Explanation + code] ## Step 2: [Next action] [Explanation + code] ## Verification [How to confirm success] ## Common Pitfalls [What to watch out for]
Output
- •Summarize issues found
- •Apply fixes directly to the capability file
- •Run
npx fit-schema validateto verify changes