writing-skills

Create and test agent skills using test-driven development with subagent pressure scenarios.

Updated May 28, 2026
One-click install
npx skills add https://github.com/mpmf/SDD_Base --skill writing-skills-mpmf
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: writing-skills
Source: https://github.com/mpmf/SDD_Base/tree/main/.opencode/skills/superpowers/writing-skills
Command: npx skills add https://github.com/mpmf/SDD_Base --skill writing-skills-mpmf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires graphviz, and includes references (resource) components.

What problem does it solve? Writing documentation for AI agents often fails because untested instructions get rationalized away under pressure. This Skill applies test-driven development to skill authoring so you can verify agents actually comply before deployment. ## Core Features & Use Cases - TDD-Based Skill Authoring: Run baseline pressure scenarios with subagents (RED), write the skill addressing observed failures (GREEN), then close rationalization loopholes (REFACTOR). - Discovery Optimization: Guidance for writing effective YAML frontmatter, keyword-rich descriptions, and token-efficient content so agents find and load the skill. - Testing Methodology: Detailed reference for building multi-pressure scenarios, rationalization tables, and red-flag lists to bulletproof discipline-enforcing skills. - Use Case: When creating a new skill that enforces a rule like TDD, run a scenario where an agent has sunk cost and time pressure, watch it violate the rule, then write the skill to counter those exact rationalizations. ## Quick Start Ask the agent to help you create a new skill by first running a baseline pressure scenario with a subagent before writing any documentation.

Frequently Asked Questions about writing-skills

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

FAQPage Schema
How do I write a SKILL.md file for an AI agent?▼

Start with YAML frontmatter containing a name and a description that begins with 'Use when' plus specific triggering conditions. Follow with an overview, when-to-use guidance, core patterns, and a quick reference, keeping the body concise and keyword-rich.

How do I test that an agent skill actually works?▼

Run pressure scenarios with subagents before writing the skill to capture baseline failures verbatim, then re-run the same scenarios with the skill present. Combine three or more pressures like time, sunk cost, and authority to verify compliance under stress.

What should go in a skill description field?▼

The description should only describe triggering conditions and symptoms, written in third person starting with 'Use when'. Never summarize the skill's workflow, because agents may follow the description shortcut instead of reading the full skill body.

When should I not create a new skill?▼

Skip skill creation for one-off solutions, project-specific conventions that belong in project config, well-documented standard practices, and mechanical constraints that can be enforced with validation or automation instead of documentation.

Why do agents ignore skills under pressure?▼

Agents rationalize violations using excuses like sunk cost, pragmatism, or spirit-versus-letter arguments. Counter this by documenting exact rationalizations, adding explicit negations for each loophole, and building red-flag lists into the skill.