skill-writing
Agent Skill outcome for creating or revising Agent Skills; excludes general agent-facing artifacts, fresh-context handoffs, installation, publication, and marketplace operations unless separately requested.
- License 许可
- MIT
- 所属仓库
- jhonDoe15/skills
- 最近更新
- 2026-10-16
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- skill-writing
- description
- Agent Skill outcome for creating or revising Agent Skills; excludes general agent-facing artifacts, fresh-context handoffs, installation, publication, and marketplace operations unless separately requested.
02 资源文件 11
- 参考文档evals/component.json5.1 KB
- 参考文档evals/contract-coverage.json9.0 KB
- 参考文档evals/fixtures/outcome-output.md1.7 KB
- 参考文档evals/fixtures/role-output.md1.3 KB
- 参考文档evals/fixtures/skill-request.json2.1 KB
- 参考文档evals/outcome.json4.7 KB
- 参考文档evals/package-closure.json1.3 KB
- 参考文档evals/README.md934 B
- 参考文档evals/role.json4.2 KB
- 参考文档evals/trigger.json4.8 KB
- 脚本test/contracts.test.js11.9 KB
03 SKILL.md 正文
Skill Writing
Interface
Create or revise an Agent Skill from:
- the requested user outcome, intended consumers, and current artifact;
- repository authority, existing Skills, recurring failures, and prior evidence;
- the environment and its cheap authoritative lookups;
- constraints on behavior, dependencies, files, tools, safety, and validation;
- the target location and any separately authorized installation or publication.
Return the created or revised Skill plus a concise verification result. The result identifies the artifact, justification, mechanics checks, behavioral evidence, unresolved decisions, and limits. Mechanics validity and behavioral evidence are separate conclusions.
Routing
Select skill-writing when the deliverable is creation or revision of an Agent
Skill, including its behavior contract, SKILL.md, resources, or owner-local
evaluation cases.
Select another outcome for:
- a general agent-facing artifact:
agent-writing; - a continuation for a fresh context:
take-it-offline; - installation of an existing Skill;
- publication, release, or marketplace operations.
Installation and publication remain separate actions even when requested with
authoring; do not infer their authorization. Direct invocation of
skill-writing wins for its authoring deliverable.
Justify the Skill
Before drafting production instructions:
- Inspect existing Skills for the same outcome or trigger boundary. Prefer revising the existing owner over creating a competing authority.
- Establish the recurring behavior or costly rediscovery that earns reusable guidance. A one-off solution belongs in the current task artifact.
- Check whether the needed facts or mechanics are cheaply discoverable from the environment. Keep cheap facts in their authoritative source and teach the lookup only when the lookup changes behavior.
- Record the justification, overlap decision, and any unresolved ownership.
If no distinct recurring behavior remains, stop before authoring and return the existing owner or environment lookup that satisfies the request.
Decide the behavior contract
Decide these items before production prose:
- Outcome and consumer: the result the Skill owns and the agent that uses it.
- Trigger boundaries: positive selection conditions, false-activation exclusions, ambiguity behavior, and canonical direct invocation.
- Branches: observable predicates, branch-only material, and failure paths.
- Completion: a checkable terminal condition for every branch.
- Dependencies: canonical owners of behavior the Skill invokes, with no copied fallback guidance.
- Degrees of freedom: low for fragile sequence or mechanics, medium for bounded judgment, and high where wording or approach may vary safely.
- Evidence needs: the claims being made and the smallest evidence that could support or falsify each claim.
- Representation seam: keep activation, authorization, choices, branch
predicates, failure policy, and completion in
SKILL.md. Extract mechanics intoscripts/when they are deterministic, fixed-order, error-prone to transcribe, and independently testable with explicit inputs, outputs, and failures. Keep short examples and judgment-heavy steps inline, and invoke an existing dependency instead of scripting behavior it already owns.
List unresolved contract decisions and the smallest user decision or evidence needed. Do not hide an undecided behavior behind polished instructions.
Compose by canonical name
After the contract is decided:
- Invoke
agent-writingto preserve observable activation, branches, execution order, completion, terminology, and information hierarchy. - Invoke
skill-mechanicswith the decided contract to create the portable representation and mechanics result. - Invoke
skill-evaluationto choose and report evidence proportionate to the Skill's behavioral claims.
Use those exact canonical names. Do not copy their guidance into this Skill or approximate a missing dependency. Stop before authoring with the applicable exact failure:
Missing internal dependency "agent-writing"Missing internal dependency "skill-mechanics"Missing internal dependency "skill-evaluation"
Author and verify
Write production instructions only after justification and contract decisions are complete. Keep one owner for each behavior, place branch-only resources behind direct conditional pointers, and preserve the decided degrees of freedom.
When the contract extracts a script, keep its invocation and governing
decisions on the execution path. Ask skill-mechanics to validate the direct
pointer and interface, and use deterministic execution evidence for the
script's declared input, output, and failure behavior.
Ask skill-mechanics to validate representation. Ask skill-evaluation for
evidence proportionate to the claims:
- use deterministic checks only for mechanical facts such as schema validity, exact required literals, counts, artifact existence, byte preservation, and resolvable pointers;
- evaluate trigger selection separately from output quality;
- use matched fresh-session Skill and No-Skill runs for public outcome claims;
- use blind model judgment with quoted or referenced output evidence for semantics, followed by sampled human review;
- report behavior as unverified when proportionate evidence was not run.
Do not replace semantic judgment with natural-language regexes or handcrafted parsers. Do not run paid or credentialed evaluations without authorization. Keep generated runs, judge payloads, reports, viewers, and workspaces uncommitted.
Return:
Artifact:created or revised paths;Justification:distinct recurring behavior and overlap decision;Mechanics:passed, failed, and unresolved structural checks;Behavioral evidence:verified scope or explicit unverified status;Unresolved decisions and limits:claims, hosts, models, and actions not established.
Failure behavior
When justification or a contract item is missing, stop before production prose and return the exact gap and smallest decision or evidence needed.
When repository authorities or Skill owners conflict, preserve the conflict and stop the affected branch. Do not create a competing Skill silently.
When mechanics fail, return the partial artifact only when useful for
correction and mark completion failed. When behavioral evidence is absent,
report unverified; do not turn structural success into a behavioral claim.
Completion
Complete only when:
- the Skill is justified against existing Skills, recurrence, and cheap environment lookup;
- an observable behavior contract covers triggers, branches, completion, dependencies, degrees of freedom, representation seams, and evidence needs;
agent-writing,skill-mechanics, andskill-evaluationwere invoked by canonical name;- the created or revised Skill preserves the decided contract;
- mechanics checks succeeded;
- proportionate behavioral evidence is reported, or its status is explicitly unverified;
- unresolved decisions, unsupported claims, and operational limits are reported;
- no installation, publication, release, marketplace, or suite-wide evaluation work occurred without separate scope and authorization.
04 同仓库更多 Skills
writing-foundation
Shared writing behavior consumed by to-humans and agent-writing; not a user-facing outcome.
to-humans
Audience outcome for ordinary replies, progress updates, and requested prose whose primary reader is a person. Select it independently for human-facing expression, including alongside one substantive Primary outcome. Excludes agent-facing artifacts, fresh-context handoffs, Agent Skill packages, and non-prose work products.
ticket-scope
Private per-candidate scope judgment consumed by Slice Plan and PR Carver; not a user-facing planning outcome.
take-ticket
Use when a settled ticket must reach a reviewed-ticket result. Used directly or by Dispatch Work. Excludes implementation-only work, review-only work, ticket topology, publication, release, and multi-ticket dispatch.
take-it-offline
Use when carrying current work into a fresh agent context through a continuation handoff. Excludes human summaries, archival specifications, general agent-facing artifacts, and Agent Skill authoring.
slice-plan
Private set-level decomposition consumed by Carve; not a user-facing planning outcome.