write-skill
Create or edit an agent skill using a test-driven documentation process.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create or edit an agent skill using a test-driven documentation process.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Step-by-step teaching mode for implementation guidance. Use when the user asks Codex to teach them how to implement a change themselves, says "use instruct", "teach me step by step", "walk me through implementing", "show me incrementally", or otherwise wants guidance-first coding help instead of Codex directly editing files.
Guidance for designing, writing, reviewing, or refactoring tests in this project. Use when adding tests for features or bugs, deciding unit vs integration boundaries, choosing what to mock, improving test structure, or reducing brittle/slow/flaky tests.
Turn a rough idea into a reviewed design spec before any implementation.
Debug issues using a structured, evidence-first process.
Execute a written implementation plan in this session with checkpoints.
Execute a written implementation plan task-by-task using pi subagents with review gates.
| name | write-skill |
| description | Create or edit an agent skill using a test-driven documentation process. |
| disable-model-invocation | true |
You are running the write-skill skill. This is a manual workflow for creating or editing a reusable skill.
Write a skill using test-driven documentation: prove the agent fails without the skill, then write the smallest skill that fixes that failure.
No new skill or skill edit without a failing baseline scenario first.
If you did not observe the failure without the skill, you do not know whether the skill actually teaches the intended behavior.
SKILL.mdCreate a skill when:
Do not create skills for:
In this repository, use:
agent/skills/<skill-name>/SKILL.md
Add supporting files only when they are truly needed for heavy reference material or reusable tooling.
Each skill needs YAML frontmatter with at least:
namedescriptionRules:
name must matchdisable-model-invocation: true for manual-only workflow skillsWrite the smallest SKILL.md that addresses the specific failure you observed.
The skill should include:
Re-run the scenario.
If the agent finds a new loophole or rationalization:
Before finishing, verify:
After testing passes, save the skill, report what it teaches, and only commit if the user explicitly asks for a commit.