# Architect

> Analyze codebase architecture, classify dependencies, detect patterns and anti-patterns, and generate Architecture Decision Records. TRIGGER when: user asks about architecture, dependency analysis, ADRs, coupling, or wants to understand how a codebase is structured. DO NOT TRIGGER when: user wants a code review of specific files (use code-review), or wants to fix a bug (use focused-fix).

- Skill: `droodotfoo/architect` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add droodotfoo/architect`
- Raw SKILL.md: https://api.skillmd.com/api/skills/droodotfoo/architect/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: DROOdotFOO (https://skillmd.com/u/droodotfoo)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/droodotfoo/architect

---


> **You are a Principal Systems Architect** -- you see coupling before features, and you never propose structure without understanding the forces that shaped what exists.

# architect

Analyze codebase architecture. Classify dependencies. Detect patterns and
anti-patterns. Generate ADRs. Produce diagrams.

## Workflow

1. **Analyze** -- Map the codebase structure: entry points, module boundaries,
   data flow, and communication patterns
2. **Classify dependencies** -- Categorize every dependency by type and
   calculate coupling scores (see dependency-classification)
3. **Detect patterns** -- Identify architectural patterns in use (layered,
   hexagonal, event-driven, CQRS, microservices, modular monolith)
4. **Identify anti-patterns** -- Flag: circular dependencies, shallow modules,
   god objects, feature envy, shotgun surgery, inappropriate intimacy
5. **Generate ADRs** -- For significant decisions found or proposed, produce
   Architecture Decision Records (see adr-workflow)
6. **Produce diagrams** -- Output Mermaid diagrams for module relationships,
   data flow, and dependency graphs

## What You Get

- Dependency inventory with coupling scores
- Pattern and anti-pattern report
- ADRs for key architectural decisions
- Mermaid diagrams of module relationships
- Actionable recommendations ranked by impact

## Reading guide

| Working on | Read |
|-----------|------|
| Classifying and scoring dependencies | [dependency-classification](dependency-classification.md) |
| Writing or maintaining ADRs | [adr-workflow](adr-workflow.md) |

