skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
borghei/claude-skills247 installs

senior-architect

Makes and records architecture decisions (pattern, database, monolith vs services) as ADRs, backed by coupling and diagram tools. Use when writing an ADR, choosing an architecture or database, or reviewing system structure.

How do I install this agent skill?

npx skills add https://github.com/borghei/claude-skills --skill senior-architect
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The senior-architect skill provides a suite of tools for architectural analysis, dependency mapping, and decision recording. It is generally safe and well-documented, though it presents a minor risk due to an indirect prompt injection surface when scanning and analyzing external codebase contents.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerwarn

    1/1 file flagged

  • ZeroLeakspass

    Score: 93/100 · 2 sections analyzed

What does this agent skill do?

Senior Architect

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.

Decision Workflow

The value of this skill is the decision and its record; the tools supply evidence.

  1. Frame the decision: one question (for example "split billing out of the monolith?"), the constraints (team size, deployment cadence, data consistency, budget) and who decides.
  2. Gather evidence from the code: 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.
  3. Run the matching workflow in references/decision_workflows.md: database selection, pattern selection, or monolith vs microservices. Write down at least two real options and the cost of each.
  4. Write the ADR (template in the same reference): context, options, decision, consequences, and the signal that would make you revisit it.
  5. Done when the ADR is accepted by the people who will own the result, and the evidence it cites can be regenerated by rerunning the tools.

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).

Core Capabilities

  • Diagram generation — produce component, layer, and deployment diagrams in Mermaid, PlantUML, or ASCII from a project directory.
  • Dependency analysis — map the dependency tree, score coupling (0-100), and detect circular dependencies across npm, pip, Poetry, Go modules, and Cargo.
  • Pattern detection — assess an existing codebase for layered/MVC/hexagonal/clean/microservices patterns, layer violations, god classes, and mixed concerns.
  • Database selection — match data characteristics, scale, and consistency needs to SQL/NoSQL options with an ADR template.
  • Pattern & topology selection — choose an architecture pattern by team size, deployment, and data-boundary requirements.
  • Monolith vs microservices — apply decision checklists and a modular-monolith-first hybrid strategy.

When to Use

  • Designing a new system or refactoring existing architecture.
  • Evaluating microservices vs monolith, or choosing a database.
  • Writing an ADR, planning for scalability, or reviewing a system design.
  • Generating architecture diagrams for documentation or team review.

Clarify First

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.

  • Project root: the codebase directory to analyze (drives pattern detection, dependency scoring, and diagram contents).
  • Diagram type & format: component / layer / deployment in Mermaid / PlantUML / ASCII (sets what the generator emits).
  • Architecture decision in question: e.g. database choice or monolith vs microservices (selects the decision workflow and ADR).

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.

Tools Overview

ToolPurposeCommand
architecture_diagram_generator.pyComponent, layer or deployment diagrams (Mermaid, PlantUML, ASCII) from a project directorypython3 scripts/architecture_diagram_generator.py ./project --format mermaid --type component
dependency_analyzer.pyCoupling score (0-100) and circular dependencies across npm, pip, Poetry, Go modules and Cargopython3 scripts/dependency_analyzer.py ./project --output json --check circular
project_architect.pyPattern detection, layer violations and code smells, with a confidence scorepython3 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.

Quick Start

# 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.

Reference Documentation

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/architecture_patterns.md — 9 architecture patterns (monolith, modular monolith, microservices, event-driven, CQRS, event sourcing, hexagonal, clean, API gateway) with trade-offs and code examples. Read when asked "which pattern?", "microservices vs monolith", "event-driven", or "CQRS".
  • references/system_design_workflows.md — 6 step-by-step workflows: design interview, capacity planning, API design, database schema design, scalability assessment, migration planning. Read when asked "how to design?", "capacity planning", "API design", or "migration".
  • references/tech_decision_guide.md — decision frameworks and comparison matrices for database, caching, message queue, auth, frontend framework, cloud provider, and API style. Read when asked "which database/framework/cloud/cache?".
  • references/decision_workflows.md — the database-selection, architecture-pattern-selection, and monolith-vs-microservices decision workflows with matrices, checklists, and the ADR template. Read when making a documented architecture decision.
  • references/tools-and-usage.md — detailed per-tool usage, example outputs, full flag tables, common-command catalog, tech-stack coverage, troubleshooting table, and success criteria. Read when running the scripts or interpreting their output.

Anti-Patterns

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.

Files

FilePurpose
scripts/architecture_diagram_generator.py, scripts/dependency_analyzer.py, scripts/project_architect.pyStdlib CLIs
references/decision_workflows.mdDecision 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.mdFull flags, example outputs and troubleshooting

Scope & Limitations

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:

  • Runtime performance profiling or load testing — use senior-devops (capacity planning) and senior-qa (performance test harnesses).
  • Security vulnerability scanning of dependencies — use senior-security or senior-secops for CVE/SAST/DAST.
  • Frontend component architecture and design-system auditing — use senior-frontend and design-auditor.
  • CI/CD pipeline design and deployment orchestration — use senior-devops and release-orchestrator.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/borghei/claude-skills/senior-architect">View senior-architect on skillZs</a>