SkilVaultSign inStart free

Catalogue / architect-specify

architect-specify

MITSignedUse when you want guided trade-off analysis, multi-option comparison, or structured architectural decision facilitation before documenting. Class boots only suggest capture — they never write drafts; running this skill writes the lightweight ADR draft.
---
name: architect-specify
description: Use when you want guided trade-off analysis, multi-option comparison, or structured architectural decision facilitation before documenting. Class boots only suggest capture — they never write drafts; running this skill writes the lightweight ADR draft.
disable-model-invocation: true
---

architect-specify

> Scope rule: scripts stay skill-local — never source a script from another skill. For another skill's operations, invoke that skill (e.g. architect-clarify, product-clarify, team-boot) via the Skill tool; for its documents, follow the Requires line. scripts/ and references/ below are relative to this skill. {REPO_ROOT} denotes the project root (where .adlc/ lives).

Requires: the architect-clarify skill for architecture setup, ADR index generation, and diagram validation: adlc-cli skills add tikalk/adlc-team-skills --skill architect-clarify

What this skill does

Transform a PRD (Product Requirements Document) or high-level system description into well-documented Architecture Decision Records (ADRs) through interactive exploration and trade-off analysis.

Key Insight: Unlike direct architecture generation, this skill prioritizes discussion and exploration before committing to formal documentation. The goal is to surface trade-offs, validate assumptions, and make informed decisions collaboratively.

You act as a Solutions Architect facilitating an architectural discovery session. Your role involves:

  • Exploring possible solutions and their trade-offs
  • Asking clarifying questions to surface hidden requirements
  • Proposing options with clear consequences
  • Documenting decisions in MADR format once consensus is reached

When to use

> Note: Class boots detect decisions and suggest this skill — running > it is how the capture happens (it writes the lightweight draft to > .adlc/drafts/). Use it for interactive deep-dive exploration > — when you want guided trade-off analysis, multi-option comparison, or > structured decision facilitation before documenting.

  • New projects: Starting system architecture from scratch
  • Major changes: Significant architectural shifts requiring new decisions
  • Documentation: Capturing verbal decisions as formal ADRs
  • Team onboarding: Walking through architectural rationale with new members

When NOT to use:

  • Brownfield projects: Use /architect-init instead to reverse-engineer from code
  • Minor updates: Use /architect-clarify for ADR refinements
  • Feature-level: Feature architecture (if Spec Kit extension is also installed)

Process

User Input

$ARGUMENTS

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

Examples of User Input:

  • "B2B SaaS platform for supply chain management with real-time inventory tracking"
  • "Mobile-first e-commerce app with offline support and social features"
  • "Legacy system modernization: migrate from monolith to microservices"
  • "IoT platform for smart home devices with edge computing requirements"

When users provide PRD context like this, use it to drive the architectural exploration conversation.

Flags

  • --views VIEWS: Architecture views to include in final AD.md
  • core (default): Context, Functional, Information, Development, Deployment
  • all: All 7 views including Concurrency and Operational
  • Custom: comma-separated (e.g., concurrency,operational)
  • --adr-heuristic HEURISTIC: ADR generation strategy
  • surprising (default): Skip obvious ecosystem defaults
  • all: Document all decisions discussed
  • minimal: Only high-risk/unconventional decisions
  • --no-decompose: Disable automatic sub-system decomposition (default: auto-decompose if multiple domains detected)

Role & Context

You are acting as a Solutions Architect facilitating an architectural discovery session. Your role involves:

  • Exploring possible solutions and their trade-offs
  • Asking clarifying questions to surface hidden requirements
  • Proposing options with clear consequences
  • Documenting decisions in MADR format once consensus is reached
Rozanski & Woods Alignment

When creating ADRs, consider how they map to R&W viewpoints:

| ADR Topic | Primary Viewpoint | Impact on Other Views | |-----------|-------------------|----------------------| | Architecture Style | Functional (cornerstone) | Shapes all other views | | Database Choice | Information | Affects Functional, Deployment | | API Style | Functional | Affects Information, Development | | Auth Mechanism | Functional | Affects all views (security perspective) | | Deployment Platform | Deployment | Affects Development, Operational | | Communication Pattern | Functional, Concurrency | Affects Information, Deployment |

Functional-as-Cornerstone Principle: > "The Functional view is the cornerstone of most ADs... It usually drives the shape of other system structures." — Rozanski & Woods

During exploration, prioritize decisions that affect the Functional view:

  1. System architecture style (monolith/microservices/serverless)
  2. Component responsibilities and boundaries
  3. Interface contracts between components
  4. Integration patterns

These decisions drive all subsequent architectural views.

Two-Level Architecture System

| Level | Location | ADR File | Architecture Description | |-------|----------|----------|--------------------------| | System | Main branch | {REPO_ROOT}/.adlc/drafts/adr/ | {REPO_ROOT}/AD.md |

This command operates at the System level, creating ADRs in {REPO_ROOT}/.adlc/drafts/adr/ADR-{slug}.md.

IMPORTANT - Path Resolution:

  • The setup script outputs REPO_ROOT - use this to determine the correct paths
  • REPO_ROOT is found by searching upward from current directory for .adlc directory
  • NEVER use relative paths like .adlc/drafts/adr.md - always use {REPO_ROOT}/.adlc/drafts/adr/ADR-{slug}.md
  • The setup script auto-generates adr.md and the adr.md index after ADR writes
  • When running from a subdirectory (e.g., a subproject directory), .adlc may be in the parent directory

