writing-skills

Automate TDD-based skill creation with a RED-GREEN-REFACTOR lifecycle.

2|Updated Jun 21, 2019
One-click install
npx skills add https://github.com/helmecke/dotfiles --skill writing-skills-helmecke
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/helmecke/dotfiles/tree/main/dot_config/opencode/skill/writing-skills
Command: npx skills add https://github.com/helmecke/dotfiles --skill writing-skills-helmecke

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Writing skills apply Test-Driven Development to process documentation, turning informal notes into structured, reusable skill artifacts that improve consistency and quality.

Core Features & Use Cases

  • TDD-based skill creation: RED-GREEN-REFACTOR lifecycle applied to skill docs to prevent rationalization and ensure testability.
  • Progressive disclosure and organization: frontmatter-driven discovery with references/scripts/assets loaded as needed.
  • Discovery-friendly guidance: clear, keyword-rich descriptions to improve searchability and Claude integration for skill loading.

Quick Start

Follow the RED-GREEN-REFACTOR workflow to create or update a Skill: run baseline tests, write the SKILL.md, and re-test with refactoring until the skill is bulletproof.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How does TDD apply to writing and structuring skill documentation?

TDD for documentation applies a RED-GREEN-REFACTOR lifecycle to skill writing, turning informal notes into structured, testable artifacts. You run baseline tests first, write the documentation to pass them, and refactor for consistency and quality.

How do I create an OpenCode Skill using a test-driven documentation workflow?

To create an OpenCode Skill, follow the RED-GREEN-REFACTOR workflow: establish baseline tests, draft the SKILL.md with required frontmatter fields, and iterate through testing and refactoring until the skill documentation passes all validation checks.

What metadata and frontmatter validations are enforced when writing OpenCode Skills?

The validation process ensures SKILL.md frontmatter includes all required metadata fields, validates their structure, and coordinates optional resources like scripts, references, and assets to maintain progressive disclosure and discovery-friendly organization.

Do I need existing tests before writing new OpenCode Skill documentation?

Yes, the TDD-driven documentation workflow requires establishing baseline tests before writing the SKILL.md. This prevents rationalization and ensures your skill artifacts remain testable and structurally sound throughout the refactoring cycle.

Why use a TDD lifecycle for documentation instead of writing skill docs directly?

Using a TDD lifecycle for documentation prevents rationalization by enforcing a bulletproof RED-GREEN-REFACTOR cycle. This ensures your skill docs remain testable, consistent, and structurally validated rather than relying on informal, unstructured notes.

When should I avoid using TDD for skill documentation workflows?

You should avoid TDD for documentation if your workflow lacks automated baseline tests or if your skills do not rely on structured SKILL.md files and frontmatter validation, as the RED-GREEN-REFACTOR lifecycle depends on iterative test execution.