writing-skills

Apply test-driven development to create AI skill documentation with RED-GREEN-REFACTOR cycles.

205|26|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/LerianStudio/ring --skill writing-skills-lerianstudio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/LerianStudio/ring/tree/main/skills/writing-skills
Command: npx skills add https://github.com/LerianStudio/ring --skill writing-skills-lerianstudio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Creating effective AI skills requires more than just writing documentation; it demands ensuring agents actually follow the rules, especially under pressure. This skill applies Test-Driven Development (TDD) to skill creation.

Core Features & Use Cases

  • TDD for Skills: Maps the RED-GREEN-REFACTOR cycle to skill creation, starting with baseline tests (agents failing without the skill).
  • Pressure Scenarios: Guides the creation of realistic scenarios combining time, sunk cost, authority, and other pressures to test agent compliance.
  • Rationalization Capture: Mandates documenting exact agent rationalizations verbatim to identify and plug loopholes in the skill.

Quick Start

I'm creating a new skill. Use the writing-skills skill to guide me through the process.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I apply test-driven development to create AI skills that actually work?

Test-driven development for skills means writing baseline tests first to observe how agents fail without the skill, then drafting documentation and iterating until tests pass. This ensures your skill documentation translates to actual agent compliance, not just theory.

What are pressure scenarios and why do I need them when documenting skills?

Pressure scenarios combine time constraints, sunk costs, authority pressure, and other real-world factors to test whether agents follow your skill rules under stress. They expose rationalization loopholes that normal testing misses.

How do I structure skill documentation to pass RED-GREEN-REFACTOR compliance?

Structure your skill with strict YAML frontmatter containing name and description within length limits, then iterate through RED-GREEN-REFACTOR cycles: write failing tests, make them pass, refactor. This ensures ASO-aligned metadata and functional requirements alignment.

Why does capturing agent rationalizations verbatim matter for skill design?

Documenting exact rationalizations agents produce when they deviate reveals the specific loopholes your skill must close. This prevents agents from inventing workarounds and strengthens your rules against real pressure scenarios.

Can I use this skill development process with subagents?

Yes. The skill guides you through creating pressure scenarios with subagents to establish baseline failures, then iterating documentation until subagents pass all tests under realistic constraints.

What's the difference between writing regular documentation and AI skill documentation?

AI skill documentation must pass compliance tests under pressure—agents must actually follow the rules, not just understand them. Regular documentation assumes human reading; skill documentation requires observable, measurable agent behavior change.