writing-skills

Apply the RED-GREEN-REFACTOR cycle to test and refine AI agent skills.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/shynlee04/idumb-v2 --skill writing-skills-shynlee04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/shynlee04/idumb-v2/tree/main/.agent/skills%20copy/writing-skills
Command: npx skills add https://github.com/shynlee04/idumb-v2 --skill writing-skills-shynlee04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that new and updated documentation (Skills) are rigorously tested using a Test-Driven Development (TDD) approach, preventing common pitfalls and ensuring agents reliably follow instructions.

Core Features & Use Cases

  • TDD for Documentation: Applies the RED-GREEN-REFACTOR cycle to skill creation and modification.
  • Pressure Testing: Uses realistic scenarios with combined pressures (time, sunk cost, authority) to reveal weaknesses.
  • Rationalization Countermeasures: Explicitly addresses and blocks common excuses agents use to bypass rules.
  • Use Case: Before deploying a new skill that enforces a critical coding standard, use this skill's methodology to write failing tests, create the skill, and refactor it until agents comply under all realistic pressures.

Quick Start

Follow the RED-GREEN-REFACTOR cycle to create or update a skill.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I test AI agent skills to ensure documentation compliance?

To test AI agent skills, you can apply a Test-Driven Development (TDD) approach using RED-GREEN-REFACTOR cycles. This methodology rigorously tests documentation through pressure scenarios and iterative refactoring to ensure agents reliably follow instructions.

How do I apply TDD to skill development and documentation updates?

You apply TDD to skill development by following the RED-GREEN-REFACTOR cycle: write failing tests for the skill, create or update the documentation, and refactor until the agent complies under all realistic pressures. This ensures robust and effective skills.

Why do AI agents bypass rules and how can I prevent rationalization?

AI agents bypass rules by generating rationalizations or excuses to skip instructions. You can prevent rationalization by implementing explicit countermeasures during skill creation that block common excuses and pressure-testing the documentation against these bypasses.

Does TDD for documentation work without external dependencies?

Yes, TDD for documentation works without external dependencies. The skill development process relies solely on internal scripts and references to enforce testing principles, capture rationalizations, and iteratively refactor agent skills.

What is the best way to refactor untested AI agent skills?

The best way to refactor untested AI agent skills is through an iterative TDD process. You write failing tests, update the skill documentation, and refactor it repeatedly until the agent fully complies with instructions under realistic pressure scenarios.