writing-skills

Create and refine AI agent skills using a Test-Driven Development cycle.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/raduceuca/wcgw-fun --skill writing-skills-raduceuca
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/raduceuca/wcgw-fun/tree/main/.claude/skills/writing-skills
Command: npx skills add https://github.com/raduceuca/wcgw-fun --skill writing-skills-raduceuca

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a rigorous, test-driven framework for creating, editing, and verifying skills, ensuring they are effective, discoverable, and robust against agent rationalization.

Core Features & Use Cases

  • Test-Driven Skill Development: Apply the RED-GREEN-REFACTOR cycle to skill documentation.
  • Pressure Scenario Design: Learn to create realistic scenarios that test agent compliance under stress.
  • Rationalization Countermeasures: Develop strategies to prevent agents from bypassing skill rules.
  • Use Case: When developing a new skill for code review, use this skill's methodology to write pressure tests that ensure agents don't skip steps under time constraints, and then refine the skill documentation to explicitly counter common excuses for non-compliance.

Quick Start

Follow the TDD cycle outlined in this skill to create a new skill for debugging.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I use TDD to create robust AI agent skills?

To use TDD for AI agent skills, apply the RED-GREEN-REFACTOR cycle to skill documentation by writing pressure scenarios first, then refining the documentation to pass those tests. This ensures agent behaviors remain compliant and robust against rationalization.

What are pressure scenarios in agent testing and why are they needed?

Pressure scenarios in agent testing are realistic situations designed to test AI compliance under stress. They are needed to verify that agents follow skill rules strictly, even when simulating constraints like time pressure, preventing rationalization or skipped steps.

How do I prevent AI agents from rationalizing and bypassing skill documentation?

To prevent AI agents from rationalizing and bypassing skill documentation, document agent failures during pressure tests and refactor the documentation to explicitly close loopholes. This countermeasure strategy eliminates common excuses for non-compliance.

What is the best way to document agent failures during skill development?

The best way to document agent failures during skill development is to record the agent's rationalizations when it fails a pressure scenario. Use these documented failures to write minimal skill documentation updates that directly counter the bypassed rules.

Can I apply test-driven development to existing AI agent documentation?

Yes, you can apply test-driven development to existing AI agent documentation by using the refactoring phase. Write new pressure scenarios to expose compliance loopholes, then edit the existing skill documentation to pass these tests and close rationalization gaps.

When should I use test-driven skill development instead of standard documentation?

Use test-driven skill development instead of standard documentation when robust agent compliance is critical. It is necessary when agents face high-stress scenarios where they might rationalize bypassing rules, requiring pressure testing to verify strict adherence.