Logo von Architect Init

Architect Init

Organisation
tikalk
architect-init

Use when bootstrapping architecture documentation for a brownfield project by reverse-engineering ADRs from an existing codebase.

Übersicht

Herausgebertikalk
Repositoryadlc-team-skills
Skill-Namearchitect-init
Sterne
144
Forks
2
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von tikalk auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Architect Init in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/tikalk/adlc-team-skills/tree/main/skills/architect/architect-init
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tikalk/adlc-team-skills.git /tmp/adlc-team-skills
mkdir -p .claude/skills
cp -r /tmp/adlc-team-skills/skills/architect/architect-init .claude/skills/architect-init
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Architect Init in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Architect Init automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Architect Init nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

architect-init

What this skill does

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:

  • /architect-init (this skill) = Discovers what's already implemented in code
  • /architect-specify = Explores new possibilities for greenfield projects

This skill focuses on current state analysis - what IS, not what SHOULD BE.

When to use

  • Brownfield projects: Existing code without architecture docs
  • Legacy modernization: Understanding current state before changes
  • Team onboarding: Quickly documenting implicit decisions
  • Technical debt assessment: Identifying undocumented patterns

When NOT to use

  • Greenfield projects: Use /architect-specify for new projects
  • Architecture exists: If AD.md exists, use /architect-clarify to refine
  • Feature-level: Feature architecture (if Spec Kit extension is also installed)

Process

User Input

text
$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Examples of User Input:

  • "Django monolith with PostgreSQL, React frontend, AWS deployment"
  • "Node.js microservices with MongoDB and RabbitMQ"
  • "Legacy Java application, focus on understanding data layer"
  • Empty input: Scan entire codebase and infer architecture

When users provide context, use it to focus the reverse-engineering effort.

Flags

  • --adr-heuristic HEURISTIC: ADR generation strategy

    • surprising (default): Skip obvious ecosystem defaults, document only surprising/risky decisions
    • all: Document all discovered decisions
    • minimal: Only high-risk decisions
  • --no-decompose: Disable automatic sub-system detection from code structure (default: auto-detect if multiple modules detected)

Role & Context

You are acting as an Architecture Archaeologist uncovering implicit architectural decisions from code. Your role involves:

  • Scanning codebase for technology choices and patterns
  • Inferring architectural decisions from code structure
  • Documenting discovered patterns as ADRs
  • Identifying gaps where decisions are unclear
Brownfield vs Greenfield
ScenarioCommandInputOutput
Brownfield (existing code)/architect-initCodebase scanInferred ADRs
Greenfield (new project)/architect-specifyPRD/requirementsDiscussed ADRs
Rozanski & Woods Alignment

When discovering ADRs from brownfield code, map findings to R&W viewpoints:

Discovery AreaPrimary ViewpointWhat to Look For
Service structureFunctionalComponent boundaries, responsibilities
Database schemasInformationData entities, relationships
Process/thread codeConcurrencyRuntime units, coordination
Directory structureDevelopmentModule organization, dependencies
Deployment configsDeploymentInfrastructure, environments
Monitoring/alertingOperationalOperations 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

Outline

  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)
    • After writing all ADRs, the setup script auto-generates adr.md index
  8. Validate Findings: Run /architect-clarify to validate brownfield findings

Execution Steps

Phase 0: Sub-System Detection (Brownfield)

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 setup script may report "No distinct sub-systems detected from directory structure" while your AI analysis identifies sub-systems through code patterns (import relationships, technology boundaries, domain logic). When this occurs:

  • TRUST your AI analysis over the script output
  • ALWAYS execute Step 4 with your identified sub-systems
  • NEVER default to monolithic analysis when you've identified sub-systems through ANY method
  • The threshold logic applies to ALL detected sub-systems, regardless of detection source
Step 1: Directory Structure Analysis

Analyze the codebase for distinct sub-systems based on directory structure:

PatternLikely Sub-System
src/auth/Authentication sub-system
src/users/User management sub-system
services/payment/Payment sub-system
modules/inventory/Inventory sub-system
apps/api/, apps/web/Monorepo with separate apps
lib/core/, lib/shared/Shared libraries (not a sub-system)
Step 2: Package/Module Detection

Detect sub-systems from package/module structures:

