greglas75/zuvo/architecture
Claude Code and agent skill by greglas75/zuvo
- community
Checking that the SKILL.md file is still in the repository.
Architecture skill with three modes: review existing codebase architecture (A1-A9 dimensions), create Architecture Decision Records, or design new systems from requirements. Modes: --mode review [path], --mode adr, --mode design. Uses CodeSift for module discovery, dependency mapping, structural metrics, and temporal coupling detection.
Install
npx vskill@latest install greglas75/zuvo/architectureSKILL.md
The same SKILL.md was published earlier as greglas75/zuvo/architecture.
zuvo:architecture — Review, ADR & System Design
Three modes for architecture work: audit an existing codebase structure, document a technical decision, or design a new system from requirements.
Scope: Architecture health assessment, technical decision documentation, system design from specifications. Out of scope: Per-file code quality (zuvo:code-audit), structural metrics without context (zuvo:structure-audit), test quality (zuvo:test-audit), individual file refactoring (zuvo:refactor).
Mandatory File Loading
Read these files before any work begins:
../../shared/includes/codesift-setup.md-- CodeSift discovery and tool selection../../shared/includes/env-compat.md-- Agent dispatch and environment adaptation
Print the checklist:
If any file is missing, STOP.
Environment Compatibility
Read ../../shared/includes/env-compat.md for agent dispatch patterns, path resolution, and progress tracking across all supported platforms.
CodeSift Integration
Read ../../shared/includes/codesift-setup.md for the full initialization sequence.
Dispatch follows ../../shared/includes/execution-policy.md through env-compat. Reuse existing authorization within that policy; session restrictions take precedence. Run each required gate and report its actual independence or an unmet requirement.
Mode 1 (review) CodeSift advantages:
get_knowledge_map(repo, depth=2)-- module relationships in one calldetect_communities(repo, focus="src")-- architectural boundary discoveryfind_references(repo, symbol_name)-- precise fan-in/fan-out per moduleimpact_analysis(repo, since="HEAD~10", depth=2)-- coupling patterns from recent changesanalyze_hotspots(repo, since_days=90)-- churn hotspotstrace_call_chain(repo, symbol_name, direction="callers", depth=3)-- dependency chains
Phase 0: Parse $ARGUMENTS
Explicit flags (preferred):
| Flag | Action | |
|---|---|---|
--mode review [path] | Architecture Review -- scan codebase, assess structure | |
--mode adr | ADR -- create or evaluate an architecture decision record | |
--mode design | System Design -- full requirements to design |
Heuristic fallback (when no `--mode` flag):
| Input | Detected Mode | |
|---|---|---|
| _(empty)_ | Ask the user if interactive. Otherwise default to --mode review . | |
review [path] | Review mode | |
| "should we use X or Y" | ADR mode | |
| "design a system for" | Design mode | |
| "document this decision" | ADR mode |
Mode 1: Architecture Review
When to use
Understanding and evaluating an existing codebase -- before a major refactor, onboarding, tech debt planning, or when something feels structurally wrong.
Non-goals
| Out of Scope | Use Instead | |
|---|---|---|
| Security vulnerabilities (except boundaries) | Dedicated security audit | |
| Code style and formatting | Linter configuration | |
| Test quality | zuvo:test-audit | |
| Business logic correctness | zuvo:review | |
| Individual file quality (CQ1-CQ40) | zuvo:code-audit |
Exception: Architectural security (A8) IS in scope -- auth boundaries, input validation placement, security layer design.
Step 1 -- Read the Project Structure
Read actual files before any assessment. Never write a review from memory.
package.json/pyproject.toml/composer.json-- dependencies, scripts, stack- Directory tree (top 2 levels) -- module boundaries
- Entry points:
main.ts,app.module.ts,index.ts,server.ts - Key domain files: services, controllers, models (sample, not all)
README.md,AGENTS.md,CLAUDE.md, anydocs/folder- Test infrastructure -- runner config, test locations, coverage config
Test discovery (MANDATORY for A6 scoring)
Check ALL locations:
- Co-located:
*.test.ts,*.spec.ts - Centralized:
__tests__/,tests/,test/ - Runner config:
jest.config.*,vitest.config.*,pytest.ini,phpunit.xml - CI config:
.github/workflows/
Never score A6 without completing test discovery.
Step 1.5 -- Architecture Style Detection
Identify which architecture style(s) the codebase uses:
- Match directory structure against known patterns (layered, feature-based, hexagonal, microkernel, etc.)
- If monorepo detected, note each app and its individual style
- Record: Detected style, indicators matched, confidence (HIGH/MEDIUM/LOW)
If no clear style matches, record as "Unstructured" with LOW confidence. This is itself an A1 finding.
Scope Bounding (when [path] is specified)
When reviewing a specific path: map architecture within the path only. Cross-boundary imports noted as external deps but not audited. Unobservable dimensions marked as N/A.
Step 2 -- Map the Architecture
Identify:
- Layers: presentation / application / domain / infrastructure -- present and respected?
- Module boundaries: main modules/services, cohesion assessment
- Data flow: request path from entry point to DB and back
- External dependencies: APIs, queues, caches -- coupling assessment
- Cross-cutting concerns: auth, logging, error handling -- centralized or scattered?
- Design patterns: Repository, Factory, Strategy, Adapter -- correct usage, missing patterns?
Step 2.5 -- Structural Metrics (MANDATORY)
Gather quantitative metrics before qualitative scoring. They provide evidence and prevent subjective drift.
- Dependency cycles: Check for circular imports between modules/directories. Report cycle count and paths.
- Fan-in / fan-out per module: For each top-level module, count cross-module imports only. Internal subdir imports DO NOT count. High cross-module fan-out (>10) = coupling risk. High fan-in (>8) = fragile shared module.
- Module size: LOC per top-level module. Flag modules >3000 LOC as size candidates for investigation (not automatic god modules -- size alone does not confirm the anti-pattern).
- Instability index: Per module:
I = fan-out / (fan-in + fan-out). Stable (I<0.3) modules should be abstract; unstable (I>0.7) should be concrete. Flag violations.
- Tool-assisted metrics (JS/TS projects). RUN THEM — do not check whether they are installed.
npx --yes madge --circular --extensions ts,tsx [source-dir]for cycle detectionnpx --yes jscpd [source-dir] --min-lines 10 --reporters jsonfor duplication- ESLint complexity rules (if project config available)
For Python: uvx radon cc [source-dir] -a -nc (or pipx run radon, or radon if present)
These are fetched on demand. Their absence from `package.json`, `node_modules` or `PATH` is not a reason to skip them and is not evidence that they are unavailable — npx pulls them into its own cache and writes nothing into the project, so no install consent applies (that gate exists for installs that mutate the project, not for this). --yes matters: without it npx prompts before fetching an uncached package, and in a non-interactive shell that prompt is indistinguishable from the tool being missing.
A 2026-09-05 review of tgm-survey-platform recorded madge / jscpd | UNAVAILABLE | Not installed in this checkout and dropped A1/A3/A4 to a lexical approximation. In that same checkout npx madge --version returns 8.0.0 and npx jscpd --version returns cpd 5.0.11. Neither had been run. Report a tool unavailable only with the failing command's own error text — see the CLI-tool rules in ../../shared/includes/codesift-setup.md.
- Temporal coupling (git history): Identify files that frequently change together despite no direct import relationship.
``bash git log --format=format: --name-only --since="6 months ago" | \ awk '/^$/{if(NR>1) for(i in f) for(j in f) if(i<j) print i" "j; delete f; next} {f[$0]}' | \ sort | uniq -c | sort -rn | head -20 ``
High co-change count + NO direct import = temporal coupling (hidden dependency).
Report metrics in a ## Structural Metrics section before dimension scores.
Step 3 -- Score Against 9 Dimensions
| # | Dimension | What to check | |
|---|---|---|---|
| A1 | Modularity | Clear boundaries? Low coupling, high cohesion? | |
| A2 | Layering | Layers respected? No DB in controllers, no logic in repositories? | |
| A3 | Dependency direction | Dependencies point inward (domain independent of infra)? | |
| A4 | SRP + Anti-patterns | God classes/modules? Anti-pattern detection? | |
| A5 | Scalability | Horizontal scaling possible? Shared mutable state? | |
| A6 | Testability | Tests exist and cover core logic? Pure logic isolated from I/O? | |
| A7 | Observability | Logging, metrics, tracing? Correlation IDs? | |
| A8 | Security boundary | Auth/authz at layer boundary? Input validated at entry? | |
| A9 | SOLID compliance | OCP, LSP, ISP, DIP assessment |
Score each dimension 0-3:
| Score | Label | Meaning | |
|---|---|---|---|
| 3 | Good | No issues found, pattern correctly applied | |
| 2 | Minor gaps | Small deviations, low risk, easy fix | |
| 1 | Needs work | Significant issues, structural risk | |
| 0 | Critical | Architectural violation actively causing problems |
Each score requires 1-line evidence with confidence (HIGH/MEDIUM/LOW):
- HIGH: direct code evidence (file:line, metric)
- MEDIUM: inferred from patterns
- LOW: assumption based on limited sample
Weighted total: A_total = sum(A1..A9) / 27 * 100%
| Total | Verdict | |
|---|---|---|
| >= 80% | Healthy | |
| >= 60% and < 80% | Needs attention | |
| >= 40% and < 60% | Significant issues | |
| < 40% | Critical |
Inequalities, not 60-79%: the total is sum/27*100, which is fractional. Of the 28 reachable scores, 16/27 = 59.26% belonged to no band at all — above 40-59, below 60-79.
Critical gate: Any A1-A4 = 0 caps the verdict at "Significant issues" at most. A9 is informational, not gated.
Step 4 -- Identify Top Problems
For each Critical or Needs-work dimension:
- Pattern: what is wrong
- Risk: what breaks if this stays
- Fix: concrete recommendation with file references
Step 4.5 -- Reconciliation (MANDATORY before report)
Prevent contradictions between report sections:
- List all preliminary flags from Step 2.5
- Check each against deeper analysis in Steps 3-4
- If invalidated: REMOVE from metrics table, anti-pattern summary, and dimension evidence
- If partially confirmed: downgrade appropriately
The report must be internally consistent. No "Invalidated Recommendations" section.
Output -- Architecture Review Report
REQUIRED: emit the Tool Availability Block (template in ../../shared/includes/codesift-setup.md) at the top of the report, after the title and before findings. The standard table replaces the ad-hoc **Tools:** line below — do NOT use both.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/architecture/SKILL.md
Popularity
- Repository stars
- 8
- 7-day trend score
- 11
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
[](https://verified-skill.com/skills/greglas75/zuvo/architecture)