writing-skills
Overview
This skill enforces a Test-Driven Development (TDD) approach to documentation and skill authoring. By defining what a skill must achieve before writing its content, we ensure functional clarity and prevent "hallucinated utility" or generic, ungrounded advice.
Iron Law
NO SKILL WITHOUT A FAILING TEST FIRST
Skills written without a prior test case often drift into generic filler that doesn't solve a specific user problem. The test case grounds the skill in reality.
State Machine
digraph writing_skills_flow {
"Start" [shape=doublecircle];
"Step 1: Define User Problem" [shape=box];
"Step 2: Write Failing Test Case" [shape=box];
"Step 3: Define Acceptance Criteria" [shape=box];
"Step 4: Author Skill Content" [shape=box];
"Step 5: Run Test Case" [shape=box];
"Gate: Pass Test?" [shape=diamond];
"Done" [shape=doublecircle];
More from joellewis/skill-library
problem-framing
Use when beginning analytical or strategic tasks, facing undefined problems, or facing analysis paralysis—requires explicit problem definition before proceeding.
3devils-advocate
Use when a proposal has unanimous support or relies on a single high-impact assumption—constructs the strongest possible counter-argument (Steel Man) and runs a Pre-Mortem.
2prd-writing
Use when translating a product vision into engineering requirements—enforces the Working Backwards PR/FAQ method, requiring a customer-facing press release before any technical spec.
1executive-briefing
Crafts senior leadership communications that deliver judgment rather than activity reports, connecting directly to organizational strategy and driving clear decisions. Use when presenting to board members, C-suite executives, or senior leadership — including status updates, recommendations, and escalations.
1copy-editor
Performs line-level prose editing — pruning adverbs, activating voice, cutting redundancy, and enforcing parallel structure for concision and readability. Use when revising any written content, even if the request is just 'make this better,' 'tighten this up,' or 'clean up the writing.'
1market-context
Use when validating market timing, structural forces, or distribution moats before committing strategic resources—focuses on macro context, not individual competitor teardowns.
1