writing-skills

Write and validate Skill documentation using a RED-GREEN-REFACTOR workflow.

8|5|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/axiomantic/spellbook --skill writing-skills-axiomantic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/axiomantic/spellbook/tree/main/skills/writing-skills
Command: npx skills add https://github.com/axiomantic/spellbook --skill writing-skills-axiomantic

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing Skills requires a structured, verifiable, and test-driven approach to ensure they actually guide agent behavior, not just document ideas.

Core Features & Use Cases

  • Enforces RED-GREEN-REFACTOR cycles for Skill creation and edits.
  • Documents baseline failures and rationalizations prior to writing the Skill.
  • Provides a standardized SKILL.md template with required sections and frontmatter.
  • Supports multi-phase Skill architectures with guidance on when to separate orchestrator and phase commands.

Quick Start

Provide a RED baseline scenario, implement a minimal GREEN Skill to fix it, and re-test to confirm compliance.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I write test-driven documentation for AI agents?

Skill documentation uses a RED-GREEN-REFACTOR workflow to ensure it guides agent behavior. You capture baseline failures first, write a minimal Skill to fix them, and re-test to verify compliance before refactoring.

What is the RED-GREEN-REFACTOR cycle for skill writing?

The RED-GREEN-REFACTOR cycle for skill writing involves documenting a baseline failure, implementing a minimal Skill to pass the test, and rationalizing the closure. This verifies that documentation actively guides agent behavior.

How do I verify that my Skill documentation actually guides agent behavior?

You verify Skill documentation guides agent behavior through test-driven verification and baseline failure capture. By testing against a RED scenario and confirming a GREEN pass, you ensure the documentation is functional.

Can I use test-driven development for multi-phase Skill architectures?

Yes, test-driven development supports multi-phase Skill architectures. It provides guidance on when to separate orchestrator and phase commands, ensuring scalable and structured multi-phase documentation.

What structure is required for a standardized SKILL.md template?

A standardized SKILL.md template requires specific frontmatter and structured sections. It enforces compliance with these requirements to ensure the documentation meets the baseline for test-driven verification.

Why should I document baseline failures before writing a Skill?

Documenting baseline failures before writing a Skill establishes a RED scenario that proves the current state is insufficient. This test-driven approach ensures you write a minimal GREEN Skill specifically targeted to fix the verified gap.