Localized reading guide
writing-skillsPurpose, usage and source
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Source retrieved:
- Source repository
- obra/superpowers
- SKILL.md
skills/writing-skills/SKILL.md- Repository stars
- 309,479
- Repository updated
- 2026-10-30
- Categories
- Agent workflows
- Last collected
License: MIT
Workflow excerpts are reading aids, not executable instructions from Codez. No third-party Skill was run to produce this page.
The purpose and workflow passages below are upstream material, organized and translated for reading. They are distinct from the separately labeled Codez editorial analysis.
What this Skill does
Use when creating new skills, editing existing skills, or verifying skills work before deployment
How the upstream workflow works
Discovery Workflow
How future agents find your skill: Encounters problem ("tests are flaky") Searches skills (greps descriptions, browses categories) Finds SKILL (description matches)
Upstream passage · L388 ↗Overview
Writing skills IS Test-Driven Development applied to process documentation. Personal skills live in your runtime's skills directory (~/.claude/skills/ on Claude Code) — see codex-tools.md or gemini-tools.md for the path on those runtimes. Codex, Copilot CLI, and Gemini CLI all also recognize ~/.agents/skills/ as a cross-runtime alias. You write test cases (pressure scenarios with subagents), watch them fail (baseline behavior), write the skill (documentation), watch tests pass (agents comply), and refactor (close loopholes). Core principle: If you didn't watch an agent fail without the skill, you don't know if the skill teaches the right thing.
When to Create a Skill
Technique wasn't intuitively obvious to you You'd reference this again across projects Pattern applies broadly (not project-specific) Others would benefit
Upstream passage · L47 ↗skills/
skill-name/
SKILL.md # Main reference (required)
supporting-file.* # Only if neededRequirements and setup
Discipline-Enforcing Skills (rules/requirements)
Examples: TDD, verification-before-completion, designing-before-coding Academic questions: Do they understand the rules?
Upstream passage · L188 ↗Limits and quality checks
No separate limits passage was selected from this file. This does not mean the Skill is safe for every input or environment. Review the complete source and validate your own result.
Start with a safe trial
- Check the supported host and the repository installation instructions. Keep the Skill directory and its referenced scripts, assets and documentation together; SKILL.md alone may omit dependencies.
- Give the agent your real input, desired output and acceptance criteria. Invocation syntax and available tools depend on the host; this site does not assume a universal install command.
- Try the source workflow in a disposable project or on a copy. Review operations that change files, remote services or billable resources before allowing them.
- Validate the output against the source quality checks and your own requirements. A successful trigger or a high repository Star count does not establish a correct result.
Read further in the source
- Overview
- What is a Skill?
- TDD Mapping for Skills
- When to Create a Skill
- Technique
- Pattern
- Reference
- Directory Structure
- Writing SKILL.md
- Flowcharts
- Code Examples
- Self-Contained Skill
- Skill with Reusable Tool
- Skill with Heavy Reference
- The Iron Law (Same as TDD)
- Testing All Skill Types
- Discipline-Enforcing Skills (rules/requirements)
- Technique Skills (how-to guides)
- Pattern Skills (mental models)
- Reference Skills (documentation/APIs)
- Common Rationalizations for Skipping Testing
- Match the Form to the Failure
- Bulletproofing Against Rationalization
- RED-GREEN-REFACTOR for Skills
- RED: Write Failing Test (Baseline)
- GREEN: Write Minimal Skill
- REFACTOR: Close Loopholes
- Micro-Test Wording Before Full Scenarios
- ❌ Narrative Example
- ❌ Multi-Language Dilution
Related Skills
Translation and scope
This reading guide selects passages from the pinned upstream SKILL.md. Translation is assisted. It is not a complete manual or a claim of tested compatibility. Read the original and its referenced files before use.
This introduction refers to the pinned version below; current repository activity and collection time are shown separately.
- Pinned source
- Read the original ↗
- Source retrieved
- Source commit
2ce8aa15d05bd57213e6f746f953aafb7ded7a8b- Source SHA-256
8cb3ac68c6d8c4bb46886b998b09af7989643cab8bd0e46ee86dd62e64546bbe