This is TDD for documentation. You write pressure scenarios with subagents to see where they violate a rule (red), write the skill to address those specific violations (green), then iterate to close loopholes (refactor). The core insight is that if you didn't watch an agent fail without the skill, you don't know if it teaches the right thing. Most of the document focuses on making skills discoverable through rich descriptions that list triggering conditions, not workflow summaries, because testing showed Claude will follow a workflow description instead of reading the actual skill content. Requires understanding TDD fundamentals first.

skills.sh installs
389
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill writing-skills --agent claude-code

Installs into .claude/skills of the current project.

Files

Writing Skills

Overview

Writing skills IS Test-Driven Development applied to process documentation.

Personal skills live in agent-specific directories (~/.claude/skills for Claude Code, ~/.codex/skills for Codex)

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 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 Claude instances find and apply effective approaches.

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Documentation, Skill Development
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1buiducnhat avatardocsbuiducnhat/agent-skillsdocs388skills.sh installs
2different-ai avatarwriting-styledifferent-ai/agent-bankClean up text while preserving the writer's voice - minimal edits only385skills.sh installs
3levnikolaevich avatarln-114-frontend-docs-creatorlevnikolaevich/claude-code-skillsCreates design_guidelines.md with WCAG 2.1 compliance and design system docs. Use when project has a frontend.384skills.sh installs
4levnikolaevich avatarln-120-reference-docs-creatorlevnikolaevich/claude-code-skillsCreates reference docs (ADRs, guides, manuals) for nontrivial tech stack choices. Use when project needs justified architecture decision records.380skills.sh installs
5wordflowlab avatargetting-started-guidewordflowlab/novel-writer-skillsActivates when users start a new novel project - guides them through the seven-step methodology (constitution → specify → clarify → plan → tasks → write → analy374skills.sh installs
6freestylefly avatarpaddleocr-doc-parsingfreestylefly/canghe-skillsAdvanced document parsing with PaddleOCR. Returns complete document structure including text, tables, formulas, charts, and layout information. The AI agent ext373skills.sh installs