capability-documentation

Documents AI skill creation and maintenance using Test-Driven Development and RED-GREEN-REFACTOR cycles.

39|1|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/qodex-ai/ai-agent-skills --skill capability-documentation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: capability-documentation
Source: https://github.com/qodex-ai/ai-agent-skills/tree/main/skills/capability-documentation
Command: npx skills add https://github.com/qodex-ai/ai-agent-skills --skill capability-documentation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a rigorous, test-driven framework for creating and documenting AI skills, ensuring they are discoverable, effective, and resistant to misuse.

Core Features & Use Cases

  • TDD for Skills: Applies the Red-Green-Refactor cycle to skill documentation.
  • Rationalization Prevention: Provides techniques to bulletproof skills against common agent excuses and loopholes.
  • Discovery Optimization (CSO): Guides on naming, descriptions, and keywords for better AI searchability.
  • Use Case: You need to create a new skill for your team's internal knowledge base. This skill will guide you through writing the SKILL.md file, testing it with agent scenarios, and ensuring it's discoverable and robust.

Quick Start

Use the capability-documentation skill to learn how to write a new skill using the TDD methodology.

Frequently Asked Questions about capability-documentation

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

FAQPage Schema
How do I document AI agent skills using test-driven development?

Document AI agent skills using test-driven development by applying the RED-GREEN-REFACTOR cycle to skill authoring, mapping out pressure testing scenarios, and rationalization tables to ensure robustness against agent excuses.

What is the best way to prevent rationalization and loopholes in AI skills?

Prevent rationalization and loopholes in AI skills by building rationalization tables and pressure testing scenarios during the TDD documentation process, bulletproofing the agent instructions against common excuses and misuse.

How can I optimize skill discoverability for AI searchability?

Optimize skill discoverability for AI searchability by following Discovery Optimization guidelines, which direct the structuring of skill names, descriptions, and keywords to ensure agents can effectively locate and invoke the capabilities.

How do I write a SKILL.md file for an internal knowledge base?

Write a SKILL.md file for an internal knowledge base by following the TDD framework, which guides you through creating documentation, testing it with agent scenarios, and ensuring the final skill is robust and discoverable.

Does test-driven development work for agent skill documentation?

Test-driven development works for agent skill documentation by applying the RED-GREEN-REFACTOR cycle directly to the authoring process, ensuring instructions are validated through pressure testing scenarios before deployment.