writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Skill by obra
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/obra-writing-skills
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/writing-skills
What's inside
- Skill name
writing-skills- Description
- Use when creating new skills, editing existing skills, or verifying skills work before deployment
- License
- MIT
- Instructions
- 396 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- files: referenced but missing: scripts/tool.sh
Files (10)
- SKILL.md
- CLAUDE_MD_TESTING.md · references/
- anthropic-best-practices.md · references/
- bulletproofing.md · references/
- discovery.md · references/
- flowcharts.md · references/
- graphviz-conventions.dot · references/
- persuasion-principles.md · references/
- testing-skills-with-subagents.md · references/
- render-graphs.js
SKILL.md (first lines)
# Writing Skills
## 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](../using-superpowers/references/codex-tools.md) or [gemini-tools.md](../using-superpowers/references/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.
**REQUIRED BACKGROUND:** You MUST understand superpowers:test-driven-development before using this skill. That skill defines the fundamental RED-GREEN-REFACTOR cycle. This skill adapts TDD to documentation.
**Official guidance:** For Anthropic's official skill authoring best practices, see references/anthropic-best-practices.md. This document provides additional patterns and guidelines that complement the TDD-focused approach in this skill.
## What is a Skill?
A **skill** is a reference guide for proven techniques, patterns, or tools. Skills help future agents find and apply effective approaches.
**Skills are:** Reusable techniques, patterns, tools, reference guides
**Skills are NOT:** Narratives about how you solved a problem once
## TDD Mapping for Skills
| TDD Concept | Skill Creation |
|-------------|----------------|
| **Test case** | Pressure scenario with subagent |
| **Production code** | Skill document (SKILL.md) |
| **Test fails (RED)** | Agent violates rule without skill (baseline) |
| **Test passes (GREEN)** | Agent complies with skill present |
| **Refactor** | Close loopholes while maintaining compliance |
| **Write test first** | Run baseline scenario BEFORE writing skill |
| **Watch it fail** | Document exact rationalizations agent uses |
| **Minimal code** | Write skill addressing those specific violations |
| **Watch it pass** | Verify agent now complies |
| **Refactor cycle** | Find new rationalizations → plug → re-verify |
The entire skill creation process follows RED-GREEN-REFACTOR.
## When to Create a Skill
**Create when:**
- Technique wasn't intuitively obvious to you
- You'd reference this again across projects
- Pattern applies broadly (not project-specific)
- Others would benefit
**Don't create for:**
- One-off solutions
- Standard practices well-documented elsewhere
- Project-specific conventions (put in your instructions file)
- Mechanical constraints (if it's enforceable with regex/validation, automate it—save documentation for judgment calls)
## Skill Types
### Technique
Concrete method with steps to follow (condition-based-waiting, root-cause-tracing)
### Pattern
Way of thinking about problems (flatten-with-flags, test-invariants)
### Reference
API docs, syntax guides, tool documentation (office docs)
## Directory Structure
```
skills/
skill-name/
SKILL.md # Main reference (required)
supporting-file.* # Only if needed
```
**Flat namespace** - all skills in one searchable namespace
**Separate files for:**
1. **Heavy reference** (100+ lines) - API docs, comprehensive syntax
2. **Reusable tools** - Scripts, utilities, templates
**Keep inline:**
- Principles and concepts
- Code patterns (< 50 lines)
- Everything else
## Writing SKILL.md
A skill's `description` says only when to use it: triggering conditions and
symptoms, starting with "Use when...". It never summarizes the skill's
workflow, because an agent that reads a workflow summary follows it instead
of reading the skill.
When you write or change a skill's frontmatter, name or description, or
need to cut its size, read [references/discovery.md](references/discovery.md):
the SKILL.md template, description and keyword guidance, naming, token
budgets, and cross-referencing other skills.
## Flowcharts
When you add or change a flowchart in a skill, read
[references/flowcharts.md](references/flowcharts.md) first: when a flowchart
earns its place, the graphviz conventions, and how to render one.
## Code Examples
**One excellent example beats many mediocre ones**
Choose most relevant language:
- Testing techniques → TypeScript/JavaScript
- System debugging → Shell/Python
- Data processing → Python
**Good example:**
- Complete and runnable
- Well-commented explaining WHY
- From real scenario
- Shows pattern clearlyFrom obra/superpowers, MIT.
More from obra/superpowers
- 0.891score
diagnosing-superpowers
obra
Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't…
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.891score
executing-plans
obra
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool…
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.750score
using-superpowers
obra
Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.750score
AGENTS.md · obra/superpowers
obra
AGENTS.md from obra/superpowers: 122 lines covering If You Are an AI Agent, Pull Request Requirements, What We Will Not Accept, New Harness Support and more.
TemplateAFreshness: A★ 304.6KCodex +5 - 0.749score
subagent-driven-development
obra
Use when executing implementation plans with independent tasks in the current session
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.747score
brainstorming
obra
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in…
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.745score
verification-before-completion
obra
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output…
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.745score
receiving-code-review
obra
Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires…
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.745score
using-git-worktrees
obra
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via…
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.744score
requesting-code-review
obra
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.744score
writing-plans
obra
Use when you have a spec or requirements for a multi-step task, before touching code
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.744score
systematic-debugging
obra
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
SkillAFreshness: A★ 304.6KClaude Code +9
Signals
- Stars
- 304,566
- Forks
- 27,135
- Open issues
- 185
- Contributors
- 44
- Last commit (this folder)
- Oct 21, 2026 (5 days ago)
- Last release
- Oct 21, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/obra/superpowers
- Website
- docs.comet.rpamis.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.415score
writing-skills
GanyuanRan
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.399score
writing-skills
rpamis
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.371score
writing-skills
guanyang
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 980Claude Code +9 - 0.357score
writing-skills
transparent-pegasus
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 12Claude Code +9 - 0.344score
writing-skills
dragoshont
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 2Claude Code +9 - 0.342score
writing-skills
KalarisLabs
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillBFreshness: B★ 13Claude Code +9 - 0.336score
writing-skills
PanPanFR
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillBFreshness: B★ 12Claude Code +9 - 0.334score
writing-skills
CraftOS-dev
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 400Claude Code +9 - 0.332score
writing-skills
mehrlander
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 2Claude Code +9 - 0.332score
writing-skills
andrei649
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillBFreshness: B★ 9Claude Code +9 - 0.314score
writing-skills
BlinkVoid
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillBFreshness: B★ 2Claude Code +9 - 0.313score
writing-skills
coco-research
Use when creating new skills, editing existing skills, or verifying skills work before deployment
SkillAFreshness: A★ 784Claude Code +9
More from obra
- 0.891score
diagnosing-superpowers
obra
Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't…
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.891score
executing-plans
obra
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool…
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.750score
using-superpowers
obra
Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.750score
AGENTS.md · obra/superpowers
obra
AGENTS.md from obra/superpowers: 122 lines covering If You Are an AI Agent, Pull Request Requirements, What We Will Not Accept, New Harness Support and more.
TemplateAFreshness: A★ 304.6KCodex +5 - 0.749score
subagent-driven-development
obra
Use when executing implementation plans with independent tasks in the current session
SkillAFreshness: A★ 304.6KClaude Code +9 - 0.747score
brainstorming
obra
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in…
SkillAFreshness: A★ 304.6KClaude Code +9
Cite this page
writing-skills. Agent Mart. https://agentmart.dev/skills/obra-writing-skills (last updated 2026-10-24)