coding-standards
Skill5 starsChanged 11 days agoMITView on GitHub
Applies language-neutral engineering standards when writing or reviewing code, especially around boundaries, failures, domain models, dependencies, tests, and type safety.
120 other projects use a version of this.
Adopted by
Most recently taken up by
- Rojios/everything-claude-codetheir own version, first seen Nov 8, 2026
- lhbsaa/apex-unifiedtheir own version, first seen Nov 8, 2026
- ahmadvahidi/skill-atlastheir own version, first seen Nov 8, 2026
- n1kben/agentstheir own version, first seen Nov 8, 2026
- advait/effect-durable-agenttheir own version, first seen Nov 8, 2026
- shinpr/ai-coding-project-boilerplatetheir own version, first seen Nov 8, 2026
Used with
Projects with it also use everything-claude-code, everything-claude-code-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.
InfopibeSkilleverything-claude-code
Also in 9 projects that use this
mryeastcodeSkilleverything-claude-code-conventions
Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.
Also in 8 projects that use this
niloykumarbarmanSkillagent-sort
Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.
Also in 8 projects that use this
tpavanipradeepSkillnextjs-turbopack
Next.js 16+ and Turbopack — incremental bundling, FS caching, dev speed, and when to use Turbopack vs webpack.
Also in 15 projects that use this
CodeWithBehnamSkilldmux-workflows
Multi-agent orchestration using dmux (tmux pane manager for AI agents). Patterns for parallel agent workflows across Claude Code, Codex, OpenCode, and other harnesses. Use when running multiple agent sessions in parallel or coordinating multi-agent development workflows.
Also in 17 projects that use this
InfopibeSkillinvestor-outreach
Draft cold emails, warm intro blurbs, follow-ups, update emails, and investor communications for fundraising. Use when the user wants outreach to angels, VCs, strategic investors, or accelerators and needs concise, personalized, investor-facing messaging.
Also in 22 projects that use this
- +1 more from Infopibe
Other versions120 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 120
- affaan-m/ECC★ 246ksame name
- dotnet/winforms★ 4.9ksame name
- zereight/gitlab-mcp★ 2.1ksame name
- xu-xiang/everything-claude-code-zh★ 1.9ksame name
- sjjian/openhare★ 816same name
- dmmulroy/skills★ 428same name
- nanvix/nanvix★ 318same name
- loulanyue/awesome-claude-notes★ 272same name
- shinpr/ai-coding-project-boilerplate★ 236same name
- kid-sid/claude-spellbook★ 190same name
110 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 repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- architecture-knowledge-baseSkill
- audio-transcribeSkill
- better-uiSkill
- brainstormingSkill
- broSkill
- chatgpt-imagegenSkill
- decision-roomSkill
- deslopifySkill
- domain-modelingSkill
- frontend-designSkill
- gemini-ttsSkill
- goalSkill
- readbackSkill
- rephraseSkill
- reply-broSkill
- setup-goalSkill
- skill-cleanerSkill
- strunk-writing-qualitySkill
- technical-writingSkill
- tech-specSkill
- tool-installSkill
- type-breakdownSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 14 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 104 edited versions we read keep these.
14
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Use constrained domain types where they prevent realistic mistakes: identifiers, URLs, email addresses, money, units, constrained numbers, …
- Distinctive: line 59
Avoid boolean parameters that control behavior.
- Distinctive: line 68
Do not mix policy and I/O in the same loop:
- Distinctive: line 103
Keep the imperative shell thin and explicit:
- Distinctive: line 119
Use these roles when the behavior needs them.
- Distinctive: line 128
Prefer deep cohesive modules: substantial behavior behind a small, meaningful interface.
- Distinctive: line 130
Before creating a service or adapter:
- Distinctive: line 134
create a new boundary only when reuse would create bad coupling.
- Distinctive: line 140
Use ordinary calls and transactions for short single-boundary work.
- Distinctive: line 146
Test behavior through public seams.
- Distinctive: line 155
Avoid module mocks, private-method tests, call-count assertions, and tautological expected values.
- Distinctive: line 159
Use the language's type system and static analysis to prevent realistic mistakes.
- Distinctive: line 161
Prefer immutable inputs and outputs.
- Distinctive: line 163
Document contracts, invariants, and failure behavior—not syntax already visible in the code.
“Common” is measured: kept by at least 6 in 10 of the 104 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
Coding Standards
Inspect the repository before introducing patterns, libraries, or abstractions. Follow compatible local conventions; contain incompatible legacy patterns at the nearest boundary instead of spreading them into new code.
The examples use TypeScript syntax, but the principles apply across languages. Adapt them to the language and ecosystem already in use.
Priorities
- Correctness, safety, and debuggability.
- Explicit domain meaning and dependencies.
- Compatibility with sound project conventions.
- The narrowest change that fully solves the requested behavior.
- Documentation for surprising, durable trade-offs.
Parse at boundaries
Turn unknown or loosely shaped input into application and domain types as early as possible.
unknown -> protocol input -> parser -> domain/application inputA parser returns the refined value or an explicit parsing failure. Do not validate input and then continue carrying the original primitive or transport shape.
Use constrained domain types where they prevent realistic mistakes: identifiers, URLs, email addresses, money, units, constrained numbers, and non-empty values. Construct them through parsers or smart constructors.
Expected failures are values
Known failures belong in explicit return types or equivalent language constructs. This includes parsing, authorization, configuration, persistence, I/O, integration, and workflow failures.
type Result<T, E extends Error> =
| { readonly _tag: "ok"; readonly value: T }
| { readonly _tag: "err"; readonly error: E };Translate dependency-specific exceptions inside the adapter that owns that dependency. Reserve throws, panics, or equivalent mechanisms for defects and impossible internal states. At entrypoints, turn expected failures into valid protocol outcomes: responses, exit codes, retry decisions, dead letters, or startup messages.
Errors should have a stable category, useful safe context, and preserve the original cause where the language supports it. Never put secrets or raw credentials in errors, traces, snapshots, or logs.
Model meaningful states
Make illegal states hard to construct. Prefer explicit variants over boolean combinations and nullable bags.
type Invoice =
| { readonly _tag: "draft"; readonly id: InvoiceId }
| { readonly _tag: "sent"; readonly id: InvoiceId; readonly sentAt: Instant }
| { readonly _tag: "paid"; readonly id: InvoiceId; readonly paidAt: Instant };Avoid boolean parameters that control behavior. Use named options, enums, variants, or domain values.
Functional core, imperative shell
Separate business decisions from side effects when they are tangled together.
- Functional core: pure logic that operates only on its inputs and returns data. It does not read clocks, databases, environment variables, random generators, networks, or mutable global state.
- Imperative shell: acquires inputs, invokes the core, and performs effects such as persistence, network calls, logging, and message delivery.
Do not mix policy and I/O in the same loop:
// Logic, time, storage, and email delivery are coupled.
function sendUserExpiryEmail(): void {
for (const user of db.getUsers()) {
if (user.subscriptionEndDate > Date.now()) continue;
if (user.isFreeTrial) continue;
email.send(user.email, `Your account has expired ${user.name}.`);
}
}Move decisions and output construction into the functional core:
type ExpiryEmail = { readonly to: string; readonly body: string };
function getExpiredUsers(
users: readonly User[],
cutoff: number,
): readonly User[] {
return users.filter(
(user) => user.subscriptionEndDate <= cutoff && !user.isFreeTrial,
);
}
function generateExpiryEmails(users: readonly User[]): readonly ExpiryEmail[] {
return users.map((user) => ({
to: user.email,
body: `Your account has expired ${user.name}.`,
}));
}Keep the imperative shell thin and explicit:
const users = db.getUsers();
const cutoff = Date.now();
const expiredUsers = getExpiredUsers(users, cutoff);
const messages = generateExpiryEmails(expiredUsers);
email.bulkSend(messages);Pass changing context such as time into the core as data. Prefer returning decisions, commands, or messages for the shell to execute. This keeps policy reusable and lets most behavior be tested without mocks. Do not force trivial orchestration into artificial abstractions; separate effects where doing so clarifies meaningful logic.
Further reading: Simplify Your Code: Functional Core, Imperative Shell by Arham Jain.
Module responsibilities
Use these roles when the behavior needs them; do not create layers to satisfy a diagram.
- Domain module: pure meanings, invariants, calculations, and legal transitions.
- Application service: authorization, policy, and sequencing across explicit ports.
- Adapter: framework, protocol, storage, runtime, or vendor translation.
- Composition root: configuration, resource acquisition, concrete wiring, and lifecycle.
Dependencies point inward. Domain code knows no framework or adapter. Application services depend on narrow application-owned ports, not SDK or database types. Adapters translate external types and failures at the edge.
Prefer deep cohesive modules: substantial behavior behind a small, meaningful interface. Avoid pass-through wrappers, repository-per-table defaults, vague managers or helpers, and abstractions created for one call site.
Before creating a service or adapter:
- reuse an existing cohesive implementation through a narrow port;
- extend it when the new behavior changes for the same reason;
- create a new boundary only when reuse would create bad coupling.
Effects and workflows
Make effects and dependencies visible. Pass clocks, randomness, storage, and external clients through explicit parameters, interfaces, capabilities, or the ecosystem's established dependency mechanism.
Use ordinary calls and transactions for short single-boundary work. Use durable workflows only when progress must survive crashes, redelivery, long delays, compensation, human approval, or multiple transaction boundaries.
Any externally visible mutation that may be retried needs an explicit idempotency strategy. Do not hold database transactions open across network calls.
Testing
Test behavior through public seams.
Prefer, in order:
- end-to-end tests through real entrypoints;
- integration tests through real boundaries;
- focused or property tests for pure domain modules;
- unit tests when they verify behavior rather than implementation.
Avoid module mocks, private-method tests, call-count assertions, and tautological expected values. Mock external boundaries only. Use test databases or local implementations when persistence semantics matter.
Type safety
Use the language's type system and static analysis to prevent realistic mistakes. Enable strong checking where practical and follow the repository's established safety settings.
Prefer immutable inputs and outputs. Avoid unchecked casts, forced null access, dynamic escape hatches, and suppressed diagnostics. When the type system cannot express a proven invariant, isolate the escape hatch and document why it is sound.
Document contracts, invariants, and failure behavior—not syntax already visible in the code.
Completion checklist
- inputs are parsed at the edge
- domain states and identifiers are explicit
- expected failures are represented explicitly
- external types remain inside adapters
- business decisions are separated from side effects where useful
- dependencies are passed through explicit boundaries
- existing modules were checked before adding new ones
- tests observe behavior through agreed public seams
- logs and errors contain no secrets
- unsafe escapes and abstractions have a concrete justification
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.

