writing-skills

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

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/AndyAnh174/BanThuoc-SEO --skill writing-skills-andyanh174
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/AndyAnh174/BanThuoc-SEO/tree/main/.agent/skills/writing-skills
Command: npx skills add https://github.com/AndyAnh174/BanThuoc-SEO --skill writing-skills-andyanh174

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a rigorous, test-driven framework for creating and refining AI skills, ensuring they are effective, robust, and resistant to manipulation.

Core Features & Use Cases

  • TDD for Skills: Applies the RED-GREEN-REFACTOR cycle to skill documentation.
  • Pressure Testing: Develops scenarios to test skills under realistic constraints (time, sunk cost, authority).
  • Rationalization Countermeasures: Identifies and explicitly addresses common excuses agents use to bypass rules.
  • Use Case: When developing a new skill for enforcing coding standards, use this skill's methodology to write failing tests first, then build the skill, and finally, test it against scenarios where an agent might be tempted to cut corners.

Quick Start

Follow the RED-GREEN-REFACTOR cycle to create a new skill, starting with writing failing test scenarios.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I use test-driven development for AI skill creation?

Test-driven development for AI skill creation enforces a RED-GREEN-REFACTOR cycle on skill documentation, starting with writing failing pressure scenarios before building the minimal skill. This ensures robust agent behavior and effective documentation.

What is pressure testing in AI agent behavior?

Pressure testing in AI agent behavior involves developing scenarios to test skills under realistic constraints like time, sunk cost, and authority. It identifies loopholes and ensures the agent adheres to strict testing protocols before deployment.

How do I write effective AI skills that resist manipulation?

To write AI skills that resist manipulation, you must explicitly identify and address common rationalizations agents use to bypass rules. Iterative refactoring closes loopholes by enforcing strict testing protocols against baseline failure analysis.

How do I start the TDD cycle for skill documentation?

Start the TDD cycle for skill documentation by writing failing test scenarios first, then writing the minimal skill to pass them, and finally refactoring to close loopholes. This baseline failure analysis guides the entire creation process.

When should I use TDD methodology for refining AI skills?

Use TDD methodology for refining AI skills when you need to ensure documentation is robust and effective against manipulation. It is necessary when developing skills for enforcing coding standards where agents might be tempted to cut corners.

What are the limitations of using TDD for skill development?

A limitation of using TDD for skill development is that it requires strict adherence to testing protocols before deployment. You must accurately anticipate pressure scenarios and rationalization countermeasures, as missing edge cases leaves loopholes open.