writing-skills

Apply test-driven development to SKILL.md documentation with YAML frontmatter and iterative subagent re-testing.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/withmartian-sandbox/ghrc-x-3126672651424eddb640ecc81321a665 --skill writing-skills-withmartian-sandbox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/withmartian-sandbox/ghrc-x-3126672651424eddb640ecc81321a665/tree/main/default/skills/writing-skills
Command: npx skills add https://github.com/withmartian-sandbox/ghrc-x-3126672651424eddb640ecc81321a665 --skill writing-skills-withmartian-sandbox

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a test-driven approach to writing SKILL.md documentation so that agent-facing instructions are precise, verifiable, and resistant to rationalization under pressure. It prevents agents from bypassing rules, misinterpreting guidance, or exploiting ambiguous language by forcing baseline failure analysis and iterative fixes.

Core Features & Use Cases

  • TDD for documentation: Define pressure scenarios, run baselines without the skill, capture agent rationalizations verbatim, then write minimal instructions that close specific loopholes.
  • Verification loop: RED-GREEN-REFACTOR cycle for skills: failing baseline → targeted SKILL.md changes → re-run tests until agents comply.
  • Rationalization defenses: Build rationalization tables, red-flag lists, and mandatory deployment checklists to make discipline-enforcing skills robust.
  • Use Cases: Creating discipline-enforcing process skills (TDD, verification), improving technique skills to survive adversarial prompts, and onboarding SKILL authors to systematic validation practices.

Quick Start

Use writing-skills to design three pressure scenarios, run them without the skill to capture failures, then update SKILL.md and re-run until the agent consistently follows the documented rules.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I prevent AI agents from rationalizing and bypassing SKILL.md documentation rules?

To prevent AI agents from rationalizing SKILL.md documentation, apply test-driven development by capturing baseline failures under pressure scenarios, then writing minimal targeted instructions with anti-rationalization artifacts like red-flag lists to close loopholes.

What is test-driven development for agent documentation and when should I use it?

Test-driven development for agent documentation is a verification loop using a RED-GREEN-REFACTOR cycle to enforce required behaviors in SKILL.md files. Use it when authoring discipline-enforcing or technique skills to ensure instructions resist rationalization.

How do I create pressure scenarios to test if agent instructions resist rationalization?

To create pressure scenarios for testing agent instructions, design specific adversarial prompts that challenge your skill's rules, run them without the skill to capture verbatim baseline rationalizations, then iteratively update SKILL.md and re-run with subagents until compliance.

Can I use test-driven documentation validation for both discipline-enforcing and technique skills?

Yes, test-driven documentation validation supports both discipline-enforcing process skills and technique skills. It systematically verifies required behaviors across model types by capturing baseline failures and applying iterative fixes using mandatory deployment checklists.

What's the best way to structure SKILL.md files to enforce required behaviors under pressure?

The best way to structure SKILL.md files for enforcing required behaviors is using targeted minimal instructions with YAML frontmatter, supplemented by explicit anti-rationalization artifacts like rationalization tables and red-flag lists to prevent agents from exploiting ambiguous language.

Why do agents bypass documentation rules and how do rationalization tables fix this?

Agents bypass documentation rules by misinterpreting ambiguous guidance or exploiting loopholes under pressure. Rationalization tables fix this by capturing verbatim baseline failure reasoning, allowing you to write targeted minimal instructions that explicitly close those specific rationalization loopholes.