/engineering-advanced-skills:senior-architectfrom engineering-advanced-skills
Records architecture decisions as ADRs with evidence from dependency analysis, coupling scores, and diagram generation. Use when choosing databases, patterns, or monolith-vs-microservices.
Ships in engineering-advanced-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Architecture design and analysis tools for making informed technical decisions: visualize system structure, analyze dependencies and coupling, detect architectural patterns, and run decision workflows for databases, patterns, and monolith-vs-microservices trade-offs.
The value of this skill is the decision and its record; the tools supply evidence.
dependency_analyzer.py for coupling and cycles, project_architect.py for the current pattern and layer violations, architecture_diagram_generator.py for a current-state diagram. Low confidence or unknown layers mean the structure does not follow naming conventions; read the code rather than trusting the label.Not this skill: cloud-provider service design (see engineering/aws-solution-architect, engineering/azure-cloud-architect, engineering/gcp-cloud-architect), choosing between frameworks or vendors (see engineering/tech-stack-evaluator), and backend implementation (see engineering/senior-backend).
Before generating diagrams or an assessment, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
| Tool | Purpose | Command |
|---|---|---|
architecture_diagram_generator.py | Component, layer or deployment diagrams (Mermaid, PlantUML, ASCII) from a project directory | python3 scripts/architecture_diagram_generator.py ./project --format mermaid --type component |
dependency_analyzer.py | Coupling score (0-100) and circular dependencies across npm, pip, Poetry, Go modules and Cargo | python3 scripts/dependency_analyzer.py ./project --output json --check circular |
project_architect.py | Pattern detection, layer violations and code smells, with a confidence score | python3 scripts/project_architect.py ./project --check layers --verbose |
Exit codes: 0 report (or check passed); 1 a --check gate failed (cycles found, coupling above 70); 2 missing or unreadable project path. --output json applies to the --check gates too. Detection is name-based: folders called services/ or domain/ are read as layers, so treat a low confidence score as "no clear pattern", not as a finding.
# from engineering/senior-architect/ (a small layered Python app with one deliberate back-reference)
python3 scripts/project_architect.py assets/sample_layered_app # Layered, 55% confidence
python3 scripts/dependency_analyzer.py assets/sample_layered_app --output json --check circular # exit 1: one cycle
python3 scripts/architecture_diagram_generator.py assets/sample_layered_app --format mermaid --type layer
The cycle is controllers -> services -> repositories -> controllers: the repository imports the controller, which is the kind of finding an ADR or a refactor ticket should record.
Load the reference that matches the task — keep this file lean and pull detail on demand:
Mistake: Choosing microservices for a small team or an unclear domain. Why it matters: Service boundaries drawn before the domain is understood get redrawn at the cost of distributed-systems complexity. Instead: Start with a modular monolith with enforced module boundaries, and extract a service when a boundary has proved stable and has its own scaling or release need.
Mistake: A decision with no written record. Why it matters: Six months later nobody remembers why, so the decision is relitigated or silently reversed. Instead: Write a short ADR with the options considered and the trigger for revisiting it.
Mistake: Treating tool output as the architecture review. Why it matters: Coupling scores and pattern labels are heuristics; they miss runtime coupling such as shared databases and synchronous call chains. Instead: Use the tools to find where to look, then review data ownership and call paths by hand.
| File | Purpose |
|---|---|
scripts/architecture_diagram_generator.py, scripts/dependency_analyzer.py, scripts/project_architect.py | Stdlib CLIs |
references/decision_workflows.md | Decision workflows and the ADR template |
assets/sample_layered_app/ | Controllers, services, repositories and models with a repository-to-controller import cycle |
references/tools-and-usage.md | Full flags, example outputs and troubleshooting |
Covers: system-level architecture analysis (pattern detection, layer validation, component diagramming) for existing codebases; technology-agnostic dependency analysis across npm, pip, Poetry, Go modules, and Cargo; architecture decision workflows (database, pattern, monolith-vs-microservices); diagram generation in Mermaid, PlantUML, and ASCII.
Does NOT cover:
senior-devops (capacity planning) and senior-qa (performance test harnesses).senior-security or senior-secops for CVE/SAST/DAST.senior-frontend and design-auditor.senior-devops and release-orchestrator.assets/sample_layered_app/controllers/__init__.py (opens in a new tab)assets/sample_layered_app/controllers/order_controller.py (opens in a new tab)assets/sample_layered_app/models/__init__.py (opens in a new tab)assets/sample_layered_app/models/order.py (opens in a new tab)assets/sample_layered_app/repositories/__init__.py (opens in a new tab)assets/sample_layered_app/repositories/order_repository.py (opens in a new tab)assets/sample_layered_app/requirements.txt (opens in a new tab)assets/sample_layered_app/services/__init__.py (opens in a new tab)assets/sample_layered_app/services/order_service.py (opens in a new tab)references/architecture_patterns.md (opens in a new tab)references/decision_workflows.md (opens in a new tab)references/system_design_workflows.md (opens in a new tab)references/tech_decision_guide.md (opens in a new tab)references/tools-and-usage.md (opens in a new tab)scripts/architecture_diagram_generator.py (opens in a new tab)scripts/dependency_analyzer.py (opens in a new tab)scripts/project_architect.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skillsOther plugins' skills for the same job