Logotipo de Architect Clarify

Architect Clarify

Organización
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

Descripción general

Editortikalk
Repositorioadlc-team-skills
Nombre de la habilidadarchitect-clarify
Estrellas
144
Forks
2
Archivos incluidos
10
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 10

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por tikalk en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Architect Clarify en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/tikalk/adlc-team-skills/tree/main/skills/architect/architect-clarify
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Architect Clarify en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Architect Clarify automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Architect Clarify no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Architect Clarify?

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

¿Por qué usar Architect Clarify en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Architect Clarify está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Architect Clarify en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/tikalk/adlc-team-skills/tree/main/skills/architect/architect-clarify. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Architect Clarify?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Architect Clarify?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Architect Clarify con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Architect Clarify?

Sí. tikalk la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