writing-skills
Skill by davila7
Guides an AI assistant through creating, editing, and verifying skills with a test-driven approach. Aimed at people who write skills for Claude Code or Codex.
Install writing-skills
Built from the published package, never by AI.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/development/writing-skills ~/.claude/skills/writing-skillsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/development/writing-skills ~/.gemini/antigravity-cli/skills/writing-skillsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Writing-skills is an agent skill for creating, editing, and verifying skills for AI assistants. It treats skill writing as test-driven development applied to process documentation. The author runs pressure scenarios with subagents to record baseline behavior, writes a skill document, then closes loopholes until agents comply. The source also gives rules for SKILL.md frontmatter, description wording, keyword coverage, and token limits.
It is aimed at people who write or maintain skills for Claude Code or Codex. The guide says skills are reference guides for proven techniques, patterns, or tools, and that descriptions should state only when to use a skill. It also covers cross-referencing other skills, flowchart use, and rendering flowcharts with a bundled render-graphs.js script. It points to Anthropic's official skill guidance as a separate reference.
Written from the project's SKILL.md and checked against it.
What it can do
- Test-driven skill creationFollows a RED-GREEN-REFACTOR cycle using pressure scenarios run with subagents.
- Skill document structureGives a SKILL.md layout with frontmatter, overview, quick reference, and common mistakes sections.
- Description guidanceExplains how to write descriptions that describe only when to use a skill.
- Discovery keywordsAdvises on error messages, symptoms, synonyms, and tool names that help a skill get found.
- Token efficiencySets word count targets and techniques for keeping frequently loaded skills short.
- Cross-referencing skillsExplains how to reference other skills with explicit required markers instead of @ links.
- Flowchart rulesDescribes when flowcharts are appropriate and when markdown or lists are better.
- Graph renderingUses render-graphs.js to render a skill's flowcharts to SVG.
What you need
- superpowers:test-driven-development skill (stated as required background)
- Claude Code or Codex skill directory setup
Try asking
- Help me write a new skill for handling flaky async tests
- Review my SKILL.md frontmatter and description for format problems
- Check my skill's word count and suggest ways to shorten it
Good to know
- Frontmatter supports only the name and description fields
- Frontmatter is limited to 1024 characters total
- Descriptions should stay under 500 characters if possible
- Skills should not use @ links, since they force-load files
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: cli-tool/components/skills/development/writing-skills/SKILL.md, cli-tool/components/skills/development/writing-skills/render-graphs.js. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md22 KB -
anthropic-best-practices.md45 KB -
examples/CLAUDE_MD_TESTING.md5 KB -
graphviz-conventions.dot6 KB -
persuasion-principles.md6 KB
Show all 7 files
-
render-graphs.js5 KB -
testing-skills-with-subagents.md12 KB
Alternatives to writing-skills
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
writing-skills: common questions
Where are personal skills stored?
The source says personal skills live in agent-specific directories: ~/.claude/skills for Claude Code and ~/.codex/skills for Codex.
Should a skill description summarize its workflow?
No. The source says the description should describe only triggering conditions, because a workflow summary can cause the assistant to skip the full skill content.
When should I not create a skill?
The source says not to create skills for one-off solutions, standard practices documented elsewhere, or project-specific conventions, which belong in CLAUDE.md.
How do I install writing-skills?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is writing-skills free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is writing-skills safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to writing-skills?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
