writing-skills

Apply RED-GREEN-REFACTOR testing to validate Skill documentation under pressure scenarios.

1|Updated May 5, 2026
One-click install
npx skills add https://github.com/yashs33244/my-mac-claude --skill writing-skills-yashs33244
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/yashs33244/my-mac-claude/tree/main/skills/superpowers/writing-skills
Command: npx skills add https://github.com/yashs33244/my-mac-claude --skill writing-skills-yashs33244

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents newly created or edited Skills from failing in real “pressure” situations by forcing test-first verification, so agents comply instead of rationalizing workarounds.

Core Features & Use Cases

  • TDD for Skill docs: Turns Skill authoring and editing into RED-GREEN-REFACTOR, based on baseline failures observed without the Skill.
  • Pressure-scenario testing: Uses time, sunk cost, authority, and exhaustion style pressures to surface rationalizations that normally break compliance.
  • Loophole hardening: Captures new excuses verbatim and adds explicit negations, counters, and “red flags” to keep compliance stable over iterations.
  • Claude Search Optimization guidance: Ensures the YAML description focuses on “when to use” triggers (not a workflow summary) for better discovery.

Quick Start

Use the writing-skills Skill when creating or revising a Skill document and you need to verify the guidance holds under multiple pressures in the same session.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I test agent instructions for compliance before deployment?

Test agent instructions for compliance by applying a test-driven RED-GREEN-REFACTOR process to skill documentation. Establish a baseline failure without the Skill, then iterate until the agent consistently follows instructions under pressure.

Why do AI agents rationalize away instructions under time pressure or sunk cost scenarios?

Agents rationalize away instructions under time, authority, sunk cost, or exhaustion pressure by generating workarounds. This Skill hardens documentation by capturing these verbatim excuses and adding explicit negations and red flags to maintain compliance.

What is the best way to harden skill documentation against agent loopholes?

The best way to harden skill documentation is through iterative pressure-scenario testing. Capture new rationalizations verbatim during testing and update the instructions with explicit counters and red flags to ensure stable agent compliance.

How does test-driven development apply to writing AI agent prompts?

Test-driven development applies to writing AI agent prompts by treating documentation as code. You observe baseline failures without the Skill (RED), update instructions to achieve compliance (GREEN), then refactor to close loopholes (REFACTOR).

When should I use a test-first approach for editing skill documentation?

Use a test-first approach for editing skill documentation when creating or revising agent instructions that must hold firm under multiple pressures in the same session. It verifies the guidance prevents rationalization before deployment.

How do I optimize skill descriptions for Claude Search discovery?

Optimize skill descriptions for Claude Search by ensuring the YAML description focuses on "when to use" triggers rather than a workflow summary. This trigger-based approach improves search discovery and ensures the skill is surfaced appropriately.