write-skill
Create or revise agent skills. Use when defining a skill's trigger description, active instructions, stop conditions, structure, examples, references, scripts, or readiness status.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 5
- Forks
- 0
01 前言 Front Matter
- name
- write-skill
- description
- Create or revise agent skills. Use when defining a skill's trigger description, active instructions, stop conditions, structure, examples, references, scripts, or readiness status.
02 资源文件 4
- 参考文档references/activation-boundaries.md864 B
- 参考文档references/agent-first-instructions.md1012 B
- 参考文档references/development-loop.md974 B
- 参考文档references/progressive-disclosure.md842 B
03 SKILL.md 正文
Write Skill
Write the smallest agent-first skill that changes the target behavior.
Readiness Gate
A request for "production-ready" asks for evidence, not a label. If the repo has no saved behavioral evidence for the new or revised skill, deliver an Unverified candidate. Never write Production-Ready, validated, or equivalent into the skill or final response solely because the user requested it.
Before Writing
- Name the behavior, trigger, pressure, and failure the skill must handle.
- Inspect live repo conventions and existing evidence before inventing structure.
- Treat an explicit draft request as a draft. Do not force evaluation.
- Label unevaluated behavior Draft or Unverified and name the missing evidence.
- Follow user constraints. Permission to skip work is not pressure to ignore; a prohibition is a prohibition.
- For a new skill, the first deliverable is one
SKILL.md. "Add references, examples, or scripts if useful" is permission, not evidence that they are needed.
Authoring Rules
- Start with one
SKILL.md. Keep a new single-file skill at 120 lines or fewer unless a live repo rule or measured failure requires more; remove examples and checklists that restate active rules before crossing that boundary. Add another file only when a live repo rule requires it or a measured failure cannot be fixed clearly in the active file. Hypothetical usefulness, completeness, polish, or examples do not qualify. - Make the description state what the skill does and when it should activate.
- Write for the agent that will execute the skill, not for a human reading a manual.
- Put user authority, source truth, hard stops, and safety before normal workflow.
- Use direct rules that prevent a named failure. Remove explanation that does not route, constrain, stop, or guide behavior.
- Add references only for conditional depth. Add scripts only for repeated deterministic work that is risky or wasteful to retype.
- Link every resource directly from
SKILL.mdand state when to read or run it.
Do not add README files, changelogs, examples, references, or scripts merely because the user asks for something "complete" or says extras may materially improve it. Name the exact rule or measured failure that makes each resource necessary; otherwise keep one file.
Activation Boundaries
Descriptions are routing contracts:
- include the job and concrete trigger situations;
- exclude generic helper language and quality claims;
- cover true requests without hijacking nearby work;
- test a positive trigger and a near-miss non-trigger before claiming production readiness.
Read activation boundaries when the skill under-triggers, over-triggers, or overlaps another skill.
Revision Loop
- Preserve the failing situation or reuse an adequate existing eval unchanged.
- Change one measured pressure point: description, wording, placement, stop condition, structure, or resource.
- Re-run the whole fixed case after a measured revision; do not reuse partial case evidence.
- Keep unrelated text stable.
- Report the evidence and remaining gaps; do not promote status from prose quality alone.
Read agent-first instructions when wording or placement is the failure. Read progressive disclosure before adding resources. Read the development loop when moving from Draft to Production-Ready.
Bundled Tool
Use the bundled skill author for deterministic structure work. Resolve the link relative to this skill directory, then run node <resolved-skill-author-path> init|validate|inspect. validate proves structural facts. inspect reports advisory signals only; neither proves behavior.
Stop
Stop and ask when the requested public behavior, activation boundary, safety rule, or compatibility choice is owner-owned and unclear. If required production evidence is forbidden or unavailable, ask which claim should change.
04 同仓库更多 Skills
write-skill
Use when creating, revising, merging or splitting a skill or any other text an agent acts on: a SKILL.md and its description, the references and scripts in a skill, AGENTS.md, CLAUDE.md, system or runtime prompts, tool descriptions, subagent briefs or judge prompts. Also use when deciding where an instruction should live, and when a skill is read at the wrong time, not read at all, or read but not followed.
verify-work
Use whenever you need to know whether something works or a claim is true: running tests, builds, linters or type checks; reproducing a bug or checking a fix; trying the real path in the running software, a browser or a CLI; measuring performance; and reading what the output actually shows, including failures and conflicting results. Read it before saying a change works, is fixed or is done, and to check your own change or document before reporting it done. Also use when writing, designing or changing a test, fixture or regression check; when a claim depends on an integration, host lifecycle, an installed package, rendered UI or browser behavior, or performance; and when setting up, following or updating a project's saved steps for launching its software and trying each feature as a user would, or rechecking them after the software changed.
setup-freeflow
Use when installing, activating or turning off Freeflow in a repository, changing or repairing its repository or personal configuration (.freeflow/config.json, .freeflow/local.json), setting up the Freeflow store that keeps task memory (local only, or local + cloud with a private repository, in a cloud session too) and moving older task records into it, or checking whether the current host is loading Freeflow's guidance and skills.
research-work
Use when a question has to be answered from evidence gathered and checked first: an in-depth report on a codebase, library, agent harness or tool; a survey, literature or systematic review of papers, docs or prior work; finding out what sources say before relying on them, and rechecking a published study's numbers; a study or experiment whose plan is fixed before the data, or a quick check on about twenty tasks of whether a change helped; writing a paper from results with its figures, references and PDF, and answering its reviewers. Also use when citing code at a pinned commit, deciding how strong a claim's evidence is, checking that each number traces to its log and each citation supports its claim, designing a measurement or a model judge, and computing statistics for a result (intervals, paired comparisons, clustered runs, rater agreement, pass@k, multiple comparisons, power, meta-analysis). Comparing options from facts already in hand is Discuss Work's; checking whether a change works is Verify Work's.
execute-work
Use for any task that uses tools: reading or searching a repository, running commands, diagnosing, and any work that changes code, files or settings: implementing a feature, fixing a bug, adding or changing behavior, configuring, prototyping, refactoring, simplifying or cleaning up code, deleting dead code, or maintaining a project. Also use when something fails, breaks, regresses or slows down and the cause is unknown, or a fix did not hold; when migrating users, data, a schema, a service or traffic to a replacement and removing the old path; when adding edge-case handling or code comments; and when handing work to subagents or parallel workers, or working from another agent's brief. Read it before your first tool call on a task, even a small or read-only one: it reads the request for its asks and implied requirements, finds what the change touches before you edit, and reports the result.
evaluate-behavior
Use when testing, evaluating or comparing how an agent behaves: whether a skill triggers, whether a change to a prompt, skill, model, setting or extension changes outcomes, measuring a reviewer or checker, or benchmarking agents on coding tasks, conversations or pipelines. Also use when writing or checking an eval's JSON files, running an eval and reading its results, and deciding what a result can claim, how many cases and trials it needs and what it costs.