arch-assess

Analyze existing codebases to map dependencies, draw as-is C4 diagrams, and assess architecture health.

7.1k|1.1k|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/openJiuwen-ai/jiuwenswarm --skill arch-assess
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arch-assess
Source: https://github.com/openJiuwen-ai/jiuwenswarm/tree/main/jiuwenswarm/resources/agent/workspace/plugins/agent_templates/system-architect/skills/arch-assess
Command: npx skills add https://github.com/openJiuwen-ai/jiuwenswarm --skill arch-assess

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Understanding an existing system's real architecture is hard when documentation is missing or outdated. This Skill performs reverse architecture analysis on brownfield codebases: it reads the actual code, maps module dependencies, draws as-is C4 diagrams, locates coupling hotspots and architecture smells, and produces a system health assessment report.

Core Features & Use Cases

  • Dependency Mapping: Statically analyze imports and runtime call chains to build module dependency graphs, detecting circular dependencies, cross-layer references, and shared databases.
  • As-Is C4 Diagrams: Reverse-engineer Context, Container, and Component diagrams from code, deployment files, and configuration, annotated with tech stacks and communication protocols.
  • Smell Detection & Health Scoring: Identify structural, data, and deployment smells (god services, distributed monoliths, N+1 queries), then score scalability, availability, maintainability, observability, security, and cost on a 1-5 scale.
  • Use Case: You inherit a legacy microservices system with no documentation. Use this Skill to read the code, generate the as-is architecture diagrams, list the top 5 coupling hotspots, and produce a health assessment report that feeds directly into evolution planning.

Quick Start

Assess the architecture of the current repository by mapping module dependencies, drawing as-is C4 diagrams, and producing a system health report.

Frequently Asked Questions about arch-assess

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

FAQPage Schema
How do I assess the architecture of an existing legacy system?

Start by reading the code to build a module dependency graph, then reverse-engineer as-is C4 Context, Container, and Component diagrams. Next, locate coupling hotspots and architecture smells, and finally score quality attributes like scalability and maintainability on a 1-5 scale to produce a health report.

How to detect circular dependencies and coupling hotspots in code?

Use static analysis tools such as madge or dependency-cruiser for TypeScript, pydeps for Python, and go mod graph for Go to build dependency graphs. Then rank modules by fan-in; the top fan-in modules combined with high change frequency are the highest-risk coupling hotspots.

What architecture smells should I look for in a microservices system?

Key structural smells include distributed monoliths with strong synchronous calls, shared databases across services, god services with too many responsibilities, and circular dependencies. Data smells include shared mutable state and missing transaction boundaries, while deployment smells include single-instance deployment and hardcoded configuration.

When should I use architecture assessment instead of architecture design?

Use assessment when working with an existing brownfield system to diagnose its current state before planning changes. Use architecture design for greenfield systems built from scratch, architecture review for evaluating proposed solutions, and evolution planning only after the assessment diagnosis is complete.

Does the assessment produce refactoring recommendations?

No, the assessment deliberately separates diagnosis from prescription. It outputs a health report with scored quality attributes, coupling hotspots, and a prioritized smell list, which then feeds into a separate architecture evolution workflow that designs the improvement roadmap.