Logo van Architect Clarify

Architect Clarify

Organisatie
tikalk
architect-clarify

Use when ADRs need review, gaps need filling, or ADR status must be approved as Accepted before architecture generation.

Add to TypingMind

Overzicht

Uitgevertikalk
Repositoryadlc-team-skills
Skillnaamarchitect-clarify
Sterren
144
Forks
2
Meegeleverde bestanden
10
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 10

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door tikalk op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Architect Clarify in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/tikalk/adlc-team-skills/tree/main/skills/architect/architect-clarify
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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-clarify .claude/skills/architect-clarify
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Architect Clarify in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Architect Clarify automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Architect Clarify niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

architect-clarify

What this skill does

Identify underspecified areas in existing ADRs and refine them through targeted clarification questions. Ensure ADRs are complete, consistent, and ready for architecture generation.

You act as an Architecture Reviewer ensuring ADR quality by:

  • Validating ADR completeness against MADR standards
  • Identifying gaps in consequences or alternatives
  • Detecting conflicts between ADRs or with constitution
  • Refining decisions through targeted clarification

When to use

Use this skill:

  • After /architect-init: Refine initial ADRs before architecture generation
  • ADR Review: Validate ADRs before major milestones
  • New Team Member: Ensure ADRs make sense to fresh eyes
  • Conflict Resolution: Resolve identified inconsistencies

Do not use this skill when:

  • No ADRs exist: Use /architect-init first to create ADRs
  • Brownfield projects: Use /architect-init to reverse-engineer ADRs from code

Process

User Input

text
$ARGUMENTS

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

Examples of User Input:

  • "Focus on data architecture decisions - we're reconsidering database choice"
  • "Security ADRs need more detail for compliance review"
  • "ADR-003 consequences seem incomplete"
  • Empty input: Review all ADRs for completeness

Goal

Identify underspecified areas in existing ADRs and refine them through targeted clarification questions. Ensure ADRs are complete, consistent, and ready for architecture generation.

ADR Quality Checklist

Each ADR should have:

  • Clear context explaining the problem/opportunity
  • Explicit decision statement
  • Positive AND negative consequences
  • Common Alternatives documented (neutral trade-offs, not "Rejected because")
  • Risks identified with mitigation strategies
  • Status is accurate (Proposed/Accepted/Deprecated/Superseded/Discovered)
  • No conflicts with other ADRs
  • Alignment with constitution principles
  • No fabricated rejection rationale for reverse-engineered ADRs

Outline

  1. Load Current State: Parse ADRs from {REPO_ROOT}/.adlc/drafts/adr/ (individual file format) and {REPO_ROOT}/docs/adlc/memory/constitution.md (legacy {REPO_ROOT}/.adlc/memory/constitution.md fallback — dual-read)

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-{NNN}.md
  • The setup script reads individual ADR files from the adr/ directory
  • When running from a subdirectory (e.g., a subproject directory), .adlc may be in the parent directory
  1. Analyze ADRs: Check each ADR against quality checklist
  2. Identify Gaps: List areas needing clarification
  3. Interactive Refinement: Ask targeted questions to fill gaps
  4. Update ADRs: Write refined ADRs back to file

Execution Steps

Phase 1: Context Loading

Objective: Establish current ADR state

  1. Run Prerequisites Script:

    • Execute scripts/bash/setup-architect.sh from repo root
    • Parse JSON for paths to memory files
    • Handle errors gracefully if files don't exist
  2. Load ADR File:

    • Read {REPO_ROOT}/.adlc/drafts/adr/adr.md for the ADR list
    • Read individual ADRs from {REPO_ROOT}/.adlc/drafts/adr/ADR-{NNN}.md
    • Count total ADRs and identify status distribution
  3. Load Constitution:

    • Read {REPO_ROOT}/docs/adlc/memory/constitution.md (legacy {REPO_ROOT}/.adlc/memory/constitution.md fallback) if either exists
    • Extract principles for alignment checking
    • Note governance constraints
  4. User Focus:

    • If user specified specific ADRs or areas, narrow scope
    • Otherwise, review all ADRs
Step 0: Detect Lightweight Draft Format

