Принципы качества модульного кода
engineering
code-quality-principles is a Claude Code skill that provides a six-principle modular design checklist for use when writing new modules, refactoring existing code, or conducting PR reviews. The principles cover module size (Java ≤ 300, Go ≤ 400, TS/Python ≤ 300 lines), call depth (≤ 3 layers), fan-in/fan-out balance (no more than 5 direct dependencies per method), clear interface boundaries with a unified response contract, scope cohesion without cross-module side effects, and predictability through idempotency and pure functions. The skill acts as a master decision reference and delegates detailed checks to specialized skills such as size-check, refactor-safety, api-design-safety, and time-zone-safety. It is designed for engineering teams looking to standardize architecture decisions and identify code smells through concrete, measurable metrics.
- #modularity
- #architecture
- #code-review
- #refactoring
- #design-principles