writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment - applies TDD to process documentation by testing with subagents before writing, iterating until bulletproof against rationalization
Security Assessment
About writing-skills
The writing-skills skill applies Test-Driven Development (TDD) principles to the creation and refinement of process documentation. Instead of writing documentation first and assuming it will work, this skill requires authors to begin by designing failing test scenarios using subagents. These pressure scenarios expose baseline agent behavior and reveal common rationalizations, misunderstandings, or failure patterns. Only after observing these failures should the documentation (the skill itself) be written. This ensures that the final skill directly addresses real behavioral gaps rather than imagined ones. The core rule is strict: no skill may be created or edited without first observing a failing test.
Its primary capabilities revolve around the RED-GREEN-REFACTOR workflow. In the RED phase, authors design and execute pressure scenarios without the skill to capture authentic baseline behavior. In the GREEN phase, they write a minimal skill that addresses the specific failures observed, then re-run the same scenarios to verify compliance. In the REFACTOR phase, they close loopholes by identifying new rationalizations and adding explicit counters, particularly for discipline-oriented skills. The methodology emphasizes structured skill types (Technique, Pattern, Reference), proper organization, search optimization, and disciplined iteration until the skill is robust. It also requires understanding test-driven development and the use of subagents for structured testing.
This skill is intended for practitioners who create reusable, cross-project skills rather than one-off solutions. It is especially relevant when documenting non-obvious techniques, broadly applicable patterns, or reference material that others will reuse. It should not be used for project-specific conventions or simple documentation updates. The primary audience includes AI skill authors who want their process documentation to be resilient, verifiable, and resistant to rationalization before deployment.
FAQ
When should I create a new skill using writing-skills?
You should create a skill when the technique is not intuitively obvious, applies broadly across projects, would be referenced again, and would benefit others. It should not be used for one-off solutions or project-specific conventions.
Can I edit an existing skill without running tests first?
No. The Iron Law requires a failing test before creating or editing any skill. If you modify a skill without observing a failing baseline, the change must be deleted and restarted following the RED-GREEN-REFACTOR workflow.
What are the required prerequisites for using this skill?
You must understand test-driven development and use subagents for testing. The workflow depends on writing pressure scenarios, observing baseline failures, and iterating through structured testing phases.
What types of skills can be created with this methodology?
The methodology supports three types: Technique (step-based methods), Pattern (ways of thinking about problems), and Reference (documentation such as API or syntax guides).
What are common mistakes when applying this skill?
Common mistakes include writing documentation before testing, skipping the baseline phase, testing with the skill already present, batching multiple skills at once, and using vague descriptions instead of specific triggers.
Install writing-skills
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
NickCrew/claude-cortex