PatternDetection MethodSub-System Evidence
Node.js workspacespackage.json workspacesMultiple packages = multiple sub-systems
Python namespaces__init__.py hierarchyMultiple top-level packages
Go modulesgo.mod + directoriesMultiple directories under cmd/
Maven/Gradlepom.xml modulesMultiple modules in multi-module project
Docker servicesdocker-compose servicesEach service = sub-system
Step 3: Database Schema Analysis

If database is accessible, detect sub-systems from schema:

PatternEvidence
Table prefixesauth_, user_, payment_ tables = separate domains
PostgreSQL schemasauth., payments. schema separation
Separate databasesMultiple databases in docker-compose
Step 4: Sub-System Proposal (Interactive) - MANDATORY if sub-systems identified

Present detected sub-systems to user for confirmation:

markdown
## Detected Sub-Systems

I've identified the following sub-systems from your codebase:

| # | Sub-System | Detection Method | Evidence |
|---|------------|-----------------|----------|
| 1 | **auth** | Directory + Module | src/auth/, auth/ package |
| 2 | **users** | Directory | src/users/, services/user/ |
| 3 | **payments** | Directory + Docker | services/payment/, payment service in docker-compose |
| 4 | **inventory** | Directory | src/inventory/, modules/stock/ |

### Questions for Confirmation:

1. **Are these sub-systems correct?** [Y/n]
2. **Should any sub-systems be merged?** (e.g., auth + users → identity)
3. **Should any sub-systems be split?** (e.g., payments → billing + subscriptions)
4. **Any missing sub-systems?** (e.g., analytics, reporting)

**Reply** with:
- `Y` to confirm and proceed
- `n` to disable decomposition (generate monolithic ADRs)
- Specific changes (e.g., "merge 1+2", "split 3", "add Notifications")

CRITICAL: If you have identified ANY sub-systems through ANY method (script detection, AI analysis of code patterns, or user input), you MUST execute this step.

  • Do NOT proceed to Phase 1 as "monolithic" if sub-systems exist
  • Do NOT ignore sub-systems detected through AI analysis just because the script reported "none detected"
  • You MUST get user confirmation when 4+ sub-systems are identified

Failure to follow this step invalidates the entire ADR discovery process.

Step 5: Decomposition Decision

Based on user response:

ResponseAction
Y / EnterProceed with detected sub-systems
nSkip decomposition, generate monolithic ADRs
ModificationsAdjust sub-systems, then proceed
Empty/DefaultAuto-proceed if ≤3 sub-systems, ask if >3

Threshold Logic Enforcement (MANDATORY - applies to ALL detected sub-systems, regardless of source):

Sub-System CountRequired ActionCan Skip User Confirmation?
0Proceed as monolithic (no decomposition)Yes
1-3Show summary, auto-approve allowedYes
4-6MUST show summary and ask user confirmationNO
>6MUST suggest grouping and MUST ask confirmationNO

Enforcement Rules:

  1. If you identified sub-systems through AI analysis but the script reported "none detected" → Apply threshold logic to YOUR identified sub-systems
  2. If threshold is 4+ → You MUST NOT proceed without user confirmation
  3. If you skip this logic → The ADR generation is invalid and may produce incorrect architecture
  4. Self-check before Phase 1: Did I present Step 4? Did I apply threshold logic? If 4+ sub-systems, did I get confirmation?
Step 6: Output

After confirmation, output structured sub-system data:

json
{
  "decomposition": "enabled",
  "subsystems": [
    {"id": "auth", "name": "Auth", "detection_method": "directory", "evidence": "src/auth/"},
    {"id": "users", "name": "Users", "detection_method": "directory", "evidence": "src/users/"},
    {"id": "payments", "name": "Payments", "detection_method": "docker", "evidence": "payment service in docker-compose"}
  ],
  "next_phase": "Codebase Analysis (per sub-system)"
}

If decomposition disabled:

json
{
  "decomposition": "disabled",
  "reason": "user_requested",
  "next_phase": "Codebase Analysis (monolithic)"
}

Phase 1: Codebase Analysis

Objective: Discover what technologies and patterns are in use

