writing-skills

Apply RED-GREEN-REFACTOR to validate AI skill documentation against pressure scenarios.

115|54|Updated May 25, 2026
One-click install
npx skills add https://github.com/totvs/engpro-advpl-tlpp-skills --skill writing-skills-totvs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/totvs/engpro-advpl-tlpp-skills/tree/main/skills/superpowers/writing-skills
Command: npx skills add https://github.com/totvs/engpro-advpl-tlpp-skills --skill writing-skills-totvs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents AI agents from following incorrect or incomplete documentation by forcing skill authors to validate instructions through failing and passing pressure scenarios, not by assuming clarity.

Core Features & Use Cases

  • TDD for process documentation: maps RED-GREEN-REFACTOR to skill-authoring so documentation changes are verified against baseline agent rationalizations.
  • Pressure-scenario testing with subagents: captures the exact “excuses” agents use under time, sunk-cost, authority, exhaustion, and similar pressures.
  • Bulletproofing against loopholes: adds explicit negations, rationalization tables, red flags, and re-verification until compliance holds under stress.
  • Discovery-optimized skill writing: enforces a concise, trigger-focused YAML description and structured skill body for findability and progressive disclosure.

Quick Start

Use Writing Skills to create or edit a new Skill, by first running a baseline pressure scenario without the Skill, then writing the minimal SKILL.md changes to make the scenario comply, and finally re-testing to close newly discovered loopholes.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I apply TDD to agent skill documentation?

To apply TDD to agent skill documentation, you map RED-GREEN-REFACTOR to skill-authoring by capturing a failing baseline agent rationalization, writing minimal SKILL.md changes to force compliance, and re-testing to close loopholes. This validates instructions under pressure scenarios rather than assuming clarity.

Why does AI follow incorrect documentation under pressure?

AI follows incorrect documentation under pressure because agents rationalize excuses involving time, sunk-cost, authority, or exhaustion constraints. Pressure-scenario testing captures these exact rationalizations verbatim, allowing you to add explicit negations and red flags until compliance holds.

What's the best way to bulletproof SKILL.md frontmatter against agent loopholes?

The best way to bulletproof SKILL.md frontmatter against agent loopholes is iterative loophole closure. You capture baseline rationalizations, add explicit negations and rationalization tables to the trigger-focused YAML description, then re-verify until behavior stays consistent under stress.

Does writing-skills require failing-test baselines for compliance testing?

Yes, writing-skills requires failing-test baselines for compliance testing. You must run a baseline pressure scenario without the skill to capture verbatim rationalizations, ensuring the documentation changes are verified against baseline agent behavior rather than assumed clarity.

Can I use progressive disclosure to optimize agent skills for discovery?

Yes, you can use progressive disclosure to optimize agent skills for discovery. Writing-skills enforces a concise, trigger-focused YAML description and structured skill body, ensuring findability while maintaining compliance-proof documentation that resists rationalization.

When should I not use TDD for skill documentation?

You should not use TDD for skill documentation when updating trivial metadata that does not influence agent behavior under pressure. This approach is designed for creating, editing, and deploying agent skills that must resist rationalization under time, sunk-cost, authority, and exhaustion pressures.