code-standards
Skill214 starsChanged 5 months agoMITView on GitHub
Apply a disciplined engineering workflow to any code change. Use whenever implementing a feature, fixing a bug, or refactoring — before writing code, not after. Walks orient → baseline → smallest change → test → verify → self-review, and enforces language-agnostic hard gates (don't mass-reformat, keep the linter and type-checker clean, keep the build and tests green, make interface changes additive, protect security invariants).
8 other projects use a version of this.
Adopted by
Most recently taken up by
- Vivswan/skillstheir own version, first seen Oct 4, 2026
- meowdiocre/meowpitheir own version, first seen Sep 19, 2026
- subsequence-cpu/agent-skillstheir own version, first seen Sep 18, 2026
- johanthoren/jefftheir own version, first seen Jul 11, 2026
- Bobagi/claude-skillstheir own version, first seen Jul 4, 2026
- metraton/gaiatheir own version, first seen Jul 2, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- johanthoren/jeff★ 6same name
- metraton/gaia★ 4same name
- meowdiocre/meowpi★ 2same name
- onejaejae/skills★ 2same name
- BCuracao/cursor-universal-rules★ 1same name
- subsequence-cpu/agent-skills★ 1same name
- Vivswan/skills★ 1same name
- Bobagi/claude-skills★ 0same name
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 repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- async-learning-teacherSkill
- build-scenario-testsSkill
- create-marketing-kitSkill
- create-skillSkill
- lead-researchSkill
- leadSkill
- make-playbookSkill
- map-the-landscapeSkill
- name-your-businessSkill
- orwell-writingSkill
- paper-opportunity-radarSkill
- repo-system-mapSkill
- run-smoke-testsSkill
- session-profilerSkill
- top-one-percentSkill
- validate-marketSkill
- write-blogSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 23
Orient: Read any project lessons/gotchas file (e.g.
- Distinctive: line 33
Verify: run the full check suite (build + lint + type-check + tests) until green before you call it "done".
- Very specific: line 37
Close out: update docs in the same change.
- Distinctive: line 43
add a dependency → weigh transitive weight and licenses, and whether the stdlib already covers it
- Distinctive: line 45
write a secret to disk → use the platform's atomic create-private API, never write-then-chmod
“Common” is measured: kept by at least 6 in 10 of the 5 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
Code standards — the change workflow
You are making a code change. This skill is the execution order; it is
stack-agnostic. Adapt every command to the project's actual toolchain: read the
project's own docs (README, CONTRIBUTING, AGENTS.md/CLAUDE.md, a Makefile or
package scripts) once to learn its build, test, lint, and format commands before
you start.
Steps
- Orient. Read any project lessons/gotchas file (e.g.
tasks/lessons.md) and obey it. Find and read the one doc for the subsystem you're changing, not the whole tree. - Plan if non-trivial (3+ steps or an architectural choice): short plan in
tasks/todo.md— files touched, tests to add, risks. Going sideways → stop and re-plan. - Baseline: get the project's build + test command green before touching anything. A pre-existing red is the first task; never build on top of a broken baseline.
- Implement the smallest root-cause change. Hand-match the surrounding style. Don't run a mass auto-formatter on files you touch; it buries your real diff in noise.
- Test: new behavior gets a test that fails without the change; security gates get negative-assertion tests (wrong token → denied, state unchanged, no data leak).
- Verify: run the full check suite (build + lint + type-check + tests) until green before you call it "done".
- Self-review your own diff as if it were someone else's PR (or invoke a review skill). Fix findings before presenting.
- Close out: update docs in the same change; append to a lessons file if you were
corrected or surprised; write a conventional commit message (
feat|fix|docs(scope): …).
Tripwires — stop and re-check the project's guidelines when you're about to…
- change a public or shared interface (API, wire format, schema) → check every caller; prefer additive changes
- add a dependency → weigh transitive weight and licenses, and whether the stdlib already covers it
- touch auth, tokens, or permissions → audit every writer and reader path, add negative tests
- write a secret to disk → use the platform's atomic create-private API, never write-then-chmod
- hold a lock across an
await/blocking call, or read env inside logic → extract a pure decision function
No-progress guard
The same failure surviving two fix attempts means stop: write the finding to your lessons
file, mark the item [BLOCKED], and surface it. Don't thrash.
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.

