PluginBench
Skill
Pass
Audit score 90

senior-architect

alirezarezvani/claude-skills

Design and analyze system architecture with diagrams, dependency analysis, and technical decision workflows.

What is senior-architect?

Senior Architect is a skill for making informed technical decisions about system design. Use it when designing architectures, evaluating patterns (monolith vs. microservices), analyzing dependencies, selecting databases, creating architecture diagrams, and documenting decisions through Architecture Decision Records (ADRs).

  • Generate architecture diagrams in Mermaid, PlantUML, or ASCII formats from project structure
  • Analyze dependencies for circular dependencies, coupling scores, and outdated packages across npm, Python, Go, and Rust projects
  • Detect architectural patterns (MVC, layered, hexagonal, microservices) and identify code organization issues
  • Provide structured decision workflows for database selection, architecture pattern choice, and monolith vs. microservices evaluation
  • Assess project structure and recommend improvements for layer violations and mixed concerns
  • Support multiple diagram types: component, layer, and deployment topology visualization

How to install senior-architect

npx skills add https://github.com/alirezarezvani/claude-skills --skill senior-architect
Prerequisites
  • Python installed to run the analysis scripts
  • Project directory with recognizable structure (controllers, services, repositories, etc.)
  • Package manager files (package.json, requirements.txt, go.mod, or Cargo.toml) for dependency analysis
Claude Code
Cursor
Windsurf
Cline

How to use senior-architect

  1. 1.Run the Architecture Diagram Generator on your project directory to visualize current structure: `python scripts/architecture_diagram_generator.py ./project --format mermaid`
  2. 2.Execute the Dependency Analyzer to identify coupling issues and outdated packages: `python scripts/dependency_analyzer.py ./project --verbose`
  3. 3.Use Project Architect to assess your codebase and detect patterns: `python scripts/project_architect.py ./project --verbose`
  4. 4.Follow the Database Selection Workflow to evaluate SQL vs. NoSQL options based on your data characteristics and scale
  5. 5.Follow the Architecture Pattern Selection Workflow to decide between monolith, modular monolith, or microservices
  6. 6.Document your decisions using the provided ADR template with context, options considered, and trade-offs

Use cases

Good for
  • Visualizing system architecture for team documentation and design reviews
  • Identifying circular dependencies and coupling issues in existing codebases
  • Choosing between SQL and NoSQL databases based on data characteristics and scale requirements
  • Evaluating whether to build a monolith, modular monolith, or microservices architecture
  • Creating Architecture Decision Records (ADRs) to document technical choices and trade-offs
Who it's for
  • Software architects planning new systems or refactoring existing ones
  • Technical leads evaluating architectural patterns and trade-offs
  • Backend engineers analyzing project dependencies and structure
  • Teams documenting system design decisions and creating architecture diagrams
  • DevOps engineers planning deployment topology and scalability strategies

senior-architect FAQ

What formats can the Architecture Diagram Generator produce?

The tool supports Mermaid (default), PlantUML, and ASCII formats. You can specify the format with the `--format` flag and choose diagram types: component (modules and relationships), layer (presentation/business/data layers), or deployment (deployment topology).

Which package managers are supported for dependency analysis?

The Dependency Analyzer supports npm/yarn (package.json), Python (requirements.txt and pyproject.toml), Go (go.mod), and Rust (Cargo.toml).

How does the tool decide between monolith and microservices?

The Architecture Pattern Selection Workflow considers team size (1-3 devs → monolith, 10+ → consider microservices), deployment requirements (independent scaling → microservices), and data boundaries (strict isolation → microservices).

What is a coupling score and what does it mean?

The coupling score (0-100) measures how tightly dependencies are interconnected in your project. A higher score indicates tighter coupling; the tool recommends extracting shared interfaces or breaking circular dependencies to reduce coupling.

Can this skill help with existing projects or only new ones?

