write-readable-code
Skill7 starsChanged 15 days agoMITView on GitHub
Use when writing or reviewing code for readability — names that say intent, functions at one level of abstraction, comments for why not what, and consistent formatting.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- VelimirMueller/ai-development-skillsword for word, first seen Oct 25, 2026
Other versions1 project uses a version of this.
Word for word · 1
- VelimirMueller/ai-development-skills★ 7100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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 repository156 other files it gives its agents.
- skills/swift/swiftui-design-principles/AGENTS.mdAGENTS.md
- skills/swift/ios-code-audit/CLAUDE.mdCLAUDE.md
- skills/swift/swift-focusengine-pro/llms.txtllms.txt
- build-llm-seamSkill
- build-mcp-serverSkill
- build-rag-pipelineSkill
- secure-llm-featuresSkill
- set-up-llm-evalsSkill
- build-nextjs-backendSkill
- build-supabase-edge-functionSkill
- configure-backend-testsSkill
- design-http-apiSkill
- harden-backendSkill
- scaffold-fastapi-serviceSkill
- scaffold-go-serviceSkill
- scaffold-hono-serviceSkill
- secure-supabase-rlsSkill
- set-up-backend-authSkill
- set-up-background-jobsSkill
- set-up-databaseSkill
- set-up-nextjs-supabase-authSkill
- set-up-observabilitySkill
- set-up-supabaseSkill
- build-cliSkill
- release-cliSkill
- set-up-dev-toolchainSkill
- audit-securitySkill
- audit-toolchainSkill
- extend-skillsetSkill
- promote-releaseSkill
- set-up-stack-profileSkill
- write-commit-messagesSkill
- write-pull-requestsSkill
- analyze-complexitySkill
- apply-algorithmsSkill
- apply-design-patternsSkill
- apply-design-principlesSkill
- apply-solidSkill
- choose-data-structureSkill
- debug-systematicallySkill
- enforce-dependency-ruleSkill
- refactor-safelySkill
- slice-and-estimateSkill
- write-clean-testsSkill
- clean-frontend-scaffoldingSkill
- configure-accessibilitySkill
- configure-analyticsSkill
- configure-ciSkill
- configure-error-trackingSkill
- configure-lintingSkill
- configure-test-stackSkill
- configure-typescriptSkill
- create-moduleSkill
- optimize-performanceSkill
- scaffold-frontend-projectSkill
- set-up-authSkill
- set-up-design-systemSkill
- set-up-document-headSkill
- set-up-error-boundariesSkill
- set-up-feature-flagsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
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
- Distinctive: line 18
Read the change and judge four things: do names reveal intent, does each function do one thing at one abstraction level, do comments …
- Very specific: line 24
No disinformation: list for something that is not a list, accountGroup and accounts side by side.
- Distinctive: line 35
No side effects hiding in a getter or a query.
- Distinctive: line 42
Keep legal/attribution comments.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Write Readable Code
The naming, function, comment and formatting rules from Clean Code, as a review pass. Readability is the prerequisite every other craft skill leans on; see engineering-principles.md.
1. Audit (change nothing)
cat .claude/stack-profile.md 2>/dev/null | head -20
grep -rn "TODO\|FIXME\|XXX\|//\|/\*.*\*/" --include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx" --include="*.rs" --include="*.go" --include="*.py" --include="*.java" . 2>/dev/null | head -20Read the change and judge four things: do names reveal intent, does each function do one thing at one abstraction level, do comments explain why instead of restating what, and does formatting match the team.
2. Naming
- Names reveal intent and answer "why it exists, what it does, how it is used".
daysSinceLastAccessbeatsd. - No disinformation:
listfor something that is not a list,accountGroupandaccountsside by side. - One word per concept: do not use
fetch,getandretrievefor the same thing across the file. - Pronounceable, searchable names; no magic numbers — name the constant.
3. Functions
- Small, and doing one thing. A function that needs "and" in its description does two things.
- One level of abstraction per function: a function that mixes "validate the form" with "insert the row" mixes high and low.
- Zero to two arguments; a third is a sign the arguments cohere into an object. No boolean flags and no output arguments (a function should return its result, not mutate a parameter).
- No side effects hiding in a getter or a query; a function either asks or tells, not both.
4. Comments
- The best comment is the code that needs none. Prefer a better name to an explanatory comment.
- Comment the why and the intent, never the what. A comment that restates the code is noise that rots.
- Commented-out code is a finding: it is either dead (delete) or should live in the history (git).
- Keep legal/attribution comments; those are not noise.
5. Formatting
- Match the surrounding file and the team's formatter (Biome/ruff/gofmt/rustfmt) — never hand-format.
- Vertical openness between concepts, vertical density within one; a blank line separates ideas, not lines.
- The newspaper rule: the file reads top-down, general to specific.
Verify
A new reader can state what each function does from its name alone; the diff has no comment that a better name removed; the formatter reports no change. State what was renamed and why in the review note.
When to deviate
- Code that matches a generated or vendor convention where renaming breaks the tool.
- A name with a well-known domain abbreviation that the whole team shares.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

