Writing skills

From skeletorflet/opencode-supreme-setup · View interactive version

Writing skills is an AI agent skill from the GitHub repository skeletorflet/opencode-supreme-setup. Use when creating new skills, editing existing skills, or verifying skills work before deployment

How to use this skill

Skill file

Writing Skills

Overview

Writing skills IS Test-Driven Development applied to process documentation.

Core principle: If you didn't watch an agent fail without the skill, you don't know if the skill teaches the right thing.

TDD Mapping for Skills

| TDD Concept | Skill Creation |

|-------------|---------------|

| Test case | Pressure scenario with subagent |

| Production code | Skill document (SKILL.md) |

| Test fails (RED) | Agent violates rule without skill |

| Test passes (GREEN) | Agent complies with skill present |

| Refactor | Close loopholes while maintaining compliance |

SKILL.md Structure

Frontmatter (YAML):

Key Sections

RED-GREEN-REFACTOR for Skills

RED: Run pressure scenario WITHOUT the skill - document exact behavior and rationalizations.

GREEN: Write minimal skill addressing those specific issues - re-test.

REFACTOR: Close loopholes as new rationalizations emerge.

The Iron Law

NO SKILL WITHOUT A FAILING TEST FIRST

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.