writing-skills

Apply RED-GREEN-REFACTOR cycles to create and refine AI skill documentation.

1|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/mezivillager/hacer --skill writing-skills-mezivillager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/mezivillager/hacer/tree/main/.claude/skills/writing-skills
Command: npx skills add https://github.com/mezivillager/hacer --skill writing-skills-mezivillager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • TDD for Skills: Adapts the RED-GREEN-REFACTOR cycle to skill documentation.
  • Pressure Testing: Uses realistic scenarios with multiple pressures (time, sunk cost, authority) to test skill compliance.
  • Rationalization Countermeasures: Identifies and explicitly addresses common excuses agents use to bypass rules.
  • Use Case: When developing a new skill for code review, you would first write scenarios where an agent skips review under time pressure, document their excuses, then write the skill to explicitly forbid this behavior and re-test until compliance is guaranteed.

Quick Start

Use the writing-skills skill to create a new skill by following the RED-GREEN-REFACTOR process.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I use test-driven development for AI skill creation?

Test-driven development for AI skills uses RED-GREEN-REFACTOR cycles to write scenarios, test compliance under pressure, and refine documentation until rules are explicitly enforced. You write failure scenarios first, then build the skill to pass them.

What is rationalization countermeasures in skill testing?

Rationalization countermeasures identify and explicitly address common excuses agents use to bypass rules. They guarantee adherence to documented processes by testing skills against scenarios involving time pressure, sunk cost, and authority.

How do I pressure test AI skills for compliance?

Pressure testing AI skills involves applying realistic scenarios with multiple pressures like time, sunk cost, and authority. This ensures skill documentation remains robust, discoverable, and compliant by forcing the agent to follow rules under stress.

What's the best way to ensure AI skill documentation is discoverable and compliant?

The best way to ensure discoverability and compliance is enforcing a test-driven development methodology. This framework refines skills through RED-GREEN-REFACTOR cycles and explicit rationalization countermeasures to guarantee adherence.

When do I need RED-GREEN-REFACTOR cycles for skill development?

You need RED-GREEN-REFACTOR cycles when creating and refining AI skills to ensure documentation is robust against rationalization. This cycle adapts by writing failing scenarios first, making them pass, then refactoring the skill.

Can I use TDD to prevent AI agents from skipping rules under pressure?

Yes, TDD prevents agents from skipping rules by documenting their excuses under time or authority pressure. You write scenarios where an agent bypasses rules, then update the skill to explicitly forbid that behavior and re-test until compliance.