writing-for-agents
Create or revise agent instructions in skills, AGENTS.md, or CLAUDE.md.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- writing-for-agents
- description
- Create or revise agent instructions in skills, AGENTS.md, or CLAUDE.md.
02 资源文件 4
- 参考文档agents/openai.yaml245 B
- 参考文档references/concise-wording.md3.4 KB
- 参考文档references/instruction-design.md6.7 KB
- 参考文档SKILL-MECHANICS.md3.6 KB
03 SKILL.md 正文
Writing for Agents
Write instructions that change useful decisions. Do not prescribe a process for every task.
Checklist
- State the purpose, activation condition, and completion condition.
- Preserve user intent, project constraints, and authorization boundaries.
- Keep non-obvious rules that prevent a concrete failure.
- Remove generic reminders. Remove duplicate rules that another section or document already owns.
- Before adding a rule, name the decision it changes and one case where it does not apply.
- Revise the section that owns the decision. Do not append an overlapping exception.
- Put conditional procedures behind links. State when to read each link.
- Use project terms consistently. Keep valid domain vocabulary.
- Prefer observable outcomes over required artifacts, agent counts, or fixed sequences.
- Apply Concise wording to every edit. Cut words only where meaning stays exact.
Keep the root document small enough to show its decisions. A short, single-purpose document needs no extra files. Keep useful examples and scripts when replacing them would require repeated work.
Shared execution defaults
When changing shared execution defaults, pick the applicable cases below as acceptance criteria. Judge task outcomes, unnecessary work, authorization, and response usefulness. Do not judge prompt recitation or mechanical compliance. These cases define expected outcomes, not measured results.
| Task | Expected outcome |
|---|---|
| Small, isolated edit | Direct execution without unnecessary delegation |
| Independent, substantial tasks | Bounded delegation when its benefit exceeds coordination cost |
| Request for feedback | Analysis without file changes |
| Required tool unavailable | An alternative that preserves behavior and restrictions, or an explicit blocker |
| Behavior change | Relevant validation and documentation, subject to repository policy |
References
- For skill frontmatter and invocation choices, read Skill mechanics.
- For hard choices about disclosure, pointers, or document structure, read Instruction design.
After structural edits, validate links and metadata. Separate editorial judgment from measured model behavior.
04 同仓库更多 Skills
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
workflow-from-chats
Extract preferences from agent chats → skills, rules, workflow docs. For learning preferences, mining feedback, personalizing workflows.
winui3-csharp-app
WinUI 3 / Windows App SDK desktop apps in C#/XAML. MVVM, bindings, navigation, Mica/Acrylic, windowing, packaging, performance.
why
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.
what-did-i-get-done
Summarize authored commits over a user-specified time period into a concise status update.
weekly-review
Produce a short weekly synthesis of authored commits with highlights by bugfix, tech debt, and net-new work.