From sdlc-audit
Audit code quality: SOLID violations, complexity hotspots, duplication, dead code, code smells. Multi-language. Uses tooling-python, tooling-js-ts, tooling-go skills for SAST.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sdlc-audit:code-auditThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Аудит качества кода с использованием SAST tools и ручного анализа.
Аудит качества кода с использованием SAST tools и ручного анализа.
Через skill tooling-<lang> для каждого языка проекта:
tooling-python skilltooling-js-ts skilltooling-go skillВ quick mode - skip SAST tools. В standard - все. В deep - все + manual review топ-5 hot files.
Сохрани сырые выходы в docs/audit/<TS>/code/tooling-output/.
# Files most frequently changed
git log --pretty=format: --name-only --since="6 months ago" \
| grep -v '^$' \
| sort | uniq -c | sort -rg | head -20
Hot files имеют immediate priority - findings в них критичнее.
Tool output типично содержит много noise. Skill должен:
Single Responsibility (SRP):
Open/Closed (OCP):
if order.type == 'standard': ... elif order.type == 'express': ... повторяющееся в 5 местах = badLiskov Substitution (LSP):
Interface Segregation (ISP):
raise NotImplementedError в subclassesDependency Inversion (DIP):
Создай docs/audit/<TS>/code/complexity-hotspots.md:
Таблица топ-20 функций/методов по metrics:
| Function | File:Line | CC | Cognitive | LOC | Hot file? |
|---|---|---|---|---|---|
process_order | apps/sales/views.py:142 | 35 | 47 | 187 | YES |
| ... |
Cyclomatic Complexity > 30 - critical (very hard to test, very bug-prone). Cognitive Complexity (Sonar) часто более полезный indicator.
Создай docs/audit/<TS>/code/duplication-report.md:
Группы duplicated blocks (>10 LOC matches), сортировка по:
Tools:
pylint --disable=all --enable=duplicate-codejscpdduplTool-based:
vulture (warning: false positives для introspection-based code типа Django)knip (best для modern projects), ts-unused-exportsdeadcode, staticcheck partialManual: смотреть commits messages "TODO remove", "deprecated", "old version"
data, info, manager, helper, util - generic uninformative namesСм. severity rules в audit-code.md команды.
Findings в docs/audit/<TS>/code/findings.json.
Supporting артефакты:
complexity-hotspots.mdduplication-report.mdtooling-output/ (raw tool outputs)Прочитать топ-5 hot files. Для каждого оценить:
Записать observations в finding'ах.
npx claudepluginhub shakhovskiya-create/shakhoff-claude-marketplace --plugin sdlc-auditProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.