writing-skills
Skill140 starsChanged 2 months agoMITView on GitHub
Use when creating a new skill, editing an existing skill, or verifying skills work before deployment
154 other projects use a version of this, 1 of them edited.
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 · 1
- kienbui1995/magic-powers★ 012% same
Wrote their own version · 153
- 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
143 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 repository43 other files it gives its agents.
- architect-analyzeSkill
- architect-bootSkill
- architect-clarifySkill
- architect-implementSkill
- architect-initSkill
- architect-specifySkill
- change-bootSkill
- change-clarifySkill
- change-initSkill
- change-publishSkill
- evals-analyzeSkill
- evals-clarifySkill
- evals-implementSkill
- evals-initSkill
- evals-specifySkill
- evals-validateSkill
- factory-architectSkill
- factory-cleanSkill
- factory-initSkill
- factory-learnSkill
- factory-missionSkill
- factory-productSkill
- factory-queueSkill
- factory-reviewSkill
- factory-ticketsSkill
- product-analyzeSkill
- product-bootSkill
- product-clarifySkill
- product-implementSkill
- product-initSkill
- product-roadmapSkill
- product-specifySkill
- team-bootSkill
- team-constitutionSkill
- team-diagnoseSkill
- team-discoverSkill
- team-initSkill
- team-levelupSkill
- team-repairSkill
- team-setupSkill
- team-skillsSkill
- workspaceSkill
- tech-radar-bootSkill
The file
We split this skill into the rules it gives an agent
9 rules. 2 are common, 6 are distinctive, and 1 is very specific to this project.
2
Common
Most of the 144 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 16
Core principle: if you didn't watch an agent fail without the skill, you don't know whether the skill teaches the right thing — or anything …
- Common: line 27
Write the skill before testing it?
- Distinctive: line 45
Run the scenario WITHOUT the skill loaded.
- Distinctive: line 52
If the agent already behaves correctly without the skill, stop — there is nothing to fix.
- Very specific: line 58
Start from the template (templates/SKILL-template.md in this directory).
- Distinctive: line 61
Run the same scenario WITH the skill.
- Distinctive: line 110
Start with "Use when…" and name concrete symptoms and situations
- Distinctive: line 118
Before writing guidance, classify the baseline failure.
- Distinctive: line 128
No nuance clauses either way: "don't X unless it matters" reopens negotiation.
“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
Overview
Writing skills IS Test-Driven Development applied to process documentation.
A skill is behavior-shaping code, not prose. You write a failing test (a pressure scenario an agent gets wrong without the skill), watch it fail, write the minimal skill that fixes it, watch it pass, then close loopholes.
Core principle: if you didn't watch an agent fail without the skill, you don't know whether the skill teaches the right thing — or anything at all.
The Iron Law:
NO SKILL WITHOUT A FAILING BASELINE FIRSTThis applies to new skills AND to edits of existing skills. "Simple addition", "just a section", "docs update" — all the same violation. Write the skill before testing it? Delete it and start over.
When to Use
- Creating a new skill for this repo (also read CONTRIBUTING.md — new skills must be agreed in an issue first and ship with eval coverage)
- Editing any
skills/**/SKILL.mdcontent - Reviewing a PR that changes skill content
When NOT to use: for project-specific conventions (those go in the team-ai-directives repo as CDRs), or for mechanical constraints a script or test can enforce — automate those, save documentation for judgment calls.
Core Process
RED — Baseline the failure
Run the scenario WITHOUT the skill loaded. Document verbatim:
- What the agent actually did
- The exact rationalizations it used to skip the correct behavior
- Which pressures triggered the failure (time, sunk cost, authority, "it works either way")
If the agent already behaves correctly without the skill, stop — there is nothing to fix. A skill that enforces behavior that comes for free is context noise (this repo exists to fight context noise, not add to it).
GREEN — Write the minimal skill
Start from the template (templates/SKILL-template.md in this directory).
Address only the failures you observed in RED — not hypothetical ones.
Run the same scenario WITH the skill. The agent should now comply.
REFACTOR — Close the loopholes
New rationalization found? Add an explicit counter, re-test. Loop until bulletproof under pressure.
Micro-test wording before full scenarios
Full pressure runs are slow. Verify wording cheaply first: one fresh API/subagent call per sample, 5+ reps per variant, always including a no-guidance control. If the control doesn't exhibit the failure, there is nothing to fix. Read every flagged match manually — automated counts overstate both failure and success.
Structure Rules (this repo)
| Rule | Why |
Exactly 2 levels deep: skills/<domain>/<skill>/SKILL.md | Enforced by test_skill_directory_depth; resolves the skills CLI depth limit |
Frontmatter: name + description required (≤1024 chars total) | Enforced by test_skill_description_presence_and_length |
Optional scripts: (sh:/ps:) and disable-model-invocation: true | Mark skills that must not be model-invoked |
| Description = trigger only | See below — the single most common way skills silently break |
Headings: Overview → When to Use → Core Process → Red Flags → Verification | Canonical shape; Configuration only if the skill has knobs |
| Token budget: aim <500 lines for the SKILL.md body (enforced: warn >500, fail >800 — see test_skill_token_budget) | Heavy reference → references/; scripts → scripts/{bash,powershell}/ |
| New skills ship with eval coverage | Goldset criterion + binary grader ({"pass": bool, "score": 1.0|0.0}) — see evals/promptfoo/ |
Skill Discovery Optimization (SDO)
The description is the trigger surface: factory-mission hands every
skill's name+description to its subagents, and the model decides what to
load from that list.
Description = when to use. NEVER what the skill does.
Measured failure mode (see superpowers' writing-skills, which this skill adapts): when a description summarizes the workflow, agents follow the description instead of reading the skill body — a description saying "code review between tasks" produced one review where the skill's flowchart clearly required two.
# BAD: workflow summary — agents will follow this shortcut
description: Bootstraps the session by injecting the team context index and pulls rules on demand
# GOOD: trigger only
description: Use when a session starts and the team AI directives context is not yet loaded- Start with "Use when…" and name concrete symptoms and situations
- Third person (it is injected into prompts)
- Keywords an agent would search for: error messages, symptoms, tool names
- Skills with
disable-model-invocation: trueare exempt (not routed by the model) but must still not mislead
Match the Form to the Failure
Before writing guidance, classify the baseline failure. The form that bulletproofs one failure type backfires on another.
| Baseline failure | Right form | Wrong form |
| Skips a rule under pressure (knows better, does it anyway) | Prohibition + rationalization table + red flags | Soft guidance ("prefer…", "consider…") |
| Output has the wrong shape (bloated, buried verdict) | Positive recipe: state what the output IS, its parts in order | Prohibition list ("don't restate", "never narrate") |
| Omits a required element | Structural: a REQUIRED slot in the template | Prose reminders near the template |
| Behavior depends on a condition | Conditional on an observable predicate | Unconditional rule + exemption clauses |
No nuance clauses either way: "don't X unless it matters" reopens negotiation; a single nuance clause on a winning recipe degrades it.
Bulletproofing Discipline Skills
For rule-enforcing skills, close every loophole explicitly: forbid the specific workarounds ("don't keep it as reference — delete means delete"), add the foundational principle early ("violating the letter of the rules is violating the spirit"), build the rationalization table from your RED transcript, and list Red Flags the agent can self-check against.
Red Flags
- Skill written before the baseline run — delete and start over
- Description summarizes what the skill does instead of when to use it
- "The agent will obviously do the right thing" — that's what RED is for
- Skill grew past ~500 lines and everything is inline instead of
references/ - New skill shipped without its eval criterion + grader
- Hypothetical failure modes addressed but observed ones missing
All of these mean: stop, re-run the baseline, fix the skill.
Verification
A skill change is done when ALL of these are true:
- Baseline scenario run WITHOUT the skill; verbatim failures recorded
- Same scenario passes WITH the skill
pytest tests/unit/test_playbook_integrity.py -qgreen (depth, frontmatter, description rules)- Eval criterion + binary grader added, and the grader has a unit
test (
evals/promptfoo/tests/) - Regenerated install artifacts are in sync:
pytest tests/unit/test_generated_artifacts_sync.py -q - Manual acceptance check in a real agent (CONTRIBUTING "Manual testing") — skill triggers when it should, stays silent when it shouldn't
References
templates/SKILL-template.md— starting point for a new skillreferences/skill-testing.md— pressure scenarios, pressure types, micro-testing methodologyCONTRIBUTING.md— PR process, eval coverage requirement, manual test protocol
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.

