writing-skills

Apply test-driven development to author and verify SKILL.md files.

12|2|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/aman-2709/superpowers-ecc --skill writing-skills-aman-2709
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/aman-2709/superpowers-ecc/tree/main/skills/writing-skills
Command: npx skills add https://github.com/aman-2709/superpowers-ecc --skill writing-skills-aman-2709

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents untested, brittle, or undiscoverable agent skills by applying a test-driven process to skill authoring so that agents behave correctly under pressure and documented guidance is actually followed.

Core Features & Use Cases

  • TDD mapping: Red-Green-Refactor cycle adapted to SKILL.md authoring with failing pressure scenarios and verification steps.
  • Discovery guidance: Clear frontmatter and Claude Search Optimization (CSO) guidance to make skills findable and token-efficient.
  • Guardrails & checklists: Deployment checklist, anti-rationalization counters, and persuasion principles for discipline-enforcing skills.
  • Testing patterns: Pressure scenario design, subagent test methodology, and flowchart rendering for non-obvious decisions.
  • Use case: Create or revise a SKILL.md for a verification or workflow skill and validate it by running failing scenarios, then iterating until agents comply.

Quick Start

Run a failing pressure scenario without the skill, capture agent failures verbatim, author SKILL.md with required YAML frontmatter and concise guidance addressing those failures, then re-run the scenario with the skill to confirm compliance.

Frequently Asked Questions about writing-skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply test-driven development to AI agent skills?

Apply TDD to AI agent skills by authoring SKILL.md files with YAML frontmatter, running failing pressure scenarios to capture agent failures, then iterating until compliance is achieved. This prevents brittle, untested agent behaviors.

What is a pressure scenario in skill documentation?

A pressure scenario is a test case designed to make an agent fail without the skill's guidance. You capture agent failures verbatim, author the SKILL.md to address them, then re-run the scenario to confirm compliance and resistance to rationalization.

How do I make agent skills discoverable in Claude Search?

Make agent skills discoverable by including YAML frontmatter with name and description fields, adding keyword-rich discovery terms, and following Claude Search Optimization guidance to ensure skills are findable and token-efficient.

How do I prevent AI agents from rationalizing around skill instructions?

Prevent AI agents from rationalizing by embedding explicit anti-rationalization counters and discipline-enforcing guardrails within the SKILL.md file. These counters address known agent failure modes and enforce compliance during deployment.

What should be included in a deployment checklist for agent skills?

A deployment checklist for agent skills should include verification of YAML frontmatter, passing pressure scenarios, anti-rationalization counters, keyword-rich discovery terms, and confirmation that agents comply with documented guidance under pressure.

Can I use TDD to verify existing agent skills before deployment?

Yes, you can use TDD to verify existing agent skills by running failing pressure scenarios against them, capturing non-compliance, editing the SKILL.md to address failures, and re-running until agents comply with the updated guidance.