📏
QualityJavaScript

Coding Standards

by xu-xiang

Coding Standards is a Quality skill for Claude Code, published by xu-xiang in everything-claude-code-zh.

1.9K stars307 forkson xu-xiang/everything-claude-code-zhAdded 2026/08/18+1% in starsRepository updated 2026/03/05
ai-agentsanthropicclaudeclaude-codedeveloper-toolseverything-claude-codellmmcponeskillproductivity
Install in seconds
Install Coding Standards
Copy Coding Standards into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/xu-xiang/everything-claude-code-zh/tree/main/skills/coding-standards ~/.claude/skills/coding-standards

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/xu-xiang/everything-claude-code-zh.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/coding-standards/SKILL.md in xu-xiang/everything-claude-code-zh
Installs to
~/.claude/skills/coding-standards
Collection
One of 25 skills cataloged from this repository
Category
Quality1354 skills

What Coding Standards does

Coding Standards provides general coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development. Use it when starting new projects, reviewing code, refactoring, or enforcing consistency in naming, formatting, and architecture.

Coding Standards is cataloged under Quality on DirSkills. Coding Standards comes from a repository tagged ai-agents, anthropic, claude, claude-code and developer-tools.

Documentation

README

编码标准与最佳实践 (Coding Standards & Best Practices)

适用于所有项目的通用编码标准。

何时启用 (When to Activate)

  • 启动新项目或模块时
  • 为了质量和可维护性进行代码审查(Code Review)时
  • 重构现有代码以遵循规范时
  • 强制执行命名、格式或结构的一致性时
  • 设置 linting、格式化或类型检查规则时
  • 引导新贡献者了解编码规范时

代码质量原则 (Code Quality Principles)

1. 可读性优先 (Readability First)

  • 代码被阅读的次数远多于编写的次数
  • 变量和函数命名应清晰明确
  • 优先选择自描述代码,而非依赖注释
  • 保持一致的格式化风格

2. KISS 原则 (Keep It Simple, Stupid)

  • 采用最简单的可行方案
  • 避免过度设计(Over-engineering)
  • 不进行过早优化
  • 易于理解胜过奇技淫巧

3. DRY 原则 (Don't Repeat Yourself)

  • 将公共逻辑提取为函数
  • 创建可复用的组件
  • 在模块间共享工具函数
  • 避免“复制粘贴式”编程

4. YAGNI 原则 (You Aren't Gonna Need It)

  • 不要在功能被需要之前就构建它
  • 避免投机性的通用设计
  • 仅在必要时增加复杂性
  • 从简单开始,在需要时重构

TypeScript/JavaScript 规范

变量命名 (Variable Naming)

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Coding Standards

  • What else does xu-xiang publish alongside Coding Standards?

    Coding Standards is one of 25 skills that DirSkills catalogs from xu-xiang/everything-claude-code-zh, the repository it ships in. Its siblings there include API Design Patterns, Article Writing and Autonomous Loops. Each one is a separate skill with its own page in this directory, installs the same way Coding Standards does, and is maintained by xu-xiang in that same repository. The rest of the collection is listed on the xu-xiang/everything-claude-code-zh page.

  • How does Coding Standards compare to other Quality skills?

    Coding Standards ranks #587 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Coding Standards against them. Open each page to compare what they document and how they install.

More from xu-xiang/everything-claude-code-zh

Coding Standards is one of 25 skills cataloged on DirSkills from xu-xiang/everything-claude-code-zh.

See all 25 skills
📐
2w ago

API Design Patterns

API Design Patterns provides conventions and best practices for designing consistent, developer-friendly REST APIs, including resource naming, HTTP status codes, pagination, filtering, error responses, versioning, and rate limiting.
DevOps
1.9K307
✍️
2w ago

Article Writing

Article Writing drafts long-form content such as articles, guides, tutorials, and newsletters in a specific voice captured from examples or brand guidelines. Use it when you need polished copy longer than a paragraph with consistent tone, structure, and credibility.
Writing
1.9K307
🔁
2w ago

Autonomous Loops

Autonomous Loops provides patterns and architectures for running Claude Code without human intervention, from simple claude -p pipelines to RFC-driven multi-agent DAG orchestration. Use it to set up autonomous development workflows, CI/CD pipelines, parallel agents, and quality gates.
Automation
1.9K307
⚙️
2w ago

Backend Patterns

Backend Patterns provides architectural patterns and best practices for building scalable server-side applications, covering REST API design, repository/service layers, database optimization, caching, and error handling. Use it when implementing Node.js, Express, or Next.js API routes.
DevOps
1.9K307
🛠️
2w ago

C++ Coding Standards

C++ Coding Standards provides a set of rules and best practices based on the C++ Core Guidelines for writing modern, safe, and idiomatic C++ code. Use it when writing, reviewing, or refactoring C++ code to enforce type safety, resource safety, immutability, and clarity.
Quality
1.9K307
🧪
2w ago

C++ Testing

C++ Testing guides writing and debugging C++17/20 tests with GoogleTest/Mock, CMake/CTest, coverage, and sanitizers. Use it when creating or fixing C++ tests, configuring CI test gates, or diagnosing flaky failures.
Quality
1.9K307