coding-standards-ecc
Skill1 starsChanged 7 months agoMITView on GitHub
Universal coding conventions for naming, readability, immutability, and code quality. Applies to TypeScript, JavaScript, React, and Node.js. Auto-invoked by the code-quality-reviewer during Stage 2 review. Source: everything-claude-code.
In this repository43 other files it gives its agents.
- accessibilitySkill
- agent-evalSkill
- agentic-engineeringSkill
- ai-regression-testingSkill
- api-designSkill
- atomic-planningSkill
- backend-patternsSkill
- context-engineeringSkill
- frontend-patternsSkill
- git-worktreesSkill
- langchain-dependenciesSkill
- langchain-fundamentalsSkill
- langchain-middlewareSkill
- langchain-ragSkill
- langgraph-fundamentalsSkill
- langgraph-persistenceSkill
- minimalist-skillSkill
- output-skillSkill
- redesign-skillSkill
- security-scanSkill
- ship-architectSkill
- ship-autoSkill
- ship-bugfixSkill
- ship-deploySkill
- ship-discoverSkill
- ship-executeSkill
- ship-finish-branchSkill
- ship-newSkill
- ship-planSkill
- ship-researchSkill
- ship-resumeSkill
- ship-reviewSkill
- ship-settingsSkill
- ship-specSkill
- ship-statusSkill
- ship-testSkill
- ship-worktreeSkill
- soft-skillSkill
- systematic-debuggingSkill
- taste-skillSkill
- test-driven-developmentSkill
- two-stage-reviewSkill
- verification-before-completionSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
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 19
Always use spread operator for updates.
- Distinctive: line 36
Always type parameters and return values in TypeScript.
- Distinctive: line 40
Use typed errors, not string messages.
- Distinctive: line 42
Always log the original error before wrapping.
- Distinctive: line 47
No circular imports. If two modules import each other, extract shared code.
- Distinctive: line 48
Prefer named exports over default exports (better refactoring).
- Distinctive: line 52
Test behavior, not implementation.
- Distinctive: line 59
No direct mutation of objects or arrays?
≈ “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
Coding Standards
Baseline cross-project coding conventions. This is the shared quality floor for all code produced by Bayes Ship implementers.
Naming
- Variables and functions: camelCase, descriptive.
marketSearchQuerynotq. - Functions: verb-noun pattern.
fetchMarketData()notmarket(). - Booleans:
is/has/shouldprefix.isAuthenticatednotflag. - Constants: UPPER_SNAKE_CASE.
MAX_RETRY_COUNT. - Types/interfaces: PascalCase.
InvoiceLineItem.
Immutability
Always use spread operator for updates. Never mutate directly.
// GOOD
const updated = { ...user, name: 'New Name' }
const newItems = [...items, newItem]
// BAD — never do this
user.name = 'New Name'
items.push(newItem)Functions
- Single responsibility. One function does one thing.
- Maximum 20 lines. If longer, extract helpers.
- Pure functions preferred (no side effects).
- Always type parameters and return values in TypeScript.
Error handling
- Use typed errors, not string messages.
- Catch at the boundary (controller/route), not deep in business logic.
- Always log the original error before wrapping.
Imports
- Group: external libs → internal modules → types → styles.
- No circular imports. If two modules import each other, extract shared code.
- Prefer named exports over default exports (better refactoring).
Tests
- Test behavior, not implementation.
- Arrange-Act-Assert pattern.
- Descriptive test names:
"returns empty array when no invoices match filter"not"test filter".
Code review checklist (for Stage 2 reviewer)
- Naming follows conventions above?
- No direct mutation of objects or arrays?
- Functions under 20 lines?
- Error handling at boundaries?
- TypeScript types on all parameters and returns?
- Tests test behavior, not implementation details?
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.