Outline

Given the PRD input, execute this workflow:

  1. Sub-System Detection (Phase 0): Decompose PRD into sub-systems (auto-detect if multiple domains)
  2. Parse PRD Context: Extract key requirements, constraints, and quality attributes (per sub-system if decomposed)
  3. Load Governance: Check {REPO_ROOT}/docs/adlc/memory/constitution.md (legacy {REPO_ROOT}/.adlc/memory/constitution.md fallback — dual-read) for architectural constraints
  4. Exploration Phase: Interactive discussion to surface trade-offs and options (per sub-system)
  5. Decision Phase: Document decisions as ADRs with full rationale (organized by sub-system)
  6. Output: Write ADRs to {REPO_ROOT}/.adlc/drafts/adr/ADR-{slug}.md with sub-system organization

NOTE: This is an interactive command. You will engage the user in conversation before finalizing ADRs.

Execution Steps

Phase 0: Sub-System Detection (Greenfield)

Objective: Decompose large PRD into manageable sub-systems automatically

When: This phase runs automatically when the PRD is detected as having multiple distinct domains. Use --no-decompose to skip.

Detection Source Reconciliation (CRITICAL): Sub-system detection in greenfield projects comes from PRD analysis (domain keywords, data boundaries) rather than code structure. When analyzing the PRD:

  • Identify domains from keywords, requirements, and user flows
  • ALWAYS execute Step 3 when you identify 4+ sub-systems
  • NEVER default to monolithic if the PRD describes multiple distinct domains
  • The threshold logic applies regardless of whether domains come from explicit PRD sections or inferred from requirements
Step 1: Domain Analysis

Analyze the PRD for distinct business domains and functional areas:

| Domain Category | Typical Keywords | |-----------------|------------------| | Authentication | login, auth, oauth, sso, permissions, roles, access control | | User Management | profile, registration, preferences, settings, account | | Payments | billing, checkout, subscription, invoicing, pricing | | Orders | cart, checkout, order management, fulfillment | | Inventory | stock, warehouse, products, catalog, sku | | Notifications | email, sms, push, alerts, webhooks | | Analytics | metrics, reporting, dashboards, data | | Search | search, indexing, elasticsearch | | Media | upload, images, video, cdn | | Messaging | chat, realtime, websocket |

Step 2: Boundary Detection

Identify boundaries between sub-systems based on:

  1. Data Ownership: What data belongs to which domain?
  2. Team Boundaries: Are different teams responsible for different areas?
  3. Deployment Independence: Can sub-systems be deployed separately?
  4. Integration Points: How do sub-systems communicate?
Step 3: Sub-System Proposal (Interactive) - MANDATORY if sub-systems identified

Present detected sub-systems to user for confirmation:

## Detected Sub-Systems

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

| # | Sub-System | Key Domains | Rationale |
|---|------------|-------------|-----------|
| 1 | **Auth** | Authentication, Authorization | Core security boundary |
| 2 | **Users** | User Management, Profiles | User data ownership |
| 3 | **Payments** | Billing, Subscriptions | Financial domain |
| 4 | **Inventory** | Products, Stock | Physical goods management |

### Questions for Confirmation:

1. **Are these sub-systems correct?** [Y/n]
2. **Should any sub-systems be merged?** (e.g., Auth + Users)
3. **Should any sub-systems be split?** (e.g., Payments into Billing + Subscriptions)
4. **Any missing sub-systems?** (e.g., Analytics, Search)

**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 PRD analysis, you MUST execute this step.

  • Do NOT proceed to Phase 1 as "monolithic" if the PRD describes distinct domains
  • You MUST get user confirmation when 4+ sub-systems are identified from the PRD
  • Domains inferred from requirements are just as valid as explicitly stated ones

Failure to follow this step results in incorrect ADR scope and architecture.

Step 4: Decomposition Decision

Based on user response:

| Response | Action | |----------|--------| | Y / Enter | Proceed with detected sub-systems | | n | Skip decomposition, generate monolithic ADRs | | Modifications | Adjust sub-systems, then proceed | | Empty/Default | Auto-proceed if ≤3 sub-systems, ask if >3 |

Threshold Logic Enforcement (MANDATORY - applies to ALL detected sub-systems from PRD analysis):

| Sub-System Count | Required Action | Can Skip User Confirmation? | |-----------------|-----------------|---------------------------| | 0 | Proceed as monolithic (no decomposition) | Yes | | 1-3 | Show summary, auto-approve allowed | Yes | | 4-6 | MUST show summary and ask user confirmation | NO | | >6 | MUST suggest grouping and MUST ask confirmation | NO |

Enforcement Rules:

  1. Domains inferred from PRD requirements count toward the threshold
  2. If threshold is 4+ → You MUST NOT proceed without user confirmation
  3. If you skip this logic → The ADRs will not accurately reflect the PRD scope
  4. Self-check before Phase 1: Did I present Step 3? Did I apply threshold logic? If 4+ sub-systems, did I get confirmation?
Step 5: Output

After confirmation, output structured sub-system data:

{
  "decomposition": "enabled",
  "subsystems": [
    {"id": "auth", "name": "Auth", "domains": ["Authentication", "Authorization"], "rationale": "Security boundary"},

Preview shortened. The full SKILL.md is in the pack.