Coding Standards
/install coding-standards
Coding Standards & Best Practices
Universal standards for maintainable, scalable TypeScript/JavaScript code.
Quick Start
- Readability First — Clear names, self-documenting code
- Type Safety — Avoid
any, use explicit interfaces - Error Handling — Try-catch with specific error types
- Immutability — Use spread operator, never direct mutation
- Test Structure — AAA pattern (Arrange, Act, Assert)
Core Principles
KISS — Simplest solution that works. No premature optimization.
DRY — Extract common logic into reusable functions and components.
YAGNI — Don't build before it's needed. Start simple, refactor when needed.
Readability — Code is read 10x more than written. Clarity over cleverness.
Naming Standards
Variables
// Good: Descriptive, type-hinted by name
const marketSearchQuery = 'election'
const isUserAuthenticated = true
const totalRevenue = 1000
// Bad: Single-letter, unclear
const q = 'election'
const flag = true
const x = 1000
Functions
// Good: Verb-noun pattern
async function fetchMarketData(id: string) { }
function calculateSimilarity(a: number[], b: number[]) { }
function isValidEmail(email: string): boolean { }
// Bad: Unclear or noun-only
async function market(id: string) { }
function similarity(a, b) { }
function email(e) { }
References
references/typescript.md— type safety, immutability, async patternsreferences/react.md— component structure, hooks, state managementreferences/api-design.md— REST conventions, validation, error responsesreferences/file-org.md— project structure, file namingreferences/testing.md— test patterns, AAA structure, test namingreferences/code-smells.md— anti-patterns, long functions, deep nesting, magic numbers
Adapted from everything-claude-code by @affaan-m (MIT)
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install coding-standards - After installation, invoke the skill by name or use
/coding-standards - Provide required inputs per the skill's parameter spec and get structured output
What is Coding Standards?
Universal coding standards for TypeScript, JavaScript, React, and Node.js. Principles: readability first, KISS, DRY, YAGNI. Covers naming, type safety, error... It is an AI Agent Skill for Claude Code / OpenClaw, with 218 downloads so far.
How do I install Coding Standards?
Run "/install coding-standards" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Coding Standards free?
Yes, Coding Standards is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Coding Standards support?
Coding Standards is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin, win32).
Who created Coding Standards?
It is built and maintained by Deonte Cooper (@djc00p); the current version is v1.0.0.