writing-skills

Automate creation, editing, and verification of Skills using TDD workflows with SKILL.md files.

2|1|Updated Jan 5, 2026
One-click install
npx skills add https://github.com/lagz0ne/prev-cli --skill writing-skills-lagz0ne
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/lagz0ne/prev-cli/tree/main/.opencode/skill/writing-skills
Command: npx skills add https://github.com/lagz0ne/prev-cli --skill writing-skills-lagz0ne

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured, test-driven approach to creating, editing, and validating Skills as process documentation, reducing ambiguity and deployment risk.

Core Features & Use Cases

  • TDD-based Skill creation: drive skill content from failing tests (RED), implement minimal guidance (GREEN), and close gaps (REFACTOR).
  • Structured frontmatter and body: SKILL.md with name/description frontmatter and inline guidance to support discovery and loading only what's needed.
  • Verification workflow: baseline testing to capture rationalizations, then iterative refinement to prevent repeat failures.
  • Use Case: authors standardize Skill documentation across teams, making Skills reusable and auditable.

Quick Start

Start by drafting a new SKILL.md following the RED-GREEN-REFACTOR flow, then run baseline tests to confirm agent behavior 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 use test-driven development to write process documentation for skills?

Test-driven documentation uses a RED-GREEN-REFACTOR workflow to write failing tests first, implement minimal skill guidance to pass them, and refactor to close loopholes before deployment. This structured approach reduces ambiguity and deployment risk in process documentation.

What is the best way to structure SKILL.md files for consistent quality assurance?

The best way to structure SKILL.md files is by including YAML frontmatter with name and description fields, followed by inline guidance. This structure supports discovery and ensures agents load only the necessary content for quality assurance.

How do I verify skill behavior and prevent rationalizations in pressure scenarios?

You verify skill behavior by running baseline tests to capture agent rationalizations, then iteratively refining the skill content. This evaluation pattern enforces consistent quality and prevents repeat failures in pressure scenarios before deployment.

Can I standardize skill authoring across teams without external dependencies?

Yes, you can standardize skill authoring across teams by applying a disciplined TDD workflow with explicit trigger conditions and evaluation patterns. This approach makes process documentation reusable and auditable without requiring external dependencies.

When should I not use test-driven development for skill authoring?

You should avoid test-driven skill authoring when rapid prototyping without quality assurance is needed, or when explicit trigger conditions and structured YAML frontmatter are unnecessary for your team's documentation workflow.

Why does writing skills with test-driven development improve documentation quality?

Writing skills with test-driven development improves documentation quality by enforcing a structured workflow that drives content from failing tests, implements minimal guidance, and closes gaps through refactoring. This prevents ambiguity and reduces deployment risk.