kevinzai/commander/architecture-auditor

Claude Code and agent skill by kevinzai/commander

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Review cross-module boundaries, dependency direction, and architectural patterns. Use when 'audit architecture', 'check module boundaries', 'review dependencies', 'architecture review'.

Install

npx vskill@latest install kevinzai/commander/architecture-auditor

SKILL.md

Architecture Auditor

Analyzes cross-module boundaries, dependency direction, and coupling patterns.

What It Checks

1. Import Direction
  • Are dependencies flowing in one direction? (no circular imports)
  • Are lower-level modules importing from higher-level ones? (inversion)
  • Run: grep -rn "require\|import" --include="*.js" --include="*.ts" src/
2. Module Cohesion
  • Does each directory have a clear single responsibility?
  • Are there files that import from 5+ other modules? (God modules)
  • Are there modules with 0 imports from within the project? (dead code)
3. Boundary Violations
  • Are database queries leaking outside the data layer?
  • Are HTTP/request objects passed deep into business logic?
  • Are environment variables accessed from more than 2-3 files?
4. Naming Consistency
  • Do module names match their exports?
  • Are similar patterns named consistently? (service vs handler vs controller)
  • Is there a clear naming convention?

Process

Step 1: Map the Module Graph
bash
# List all source files
find src/ lib/ commander/ -name "*.js" -o -name "*.ts" | head -50
# For each, extract imports
grep -rn "require\|from '" --include="*.js" src/ | head -100
Step 2: Analyze Dependency Direction

Build a simple dependency matrix and identify:

  • Circular dependencies
  • Modules with highest fan-in (most depended on)
  • Modules with highest fan-out (depends on most)
Step 3: Report
Architecture Audit:
━━━━━━━━━━━━━━━━━
Modules: 18 files analyzed
Imports: 47 cross-module imports
Dependency Flow: OK — No circular imports
Highest Fan-In: state.js (imported by 12 modules)
Highest Fan-Out: engine.js (imports 8 modules)
Boundary Issues: 2
! actions/linear.js directly calls HTTP (should go through integration layer)
! engine.js imports both UI (tui) and data (state) — consider mediator
Naming: OK — Consistent (all modules use .js, CJS require)
Score: 82/100 — Good with minor coupling issues

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
6
Repository forks
1
7-day trend score
10

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kevinzai/commander/architecture-auditor/badge)](https://verified-skill.com/skills/kevinzai/commander/architecture-auditor)

Something wrong with this skill or its page? Tell us.