Check if the draft being reviewed uses the lightweight draft template (indicated by presence of type, evidence, source, revisit-when fields in frontmatter and ## Rejected Alternatives / ## Reason body sections without the full formal template sections).

If lightweight:

  1. Read the draft's captured fields (Context, Decision, Rejected Alternatives, Reason)
  2. Transform to full formal template:
    • ADR: full MADR format with Decision Drivers, Considered Options, Pros/Cons, Constitution Alignment, Related ADRs
    • PDR: full PDR format with Market Forces, Consequences, Alternatives Considered, Links
    • ChDR: full ChDR format with Issue Links, Commits, Consequences, Evidence
    • CDR: full CDR format with Context Type, Target Module, Descriptor, Evidence
    • EVAL: full eval format with Error Analysis, Pass/Fail Examples, Implementation Notes
  3. Enrich from session context (add details the lightweight draft may have omitted)
  4. Present the enriched draft for review

If already full format, proceed with normal review.

Phase 2: ADR Analysis

Objective: Identify quality gaps in each ADR

Quality Dimensions to Check
  1. Context Completeness:

    • Is the problem clearly stated?
    • Are the forces/drivers documented?
    • Is the decision scope clear?
  2. Decision Clarity:

    • Is the decision actionable?
    • Are implementation implications clear?
    • Can this decision be validated/tested?
  3. Consequence Coverage:

    • Are positive outcomes documented?
    • Are negative trade-offs acknowledged?
    • Are risks identified with mitigations?
  4. Alternatives Documentation:

    • Are at least 2 alternatives listed?
    • Is rejection reasoning clear for each?
    • Were reasonable options considered?
  5. Cross-ADR Consistency:

    • Do decisions conflict with other ADRs?
    • Are dependencies between ADRs documented?
    • Is terminology consistent?
  6. Constitution Alignment:

    • Does decision comply with MUST principles?
    • Are SHOULD principles addressed?
    • Are violations explicitly justified?
Phase 2.5: Risks & Gaps Analysis (Cross-Cutting)

Objective: Identify operational gaps, technical debt, SPOFs, and security concerns NOT documented across all views

Analysis Dimensions:

DimensionViews to CheckWhat to Look For
Operational GapsOperational (3.7), Deployment (3.6)Missing monitoring, undefined on-call, no runbooks, unclear rollback
Technical DebtDevelopment (3.5), Information (3.3)Deprecated dependencies, no tests, legacy code, schema debt
Single Points of FailureDeployment (3.6), Concurrency (3.4)Single DB instance, no redundancy, critical path bottlenecks
Security ConcernsAll viewsUnencrypted data, no auth, exposed secrets, missing audit trails

Gap Identification Process:

  1. Scan Each View: Check if view exists, identify missing critical sections, flag [TODO]/[TBD] areas
  2. Cross-View Analysis: Find inconsistencies (e.g., "high availability" stated but single instance shown)
  3. Risk Severity: CRITICAL (outage/breach/loss), HIGH (operational burden), MEDIUM (debt), LOW (documentation)

Gap ID Format: Section-based (e.g., 3.6.1 = Deployment View, gap #1)

Phase 2.6: Constitution Cross-Reference

Objective: Check ADRs against constitution for duplication and compliance

Analysis:

  1. Duplication Check: Does ADR restate a constitutional principle? Is decision already mandated?
  2. Compliance Check: Does decision violate MUST principles? Ignore SHOULD without justification?
  3. Override Classification: Is this an intentional deviation? Justified sufficiently?

Constitution Cross-Reference Table:

Issue TypeADRConstitution PrincipleAction Required
DuplicateADR-002§DataStorage mandates PostgreSQLRemove or convert to reference
ViolationADR-003§Security requires JWTAdd override justification or change
UnclearADR-004Silent on cachingClarify relationship
Phase 3: Gap Identification

Objective: Prioritize clarification needs

Generate a gap report:

markdown
## ADR Clarification Report

### Summary
- Total ADRs: [N]
- Complete: [N]
- Needs Clarification: [N]

### Gaps by ADR

| ADR | Title | Gap Type | Severity | Priority |
|-----|-------|----------|----------|----------|
| ADR-001 | [Title] | Missing alternatives | HIGH | 1 |
| ADR-002 | [Title] | Incomplete consequences | MEDIUM | 2 |

### Cross-ADR Issues

| Issue | ADRs Affected | Description |
|-------|---------------|-------------|
| [Conflict] | ADR-001, ADR-003 | [Description of conflict] |
Gap Prioritization
  • CRITICAL: Constitution violations, missing decision statement
  • HIGH: No alternatives documented, missing consequences
  • MEDIUM: Incomplete risks, unclear context
  • LOW: Minor phrasing improvements, optional details
Phase 4: Interactive Refinement

Objective: Fill gaps through targeted questions

Question Format

For each gap requiring clarification:

markdown
## Clarification [N]: [ADR-XXX] - [Gap Type]

**Current State**: 
[Quote current ADR content]

**Gap Identified**: 
[Explain what's missing or unclear]

**Question**:
[Specific question to address the gap]

**Suggested Options** (if applicable):

| Option | Description |
|--------|-------------|
| A | [Option A] |
| B | [Option B] |
| C | [Custom response] |

Reply with your choice or provide additional context.
Constitution Cross-Reference Questions

When constitution issues are detected:

For Duplicates:

markdown
## Clarification [N]: Constitution Duplication Detected

**Question**: How should this duplicate ADR be handled?

**ADR**: ADR-XXX - [Title]
**Constitution Principle**: §[Section] - [Principle Name]
**Issue**: This ADR documents a decision already mandated by constitution

**Options**:
| Option | Action | Result |
|--------|--------|--------|
| A | Remove ADR | Decision covered by constitution only |
| B | Convert to Reference | Keep ADR as "See Constitution §X" |
| C | Add Context | Keep ADR with "Aligns with Constitution §X" |
| D | Extend | Keep ADR as "Extends Constitution §X" |

Reply with your choice (A/B/C/D).

For Violations (Option A PRIMARY - Amend Constitution):

markdown
## Clarification [N]: Constitution Violation Detected ⭐

**Question**: How should this constitutional violation be resolved?

**ADR**: ADR-XXX - [Title]
**Decision**: [What the ADR decides]
**Constitution Principle**: §[Section] - [Principle]
**Conflict**: [How they conflict]

**The constitution should evolve with the project's needs.**

**⭐ RECOMMENDED: A. Amend Constitution**
Update constitution §[Section] to accommodate this decision. This establishes a new principle for future decisions.

**Alternative Options**:
B. Override in ADR - Document justification for deviation
C. Revise ADR - Change decision to comply with constitution
D. Remove ADR - Delete and follow existing constitution

**Consider Amendment If**:
- [ ] This decision will be used again in the future
- [ ] Team's approach has evolved since constitution was written
- [ ] Existing principle is too restrictive for current needs

**Amendment Text**: [If choosing A, provide the specific constitutional amendment]

Reply with: "A [amendment text]" or "B/C/D [reasoning]"
Clarification Rules
  • Present one clarification at a time
  • Prioritize by severity - address CRITICAL/HIGH gaps first
  • For constitution violations, Option A (Amend) is PRIMARY
  • Limit to 5 clarifications per session (increased to 10 if architecture present)
  • Allow user to skip non-critical clarifications
  • Summarize changes after each answer
  • User can say "done" to end clarification early
Phase 5: ADR Updates

Objective: Write refined ADRs back to file

  1. Apply Clarifications:

    • Update ADR sections with new content
    • Preserve structure and formatting
    • Update "Last Updated" timestamps
  2. Resolve Conflicts:

    • If cross-ADR conflicts were found, propose resolution
    • Document decision to favor one ADR over another
    • Add cross-references between related ADRs
  3. Update Index:

    • Refresh ADR index table if titles changed
    • Update status if applicable
  4. Write File:

    • Atomic write to individual {REPO_ROOT}/.adlc/drafts/adr/ADR-{NNN}.md files
    • Preserve any ADRs that weren't modified
    • The setup script auto-regenerates adr.md and adr.md index after updates
Phase 5.5: ADR Approval ⭐

Objective: Get user confirmation to approve ADRs before architecture generation

This step is critical because implement only processes ADRs with "Accepted" status. ADRs with "Discovered" or "Proposed" status will be skipped.

Approval Request
markdown
## ADR Approval ⭐

**Total ADRs**: [N]
**Status Distribution**:
- Accepted: [N]
- Proposed: [N]
- Discovered: [N]

**⚠️ Important**: Only "Accepted" ADRs will be processed by `/architect-implement`

### Options

| Option | Action |
|--------|--------|
| A | Accept All - Change Proposed/Discovered → Accepted |
| B | Review Specific - Select individual ADRs to accept |
| C | Defer - Keep current status, decide later |

**Note**: You can also run `/architect-clarify` again later to approve additional ADRs.

Reply with A, B, or C (or "done" to skip).
Bulk Approval (Option A)

If user chooses Option A:

markdown
## Confirm Bulk Approval

Change [N] ADRs from Proposed/Discovered → Accepted?

| ADR | Current Status | New Status |
|-----|----------------|-------------|
| ADR-001 | Proposed | Accepted |
| ADR-002 | Discovered | Accepted |

Reply with "yes" to confirm or "no" to cancel.
Selective Approval (Option B)

If user chooses Option B, present ADRs one-by-one:

markdown
## ADR Approval: ADR-XXX

**Title**: [Title]
**Current Status**: [Proposed/Discovered]
**Context**: [Brief summary]

**Options**:
| Option | Action |
|--------|--------|
| A | Accept - Change to "Accepted" |
| B | Keep - Keep current status |
| C | Skip - Move to next ADR |

Reply with A, B, or C for ADR-XXX.
Post-Approval

After approval (or if user chooses C to defer):

markdown
## ADRs Approved

**Status Changes Applied**:
- ADR-001: Proposed → Accepted
- ADR-002: Discovered → Accepted
- ADR-007: Kept as Proposed

**Ready for Implementation**:
- Accepted ADRs: [N]
- Pending Approval: [N]

Run `/architect-implement` to generate AD.md from accepted ADRs.
Post-Approval State Update

After approval, you MUST write the workflow state file. Create the directory if it doesn't exist, then write {REPO_ROOT}/.adlc/architect/state.json:

bash
mkdir -p {REPO_ROOT}/.adlc/architect

Write this JSON content to the file (replace [N] with the actual count of approved ADRs and the timestamp with the current time):

json
{
  "workflow": {
    "clarify_completed": true,
    "clarify_completed_at": "2024-01-20T10:30:00Z",
    "adrs_approved_count": [N],
    "implement_started": false,
    "implement_started_at": null
  }
}

IMPORTANT: This workflow state file is REQUIRED before /architect-implement will execute. The implement command checks this state during pre-flight validation. If you skip this step, the implement command will halt with a validation error.

Key Rules

Non-Destructive Refinement
  • Never delete existing ADRs without explicit user approval
  • Preserve original intent when updating wording
  • Add, don't replace consequences and alternatives
  • Mark changes with updated timestamps
Focused Clarification
  • Ask one question at a time
  • Make questions specific and answerable
  • Provide suggested options when possible
  • Respect user's time - limit to 5 clarifications
Constitution Authority
  • Constitution violations are always flagged
  • ADRs cannot override MUST principles without explicit justification
  • Suggest constitution updates if conflict is systemic
Quality Over Quantity
  • Focus on material gaps that affect implementation
  • Skip cosmetic improvements unless user requests
  • Defer minor issues if major gaps remain

Completion Report

After clarification ends (all gaps addressed or user signals "done"):

markdown
## ADR Clarification Complete

**Changes Made**:
- ADR-001: Updated consequences section
- ADR-002: Added Common Alternatives (neutral trade-offs)
- ADR-003: Resolved conflict with ADR-001
- Constitution: Amended §DataStorage to allow NoSQL for document flexibility

**Risks & Gaps Status**:
- Critical gaps identified: [N] → [N resolved]
- High priority gaps: [N] → [N resolved]
- Cross-view inconsistencies: [N] → [N resolved]
- Integration with AD sections: [N updates]

**Remaining Gaps** (deferred):
- 3.6.2: Minor operational documentation (LOW)

**Cross-ADR Consistency**: ✅ Verified

**Constitution Alignment**:
- Duplicates resolved: [N]
- Violations addressed: [N]
- Constitution amended: [N] (if applicable)
- References added: [N]

**Recommended Next Steps**:
1. Review updated ADRs in `{REPO_ROOT}/.adlc/drafts/adr/adr.md`
2. Run `/architect-implement` to generate AD.md
3. Or run `/architect-specify` to create new ADRs for additional decisions

Workflow Status

⚠️ Required: You MUST run /architect-clarify before /architect-implement to approve ADRs.

Status Workflow:

  • init → "Discovered" (brownfield)
  • specify → "Proposed" (greenfield)
  • clarify → ask to approve → "Accepted" ⭐
  • implement → only reads "Accepted", skips Discovered/Proposed

Note: Do NOT invent intermediate statuses like "Validated". ADRs go directly from Discovered/Proposed → Accepted upon user approval.

Context

$ARGUMENTS

Next Steps

After clarify completes, run /architect-implement to generate the Architecture Description (AD.md).

Only ADRs with status Accepted are included in the architecture generation. If needed, re-run this skill to approve additional ADRs before proceeding.

Verification

Concrete outputs of this skill:

  • ADR files updated at {REPO_ROOT}/.adlc/drafts/adr/ADR-{NNN}.md with clarified content
  • ADR index refreshed at {REPO_ROOT}/.adlc/drafts/adr/adr.md
  • Constitution updated if amendments were approved
  • Workflow state written to {REPO_ROOT}/.adlc/architect/state.json with clarify_completed: true
  • At least one ADR status changed to Accepted, or explicit deferral recorded
  • Cross-ADR conflicts resolved or documented
  • Gap report showing critical/high gaps addressed

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Architect Clarify?

Use when ADRs need review, gaps need filling, or ADR status must be approved as Accepted before architecture generation.

Waarom Architect Clarify gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Architect Clarify bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Architect Clarify in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/tikalk/adlc-team-skills/tree/main/skills/architect/architect-clarify. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Architect Clarify gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Architect Clarify gebruiken?

Zoveel als je wilt. Je kunt Architect Clarify gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Architect Clarify gratis?

Ja. Deze skill is door tikalk op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