writing-skills
Skill2 starsChanged 4 months agoMITView on GitHub
Use when creating, editing, packaging, consolidating, routing, validating, or publishing agent skills under .agents/skills or a tool-specific skill directory.
154 other projects use a version of this.
Adopted by
Most recently taken up by
- andreymudri/fleetmatestheir own version, first seen Oct 5, 2026
- invergent-ai/surogatestheir own version, first seen Oct 5, 2026
- PostHog/posthogtheir own version, first seen Oct 4, 2026
- PostHog/posthog-fosstheir own version, first seen Oct 4, 2026
- crbnos/carbontheir own version, first seen Oct 4, 2026
- ryanportfolio/Corewise.Academytheir own version, first seen Oct 3, 2026
Used with
Projects with it also use diagnosing-superpowers, chinese-code-review and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
obraSkilldiagnosing-superpowers
Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.
Also in 6 projects that use this
shibit-netSkillchinese-code-review
中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
shibit-netSkillchinese-commit-conventions
中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
pedronauckSkillwriting-agents-md
Write or audit AGENTS.md/CLAUDE.md instructions. Use writing-skills for on-demand skills; excludes human-facing docs and READMEs.
Also in 3 projects that use this
MorningStar0709Skillchinese-git-workflow
Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".
Also in 3 projects that use this
MorningStar0709Skillworkflow-runner
Run an agency-orchestrator style YAML workflow inside the current Trae conversation by simulating or coordinating multiple roles. Use when the user provides a `.yaml` or `.yml` workflow, asks for multi-role collaboration, says things like “用多个角色一起评审这个 PRD”“多角色协作”“先生成工作流再执行”“让产品经理、架构师、QA 一起看一下”, or wants roles such as product manager, architect, reviewer, or QA to work together. Supports layered execution, role prompting, variable interpolation, document-backed inputs, and parallel steps only when the current environment has a clear subagent mapping. Do not use for ordinary implementation plans, simple code changes, or tasks already covered by `writing-plans`, `executing-plans`, `subagent-driven-development`, or single-purpose review/debug skills.
Also in 3 projects that use this
- +1 more from shibit-net
Other versions154 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 154
- obra/superpowers★ 314ksame name
- PostHog/posthog★ 40ksame name
- jnMetaCode/superpowers-zh★ 8.3ksame name
- openai/plugins★ 7.3ksame name
- compozy/compozy★ 2.8ksame name
- crbnos/carbon★ 2.7ksame name
- GanyuanRan/Aegis★ 1.3ksame name
- PostHog/posthog-foss★ 721same name
- pedronauck/skills★ 633same name
- coco-research/coco★ 437same name
144 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- adversarial-reviewSkill
- interface-reviewSkill
- outcome-first-workflowsSkill
- plan-changesSkill
- repo-automationsSkill
- simplifySkill
- systematic-debuggingSkill
- trace-codebaseSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
46 rules. 0 are common, 37 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 144 edited versions we read keep these.
37
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Before writing or editing a skill, answer these from the current task and the target project.
- Distinctive: line 19
When should it trigger? Include user phrases, symptoms, tools, paths, and near-miss cases.
- Distinctive: line 32
Do placement before writing content.
- Distinctive: line 42
Search before adding a top-level skill:
- Distinctive: line 49
Prefer adding a nested reference file under an existing skill when the new guidance is really a variant of an existing workflow.
- Distinctive: line 55
Create or keep a skill when the guidance is reusable and requires judgment.
- Distinctive: line 74
If reliable automation can enforce the behavior, add or use the automation and make the skill point to the command.
- Very specific: line 92
Start descriptions with Use when.
- Distinctive: line 96
Keep descriptions under 1024 characters.
- Distinctive: line 97
Keep XML-style angle brackets out of descriptions because descriptions are often injected into structured prompts.
- Distinctive: line 114
Write for a future agent under time pressure.
- Distinctive: line 117
Put routing decisions near the top.
- Distinctive: line 118
Use imperative instructions when the agent must do something.
- Distinctive: line 120
Prefer one excellent example over several generic examples.
- Distinctive: line 121
Use tables for quick reference and comparisons.
- Distinctive: line 122
Keep examples copy-pasteable when they are commands or code.
- Very specific: line 123
Avoid generic labels like step1, helper2, or pattern3.
- Distinctive: line 124
Avoid all-caps rules unless the constraint is safety-critical or agents have repeatedly rationalized around it.
- Very specific: line 139
Keep SKILL.md as the entry point and router.
- Very specific: line 141
Put deterministic or repetitive work in scripts/.
- Very specific: line 142
Put reusable prompts, templates, and assets in templates/ or assets/.
- Distinctive: line 144
Use repo-relative file paths for local references.
- Very specific: line 150
Use REQUIRED: Use <skill-name> when the other skill must be followed.
- Very specific: line 151
Use REQUIRED BACKGROUND: Read <skill-name> when concepts from another skill are needed.
- Very specific: line 153
Use Optional reference: <path> for supporting docs.
- Distinctive: line 154
Avoid vague "see also" lists.
- Distinctive: line 163
Use for small edits, reference updates, and typo-level fixes.
- Very specific: line 165
Search for stale references with rg.
- Distinctive: line 166
Check local paths exist.
- Distinctive: line 167
Run the package or repo skill linter.
- Distinctive: line 172
Use for new skills, routing changes, and meaningful behavior changes.
- Distinctive: line 174
Write 2-3 realistic prompts that should trigger the skill.
- Distinctive: line 175
Write 2-3 near-miss prompts that should not trigger it.
- Distinctive: line 176
Read the skill as the future agent and trace what instruction each prompt should use.
- Distinctive: line 178
If practical, compare with-skill behavior against without-skill behavior.
- Distinctive: line 184
Use for high-risk discipline skills, broad consolidations, or skills that enforce behavior agents tend to rationalize away.
- Distinctive: line 189
Write the minimal guidance that addresses the failure mode.
- Distinctive: line 191
Prefer scripts or assertions for objectively checkable outputs.
- Distinctive: line 192
Use human review for subjective quality.
- Distinctive: line 194
Do not turn every skill edit into an eval project.
- Distinctive: line 201
Read references and callers before changing routing.
- Distinctive: line 202
Prefer deleting stale guidance over layering exceptions.
- Distinctive: line 203
If feedback came from a review, fix both the specific issue and the pattern that allowed it.
- Distinctive: line 205
Call out non-obvious tradeoffs in release notes or PR descriptions.
- Distinctive: line 209
Before finishing, test the description mentally against realistic prompts.
- Distinctive: line 217
If discovery is shaky, improve the description before expanding the body.
“Common” is measured: kept by at least 6 in 10 of the 144 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Writing Skills
A skill is reusable operational guidance that helps a future agent recognize a situation and apply a proven approach. Treat skill writing like product work for agents: define the job, make discovery reliable, keep the path through the docs obvious, and verify that the skill changes behavior.
Start With Intent
Before writing or editing a skill, answer these from the current task and the target project. Ask only for gaps that cannot be inferred.
- What task should this help agents do?
- When should it trigger? Include user phrases, symptoms, tools, paths, and near-miss cases.
- What should the agent produce or decide after reading it?
- What 2-3 concrete tasks should it handle end to end?
- Who is the audience: repository developer agents, user-facing runtime agents, or a packaged skill bundle for many projects?
- What existing skill, always-on guidance, script, lint, or test already covers part of this?
Those concrete tasks become the should-trigger prompts used during validation.
Choose The Right Home
Do placement before writing content.
| Home | Use for |
.agents/skills/<skill>/SKILL.md | Project-local source of truth for reusable skills. |
Tool-specific links, such as .claude/skills | Generated symlinks or copies that point back to .agents/skills. |
AGENTS.md or equivalent always-on guidance | Broad rules that should apply even when no skill is invoked. |
scripts/, lint, or tests | Mechanical behavior that can be enforced automatically. |
| Runtime workspace skill directory | User-facing skills that must be visible to a sandbox or runtime agent. |
Search before adding a top-level skill:
rg --files .agents/skills | rg '/SKILL\.md$' | sort
rg -n "keyword|tool|old-skill-name" .agents AGENTS.md .Prefer adding a nested reference file under an existing skill when the new guidance is really a variant of an existing workflow. Keep a separate top-level skill when separate discovery metadata matters.
When To Create Or Keep A Skill
Create or keep a skill when the guidance is reusable and requires judgment.
Good fits:
- non-obvious techniques;
- repeated debugging or review workflows;
- routing decisions;
- tool-specific setup or failure modes;
- API or command references that agents often misuse;
- rubrics, quality gates, and heuristics.
Poor fits:
- one-off history;
- project facts that belong in always-on guidance;
- mechanical checks that should be linted;
- obvious language or library docs;
- postmortems with no reusable decision rule.
If reliable automation can enforce the behavior, add or use the automation and make the skill point to the command.
Frontmatter
Every SKILL.md needs:
---
name: lowercase-hyphen-name
description: Use when triggering situations, symptoms, tools, paths, and user phrases apply.
---Rules:
nameis lowercase hyphen-separated and matches the directory.descriptionis the main discovery surface.- Start descriptions with
Use when. - Describe triggering conditions, not the workflow.
- Include concrete keywords an agent or user would mention.
- Include near-miss routing when adjacent skills could compete.
- Keep descriptions under 1024 characters.
- Keep XML-style angle brackets out of descriptions because descriptions are often injected into structured prompts.
Bad:
description: Use when debugging - checks logs and writes a fix.Good:
description: Use when production errors, service health regressions, logs, traces, incidents, or failing monitors need investigation.Body Content
Write for a future agent under time pressure.
- Lead with the core principle in 1-3 sentences.
- Put routing decisions near the top.
- Use imperative instructions when the agent must do something.
- Explain why a rule matters when that helps the agent generalize.
- Prefer one excellent example over several generic examples.
- Use tables for quick reference and comparisons.
- Keep examples copy-pasteable when they are commands or code.
- Avoid generic labels like
step1,helper2, orpattern3. - Avoid all-caps rules unless the constraint is safety-critical or agents have repeatedly rationalized around it.
Do not include:
- storytelling about a specific past session;
- long transcripts or postmortems;
- multiple language examples for the same idea;
- full API docs that could live in
references/; - instructions to use skills that are not installed with this package.
Progressive Disclosure
Skills should load only the context needed for the task.
- Keep
SKILL.mdas the entry point and router. - Move heavy material over roughly 100-300 lines into
references/. - Put deterministic or repetitive work in
scripts/. - Put reusable prompts, templates, and assets in
templates/orassets/. - In the root doc, say exactly when to read each nested file.
- Use repo-relative file paths for local references.
Cross-References
Make dependency strength explicit.
- Use
REQUIRED: Use <skill-name>when the other skill must be followed. - Use
REQUIRED BACKGROUND: Read <skill-name>when concepts from another skill are needed. - Use
Optional reference: <path>for supporting docs. - Avoid vague "see also" lists.
Validation
Skill writing is documentation, but the output is agent behavior. Validate enough for the risk.
Lightweight Validation
Use for small edits, reference updates, and typo-level fixes.
- Search for stale references with
rg. - Check local paths exist.
- Run the package or repo skill linter.
- Regenerate symlinks or tool copies.
Standard Validation
Use for new skills, routing changes, and meaningful behavior changes.
- Write 2-3 realistic prompts that should trigger the skill.
- Write 2-3 near-miss prompts that should not trigger it.
- Read the skill as the future agent and trace what instruction each prompt should use.
- If practical, compare with-skill behavior against without-skill behavior.
- Fix gaps where the agent would fail to discover, over-apply, or misroute the skill.
Rigorous Validation
Use for high-risk discipline skills, broad consolidations, or skills that enforce behavior agents tend to rationalize away.
- Define pressure scenarios first.
- Observe the baseline failure if practical.
- Write the minimal guidance that addresses the failure mode.
- Rerun the scenario.
- Prefer scripts or assertions for objectively checkable outputs.
- Use human review for subjective quality.
Do not turn every skill edit into an eval project. Use rigor where the cost of a bad skill is meaningful.
Improving Existing Skills
- Preserve the original skill name unless intentionally renaming or consolidating.
- Read references and callers before changing routing.
- Prefer deleting stale guidance over layering exceptions.
- If feedback came from a review, fix both the specific issue and the pattern that allowed it.
- Call out non-obvious tradeoffs in release notes or PR descriptions.
Description Quality Pass
Before finishing, test the description mentally against realistic prompts.
- Would expected user phrasing trigger this skill?
- Would common setup, review, or debugging workflows route correctly?
- Would near misses avoid triggering it?
- Does the description avoid summarizing the workflow?
- Does it include old names or synonyms that users still say?
If discovery is shaky, improve the description before expanding the body.
Anti-Patterns
| Anti-pattern | Why it fails | Fix |
| Narrative skill | Future agents cannot reuse a one-off story. | Extract the repeatable decision, command, or pattern. |
| Workflow hidden in description | Agent may follow the summary and skip the body. | Put triggers in description, steps in body. |
| Missing synonyms | Users mention old tool names and the skill does not trigger. | Add old names, symptoms, and common phrasing. |
| Link-only routing | Agents do not know when to open which doc. | Add explicit routing bullets. |
| Overgrown root file | Agents load too much irrelevant context. | Move heavy sections to references. |
| Excessive hard rules | Agents follow rigidly or fight the instruction. | Explain why; reserve hard rules for real constraints. |
| Untested routing change | Skill looks clean but is undiscoverable. | Run trigger and near-miss checks. |
Checklist
- Correct home:
.agents/skills, tool-specific link, always-on guidance, script, or runtime workspace skill. - Top-level skill is justified.
- Name is lowercase hyphen-separated and matches the directory.
- Frontmatter has
nameanddescription. - Description starts with
Use whenand contains concrete triggers. - Description does not summarize the workflow.
- Description is under 1024 characters and has no XML-style tags.
- Local references point to existing files.
- Heavy details are moved to references, templates, assets, or scripts.
- Examples are reusable, not narrative.
- Validation level matches risk.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

