Best for
- After /architect-implement — Validate generated AD.md
- After /architect-clarify — Verify ADR refinements
- Before feature development — Ensure architecture is solid
tikalk/adlc-team-skills/skills/architect/architect-analyze/SKILL.md
Analyze architecture for consistency between ADRs and AD, completeness, and quality issues. Use when validating generated or refined architecture artifacts, before feature development, during architecture review, or periodically to detect drift.
Decision brief
Analyze architecture for consistency between ADRs and AD, completeness, and quality issues.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/tikalk/adlc-team-skills --skill "skills/architect/architect-analyze"Inspect the Agent Skill "architect-analyze" from https://github.com/tikalk/adlc-team-skills/blob/a6ea2fd3d9cf46c5cba9ff384e1099ce62481b8b/skills/architect/architect-analyze/SKILL.md at commit a6ea2fd3d9cf46c5cba9ff384e1099ce62481b8b. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Consider the user input before proceeding (if not empty):
Objective: Load all architecture artifacts for analysis
Objective: Focus analysis based on user input
Focus on high-signal findings. Limit to 50 findings total; aggregate remainder in overflow summary.
Review the “Phase 4: Severity Assignment” section in the pinned source before continuing.
Permission review
The documentation asks the agent to run terminal commands or scripts.
**Run Setup Script**:Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 96/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 97 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
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:
This skill validates architecture artifacts for consistency, completeness, and quality.
/architect-implement — Validate generated AD.md/architect-clarify — Verify ADR refinementsDo not use when no architecture artifacts exist; use /architect-init or /architect-specify first. Do not use to create architecture — this is analysis-only.
Consider the user input before proceeding (if not empty):
$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 consistencyPerform read-only architecture consistency analysis. Identify discrepancies, quality issues, and gaps without modifying any files.
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.
Act as an Architecture Analyst validating architecture documentation quality:
Architecture document hierarchy:
| Document | Location | Purpose |
|---|---|---|
AD.md | Project root | Full Architecture Description (Rozanski & Woods) |
adr/ | {REPO_ROOT}/.adlc/memory/ | System-level ADRs (individual files) |
constitution.md | {REPO_ROOT}/.adlc/memory/ | Governance principles and constraints |
Objective: Load all architecture artifacts for analysis
Run Setup Script:
scripts/bash/setup-architect.sh from repo rootLoad System-Level Artifacts:
AD.md (project root) if exists{REPO_ROOT}/.adlc/memory/adr.md (canonical — Accepted ADRs){REPO_ROOT}/.adlc/drafts/adr/ (working copy — Proposed/Discovered, individual file format){REPO_ROOT}/.adlc/memory/constitution.md if existsLoad Feature-Level Artifacts (if analyzing features):
specs/*/AD.md for feature architecturesspecs/*/adr/ADR-*.md for feature ADRsBuild Artifact Inventory:
| Artifact | Path | Status |
|---|---|---|
| System AD | AD.md | Found/Missing |
| System ADRs (canonical) | {REPO_ROOT}/.adlc/memory/adr.md | Found/Missing |
| System ADRs (drafts) | {REPO_ROOT}/.adlc/drafts/adr/ | Found/Missing |
| Constitution | {REPO_ROOT}/.adlc/memory/constitution.md | Found/Missing |
| Feature ADs | specs/*/AD.md | Count: N |
| Feature ADRs | specs/*/adr/ | Count: N |
Objective: Focus analysis based on user input
| User Input | Scope | Artifacts Analyzed |
|---|---|---|
| (empty) | Full | All system artifacts |
"system" | System only | AD.md, system ADR locations |
"adrs" | ADR quality | All ADR files |
"views" | AD completeness | AD.md |
Focus on high-signal findings. Limit to 50 findings total; aggregate remainder in overflow summary.
Objective: Validate each ADR against MADR standards
Quality Dimensions:
| Dimension | Check | Severity if Missing |
|---|---|---|
| Context | Problem clearly stated, forces documented | MEDIUM |
| Decision | Actionable, testable decision statement | HIGH |
| Positive Consequences | Benefits documented | MEDIUM |
| Negative Consequences | Trade-offs acknowledged | HIGH |
| Risks | Identified with mitigations | MEDIUM |
| Alternatives | At least 2 options with neutral trade-offs | HIGH |
| Status | Valid status (Proposed/Accepted/Deprecated/Superseded/Discovered) | LOW |
| Constitution Alignment | MUST principles complied with | CRITICAL |
ADR Quality Checklist:
For each ADR, verify:
Objective: Detect conflicts and inconsistencies between ADRs
Checks:
Conflicting Decisions:
Missing Dependencies:
Terminology Drift:
Technology Stack Coherence:
Objective: Detect ADR decisions not reflected in AD.md
Checks:
| ADR Element | Expected in AD.md | View/Section |
|---|---|---|
| System architecture style | Context View | 3.1 |
| Database choice | Information View | 3.3 |
| API style | Functional View | 3.2 |
| Authentication approach | Security Perspective | 4.1 |
| Deployment platform | Deployment View | 3.6 |
| CI/CD approach | Development View | 3.5 |
| Scaling strategy | Performance Perspective | 4.2 |
| Caching strategy | Information View | 3.3 |
Detection Logic:
For each ADR:
Objective: Detect AD.md elements without supporting ADRs
Checks:
Components Without ADRs:
Patterns Without Rationale:
Infrastructure Decisions:
Objective: Validate AD.md coherence across views
Checks:
Cross-View Consistency:
Diagram-Text Alignment:
View Completeness:
Diagram Syntax Validation:
View File Consistency (DAG State Validation):
.adlc/architect/state.json exists and reports views as "completed".adlc/architect/views/ directory existsDAG 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
Technology Neutrality (Functional View):
Functional-Development Mapping:
Objective: Identify outdated references and placeholders
Checks:
Deprecated ADRs Still Referenced:
Placeholder Detection:
[TODO], [TBD], [PLACEHOLDER] markers[SYSTEM_NAME], [STAKEHOLDER_*] unfilled???, ..., <placeholder> patternsDate Inconsistencies:
Orphaned References:
Objective: Validate feature architecture fits within system boundaries
Checks:
Feature ADR Alignment:
Boundary Compliance:
Integration Points:
Severity Criteria:
| Severity | Criteria | Examples |
|---|---|---|
| CRITICAL | Constitution violation, security/data integrity gap, missing core ADR | ADR violates MUST principle, major component undocumented |
| HIGH | ADR to AD drift affecting implementation, conflicting ADRs, missing alternatives | Database choice in ADR but wrong DB in AD, two ADRs conflict |
| MEDIUM | Incomplete consequences, staleness, terminology drift, missing optional views | ADR lacks negative consequences, TODO placeholders |
| LOW | Style improvements, minor documentation gaps, optional details | Inconsistent formatting, minor wording issues |
Output Format:
## 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
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."
If issues are found:
/architect-clarify to refine ADRs (quality issues, missing consequences/alternatives, constitution violations)./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.
Concrete outputs of this skill:
Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
coreyhaines31/marketingskills
When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers o
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
prowler-cloud/prowler
PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance