Architect Analyzeのロゴ

Architect Analyze

組織
tikalk
architect-analyze

Use when validating generated or refined architecture artifacts, before feature development, during architecture review, or periodically to detect ADR↔AD drift, completeness gaps, and quality issues.

概要

公開者tikalk
リポジトリadlc-team-skills
スキル名architect-analyze
スター
144
フォーク
2
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    tikalkがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルArchitect AnalyzeをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/tikalk/adlc-team-skills/tree/main/skills/architect/architect-analyze
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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-analyze .claude/skills/architect-analyze
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでArchitect Analyzeを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にArchitect Analyzeを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Architect Analyzeは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

architect-analyze

What this skill does

Performs a read-only architecture consistency analysis between ADRs (Architecture Decision Records) and AD (Architecture Description). It identifies discrepancies, quality issues, and gaps without modifying any files.

Key analysis dimensions:

  1. ADR Quality — Completeness, clarity, and standards compliance
  2. ADR to AD Consistency — Bidirectional drift detection
  3. Internal Consistency — Cross-artifact coherence
  4. Staleness Detection — Outdated references and placeholders
  5. Mermaid Syntax — Deterministic validity check over diagram blocks, with location + suggested patch (the mermaid detection pass)

This skill validates architecture artifacts for consistency, completeness, and quality.

When to use

  • After /architect-implement — Validate generated AD.md
  • After /architect-clarify — Verify ADR refinements
  • Before feature development — Ensure architecture is solid
  • During architecture review — Quality gate for architecture docs
  • Periodically — Detect drift as the codebase evolves

Do not use when no architecture artifacts exist; use /architect-init or /architect-specify first. Do not use to create architecture — this is analysis-only.

Process

User Input

Consider the user input before proceeding (if not empty):

text
$ARGUMENTS

Examples:

  • "system" — Focus on root-level AD.md and adr/ directory only
  • "feature auth" — Focus on specific feature architecture
  • "adrs" — Focus on ADR quality and inter-ADR consistency
  • "views" — Focus on AD.md view completeness and internal consistency
  • Empty input — Full analysis of all architecture artifacts

Goal

Perform read-only architecture consistency analysis. Identify discrepancies, quality issues, and gaps without modifying any files.

Operating Constraints

STRICTLY READ-ONLY: Do not modify any files. Output a structured analysis report. Offer remediation suggestions (user must explicitly approve before any follow-up editing commands would be invoked manually).

Constitution Authority: The project constitution (memory/constitution.md) is non-negotiable within this analysis scope. Constitution conflicts are automatically CRITICAL.

Role & Context

Act as an Architecture Analyst validating architecture documentation quality:

  • Validate ADR completeness against MADR standards
  • Detect drift between ADRs and AD.md
  • Identify internal inconsistencies across artifacts
  • Flag staleness and quality issues

Architecture document hierarchy:

DocumentLocationPurpose
AD.mdProject rootFull Architecture Description (Rozanski & Woods)
adr/{REPO_ROOT}/docs/adlc/memory/ (legacy .adlc/memory/ fallback)System-level ADRs (individual files)
constitution.md{REPO_ROOT}/docs/adlc/memory/ (legacy .adlc/memory/ fallback)Governance principles and constraints

Outline

  1. Initialize Analysis Context — Load architecture artifacts
  2. Determine Analysis Scope — System, feature, or full
  3. Execute Detection Passes — A through G
  4. Assign Severities — CRITICAL/HIGH/MEDIUM/LOW
  5. Generate Report — Structured markdown analysis
  6. Provide Next Actions — Remediation suggestions

Phase 1: Initialize Analysis Context

