writing-skills
Skill1 starsChanged 48 days agoMITView on GitHub
Use when you create or edit a skill, write or change a skill description, or when an agent skipped a rule, did not load a skill, or loaded the wrong one.
191 other projects use a version of this.
Adopted by
Most recently taken up by
- justincordova/agentstheir own version, first seen Nov 29, 2026
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- Powercademy/powercademy-skillstheir own version, first seen Nov 29, 2026
- Docyrus/agent-skillstheir own version, first seen Nov 29, 2026
- autohandai/community-skillstheir own version, first seen Nov 29, 2026
- HeTPort/skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use chinese-code-review, chinese-commit-conventions 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.
Leodorareluctant259Skillchinese-code-review
中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈
Also in 8 projects that use this
Leodorareluctant259Skillchinese-commit-conventions
中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化
Also in 8 projects that use this
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 22 projects that use this
aaddrickSkillwriting-agents
Use when creating new agents, editing existing agents, or defining specialized subagent roles for the Task tool
Also in 3 projects that use this
AWSSkillcondition-based-waiting
Replace arbitrary sleeps in tests with polling for the ACTUAL condition — a waitFor(() => predicate, description, timeoutMs) helper that polls every 10 ms, calls the getter inside the loop (no stale cache), and throws a clear error on timeout. Use when a test uses setTimeout / sleep / time.sleep, is flaky (passes on fast machines, fails under load or in CI), times out when run in parallel, or waits for an async operation, event, state, count, or file to appear. Do NOT use when the test genuinely exercises timing behavior (debounce / throttle) — then wait for the triggering condition FIRST and comment WHY the timed wait is justified. Trigger on "flaky test", "race condition in tests", "why does this pass locally and fail in CI", or any `await new Promise(r => setTimeout(r, N))` in a test.
Also in 3 projects that use this
MicrosoftSkillusing-skills
Describes how to use abilities. Read before any conversation.
Also in 4 projects that use this
- +3 more from Leodorareluctant259
Other versions191 projects use a version of this.
Word for word · 1
- futex-ai/skills★ 1100% same
Edited · 0
None found.
Wrote their own version · 190
- obra/superpowers★ 314ksame name
- PostHog/posthog★ 41ksame name
- mdiri-ai/SoduWork★ 9.1ksame name
- jnMetaCode/superpowers-zh★ 8.6ksame name
- openai/plugins★ 8.4ksame name
- farm-fe/farm★ 5.6ksame name
- compozy/compozy★ 2.9ksame name
- crbnos/carbon★ 2.9ksame name
- lingyired/status-trio★ 2.2ksame name
- GanyuanRan/Aegis★ 1.5ksame name
180 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 repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- global/AGENTS.mdAGENTS.md
- skills/agents-md/templates/AGENTS.mdAGENTS.md
- agents-mdSkill
- agents-setupSkill
- brainstormingSkill
- databasesSkill
- decisions-and-findingsSkill
- delegatingSkill
- documentationSkill
- findingsSkill
- finish-workSkill
- git-commitSkill
- git-mergeSkill
- implementation-reviewSkill
- mockupsSkill
- modelsSkill
- plansSkill
- product-uiSkill
- rustSkill
- shared-typesSkill
- testingSkill
- typescriptSkill
- <directory-name>Skill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 8 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 180 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Write a skill for a rule that an agent needs at a moment and that no check can enforce.
- Very specific: line 40
Start with Use when, Use before, or Use after.
- Distinctive: line 44
Write triggers only. Do not summarise the content, and do not list the steps of the procedure.
- Very specific: line 47
When two skills share a moment, both load.
- Distinctive: line 49
Do not write in the first person.
- Very specific: line 68
Put a long contract, a prompt, or a set of examples under references/.
- Very specific: line 69
Put a skeleton under templates/ and an executable script under scripts/.
- Distinctive: line 72
Write in Simplified Technical English, as the always-on rules say.
- Distinctive: line 73
Use one word for one thing.
- Distinctive: line 78
When a reference prompt returns verdict lines or slots, say in the skill what the agent does with each one.
- Distinctive: line 112
Ask the user for a real repository before you write the text, together with your other questions.
- Distinctive: line 123
Write the smallest text that answers the recorded cases, in the form from the table above.
- Very specific: line 131
Create skills/<name>/SKILL.md and the files that it links.
- Very specific: line 134
Add the row to the skills table in the repository README.md.
- Very specific: line 135
Run the repository check, shellcheck on new scripts, and tests/run.sh.
- Very specific: line 137
Add the skill to the agents-md template when product repositories need it at a named moment.
“Common” is measured: kept by at least 6 in 10 of the 180 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 a procedure that an agent loads at one moment. The always-on rules are short because every line costs context on every turn. A skill holds the detail and costs context only when its moment comes.
Write a skill for a rule that an agent needs at a moment and that no
check can enforce. The rule must be too long for the always-on rules. A
command, path, or cap of one repository belongs in that repository's
AGENTS.md. A rule that a script can enforce belongs in a check. A new
check needs the user's approval.
A skill answers failures that really happened. The failure says what the skill must say, and in which form. A real repository holds the evidence in its commits, pull requests, plans, and review reports. A staged scenario in a toy repository shows the prompt, not the agent. A skill written from an imagined failure answers the wrong one.
Kinds of skill
- Discipline: a rule that the agent knows and is tempted to skip, for example the complete gate or the deletion audit. The evidence is a commit or a pull request where the rule was skipped.
- Procedure: steps and a layout that give an output of a fixed shape, for example a commit message or a final report. The evidence is a past output with the wrong shape.
- Reference: facts to look up, for example the sections of a crate README. The evidence is a place where the fact was guessed wrong.
The description
An agent sees only the description before the moment. The description decides whether the agent loads the skill.
- Start with
Use when,Use before, orUse after. Then list the moments and the symptoms as keywords: what the agent sees, is asked, or is about to do. Name file types, commands, error texts, and the words a user would type. - Write triggers only. Do not summarise the content, and do not list the steps of the procedure. An agent reads a summary as the skill and skips the file.
- When two skills share a moment, both load. That is correct. Make a trigger more specific only when the skill must not load at a moment.
- Do not write in the first person. Address the agent as you. Do not describe the skill's own method.
- Target 300 characters. Keep under 500. Every description loads into
every session on every turn, so each character has a cost. The
repository check,
check.shunderscripts/, warns above 500 characters and fails above 1024. - An existing description can start with a noun phrase or end with a
Coverssummary. It moves to this form when the skill is next edited.
Example: "Use when a test fails and then passes on a rerun, when a test would assert elapsed time, timeouts, or performance, or when you choose between a real and a fake clock."
The SKILL.md file
namematches the directory: lowercase letters, digits, single hyphens.- Order the content by the moment the agent needs each part, in the order of the work. templates/SKILL.md is the skeleton.
- Target 150 lines. The repository check warns at 200 and fails at 500.
Put a long contract, a prompt, or a set of examples under
references/. Put a skeleton undertemplates/and an executable script underscripts/. Link each file by its relative path. The check confirms that it exists. - Write in Simplified Technical English, as the always-on rules say.
- Use one word for one thing. When a skill defines a term, use that term each time. Give each word one meaning. When two things share a word, rename one.
- In a list, each item names its subject. A pronoun points to the lead-in sentence of the list only, never to another item.
- When a reference prompt returns verdict lines or slots, say in the skill what the agent does with each one.
- Name another skill in backticks, as in "the
git-commitskill". Do not use an@link. It loads the file at once, before the moment. - Give no repository-specific paths, commands, or crate names. Say "the
gate named in
AGENTS.md". - Give one real example, not three invented ones. Do not tell the story of how you once solved the problem.
- End a procedure skill with a checklist.
The form that fixes each failure
Match the form of the text to the failure that the cases show. references/forms.md gives an example of each form.
| The cases show | Write |
| The agent knows the rule and skips it under pressure | A prohibition, a table of excuses with answers, and a red-flag list |
| The output has the wrong shape | A recipe with the steps, and a template with labels |
| The agent leaves out one element | A required slot with a label in the layout |
| The agent applies the rule in the wrong case | A condition with a plain predicate: when X, do Y |
| The agent does not load the skill | Symptom keywords in the description |
- An exception clause widens a rule. An agent reads "unless it is clearly safe" as permission. Write the predicate instead.
- A workaround that keeps the words of a rule and loses its purpose breaks the rule. Say so in a discipline skill.
- Build an excuse table only from excuses that were really given. Copy them verbatim from the repository's record: a commit body, a pull request description, a review report, or a plan. An imagined excuse misses the real one. Each row gives the excuse and the answer.
Check the skill against a repository
Ask the user for a real repository before you write the text, together with your other questions. A skill that applies to every repository still needs one to check against.
- Find the past cases of the moment in that repository. Read the
commits, the pull requests, the plans, the review reports under
.context/, and the docs. For a commit rule, read the last twenty commit messages. For a deletion rule, list the deletions in the history. For a review rule, read the saved review reports. - Record each case under
.context/: where it is, what the agent did, and its words verbatim when the record has them. - Write the smallest text that answers the recorded cases, in the form from the table above.
- Walk each case again with the text. Ask whether the text, read at that moment, gives the instruction that changes the outcome. Fix the text until it does for every case.
Repository steps
- Create
skills/<name>/SKILL.mdand the files that it links. A skill for work in the skills repository only also gets anopt-infile in its directory, so that the install script links it only on request. - Add the row to the skills table in the repository
README.md. - Run the repository check,
shellcheckon new scripts, andtests/run.sh. - Add the skill to the
agents-mdtemplate when product repositories need it at a named moment. - Say in the pull request that an existing install gets the skill when
update.shorinstall.shunderscripts/runs there.
Checklist
- The description starts with
Use when,Use before, orUse after. It has symptom keywords. It does not summarise the content. It is near 300 characters and under 500. - The repository is named. Its past cases are recorded under
.context/before the text. - The form of the text matches the recorded cases.
- Every excuse table row quotes a recorded case.
- Every recorded case was walked through with the final text.
SKILL.mdis near 150 lines. Detail is underreferences/.- When the text adds a kind of record, every list that says what an artifact holds names it.
- A rule restated from another skill says what the source says, or points to the source.
- The README row exists. The repository check and
tests/run.shpass.
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.

