writing-skills

Apply test-driven development to skill documentation with RED-GREEN-REFACTOR workflows.

141|20|Updated Dec 19, 2025
One-click install
npx skills add https://github.com/julianromli/opencode-template --skill writing-skills-julianromli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/julianromli/opencode-template/tree/main/skill/writing-skills
Command: npx skills add https://github.com/julianromli/opencode-template --skill writing-skills-julianromli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing skills are often developed without concrete validation. This guide applies test-driven development to skill documentation, ensuring skills are written, tested, and refined before deployment to prevent rationalizations and behavioral gaps.

Core Features & Use Cases

  • RED-GREEN-REFACTOR workflow for skill creation, editing, and deployment
  • Baseline testing to capture agent rationalizations and failure modes
  • Structured SKILL.md guidance, including frontmatter, sections, and progressive disclosure
  • Supports red flags, rationalization tables, and meta-testing for continuous improvement
  • Clear deployment checks and iterative improvement patterns for robust skills

Quick Start

Follow a RED-GREEN-REFACTOR cycle to create, test, and refine skills before deployment

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 skill documentation?

Test-driven development for skill documentation uses a RED-GREEN-REFACTOR cycle to write, test, and verify skills before deployment. Start with baseline RED tests to capture failures, then iterate until the skill passes mandatory deployment verification.

What is the RED-GREEN-REFACTOR workflow for skill creation?

The RED-GREEN-REFACTOR workflow is a structured cycle for skill creation. RED captures baseline failures and rationalizations, GREEN ensures the skill passes tests, and REFACTOR iteratively refines the documentation for robust deployment.

Why do my AI agent skills fail during execution despite passing basic checks?

Skills often fail due to undocumented rationalizations and behavioral gaps. Capturing explicit rationalizations during baseline testing and applying meta-testing prevents these failures by ensuring the skill logic is fully verified before deployment.

How do I structure a SKILL.md file for progressive disclosure?

Structuring a SKILL.md file requires specific frontmatter, clear sections, and progressive disclosure of information. The test-driven approach validates this structure through iterative refactoring and deployment checks to ensure quality assurance.

Can I use test-driven patterns to refactor existing skill documentation?

Yes, test-driven patterns support skill editing and refactoring across agent workflows. You apply the RED-GREEN-REFACTOR cycle to existing skills by establishing baseline tests, identifying red flags, and iteratively improving the documentation.

What are the limitations of test-driven skill writing?

Test-driven skill writing requires mandatory baseline RED tests and explicit rationalization capture before proceeding. If you cannot define concrete failure modes or establish deployment verification checks, this structured approach cannot validate the skill effectively.