Note: If sub-system decomposition is enabled (Phase 0), analyze each sub-system separately to provide focused insights.

  1. Run Setup Script:

    • Execute {REPO_ROOT}/.agents/skills/architect-clarify/scripts/bash/setup-architect.sh (Requires the architect-clarify skill: adlc-cli skills add tikalk/adlc-team-skills --skill architect-clarify). to initialize architecture files
    • Script scans codebase and outputs structured findings
    • Pass --no-decompose if decomposition was disabled
    • If decomposed: Script outputs sub-system breakdown for targeted analysis
  2. Technology Detection (Per Sub-System):

    IndicatorTechnology CategoryFiles to Check
    package.jsonNode.js ecosystemDependencies, scripts
    requirements.txt / pyproject.tomlPython ecosystemDependencies
    pom.xml / build.gradleJVM ecosystemDependencies
    Cargo.tomlRustDependencies
    go.modGoDependencies
    DockerfileContainerizationBase images, stages
    docker-compose.ymlContainer orchestrationServices, networks
    *.tf / *.tfvarsTerraform/IaCInfrastructure
    kubernetes/*.yamlKubernetesDeployment configs
    .github/workflows/*GitHub ActionsCI/CD
  3. Framework Detection:

    PatternFrameworkEvidence
    from django importsDjangoPython web
    @SpringBootSpring BootJava web
    import expressExpress.jsNode.js web
    import { Component }React/Angular/VueFrontend
    from fastapiFastAPIPython API
  4. Database Detection:

    EvidenceDatabase Type
    PostgreSQL connection stringsPostgreSQL
    MongoDB/mongoose importsMongoDB
    Redis client importsRedis cache
    ORM migrationsRelational DB
    DynamoDB SDK usageAWS DynamoDB
Phase 2: Pattern Recognition

Objective: Identify architectural patterns from code structure

Architecture Style Detection
PatternEvidenceADR Topic
MonolithSingle deployable, shared databaseADR: System Architecture Style
MicroservicesMultiple services, service discoveryADR: System Architecture Style
Modular MonolithSingle deploy, module boundariesADR: System Architecture Style
Event-DrivenMessage queue usage, event handlersADR: Communication Pattern
ServerlessLambda functions, managed servicesADR: Deployment Model
Code Organization Detection
PatternEvidence
Layeredcontrollers/, services/, repositories/
Feature-Basedfeatures/, modules/ per domain
Clean Architecturedomain/, application/, infrastructure/
Hexagonalports/, adapters/
API Style Detection
PatternEvidence
RESTRoute decorators, HTTP verbs, resource URLs
GraphQLSchema files, resolvers, gql imports
gRPC.proto files, gRPC client/server setup
WebSocketSocket.io, WebSocket handlers
Phase 3: Documentation Deduplication

Objective: Scan existing docs to avoid repeating documented information

Scan for:

  • AGENTS.md - Project context, overview
  • {TEAM_AI_DIRECTIVES}/AGENTS.md - Team-wide agent usage instructions (if configured)
  • README.md - Tech stack, project description
  • CONTRIBUTING.md - Development guidelines
  • AD.md or docs/architecture.md - Existing architecture
  • LICENSE - Legal context

Deduplication Rules:

FindingAction
Tech stack in READMEReference README in ADR, don't duplicate
Architecture existsAuto-merge or offer update vs. create new
Guidelines in CONTRIBUTINGReference in Development View
Context in AGENTS.mdLink from Context View
Team directives AGENTS.mdReference for team-wide agent instructions

Process:

  1. Run {REPO_ROOT}/.agents/skills/architect-clarify/scripts/bash/setup-architect.sh (Requires the architect-clarify skill: adlc-cli skills add tikalk/adlc-team-skills --skill architect-clarify). which calls scan_existing_docs()
  2. Parse findings from JSON output
  3. For each finding, determine: Skip ADR / Reference existing / Document new
  4. Report: "X decisions covered by existing docs, Y new ADRs created"
Phase 4: ADR Generation

Objective: Document discovered decisions as ADRs

For each discovered architectural decision:

  1. Identify the Decision:

    • What technology/pattern was chosen?
    • What alternatives were available when this was built?
    • What forces likely drove this decision?
  2. Create ADR Entry (MADR 3.0.0 — see ../templates/adr-template.md):

markdown
---
status: discovered  # inferred from codebase (brownfield)
date: YYYY-MM-DD
decision-makers: [Legacy/Inferred]
consulted: []
informed: []
sub-system: System
---

# {Discovered Decision}

## Context and Problem Statement
[Inferred problem statement based on code patterns]

**Evidence Found**:
* [File/pattern evidence 1]
* [File/pattern evidence 2]

## Decision Drivers
* {inferred driver 1}
* {inferred driver 2}

## Considered Options
* {Likely Alternative}
* {Discovered choice}

## Decision Outcome
Chosen option: "{Discovered choice}", because {inferred rationale from implementation}.

### Consequences
* Good, because {benefit visible in codebase}
* Bad, because {trade-off inherent to this choice}
* Bad, because {risk if this decision is not well understood}

### Confirmation
{How compliance can be confirmed in the codebase}

## Pros and Cons of the Options
### {Likely Alternative}
* Good, because {argument}
* Bad, because {argument}
← DO NOT fabricate rejection rationale - we don't know why it wasn't chosen

## More Information
**Confidence Level**: [HIGH/MEDIUM/LOW] - [Explanation of confidence in inference]
  1. ADR Categories to Generate (apply surprise-value heuristic):

    Skip if obvious (heuristic: surprising):

    • PostgreSQL for relational data → Covered by ecosystem default
    • React for SPA frontend → Standard framework choice
    • Docker for containerization → Conventional choice

    Document as ADRs:

    • ADR-001: System Architecture Style (monolith vs microservices)
    • ADR-002: Database Choice (only if non-obvious for context)
    • ADR-003: API Style (REST vs GraphQL vs gRPC)
    • ADR-004: Frontend Framework (only if unconventional)
    • ADR-005: Deployment Platform (serverless vs traditional)
    • ADR-006: CI/CD Approach (GitHub Actions vs Jenkins)
    • Additional: Any custom/in-house solutions, unusual patterns, risky choices
Phase 5: Quality Requirements Detection

Objective: Detect which R&W perspectives apply from codebase evidence

Scan codebase for quality requirement indicators:

EvidenceDetected Perspective
Health checks, circuit breakers, retry logicAvailability
Plugin systems, feature flags, extension pointsEvolution
GDPR/HIPAA comments, audit logging, consent trackingRegulation
ARIA attributes, screen reader supportAccessibility
i18n files, locale handling, translation keysInternationalization
Multi-region configs, geo-routing, CDN setupLocation
Extensive UI tests, UX research artifactsUsability
Resource constraints in README, limited CI runnersDevelopment Resource

Present detected perspectives for confirmation:

markdown
## Quality Requirements Detected

Based on codebase analysis, the following quality perspectives may apply:

| Perspective | Evidence Found | Include? |
|-------------|----------------|----------|
| Security | Always recommended | ✓ (default) |
| Performance | Always recommended | ✓ (default) |
| Availability | Circuit breakers found | [Y/N] |
| Evolution | Feature flags found | [Y/N] |
| Regulation | GDPR comments found | [Y/N] |
| Accessibility | Not detected | [Y/N] |
| Internationalization | i18n files found | [Y/N] |
| Location | Multi-region config | [Y/N] |
| Usability | UI tests found | [Y/N] |
| Development Resource | Not detected | [Y/N] |

Please confirm which perspectives to document.

Store selected perspectives in state for /architect-implement.

  1. Sub-System Organization (if Phase 0 decomposition enabled):

    Structure ADRs by sub-system in the output file:

    markdown
    # Architecture Decision Records
    
    ## ADR Index
    
    | ID | Sub-System | Decision | Status | Date | Confidence |
    |----|------------|----------|--------|------|------------|
    | ADR-001 | System | Monolithic Architecture | Discovered | 2026-02-26 | HIGH |
    | ADR-002 | Auth | JWT Authentication | Discovered | 2026-02-26 | HIGH |
    | ADR-003 | Payments | Stripe Integration | Discovered | 2026-02-26 | MEDIUM |
    
    ---
    
    ## System-Level ADRs
    
    ### ADR-001: Monolithic Architecture
    [Full ADR content...]
    
    ---
    
    ## Auth Sub-System ADRs
    
    ### ADR-002: JWT Authentication
    [Full ADR content...]
    
    ---
    
    ## Payments Sub-System ADRs
    
    ### ADR-003: Stripe Integration
    [Full ADR content...]
    • Mark each ADR with its parent sub-system in the index
    • Add section headers for each sub-system
    • Document cross-cutting patterns (e.g., shared database) as System-Level
Phase 6: Gap Analysis

Objective: Identify areas where decisions are unclear

After scanning, report:

markdown
## Architecture Discovery Report

### Technologies Detected
| Category | Technology | Confidence | Evidence |
|----------|------------|------------|----------|
| Backend | Django 4.2 | HIGH | requirements.txt, app structure |
| Database | PostgreSQL | HIGH | connection strings, migrations |
| Frontend | React 18 | MEDIUM | package.json, JSX files |
| Cache | Redis | HIGH | redis imports, docker-compose |

### Documentation Deduplication
✓ README.md: Tech stack documented (lines 20-45)
  → Referenced in Context View, skipping tech stack ADRs
✓ CONTRIBUTING.md: Development workflow documented
  → Referenced in Development View 3.5

### ADRs Generated (Surprising/Risky decisions only)
| ID | Decision | Confidence | Why Documented |
|----|----------|------------|----------------|
| ADR-001 | Monolithic Django architecture | HIGH | Architecture style choice |
| ADR-002 | Custom JWT authentication | MEDIUM | Security risk, non-standard |
| ADR-003 | Microservices for small team | HIGH | Scale mismatch, surprising |

### Skipped (Covered by existing docs or obvious)
| Decision | Reason |
|----------|--------|
| PostgreSQL choice | Ecosystem default + README covers |
| React frontend | Standard framework + README covers |
| Docker containerization | Conventional choice |

### Unclear Areas (Need Human Input)
| Area | Question | Suggestion |
|------|----------|------------|
| Auth | OAuth2 or custom JWT? | Found JWT usage, need confirmation |
| Caching | Redis strategy unclear | Cache-aside pattern inferred |
| Scaling | Horizontal scaling setup? | No auto-scaling config found |

### Recommended Clarifications
1. Run `/architect-clarify` to refine ADRs with human input
2. Focus on [specific unclear area]
3. Consider documenting [undocumented pattern]
Phase 7: Output Generation

Objective: Write discovered ADRs to file (NO AD.md creation)

CRITICAL: ADR status MUST be "Discovered" when generated by this skill. NEVER set status to "Accepted" directly. The approval workflow is: init (Discovered) → clarify (review) → clarify Phase 5.5 (Accepted) → implement

If the user explicitly asks to accept ADRs during init, direct them to run /architect-clarify instead.

Before Writing - Check for Existing ADRs:

  1. Check if hybrid ADR directory exists: {REPO_ROOT}/.adlc/drafts/adr/
  2. If directory exists:
    • Read existing ADRs from individual files
    • DO NOT overwrite or delete existing ADRs
    • Write new discoveries as new ADR-{NNN}.md files
    • Report: "Found N existing ADRs, adding M new discoveries"
  3. If directory doesn't exist: The setup script will create it

Write ADRs:

  1. Create {REPO_ROOT}/.adlc/drafts/adr/ADR-{NNN}.md for each discovered ADR
  2. Mark ADRs as "Discovered (Inferred)" status ← USE THIS STATUS ONLY
  3. Use "Common Alternatives" section with neutral trade-offs (no "Rejected because")
  4. Note confidence level for each ADR
  5. Tag assumptions that need validation

DO NOT Create AD.md:

  • Architecture Description will be generated later via /architect-implement
  • Only AFTER ADRs are validated through clarification

Generate Summary:

  • Technologies discovered
  • ADRs created with confidence levels
  • Existing ADRs preserved (if any)
  • Gaps identified
  • Assumptions made (to be validated in clarify phase)
Phase 8: Validate with Clarify

Objective: Validate brownfield findings with user

After generating ADRs, run /architect-clarify with brownfield context to validate:

Questions Clarify Should Ask (Brownfield-Specific):

Question TypeExample
Current State Validity"I detected microservices in docker-compose.yml - is this still your current approach?"
Decision Rationale"PostgreSQL is used - was this chosen for specific requirements or inherited?"
Team Context"Based on git history, team appears small - are current architecture decisions appropriate?"
Technical Debt"Found custom authentication - are you considering migration to OAuth/OIDC?"
Migration Plans"Legacy patterns detected in X module - any plans to modernize?"
Deprecated Patterns"Monolithic deployment with hints of service separation - is microservices migration planned?"

Context Passed to Clarify:

json
{
  "source": "brownfield",
  "tech_stack_detected": ["detected technologies"],
  "inferred_decisions": ["list of ADRs with confidence levels"],
  "assumptions": ["things that need validation"],
  "files_analyzed": "count"
}

Run /architect-clarify to refine ADRs based on your input, then run /architect-implement to generate the full AD.md.

Key Rules

Evidence-Based Documentation
  • Only document what's found in code - don't invent decisions
  • Cite specific evidence for each ADR
  • Mark confidence levels honestly
  • Flag uncertainties explicitly
Confidence Levels
LevelCriteria
HIGHMultiple clear evidence sources, unambiguous choice
MEDIUMSome evidence, but could be interpreted differently
LOWLimited evidence, significant uncertainty
Non-Destructive
  • Don't overwrite existing ADRs without user approval
  • Merge intelligently with existing documentation
  • Preserve manual additions to architecture files
No Fabricated Rejection Rationale
  • NEVER invent "Rejected because" reasons for reverse-engineered ADRs
  • Use "Common Alternatives" with neutral "Trade-offs" framing instead
  • Only document alternatives that were likely considered
  • Be honest: "We don't know why X wasn't chosen" is acceptable
Interactive When Needed
  • For LOW confidence discoveries, ask user for confirmation
  • For contradictory evidence, present options
  • For gaps, suggest clarification questions
Sub-System Decomposition
  • Auto-detect from code: Analyze directory structure, packages, services automatically
  • Interactive confirmation: Always confirm sub-system breakdown with user
  • Balanced granularity: Aim for 3-7 sub-systems; avoid over-decomposition
  • Clear evidence: Cite specific directories/modules as evidence for each sub-system
  • Per-sub-system analysis: Run pattern detection per sub-system for focused ADRs
  • Cross-cutting patterns: Detect and document system-wide patterns separately
  • Use --no-decompose: Skip decomposition for simple/small codebases

Workflow Guidance & Transitions

After /architect-init

Required: Run /architect-clarify to validate brownfield findings.

After clarification completes:

  1. Review Validated ADRs: Check {REPO_ROOT}/.adlc/drafts/adr/adr.md for accuracy
  2. Approve ADRs: Run /architect-clarify Phase 5.5 to change status to "Accepted"
  3. Run /architect-implement: Generate full AD.md from Accepted ADRs
Complete Brownfield Flow
text
/architect-init "Node.js API, team of 2"
    ↓
[Scan codebase] → Detect technologies, patterns
    ↓
[Generate ADRs] → Write to {REPO_ROOT}/.adlc/drafts/adr/ADR-{NNN}.md (marked "Discovered")
    ↓
[Run /architect-clarify] → Ask to validate decisions
    ↓
[Clarify asks] → "Is microservices decision still valid?"
                 "Custom auth detected - considering OAuth?"
    ↓
[Approve ADRs] → Phase 5.5 to change status to "Accepted"
    ↓
[Run /architect-implement] → Generate AD.md from Accepted ADRs
    ↓
[Generate AD.md] → Full architecture description

Context

$ARGUMENTS

Next Steps

After init completes, run /architect-clarify to validate the discovered ADRs and approve them for implementation.

Verification

  • ADRs written to {REPO_ROOT}/.adlc/drafts/adr/ADR-{NNN}.md with status Discovered (Inferred).
  • Auto-generated adr.md index exists in {REPO_ROOT}/.adlc/drafts/adr/.
  • Gap analysis report identifies unclear areas and recommended clarifications.
  • Sub-system decomposition confirmed (or disabled) per threshold rules.
  • No existing ADRs were overwritten without explicit approval.

Häufig gestellte Fragen

Was macht der KI-Skill Architect Init?

Use when bootstrapping architecture documentation for a brownfield project by reverse-engineering ADRs from an existing codebase.

Warum Architect Init in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Architect Init besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Architect Init in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/tikalk/adlc-team-skills/tree/main/skills/architect/architect-init ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Architect Init nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Architect Init verwenden?

So viele Sie möchten. In TypingMind können Sie Architect Init mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Architect Init kostenlos?

Ja. Der Skill wird von tikalk auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