hoangnguyen0403/common-architecture-audit
Audit structural debt, logic leakage, and monolithic components across Web, Mobile, and Backend codebases. Use when reviewing architecture, assessing tech debt, detecting logic in wrong layers, or identifying God classes.
npx skills add https://github.com/HoangNguyen0403/agent-skills-standard --skill common-architecture-audit
Identify split sources of truth by searching for redundant directory patterns.
Service.ts vs ServiceNew.ts vs ServiceV2.ts./v1, /v2 or "Refactor" folders.See implementation examples for detection scripts.
Find business logic trapped in wrong layer.
grep -rE "useEffect|useState|useMemo" components --include="*.tsx" | wc -l — if components/ hook count > 20x hooks/ folder, architecture monolithic.grep -rE "http\.|dio\.|socket\." lib/widgets --include="*.dart" | wc -l — I/O or state mutation > 5 lines in build() High Debt.grep -rE "Repository\.|Query\.|db\." src/controllers --include="*.ts" | wc -l — Controllers must only handle request parsing and response formatting.Flag massive files violating Single Responsibility Principle.
See implementation examples for monolith detection scripts.
Check for large metadata or constants impacting IDE performance and binary size.
See implementation examples for resource audit scripts.
Take hoangnguyen0403/common-architecture-audit from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.