Objective: Load all architecture artifacts for analysis

  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). from repo root
    • Parse JSON for file paths and existence status
  2. Load System-Level Artifacts:

    • Read AD.md (project root) if exists
    • Read ADRs from all locations (priority order):
      1. {REPO_ROOT}/docs/adlc/memory/adr/adr.md (canonical — Accepted ADRs; legacy {REPO_ROOT}/.adlc/memory/adr/adr.md fallback per dual-read)
      2. {REPO_ROOT}/.adlc/drafts/adr/ (working copy — Proposed/Discovered, individual file format)
    • Read {REPO_ROOT}/docs/adlc/memory/constitution.md (legacy {REPO_ROOT}/.adlc/memory/constitution.md fallback) if either exists
  3. Load Feature-Level Artifacts (if analyzing features):

    • Scan specs/*/AD.md for feature architectures
    • Scan specs/*/adr/ADR-*.md for feature ADRs
  4. Build Artifact Inventory:

    ArtifactPathStatus
    System ADAD.mdFound/Missing
    System ADRs (canonical){REPO_ROOT}/docs/adlc/memory/adr/adr.md (legacy .adlc/memory/adr/adr.md fallback)Found/Missing
    System ADRs (drafts){REPO_ROOT}/.adlc/drafts/adr/Found/Missing
    Constitution{REPO_ROOT}/docs/adlc/memory/constitution.md (legacy .adlc/memory/constitution.md fallback)Found/Missing
    Feature ADsspecs/*/AD.mdCount: N
    Feature ADRsspecs/*/adr/Count: N

Phase 2: Determine Analysis Scope

Objective: Focus analysis based on user input

User InputScopeArtifacts Analyzed
(empty)FullAll system artifacts
"system"System onlyAD.md, system ADR locations
"adrs"ADR qualityAll ADR files
"views"AD completenessAD.md

Phase 3: Execute Detection Passes

Focus on high-signal findings. Limit to 50 findings total; aggregate remainder in overflow summary.

Pass A: ADR Quality Analysis

Objective: Validate each ADR against MADR standards

Quality Dimensions:

DimensionCheckSeverity if Missing
ContextProblem clearly stated, forces documentedMEDIUM
DecisionActionable, testable decision statementHIGH
Positive ConsequencesBenefits documentedMEDIUM
Negative ConsequencesTrade-offs acknowledgedHIGH
RisksIdentified with mitigationsMEDIUM
AlternativesAt least 2 options with neutral trade-offsHIGH
StatusValid status (Proposed/Accepted/Deprecated/Superseded/Discovered)LOW
Constitution AlignmentMUST principles complied withCRITICAL

ADR Quality Checklist:

For each ADR, verify:

  • Clear context explaining the problem/opportunity
  • Explicit, actionable decision statement
  • Positive AND negative consequences documented
  • Common Alternatives with neutral trade-offs (not "Rejected because")
  • Risks identified with mitigation strategies
  • Valid status value
  • No conflicts with constitution MUST principles
Pass B: Inter-ADR Consistency

Objective: Detect conflicts and inconsistencies between ADRs

Checks:

  1. Conflicting Decisions:

    • ADRs that contradict each other (e.g., one chooses PostgreSQL, another assumes MongoDB)
    • Technology stack incoherence
  2. Missing Dependencies:

    • ADRs that should reference each other but don't
    • Implicit assumptions about other decisions
  3. Terminology Drift:

    • Same concept named differently across ADRs
    • Inconsistent component naming
  4. Technology Stack Coherence:

    • Frontend/backend/infrastructure choices align
    • No conflicting framework decisions
Pass C: ADR to AD Drift (Forward Sync)

Objective: Detect ADR decisions not reflected in AD.md

Checks:

ADR ElementExpected in AD.mdView/Section
System architecture styleContext View3.1
Database choiceInformation View3.3
API styleFunctional View3.2
Authentication approachSecurity Perspective4.1
Deployment platformDeployment View3.6
CI/CD approachDevelopment View3.5
Scaling strategyPerformance Perspective4.2
Caching strategyInformation View3.3

Detection Logic:

For each ADR:

  1. Identify the ADR's primary view impact (use mapping table above)
  2. Search AD.md for reflection of that decision
  3. Flag if decision is absent or contradicted
Pass D: AD to ADR Drift (Backward Sync)

Objective: Detect AD.md elements without supporting ADRs

Checks:

  1. Components Without ADRs:

    • Major components shown in Functional View without decision rationale
    • External dependencies in Context View without ADR justification
  2. Patterns Without Rationale:

    • Architectural patterns described but not explained via ADR
    • Technology choices embedded in views without supporting decision
  3. Infrastructure Decisions:

    • Deployment topology without infrastructure ADR
    • Scaling approach without performance ADR
Pass E: AD Internal Consistency

Objective: Validate AD.md coherence across views

Checks:

  1. Cross-View Consistency:

    • Same components named identically across all views
    • Data entities in Information View match Functional View references
    • Deployment nodes consistent with Functional components
  2. Diagram-Text Alignment:

    • Mermaid diagrams match prose descriptions
    • No components in diagrams missing from text
    • No components in text missing from diagrams
  3. View Completeness:

    • Required sections present (Introduction, Stakeholders, Views, Perspectives)
    • Core views included (Context, Functional, Information, Development, Deployment)
    • Perspectives addressed (Security, Performance)
  4. Diagram Syntax Validation (deterministic — the mermaid detection pass):

    • Mermaid syntax valid (no broken diagrams)

    • Consistent styling across diagrams

    • Run the shared validator; it produces one finding per broken block with severity, location (file + line + fence index) and a suggested patch:

      bash
      sh: {REPO_ROOT}/.agents/skills/architect-clarify/scripts/bash/setup-architect.sh
      sh: {REPO_ROOT}/.agents/skills/architect-clarify/scripts/bash/mermaid-lint.sh --tsv <artifact>

      The rule set is documented once, in the validator itself — read it there rather than re-deriving the rules here. Exit code: 0 clean, 1 a HIGH (syntax-break) is present, 2 only MEDIUM (style) findings. An unrecognised diagram type is MEDIUM, never HIGH: this rule set must not produce a false syntax break. The pass is read-only (the lifecycle write scope) — remediation belongs to /architect-implement or a human.

  5. View File Consistency (DAG State Validation):

    • Check if .adlc/architect/state.json exists and reports views as "completed"
    • Check if docs/adlc/architect/views/ (legacy .adlc/architect/views/ fallback) directory exists
    • Verify that for each "completed" view in state.json, a corresponding file exists on disk
    • Flag as HIGH severity if:
      • state.json reports views "completed" but views/ directory is empty
      • View files exist but are under 20 lines (placeholder/skeleton content)
      • View files cannot be read (corrupted/missing permissions)
    • Report format:
      DAG State Inconsistency Detected:
      - State reports: [N] views completed
      - Files on disk: [M] view files found
      - Missing files: [list of missing views]
      - Recommendation: Regenerate views or reset state.json
  6. Technology Neutrality (Functional View):

    • Scan Functional View (§3.2) for product/vendor names in element descriptions and Mermaid diagrams
    • Architectural roles (acceptable): Database, Object Storage, Cache, Message Queue, AI Gateway, Workflow Runtime, App Shell, API Gateway, Authentication Service, etc.
    • Product names (flag as MEDIUM): PostgreSQL, Neon, Vercel, Next.js, Redis, MongoDB, AWS, Azure, S3, etc.
    • Severity: MEDIUM — Not blocking but indicates abstraction violation
    • Note: ADR Traceability sections may reference products (that's acceptable); only flag element descriptions and diagram labels
  7. Functional-Development Mapping:

    • Verify Development View (§3.5) contains a Technology Stack Mapping table (§3.5.2)
    • Check that every element in Functional View's element table (§3.2.1) has at least one corresponding entry in the mapping table
    • N:1 mappings (multiple functional elements → one technology) are acceptable
    • Severity: MEDIUM if elements are missing; LOW if mapping table is absent
    • Cross-check: Technology Architecture diagram (§3.5.3) should mirror Functional View diagram (§3.2.2) structure
Pass F: Staleness Detection

Objective: Identify outdated references and placeholders

Checks:

  1. Deprecated ADRs Still Referenced:

    • AD.md references ADRs with status "Deprecated"
    • Superseded decisions still implemented
  2. Placeholder Detection:

    • [TODO], [TBD], [PLACEHOLDER] markers
    • [SYSTEM_NAME], [STAKEHOLDER_*] unfilled
    • ???, ..., <placeholder> patterns
  3. Date Inconsistencies:

    • ADR dates significantly older than AD last-updated
    • Feature architecture out of sync with system architecture
  4. Orphaned References:

    • ADR IDs mentioned but ADR doesn't exist
    • Component names referenced but not defined
Pass G: Feature-System Alignment (if feature architecture exists)

Objective: Validate feature architecture fits within system boundaries

Checks:

  1. Feature ADR Alignment:

    • Feature ADRs marked "Aligns with ADR-XXX" reference valid system ADRs
    • No VIOLATION flags without documented justification
    • Feature decisions consistent with system constraints
  2. Boundary Compliance:

    • Feature components fit within system Functional View structure
    • Feature data entities align with system Information View
    • Feature doesn't exceed system scope (Context View)
  3. Integration Points:

    • Feature-to-system interfaces documented
    • Data flow across feature boundary consistent

Phase 4: Severity Assignment

Severity Criteria:

SeverityCriteriaExamples
CRITICALConstitution violation, security/data integrity gap, missing core ADRADR violates MUST principle, major component undocumented
HIGHADR to AD drift affecting implementation, conflicting ADRs, missing alternativesDatabase choice in ADR but wrong DB in AD, two ADRs conflict
MEDIUMIncomplete consequences, staleness, terminology drift, missing optional viewsADR lacks negative consequences, TODO placeholders
LOWStyle improvements, minor documentation gaps, optional detailsInconsistent formatting, minor wording issues

Phase 5: Generate Analysis Report

Output Format:

markdown
## Architecture Analysis Report

### Analysis Summary

| Attribute | Value |
|-----------|-------|
| **Mode** | [Full/System/Feature/ADRs/Views] |
| **Scope** | [Description of what was analyzed] |
| **Files Analyzed** | [List of files] |
| **Analysis Date** | [Current date] |

### Findings

| ID | Pass | Severity | Location | Summary | Recommendation |
|----|------|----------|----------|---------|----------------|
| A1 | ADR Quality | MEDIUM | ADR-003 | Missing negative consequences | Add trade-offs section |
| B1 | Inter-ADR | HIGH | ADR-002, ADR-005 | Conflicting database choices | Resolve PostgreSQL vs MongoDB conflict |
| C1 | ADR->AD Drift | HIGH | ADR-005 | Caching decision not in Information View | Update AD.md 3.3 |
| D1 | AD->ADR Drift | HIGH | AD.md:3.2 | Redis component has no ADR | Create ADR for cache choice |
| E1 | AD Consistency | MEDIUM | AD.md:3.2/3.6 | Component naming mismatch | Standardize "AuthService" naming |
| F1 | Staleness | LOW | AD.md:3.1 | [SYSTEM_NAME] placeholder | Fill in system name |
| G1 | Feature Align | HIGH | specs/auth/adr.md | VIOLATION flag unresolved | Document override justification |

### Coverage Metrics

| Metric | System | Feature: auth | Feature: payments |
|--------|--------|---------------|-------------------|
| ADR Count | 13 | 3 | 2 |
| AD Views Complete | 5/7 | 3/5 | 3/5 |
| ADR->AD Coverage | 85% | 100% | 67% |
| AD->ADR Coverage | 92% | 100% | 100% |
| Quality Score | 78% | 85% | 72% |

### Constitution Alignment

| Status | Count | Details |
|--------|-------|---------|
| Compliant | [N] | ADRs following MUST principles |
| Violations | [N] | ADRs violating MUST principles (CRITICAL) |
| Deviations | [N] | Justified SHOULD principle deviations |

### Issue Distribution

| Severity | Count |
|----------|-------|
| CRITICAL | [N] |
| HIGH | [N] |
| MEDIUM | [N] |
| LOW | [N] |

### Next Actions

Based on findings, recommended actions:

**If CRITICAL issues exist:**
- **Immediate**: Resolve constitution violations before proceeding
- Command: `/architect-clarify` to address ADR compliance

**If HIGH ADR quality issues:**
- **Refine**: Address missing alternatives and consequences
- Command: `/architect-clarify` to improve ADR quality

**If ADR->AD drift detected:**
- **Sync AD**: Update AD.md to reflect ADR decisions
- Command: `/architect-implement` to regenerate views

**If AD->ADR drift detected:**
- **Document**: Create missing ADRs for undocumented decisions
- Command: `/architect-specify` or `/architect-init` to add ADRs

**If feature alignment issues:**
- **Align**: Resolve feature-system boundary violations
- Command: Run `/architect-specify` or `/architect-init` to create missing ADRs

Phase 6: Offer Remediation

After presenting the report, ask:

"Would you like me to suggest specific remediation steps for the top [N] issues? I can provide detailed guidance for each finding, though I will not make any changes automatically."

Key Rules

Analysis Integrity
  • NEVER modify files — this is read-only analysis
  • NEVER hallucinate missing content — report absences accurately
  • Prioritize constitution violations — these are always CRITICAL
  • Use evidence-based findings — cite specific locations and content
Consistency Standards
  • Cross-reference everything — validate bidirectionally (ADR to AD)
  • Check all levels — system and feature architecture must align
  • Validate terminology — same concepts must use same names
  • Verify diagrams — Mermaid syntax must be valid
Reporting Standards
  • Limit to 50 findings — aggregate overflow in summary
  • Include location — always cite file:line or section
  • Provide actionable recommendations — each finding gets a fix suggestion
  • Calculate coverage metrics — quantify completeness

Next Steps

If issues are found:

  • Run /architect-clarify to refine ADRs (quality issues, missing consequences/alternatives, constitution violations).
  • Run /architect-implement to regenerate AD.md when ADR-to-AD drift is detected.

For missing ADRs or feature boundary issues, use /architect-specify or /architect-init as appropriate.

Verification

Concrete outputs of this skill:

  • Architecture Analysis Report in structured markdown, including:
    • Analysis Summary (mode, scope, files analyzed, analysis date)
    • Findings table with ID, pass, severity, location, summary, and recommendation
    • Coverage Metrics (ADR count, AD views complete, ADR→AD coverage, AD→ADR coverage, quality score)
    • Constitution Alignment summary (compliant, violations, deviations)
    • Issue Distribution by severity (CRITICAL, HIGH, MEDIUM, LOW)
    • Next Actions tailored to finding types
  • Mermaid syntax validation run over the AD and every artifact carrying diagrams (shared linter, the mermaid detection pass) — every broken block reported with severity, location and a suggested patch.
  • No files modified — analysis is strictly read-only.
  • User-approved remediation guidance offered after the report.

よくある質問

AIスキル「Architect Analyze」では何ができますか?

Use when validating generated or refined architecture artifacts, before feature development, during architecture review, or periodically to detect ADR↔AD drift, completeness gaps, and quality issues.

TypingMindでArchitect Analyzeを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Architect Analyzeはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにArchitect Analyzeをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/tikalk/adlc-team-skills/tree/main/skills/architect/architect-analyzeを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Architect Analyzeを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Architect Analyzeは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもArchitect Analyzeを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Architect Analyze」は無料ですか?

はい。tikalkがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