Architect Clarify 标志

Architect Clarify

组织
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

概览

发布者tikalk
代码仓库adlc-team-skills
技能名称architect-clarify
星标数
144
复刻数
2
附带文件
10
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 10 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 tikalk 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Architect Clarify AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/tikalk/adlc-team-skills/tree/main/skills/architect/architect-clarify
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Architect Clarify,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Architect Clarify。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Architect Clarify 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Architect Clarify AI 技能有什么作用?

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

为什么在 TypingMind 中使用 Architect Clarify?

因为您只需安装一次,就能搭配任何模型使用。Architect Clarify 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Architect Clarify?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/tikalk/adlc-team-skills/tree/main/skills/architect/architect-clarify。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Architect Clarify?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Architect Clarify 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Architect Clarify 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Architect Clarify AI 技能免费吗?

是的。tikalk 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