senior-architect

Generate architecture diagrams, analyze dependencies, and assess project structure for technical decisions.

1|2|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/zhizhunbao/textbook-rag --skill senior-architect-zhizhunbao
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: senior-architect
Source: https://github.com/zhizhunbao/textbook-rag/tree/main/.agent/skills/dev-senior_architect
Command: npx skills add https://github.com/zhizhunbao/textbook-rag --skill senior-architect-zhizhunbao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Making sound architecture decisions requires understanding your current codebase structure, dependencies, and patterns, but manually auditing large projects is slow and error-prone. This Skill automates architecture analysis and provides structured decision workflows for databases, patterns, and system design. ## Core Features & Use Cases - Architecture Diagram Generation: Scans a project directory and produces component, layer, or deployment diagrams in Mermaid, PlantUML, or ASCII format. - Dependency Analysis: Parses package.json, requirements.txt, pyproject.toml, go.mod, or Cargo.toml to detect circular dependencies, compute a coupling score, and flag problematic packages. - Architecture Assessment: Detects patterns (layered, MVC, hexagonal, clean, microservices), finds god classes and oversized files, and reports layer violations with recommendations. - Decision Workflows: Step-by-step guides for database selection, monolith vs microservices, and architecture pattern selection, backed by reference documentation on 9 patterns. - Use Case: Before proposing a microservices migration, run the project architect and dependency analyzer on your monolith to get a coupling score, circular dependency report, and detected pattern, then follow the decision workflow to document an ADR. ## Quick Start Ask the assistant to analyze your project architecture and generate a Mermaid component diagram for the current project directory.

Frequently Asked Questions about senior-architect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an architecture diagram from my project?▼

Run the architecture diagram generator script with your project path and choose a format: Mermaid, PlantUML, or ASCII. It scans directories, detects components and their import relationships, and outputs component, layer, or deployment diagrams.

How to detect circular dependencies in a Python or Node project?▼

Run the dependency analyzer script on the project directory with the circular check option. It builds an internal module import graph, runs depth-first cycle detection, and reports each circular dependency chain it finds.

When should I choose microservices over a monolith?▼

Choose microservices when teams can own services end-to-end, independent deployment is critical, and domain boundaries are well understood. For small teams or unclear boundaries, start with a modular monolith and extract services only when scaling or deployment needs diverge.

Which package managers does the dependency analyzer support?▼

The analyzer supports npm and yarn via package.json, pip via requirements.txt, Poetry via pyproject.toml, Go via go.mod, and Rust via Cargo.toml. It auto-detects the package manager from files present in the project root.

What architectural patterns can the project architect detect?▼

It detects layered, MVC, hexagonal, clean, microservices, modular monolith, and feature-based patterns by matching directory names and file indicators against pattern signatures. Each detection includes a confidence score based on structural evidence.

What are the limitations of automated architecture analysis?▼

Static analysis infers patterns from directory names and import statements, so it can misclassify unconventional structures and cannot evaluate runtime behavior or business context. Treat its confidence scores and recommendations as a starting point for human review.