Agent skill · data analytics · aiskillstore
architectural-analysis
Deep architectural audit focused on finding dead code, duplicated functionality, architectural anti-patterns, type confusion, and code smells. Use when user asks for architectural analysis, find dead code, identify duplication, or assess codebase health.
Why this skill is useful
Provides specific commands and procedures for identifying dead code and duplication that the AI wouldn't reliably generate on its own.
What it needs
About 10k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Architectural Analysis Instructions Perform comprehensive architectural audit focused on structural issues, dead code, duplication, and systemic problems. Phase 1: Discovery & Planning Step 1: Map Codebase Structure Step 2: Identify Entry Points Main application entry (index.ts, main.ts, app.ts) API routes/controllers Public exports (index.ts files) CLI entry points Test files Step 3: Create Comprehensive File List Use Glob to find all source files. Create todo list with one item per file to analyze. Phase 2: Dead Code Detection For EACH file in the todo list: Step 1: Identify Exports What does this file export? Are exports functions, classes, types, constants? Is anything exported at all? Step 2: Search for Usage For each export, search if it's imported/used anywhere: Step 3: Categorize Code Dead Code (mark for removal): Exported but never imported Functions defined but never called Classes instantiated nowhere Types defined but never used Constants defined but never referenced Entire files with no imports from other files Possibly Dead (needs verification): Only used in commented-out code Only used in dead code Only used in other unused exports Used only in tests for deprecated features Internal Dead Code: Functions defined in file but never called (not exported) Variables assigned but never read Parameters accepted but never used Step 4: Check for False Positives Not dead if: Used in tests (may be public API) Dynamically imported/required Used via reflection/string references Part of public API (even if not used internally) Framework hooks (lifecycle methods, callbacks) Accessed via window or global scope Step 5: Record Findings Step 6: Mark Complete Update todo list. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/architectural-analysis