writing-for-agents
Write agent-facing documents. Use when creating or editing skills, AGENTS.md, or CLAUDE.md.
- License 许可
- MIT
- 所属仓库
- BetoFrega/skills
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- writing-for-agents
- description
- Write agent-facing documents. Use when creating or editing skills, AGENTS.md, or CLAUDE.md.
02 资源文件 3
- 参考文档agents/openai.yaml102 B
- 许可证LICENSE1.0 KB
- 参考文档SKILL-MECHANICS.md2.0 KB
03 SKILL.md 正文
Write for a competent model; keep guidance that changes behavior. For skills, read skill mechanics for invocation, frontmatter, and routers. Report local edits through document delivery.
Context pointers
A pointer names out-of-context material and says when to read it. Front-load its leading word; give one trigger per distinct branch, collapsing synonyms and repeated identity. Sharpen weak triggers before inlining required material. Missing triggers make retrieval unreliable.
Always-loaded pointers cost context and attention every turn: prune them harder than their targets. User-invoked documents cost memory; reserve that burden for human judgment.
Information hierarchy
Separate ordered actions from reference. Inline what every branch needs; disclose branch-specific material through conditional pointers. Keep steps visible and each concept's definition, rules, and caveats together; a flat reference peer-set is valid. Even unique relevant content can dilute attention. Split by branch or sequence only when the attention benefit justifies added context or cognitive cost.
Completion and splitting
Make completion checkable and exhaustive: “every modified model accounted for” drives coverage even in flat reference. When later steps invite premature completion, sharpen the current criterion first. If it stays irreducibly fuzzy and rushing is observed, hide later steps behind a real context boundary: handoff or subagent dispatch. Inline calls create no boundary; merging sequences exposes later steps. For independent invocation, consult skill mechanics.
Leading words
Use compact pretrained concepts and shared vocabulary across prompts, pointers, docs, and code. Repeat the token, not its definition; prefer familiar terms over coined ones. Replace explanations only when the leading word sharpens behavior. Prefer observable bounds, such as “red on the bug,” to subjective reassurance. State positive targets; retain hard prohibitions that resist positive phrasing, paired with the desired behavior.
Pruning
Keep each meaning authoritative in one place; intentional token repetition differs from duplicated guidance. Configuration, scripts, layout, and help output own their facts. Cache only expensive lookups; preserve conventions, rationale, and gotchas absent from those sources.
Delete stale, irrelevant, and sentence-level no-op content. Judge no-ops against model defaults and settle disagreement through observed runs. Strengthen failed cues; prefer deleting an ineffective sentence to merely trimming it.
04 同仓库更多 Skills
writing-for-humans
Load before writing any reader-facing text, including messages, and follow its rules as you write. Also use to rewrite or audit existing prose for plain language, clarity, readability, or actionability.
write-adr
Write, revise, or supersede architecture decision records (ADRs) documenting an architectural choice and its rationale.
wizard
Wizard scripts for human-only provisioning, credential/CI setup, unfamiliar dashboards, migrations, or cutovers; use only for steps the agent cannot perform.
verify
Check whether the current task's claimed outcome is confirmed.
verb-tense
Choose verb tense and mood by when each event happens and how certain it is. Use when writing or reviewing any text, and when a reader asks for a tense review.
triage
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.