This skill works with existing projects. Run the Project Architect and Dependency Analyzer on your current codebase to identify architectural patterns, code smells, and improvement opportunities before making refactoring decisions.

Full instructions (SKILL.md)

Source of truth, from alirezarezvani/claude-skills.


name: "senior-architect" description: This skill should be used when the user asks to "design system architecture", "evaluate microservices vs monolith", "create architecture diagrams", "analyze dependencies", "choose a database", "plan for scalability", "make technical decisions", or "review system design". Use for architecture decision records (ADRs), tech stack evaluation, system design reviews, dependency analysis, and generating architecture diagrams in Mermaid, PlantUML, or ASCII format.

Senior Architect

Architecture design and analysis tools for making informed technical decisions.

Table of Contents


Quick Start

# Generate architecture diagram from project
python scripts/architecture_diagram_generator.py ./my-project --format mermaid

# Analyze dependencies for issues
python scripts/dependency_analyzer.py ./my-project --output json

# Get architecture assessment
python scripts/project_architect.py ./my-project --verbose

Tools Overview

1. Architecture Diagram Generator

Generates architecture diagrams from project structure in multiple formats.

Solves: "I need to visualize my system architecture for documentation or team discussion"

Input: Project directory path Output: Diagram code (Mermaid, PlantUML, or ASCII)

Supported diagram types:

  • component - Shows modules and their relationships
  • layer - Shows architectural layers (presentation, business, data)
  • deployment - Shows deployment topology

Usage:

# Mermaid format (default)
python scripts/architecture_diagram_generator.py ./project --format mermaid --type component

# PlantUML format
python scripts/architecture_diagram_generator.py ./project --format plantuml --type layer

# ASCII format (terminal-friendly)
python scripts/architecture_diagram_generator.py ./project --format ascii

# Save to file
python scripts/architecture_diagram_generator.py ./project -o architecture.md

Example output (Mermaid):

graph TD
    A[API Gateway] --> B[Auth Service]
    A --> C[User Service]
    B --> D[(PostgreSQL)]
    C --> D

2. Dependency Analyzer

Analyzes project dependencies for coupling, circular dependencies, and outdated packages.

Solves: "I need to understand my dependency tree and identify potential issues"

Input: Project directory path Output: Analysis report (JSON or human-readable)

Analyzes:

  • Dependency tree (direct and transitive)
  • Circular dependencies between modules
  • Coupling score (0-100)
  • Outdated packages

Supported package managers:

  • npm/yarn (package.json)
  • Python (requirements.txt, pyproject.toml)
  • Go (go.mod)
  • Rust (Cargo.toml)

Usage:

# Human-readable report
python scripts/dependency_analyzer.py ./project

# JSON output for CI/CD integration
python scripts/dependency_analyzer.py ./project --output json

# Check only for circular dependencies
python scripts/dependency_analyzer.py ./project --check circular

# Verbose mode with recommendations
python scripts/dependency_analyzer.py ./project --verbose

Example output:

Dependency Analysis Report
==========================
Total dependencies: 47 (32 direct, 15 transitive)
Coupling score: 72/100 (moderate)

Issues found:
- CIRCULAR: auth → user → permissions → auth
- OUTDATED: lodash 4.17.15 → 4.17.21 (security)

Recommendations:
1. Extract shared interface to break circular dependency
2. Update lodash to fix CVE-2020-8203

3. Project Architect

Analyzes project structure and detects architectural patterns, code smells, and improvement opportunities.

Solves: "I want to understand the current architecture and identify areas for improvement"

Input: Project directory path Output: Architecture assessment report

Detects:

  • Architectural patterns (MVC, layered, hexagonal, microservices indicators)
  • Code organization issues (god classes, mixed concerns)
  • Layer violations
  • Missing architectural components

Usage:

# Full assessment
python scripts/project_architect.py ./project

# Verbose with detailed recommendations
python scripts/project_architect.py ./project --verbose

