writing-skills

Apply test-driven development to SKILL.md documentation with red-green-refactor cycles.

30|2|Updated Mar 3, 2022
One-click install
npx skills add https://github.com/lie5860/ak-guess --skill writing-skills-lie5860
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/lie5860/ak-guess/tree/main/.agents/skills/writing-skills
Command: npx skills add https://github.com/lie5860/ak-guess --skill writing-skills-lie5860

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps authors create discoverable, testable SKILL.md documents so agents reliably follow documented rules instead of rationalizing workarounds. It prevents undeclared assumptions and reduces regressions by applying a red-green-refactor cycle to skill documentation.

Core Features & Use Cases

  • TDD for skills: Define baseline pressure scenarios, observe failures, author minimal SKILL.md guidance, then iterate until agents comply.
  • Pressure testing: Design time/sunk-cost/authority/fatigue scenarios to surface common rationalizations and eliminate them with explicit rules.
  • Discovery and CSO guidance: Craft frontmatter (name and description) optimized for agent discovery and include search keywords and concise triggers.
  • Checklists and tooling: Provides deployment and test checklists, sample test formats, and a graph-rendering helper to visualize flowcharts.

Quick Start

Run a failing baseline pressure scenario, record exact agent rationalizations, write a minimal SKILL.md with a name and a discovery-focused description, then iterate red–green–refactor until the agent follows the skill under stress.

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 for agent skill documentation?

Test-driven development for agent skills involves running failing baseline pressure scenarios, observing agent failures, authoring minimal SKILL.md guidance, and iterating red-green-refactor until the agent follows documented rules under stress.

Why do agents rationalize workarounds instead of following SKILL.md rules?

Agents rationalize workarounds when skill documentation lacks explicit anti-rationalization clauses. Applying TDD to skills surfaces these failures under time, sunk-cost, authority, or fatigue pressure, allowing you to add concrete rules that prevent undeclared assumptions and regressions.

What's the best way to structure SKILL.md frontmatter for agent discovery?

The best way to structure SKILL.md frontmatter for agent discovery is including a name and a discovery-focused description optimized for search, along with concise trigger phrasing and keywords. This ensures agents can reliably find and invoke the skill when needed.

How do I pressure test agent skills for compliance under stress?

Pressure test agent skills by designing scenarios involving time constraints, sunk costs, authority pressure, or fatigue. Observe how the agent rationalizes workarounds during these failing baseline tests, then add explicit anti-rationalization clauses to your SKILL.md.

Do I need dependencies to write and test agent skills with TDD?

No dependencies are required to write and test agent skills with TDD. The process relies on creating baseline scenarios, capturing rationalizations, authoring minimal SKILL.md guidance, and iterating using provided checklists and sample test formats until compliance is achieved.