writing-skills

Create test-driven Skill documentation with RED-GREEN-REFACTOR workflows and frontmatter validation.

15|2|Updated Jun 21, 2026
One-click install
npx skills add https://github.com/Liuchun-oss/codelf-agent --skill writing-skills-liuchun-oss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/Liuchun-oss/codelf-agent/tree/main/resources/skills/writing-skills
Command: npx skills add https://github.com/Liuchun-oss/codelf-agent --skill writing-skills-liuchun-oss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill framework standardizes how to write, test, and validate agent Skills to reduce drift between documented guidance and actual behavior.

Core Features & Use Cases

  • RED-GREEN-REFACTOR workflow for disciplined Skill creation
  • Pressure-scenario testing formats and rationalization tables
  • Progressive disclosure structure with inline guidance and lightweight references
  • Clear frontmatter requirements, naming conventions, and discovery-oriented design

Quick Start

Draft a new SKILL.md with name and description, include a concise example and a single RED-GREEN-REFACTOR test scenario to demonstrate the workflow

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

Test-driven documentation for agent skills is created by applying a RED-GREEN-REFACTOR workflow to describe the problem solved, applicable contexts, and required structure, reducing drift between documented guidance and actual behavior.

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

The RED-GREEN-REFACTOR workflow for skill creation is a disciplined testing approach that uses pressure-scenario testing formats and rationalization tables to validate SKILL.md files before finalizing the documentation.

How do I validate frontmatter and asset directories in SKILL.md files?

To validate frontmatter and asset directories in SKILL.md files, you enforce frontmatter validity requirements for name and description, while checking optional scripts, references, and assets directories to extend guidance.

Does progressive disclosure structure work for lightweight skill references?

Progressive disclosure structure works for lightweight skill references by embedding inline guidance directly in the SKILL.md file, allowing users to access concise examples and test scenarios without overwhelming the documentation.

Can I use pressure-scenario testing to validate subagents documentation?

You can use pressure-scenario testing to validate subagents documentation by applying rationalization tables that test the documented workflow against edge cases, ensuring the subagents behave as described under pressure.

What are the limitations of test-driven skill documentation?

Limitations of test-driven skill documentation include the strict requirement for frontmatter name and description fields, meaning the framework cannot validate skills lacking these mandatory metadata entries or those bypassing the RED-GREEN-REFACTOR process.