writing-skills

Guide skill authoring and validation through test-driven documentation practices.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/randoneering/nix-flake-mirror --skill writing-skills-randoneering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/randoneering/nix-flake-mirror/tree/main/home/programs/opencode/skills/writing-skills
Command: npx skills add https://github.com/randoneering/nix-flake-mirror --skill writing-skills-randoneering

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing robust, reusable skills requires disciplined documentation and test-driven design to prevent regressions in agent behavior.

Core Features & Use Cases

  • Guides skill authors through RED-GREEN-REFACTOR cycles for skill creation and validation.
  • Provides a structured approach to documenting rules, patterns, and references for Claude-like agents.
  • Helps teams build testable documentation that resists rationalization and drift.

Quick Start

Draft a minimal skill following the RED-GREEN-REFACTOR workflow and validate it with a baseline stress test.

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 Claude skills?

Test-driven documentation for Claude skills uses RED-GREEN-REFACTOR cycles to draft, validate, and refine skill rules before deployment. This process enforces structured SKILL.md bodies and YAML frontmatter to prevent agent behavior regressions and drift.

What is test-driven skill creation and when do I need it?

Test-driven skill creation is an authoring method that validates new agent skills through baseline stress tests before release. You need it when building reusable skills that must resist rationalization and maintain consistent structure across edits.

How do I validate skill structure and check for safety issues before deployment?

Pre-deployment verification validates skill structure by enforcing YAML frontmatter with name and description fields, checking SKILL.md body consistency, and running safety checks for toxicity, dependencies, and components to ensure discoverability.

Does writing skills require specific dependencies or components to start?

Writing skills requires no external dependencies or components to start. You only need a minimal skill draft following the RED-GREEN-REFACTOR workflow, which you then validate against baseline stress tests for structural compliance.

What's the best way to prevent rationalization and drift in agent documentation?

Preventing rationalization and drift in agent documentation requires applying test-driven design practices during skill creation. Structured rules, patterns, and references built through RED-GREEN-REFACTOR cycles resist drift and enforce consistent behavior.

Why does my skill fail pre-deployment verification checks?

Skills fail pre-deployment verification when they lack required YAML frontmatter fields, have an improperly structured SKILL.md body, or trigger safety checks for toxicity, unlisted dependencies, or missing components during validation.