🧩
QualityPython

Code Quality Principles

by doccker

Code Quality Principles is a Quality skill for Claude Code, published by doccker in cc-use-exp.

1K stars105 forkson doccker/cc-use-expAdded 2026/08/21Repository updated 2026/06/30
antigravityclaude-codecodexcursorgemini-cligithub-copilot
Install in seconds
Install Code Quality Principles
Copy Code Quality Principles 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/doccker/cc-use-exp/tree/main/.antigravity/skills/code-quality-principles ~/.claude/skills/code-quality-principles

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/doccker/cc-use-exp.git

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

In this catalog

Source file
.antigravity/skills/code-quality-principles/SKILL.md in doccker/cc-use-exp
Installs to
~/.claude/skills/code-quality-principles
Collection
One of 23 skills cataloged from this repository
Category
Quality1354 skills

What Code Quality Principles does

Code Quality Principles provides a checklist for modular design, refactoring, and code review. Use it to assess module size, call depth, fan-in/fan-out, boundaries, scope cohesion, and predictability.

Code Quality Principles is cataloged under Quality on DirSkills. Code Quality Principles comes from a repository tagged antigravity, claude-code, codex, cursor and gemini-cli.

Documentation

README

模块化设计六原则

经典软件工程设计原则在 AI 协作场景下的现代化清单。 用作新模块设计、重构、代码审查时的对照表,不替代具体执行 skill。

触发场景

  • 编写新模块、新服务、新接口
  • 用户说"设计"、"拆分模块"、"评审"、"重构"
  • /review/new-feature/optimize/design 命令在设计阶段
  • 评估技术债时对照原则定位坏味道

六原则速查表

# 原则 一句话 衡量指标 详细案例
1 模块大小适中 单文件控制在职责边界内 行数/职责数 引用 size-check
2 减少调用深度 调用链尽量 ≤ 3 层 栈深度 modularity.md#调用深度
3 多扇入,少扇出 被复用 > 主动依赖 依赖数/被依赖数 modularity.md#扇入扇出
4 接口边界清晰 入参/出参/异常统一 统一响应包装 modularity.md#边界清晰
5 作用域内聚 改 A 不波及 B 跨模块副作用 引用 refactor-safety
6 功能可预测 同输入→同输出 幂等/无副作用/可测 predictability.md

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

Commands Code Quality Principles provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /review
  • /new-feature
  • /optimize
  • /design

Frequently asked about Code Quality Principles

  • What else does doccker publish alongside Code Quality Principles?

    Code Quality Principles is one of 23 skills that DirSkills catalogs from doccker/cc-use-exp, the repository it ships in. Its siblings there include API Design Safety, Api Design Safety and Api Proxy Safety. Each one is a separate skill with its own page in this directory, installs the same way Code Quality Principles does, and is maintained by doccker in that same repository. The rest of the collection is listed on the doccker/cc-use-exp page.

  • How does Code Quality Principles compare to other Quality skills?

    Code Quality Principles ranks #834 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 Code Quality Principles against them. Open each page to compare what they document and how they install.

More from doccker/cc-use-exp

Code Quality Principles is one of 23 skills cataloged on DirSkills from doccker/cc-use-exp.

See all 23 skills
🛡️
1w ago

API Design Safety

API Design Safety helps you design REST API responses and generated outputs with consistent field semantics, null handling, and status codes. It also checks required fields before exporting files or sending downstream payloads to avoid silent failures.
Quality
1K105
🧩
1w ago

Api Design Safety

Api Design Safety helps prevent REST API response design mistakes such as field mix-ups, ambiguous return types, and inconsistent empty values. Use it when designing or changing API responses and handling returned data.
AI Engineering
1K105
🛡️
1w ago

Api Proxy Safety

Api Proxy Safety defines safe keyword matching for gateways, proxies, WAFs, and CDNs so normal content is not misclassified as an error. It is used when implementing heuristic checks for response bodies, status codes, and error schemas.
DevOps
1K105
1w ago

Async Task Pattern

Async Task Pattern provides a standard triggerAsync/getStatus flow for operations that may run longer than 10 seconds. Use it for batch processing, remote API fan-out, or scans that would otherwise time out or be triggered twice.
Automation
1K105
🐚
1w ago

Bash Style

Bash Style provides shell scripting and command-writing conventions for .sh files, Dockerfiles, Makefiles, YAML, and Markdown bash blocks. Use it to format commands, heredocs, file writes, permissions, and script safety.
Writing
1K105
🧪
1w ago

External System Debugging

External System Debugging helps debug code that depends on browsers, editors, CDNs/WAFs, IM platforms, clipboards, or third-party SaaS. It requires collecting real environment data first, then using that evidence to diagnose paste, rendering, API, and cross-platform issues.
Quality
1K105