writing-skills

Apply test-driven development to create compliant agent Skill documentation.

6|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/caitengwei/my-skills --skill writing-skills-caitengwei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/caitengwei/my-skills/tree/main/superpowers/skills/writing-skills
Command: npx skills add https://github.com/caitengwei/my-skills --skill writing-skills-caitengwei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents agents from producing weak or noncompliant Skill documentation by enforcing test-driven development for process writing, so skills stay correct under pressure and resist rationalization.

Core Features & Use Cases

  • TDD for documentation: adapts RED-GREEN-REFACTOR to Skill authoring so you identify real baseline failures first, then write the smallest effective guidance.
  • Compliance under pressure testing: uses pressure scenarios with subagents to verify agents follow the rules when they have incentives to violate them.
  • Bulletproofing against loopholes: captures rationalizations verbatim, adds explicit negations/counters, and re-verifies until compliance stays stable.
  • Discovery-friendly authoring: improves Claude Search Optimization by requiring a third-person, trigger-focused description and keyword coverage.

Quick Start

Use the writing-skills Skill when creating or editing a Skill and run baseline pressure scenarios to confirm the Skill fixes the exact failures that occur without it.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I prevent agents from bypassing compliance rules in skill documentation?

Prevent agents from bypassing compliance in skill documentation by applying test-driven development to process writing, using subagent pressure scenarios to verify rules hold under time, sunk-cost, authority, or exhaustion incentives.

What is the RED-GREEN-REFACTOR workflow for test-driven skill authoring?

The RED-GREEN-REFACTOR workflow for skill authoring requires observing baseline documentation failures first, writing minimal rule-focused updates to fix them, adding explicit loophole counters, and running verification re-tests with subagents to ensure compliance.

How do I bulletproof agent skills against rationalization and loopholes?

Bulletproof agent skills against rationalization by capturing agent rationalizations verbatim during pressure testing, adding explicit negations and counters to the documentation, and re-verifying with subagents until compliance remains stable under pressure.

How to improve Claude Search Optimization when writing agent skills?

Improve Claude Search Optimization for agent skills by writing a third-person, trigger-focused description in the documentation and ensuring comprehensive keyword coverage that matches how users search for the skill's core task.

Do I need subagents to pressure test agent skill compliance?

Yes, you need subagents to pressure test agent skill compliance because they simulate scenarios where agents have incentives to rationalize away rules, allowing you to observe baseline failures and verify that documentation updates remain effective.

When should I use test-driven development for writing agent skills?

Use test-driven development for writing agent skills whenever creating, editing, or deploying any Skill where compliance could be rationalized away under pressure, ensuring the documentation stays correct and resists agent rationalization.