architect-analyze
Use when validating generated or refined architecture artifacts, before feature development, during architecture review, or…
Use when bootstrapping architecture documentation for a brownfield project by reverse-engineering ADRs from an existing codebase.
$ npx -y skills add tikalk/adlc-team-skills --skill architect-init --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/architect-initContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when bootstrapping architecture documentation for a brownfield project by reverse-engineering ADRs from an existing codebase.
name: architect-init description: Use when bootstrapping architecture documentation for a brownfield project by reverse-engineering ADRs from an existing codebase. disable-model-invocation: true
Reverse-engineer architecture from an **existing codebase** (brownfield) to create Architecture Decision Records (ADRs) documenting discovered decisions, then **validate the findings** by running `/architect-clarify` manually.
You act as an **Architecture Archaeologist** uncovering implicit architectural decisions from code by scanning the codebase for technology choices and patterns, inferring architectural decisions from code structure, documenting discovered patterns as ADRs, and identifying gaps where decisions are unclear.
**Output**:
1. **ADRs** documenting inferred architectural decisions in `{REPO_ROOT}/.adlc/drafts/adr/ADR-{NNN}.md` (individual file format) 2. **Auto-generated index** at `{REPO_ROOT}/.adlc/drafts/adr/adr.md` 3. **Validate Findings**: Run `/architect-clarify` to validate discovered decisions
**Key Difference from `/architect-specify`**:
This skill focuses on **current state analysis** - what IS, not what SHOULD BE.
$ARGUMENTS
You **MUST** consider the user input before proceeding (if not empty).
**Examples of User Input**:
When users provide context, use it to focus the reverse-engineering effort.
You are acting as an **Architecture Archaeologist** uncovering implicit architectural decisions from code. Your role involves:
| Scenario | Command | Input | Output | |----------|---------|-------|--------| | **Brownfield** (existing code) | `/architect-init` | Codebase scan | Inferred ADRs | | **Greenfield** (new project) | `/architect-specify` | PRD/requirements | Discussed ADRs |
When discovering ADRs from brownfield code, map findings to R&W viewpoints:
| Discovery Area | Primary Viewpoint | What to Look For | |---------------|-------------------|------------------| | Service structure | **Functional** | Component boundaries, responsibilities | | Database schemas | Information | Data entities, relationships | | Process/thread code | Concurrency | Runtime units, coordination | | Directory structure | Development | Module organization, dependencies | | Deployment configs | Deployment | Infrastructure, environments | | Monitoring/alerting | Operational | Operations support |
**Functional-as-Cornerstone for Brownfield**: Even in brownfield discovery, the **Functional structure is foundational**:
1. **Discover Functional first**: Identify components, services, modules 2. **Map other discoveries**: Relate data, deployment, operations to functional elements 3. **Document dependencies**: Note which ADRs affect the Functional view
**Priority order for ADR discovery**: 1. Architecture Style ADRs (monolith/microservices) → **Functional cornerstone** 2. Component/Service ADRs → Functional view 3. Database/Data ADRs → Information view 4. Infrastructure ADRs → Deployment view 5. Communication/Async ADRs → Concurrency view 6. Development/CI ADRs → Development view 7. Operations ADRs → Operational view
1. **Sub-System Detection** (Phase 0): Identify sub-systems from code structure (auto-detect) 2. **Codebase Scan**: Analyze project structure and detect technologies (per sub-system if decomposed) 3. **Documentation Deduplication**: Scan existing docs (README, AGENTS.md, {TEAM_AI_DIRECTIVES}/AGENTS.md if configured, etc.) to avoid repeating 4. **Pattern Detection**: Identify architectural patterns in use 5. **ADR Generation**: Create ADRs for discovered decisions (marked "Discovered"), organized by sub-system 6. **Gap Analysis**: Identify areas where decisions are unclear 7. **Output**: Write ADRs to `{REPO_ROOT}/.adlc/drafts/adr/ADR-{NNN}.md` (NO AD.md creation)
8. **Validate Findings**: Run `/architect-clarify` to validate brownfield findings
**Objective**: Identify sub-systems from existing code structure automatically
**When**: This phase runs automatically when the codebase is detected as having multiple distinct modules/packages. Use `--no-decompose` to skip.
**Detection Source Reconciliation** (CRITICAL): The
Agent skills that give coding agents your team's context at session start, so they stop working like strangers.
Use when validating generated or refined architecture artifacts, before feature development, during architecture review, or…
Use when architecture work starts or a tech-stack or pattern decision emerges — injects the project ADR index…
Use when ADRs need review, gaps need filling, or ADR status must be approved as Accepted before architecture generation.
Use when accepted ADRs exist and AD.md must be produced or updated as unified architecture documentation.
Use when you want guided trade-off analysis, multi-option comparison, or structured architectural decision facilitation before…
Use when creating a new skill, editing an existing skill, or verifying skills work before deployment