write-skill
Use when creating, designing, or fixing an agent skill (SKILL.md pack) — triggers include "write a skill", "make me a skill", "create a skill", skill directories, and skills that fail to trigger or fire on the wrong tasks.
- License 许可
- MIT
- 最近更新
- 2026-09-29
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- write-skill
- description
- Use when creating, designing, or fixing an agent skill (SKILL.md pack) — triggers include "write a skill", "make me a skill", "create a skill", skill directories, and skills that fail to trigger or fire on the wrong tasks.
02 资源文件 1
- 参考文档skill-format.md3.0 KB
03 SKILL.md 正文
write-skill
Turn a capability into an agent skill: grill the design, write the pack, smoke the trigger. Three steps, in order. Each ends on a completion criterion; do not advance early.
1. Grill
Map the skill as a design tree and interview the user per the grilling-via-ask rule. Facts you can look up (existing skills, naming collisions, tool availability) are yours — check the candidate home directories first; the decisions are the user's.
Frontier branches, in rough order:
- Job: what the agent does differently when the skill fires. One sentence.
- Invocation: model-invoked (agent reaches it from a
description; pays context load) or user-invoked (disable-model-invocation: true; only the human fires it). If several user-invoked skills pile up, a router skill names them. - Branches: the distinct cases that take different paths through the skill. Branches decide what stays inline and what goes behind a pointer.
- Assets: does the skill need
references/(disclosed reference files) orscripts/(executable helpers)? Rules in step 2. - Triggers: the words a user or agent says that should fire it. These become the
description. - Home: project
.omp/skills/, user~/.agents/skills/, or a plugin'sskills/dir (distributed with base@heynemann).
Completion: frontier empty and the user confirms the design. Read back the tree before writing anything.
2. Write
Read skill-format.md, then write one skill directory named <skill-name>/ containing SKILL.md in the home the user picked.
Craft rules (one lever each, applied while writing):
- Hierarchy: steps in order, reference on demand, everything only some branches need pushed behind a pointer.
- Pointers: the
descriptionand in-file pointers front-load the trigger words and list the branches; the wording, not the target, decides when the material is reached. - Leading words: collapse spelled-out triads into one pretrained token the agent thinks with (
red,tracer bullet,tight); coin a word only when no existing one fits. - Positive phrasing: prompt the target behavior; a prohibition earns its place only as a hard guardrail, paired with the positive target.
- Pruning: one meaning in one place; restatements of the environment are caches — keep only what the agent cannot find by looking; delete sentences that fail the no-op test.
- Completion criteria: every step ends checkable and exhaustive; vague bounds invite premature completion.
- RFC 2119: MUST/SHOULD/OPTIONAL with real weight — MUST for correctness-critical behavior, never for style.
Assets: references/ and scripts/ live inside the skill folder next to SKILL.md and resolve via skill://<name>/references/.... Include references/ when some branches need material the others never touch (per-topic rules, format specs, worked examples); include scripts/ when a step needs a deterministic executable (a checker, a formatter, a data fetch) that prose would make the agent improvise. A skill needs neither when one file carries it. Reach for a references/ file before splitting the skill in two; split the skill only on a real invocation boundary.
Completion: files written, frontmatter parses (name + description non-empty), every pointer names a file that exists. Re-read the pack once before advancing.
3. Smoke
Prove the skill works as a skill, not as prose: confirm discovery (omp skill list shows it from the chosen home), then exercise the core path — run any script with the terminal tool, read each reference through skill://, and dispatch a representative task to confirm the description fires on its trigger words and the body's steps are followable end to end. Fix what the smoke exposes — a missed trigger, a dead pointer, an unrunnable script — then smoke again.
Completion: discovery confirmed and the core path exercised without improvisation.
Report to the user: skill directory, the trigger description verbatim, and the smoke result.
04 同仓库更多 Skills
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
write-agent
Use when creating, designing, or fixing an omp subagent (task agent) — triggers include "write an agent", "make me an agent", "create a subagent", agent `.md` definitions, and agents that misbehave when spawned via task.
wizard
Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.
wayfinder
Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
wait-what
Stop. That last message did not land: re-pitch it.
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.