From sdlc-audit
Audit project architecture: C4 inferred from code, ADR coverage, deep modules check, accidental complexity, layering violations, cyclic dependencies. Use during /audit:architecture or /audit:full architecture phase.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sdlc-audit:architecture-auditThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Глубокий разбор архитектуры проекта.
Глубокий разбор архитектуры проекта.
Из кода восстановить:
Context level:
Container level:
celery_app.py → worker container)Component level:
Создать диаграммы в Mermaid в docs/audit/<TS>/architecture/c4-inferred.md.
Список значимых архитектурных решений:
Для каждого:
Из "A Philosophy of Software Design":
Найти shallow modules:
Если в проекте есть архитектурные слои (по naming convention или по папкам):
Искать нарушения flow (presentation → application → domain → infrastructure):
В Python: grep imports across packages.
В JS/TS: парсить imports в *.ts файлах.
В Go: смотреть import blocks.
Между модулями/пакетами не должно быть циклов:
pydeps -p src/ --max-bacon=2 или ручной анализmadge --circular src/Модули которые знают слишком много:
20 imports
Это часто комбинируется с code-audit findings, но здесь акцент на architectural impact - это структурная проблема, не code style.
Похожие задачи решаются разными способами:
Этот finding часто требует ручного анализа Claude'ом - не tool'ы.
См. severity rules в audit-architecture.md команды.
| Tool | Language | Purpose |
|---|---|---|
pydeps | Python | Module dependency graph |
radon cc -s | Python | Cyclomatic complexity per function |
madge --circular | JS/TS | Cyclic dependencies |
dependency-cruiser | JS/TS | Layering rules enforcement |
go list -deps | Go | Dependency listing |
gocyclo | Go | Cyclomatic complexity |
Записать findings в docs/audit/<TS>/architecture/findings.json (формат см. templates/finding.schema.json).
Дополнительные artifacts:
c4-inferred.md - C4 диаграммы reverse-engineeredadr-gaps.md - missing ADRsdependency-analysis.md - cycles, god modulesВ standard и deep mode прочитать топ-3 entry points (main, app.py, server.ts) и оценить:
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.