code-check
БесплатноБез исполняемых скриптовНе проверенAudit a codebase holistically for SOLID, DRY, and consistency violations — a user-invoked Codebase Auditor workflow.
от dralgorhythm★ 136 звёзд на GitHubОб этом скилле
Codebase Health Auditor
Regular codebase review for Clean Code, SOLID, DRY principles and consistency.
MCP Tools
Sequential Thinking (analysis):
- Complex code smell evaluation
- Trade-off analysis for refactoring decisions
Audit Workflow
- Swarm — Launch parallel worker-reviewer agents for each audit dimension
- SOLID — Audit for principle violations
- DRY — Detect knowledge duplication
- Smells — Identify code smells from Fowler's catalog
- Consistency — Check pattern consistency across codebase
- Report — Generate prioritized findings with remediation
Parallel Analysis Pattern
Launch workers for different audit aspects:
- SOLID violations audit
- DRY violations and duplication detection
- Code smell detection
- Consistency audit
- Security anti-pattern detection
- Dead code and unused export detection
Audit Dimensions
SOLID and DRY
Apply the principles and duplication classes defined in .claude/rules/code-quality.md — do not restate them here; that file is the single source of truth. For DRY, use AST-based tools (jscpd) not just grep patterns.
Code Smells
Identify common code smells (context-dependent thresholds):
- Long methods/functions
- Large classes
- Feature envy
- Data clumps
- Primitive obsession
- Message chains
- Language-specific anti-patterns (type assertions, any propagation, promise anti-patterns)
Consistency
Check pattern consistency:
- Error handling patterns
- Async/await usage
- Naming conventions
- Import strategies
- Type vs interface usage
- Validation approach
Complexity
Evaluate cyclomatic complexity and function/class sizes. Use language-appropriate tools:
- TypeScript: ts-complexity-report, eslint-plugin-sonarjs
- Python: radon cc, radon mi
- Go: gocyclo, gocognit
- Rust: cargo-geiger, cargo-bloat
Dead Code
Use language-appropriate detection tools:
- TypeScript: knip, depcheck
- Python: vulture, pip-audit
- Go: go mod tidy, staticcheck
- Rust: cargo-udeps, cargo-machete
Verify findings before deletion (false positives with dynamic imports).
Scope Adherence
Applies swarm-review's Scope adherence review lens (unrequested refactors, drive-by edits, orphaned dead code) across the whole codebase instead of one diff at a time — see that skill for the full perspective and adversarial question; this entry exists so the audit checklist doesn't have a gap, not to restate the lens.
Output Format
## Codebase Health Report
### Executive Summary
**Health Score**: [A/B/C/D/F]
**Critical Issues**: [count]
**Total Issues**: [count]
### SOLID Violations
| Principle | File:Line | Description | Remediation |
|-----------|-----------|-------------|-------------|
### DRY Violations
| Type | Files | Pattern | Remediation |
|------|-------|---------|-------------|
### Code Smells
| Smell | Location | Severity | Suggestion |
|-------|----------|----------|------------|
### Consistency Issues
| Area | Finding | Recommendation |
|------|---------|----------------|
### Complexity Hotspots
| File | Function | Cyclomatic | Action |
|------|----------|------------|--------|
Constraints
- NO flagging incidental duplication as critical
- NO recommending changes that break public APIs without migration
- NO prioritizing style over substance
- NO removing "dead code" without verifying false positives
- ALWAYS provide specific file:line references
- ALWAYS suggest concrete remediation steps
- ALWAYS consider context when evaluating thresholds
Handoff
- To
/builder//swarm-execute: with tasks for specific fixes and refactoring - To
/architect: for systemic architectural issues
$ARGUMENTS
Установить code-check в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-check?
Audit a codebase holistically for SOLID, DRY, and consistency violations — a user-invoked Codebase Auditor workflow.
Как установить скилл code-check?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-check запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic