Expert Skill Writer
Follow this process to author a high-quality skill.
Phase 1: Scoping
- •Identify the Trigger: Ask "What specific user intent should trigger this skill?"
- •Identify the Actions: Ask "What exact steps or tools will the agent need to execute?"
- •Determine Complexity:
- •Low: Simple text instructions.
- •High: Requires scripts (
scripts/) or heavy documentation (references/).
Phase 2: Architecture
Propose a file structure based on complexity.
- •Always include
SKILL.md. - •If logic is deterministic and complex/fragile -> Recommend a Script. Prefer python script.
- •If documentation > 1 page -> Recommend a Reference file.
Phase 3: Drafting
Write the content.
- •Draft Frontmatter: Write a
descriptionthat clearly defines the "When to use" trigger. - •Draft Body: Write concise imperative instructions.
- •Draft Resources: Create necessary scripts/references.
Refer to best_practices.md for detailed rules on conciseness and formatting.
Phase 4: Validation
Critique the draft against the Economy of Context principles:
- • Is the description a clear trigger?
- • Is
SKILL.mdunder 500 lines? - • are large docs moved to
references/? - • Are there any "user-facing" docs (READMEs) that should be removed?
Tools
- •
read_fileonreferences/best_practices.mdto check specific rules.