# JSON output
python scripts/project_architect.py ./project --output json

# Check specific aspect
python scripts/project_architect.py ./project --check layers

Example output:

Architecture Assessment
=======================
Detected pattern: Layered Architecture (confidence: 85%)

Structure analysis:
  ✓ controllers/  - Presentation layer detected
  ✓ services/     - Business logic layer detected
  ✓ repositories/ - Data access layer detected
  ⚠ models/       - Mixed domain and DTOs

Issues:
- LARGE FILE: UserService.ts (1,847 lines) - consider splitting
- MIXED CONCERNS: PaymentController contains business logic

Recommendations:
1. Split UserService into focused services
2. Move business logic from controllers to services
3. Separate domain models from DTOs

Decision Workflows

Database Selection Workflow

Use when choosing a database for a new project or migrating existing data.

Step 1: Identify data characteristics

CharacteristicPoints to SQLPoints to NoSQL
Structured with relationships✓
ACID transactions required✓
Flexible/evolving schema✓
Document-oriented data✓
Time-series data✓ (specialized)

Step 2: Evaluate scale requirements

  • <1M records, single region → PostgreSQL or MySQL
  • 1M-100M records, read-heavy → PostgreSQL with read replicas
  • 100M records, global distribution → CockroachDB, Spanner, or DynamoDB

  • High write throughput (>10K/sec) → Cassandra or ScyllaDB

Step 3: Check consistency requirements

  • Strong consistency required → SQL or CockroachDB
  • Eventual consistency acceptable → DynamoDB, Cassandra, MongoDB

Step 4: Document decision Create an ADR (Architecture Decision Record) with:

  • Context and requirements
  • Options considered
  • Decision and rationale
  • Trade-offs accepted

Quick reference:

PostgreSQL → Default choice for most applications
MongoDB    → Document store, flexible schema
Redis      → Caching, sessions, real-time features
DynamoDB   → Serverless, auto-scaling, AWS-native
TimescaleDB → Time-series data with SQL interface

Architecture Pattern Selection Workflow

Use when designing a new system or refactoring existing architecture.

Step 1: Assess team and project size

Team SizeRecommended Starting Point
1-3 developersModular monolith
4-10 developersModular monolith or service-oriented
10+ developersConsider microservices

Step 2: Evaluate deployment requirements

  • Single deployment unit acceptable → Monolith
  • Independent scaling needed → Microservices
  • Mixed (some services scale differently) → Hybrid

Step 3: Consider data boundaries

  • Shared database acceptable → Monolith or modular monolith
  • Strict data isolation required → Microservices with separate DBs
  • Event-driven communication fits → Event-sourcing/CQRS

Step 4: Match pattern to requirements

RequirementRecommended Pattern
Rapid MVP developmentModular Monolith
Independent team deploymentMicroservices
Complex domain logicDomain-Driven Design
High read/write ratio differenceCQRS
Audit trail requiredEvent Sourcing
Third-party integrationsHexagonal/Ports & Adapters

See references/architecture_patterns.md for detailed pattern descriptions.


Monolith vs Microservices Decision

Choose Monolith when:

  • Team is small (<10 developers)
  • Domain boundaries are unclear
  • Rapid iteration is priority
  • Operational complexity must be minimized
  • Shared database is acceptable

Choose Microservices when:

  • Teams can own services end-to-end
  • Independent deployment is critical
  • Different scaling requirements per component
  • Technology diversity is needed
  • Domain boundaries are well understood

Hybrid approach: Start with a modular monolith. Extract services only when:

  1. A module has significantly different scaling needs
  2. A team needs independent deployment
  3. Technology constraints require separation

Reference Documentation

Load these files for detailed information:

FileContainsLoad when user asks about
references/architecture_patterns.md9 architecture patterns with trade-offs, code examples, and when to use"which pattern?", "microservices vs monolith", "event-driven", "CQRS"
references/system_design_workflows.md6 step-by-step workflows for system design tasks"how to design?", "capacity planning", "API design", "migration"
references/tech_decision_guide.mdDecision matrices for technology choices"which database?", "which framework?", "which cloud?", "which cache?"

Tech Stack Coverage

Languages: TypeScript, JavaScript, Python, Go, Swift, Kotlin, Rust Frontend: React, Next.js, Vue, Angular, React Native, Flutter Backend: Node.js, Express, FastAPI, Go, GraphQL, REST Databases: PostgreSQL, MySQL, MongoDB, Redis, DynamoDB, Cassandra Infrastructure: Docker, Kubernetes, Terraform, AWS, GCP, Azure CI/CD: GitHub Actions, GitLab CI, CircleCI, Jenkins


Common Commands

# Architecture visualization
python scripts/architecture_diagram_generator.py . --format mermaid
python scripts/architecture_diagram_generator.py . --format plantuml
python scripts/architecture_diagram_generator.py . --format ascii

# Dependency analysis
python scripts/dependency_analyzer.py . --verbose
python scripts/dependency_analyzer.py . --check circular
python scripts/dependency_analyzer.py . --output json

# Architecture assessment
python scripts/project_architect.py . --verbose
python scripts/project_architect.py . --check layers
python scripts/project_architect.py . --output json

Getting Help

  1. Run any script with --help for usage information
  2. Check reference documentation for detailed patterns and workflows
  3. Use --verbose flag for detailed explanations and recommendations

Related skills

More from alirezarezvani/claude-skills and the wider catalog.

SEsenior-backend logo

senior-backend

alirezarezvani/claude-skills

Design REST APIs, optimize databases, and harden backend systems with scaffolding and load testing tools.

1.6k installs
SEsenior-computer-vision logo

senior-computer-vision

alirezarezvani/claude-skills

Computer vision engineering skill for object detection, image segmentation, and visual AI systems. Covers CNN and Vision Transformer architectures, YOLO/Faster R-CNN/DETR detection, Mask R-CNN/SAM segmentation, and production deployment with ONNX/TensorRT. Includes PyTorch, torchvision, Ultralytics, Detectron2, and MMDetection frameworks. Use when building detection pipelines, training custom models, optimizing inference, or deploying vision systems.

890 installs
SEsenior-data-engineer logo

senior-data-engineer

alirezarezvani/claude-skills

Data engineering skill for building scalable data pipelines, ETL/ELT systems, and data infrastructure. Expertise in Python, SQL, Spark, Airflow, dbt, Kafka, and modern data stack. Includes data modeling, pipeline orchestration, data quality, and DataOps. Use when designing data architectures, building data pipelines, optimizing data workflows, implementing data governance, or troubleshooting data issues.

892 installs
SEsenior-data-scientist logo

senior-data-scientist

alirezarezvani/claude-skills

World-class senior data scientist skill specialising in statistical modeling, experiment design, causal inference, and predictive analytics. Covers A/B testing (sample sizing, two-proportion z-tests, Bonferroni correction), difference-in-differences, feature engineering pipelines (Scikit-learn, XGBoost), cross-validated model evaluation (AUC-ROC, AUC-PR, SHAP), and MLflow experiment tracking — using Python (NumPy, Pandas, Scikit-learn), R, and SQL. Use when designing or analysing controlled experiments, building and evaluating classification or regression models, performing causal analysis on observational data, engineering features for structured tabular datasets, or translating statistical findings into data-driven business decisions.

811 installs
SEsenior-frontend logo

senior-frontend

alirezarezvani/claude-skills

React, Next.js, TypeScript, and Tailwind CSS development patterns, scaffolding, and optimization tools.

1.6k installs
SEsenior-fullstack logo

senior-fullstack

alirezarezvani/claude-skills

Fullstack development toolkit with project scaffolding, code quality analysis, and stack selection guidance.

1.4k installs