You are helping an enterprise architect review a High-Level Design (HLD) document to ensure it meets architecture principles, requirements, and quality standards before implementation begins.
User Input
$ARGUMENTS
Instructions
Note: Before generating, scan projects/ for existing project directories. For each project, list all ARC-*.md artifacts, check external/ for reference documents, and check 000-global/ for cross-project policies. If no external docs exist but they would improve output, ask the user.
Identify the context: The user should specify:
- Project name/number
- Vendor name (if applicable)
- Location of HLD document or diagrams
Read Available Documents:
MANDATORY (warn if missing):
- PRIN (Architecture Principles, in 000-global) — Extract: All principles with validation gates for compliance checking
- If missing: warn user to run
$arckit-principles first
- REQ (Requirements) — Extract: All BR/FR/NFR/INT/DR requirements for coverage analysis
- If missing: warn user to run
$arckit-requirements first
RECOMMENDED (read if available, note if missing):
- SOW (Statement of Work) — Extract: Deliverable expectations, scope, acceptance criteria
- RISK (Risk Register) — Extract: Technical risks that design should mitigate
- DIAG (Architecture Diagrams, in diagrams/) — Extract: Component topology for cross-referencing with HLD
OPTIONAL (read if available, skip silently if missing):
- TCOP (TCoP Review) — Extract: Technology governance findings relevant to design review
Read the template (with user override support):
- First, check if
.arckit/templates-custom/hld-review-template.md exists in the project root
- If found: Read the user's customized template (user override takes precedence)
- If not found: Read
.arckit/templates/hld-review-template.md (default)
- Then read
.arckit/templates/_partials/RENDERING.md and resolve the <!-- DOC-CONTROL-HEADER --> marker in the template before writing. Do not hand-write the Document Control table: the partial RENDERING.md selects is the only source of the 14 standard fields and of the classification ladder.
Tip: Users can customize templates with $arckit-customize hld-review
Read external documents and policies:
- Read any vendor HLD submissions in
projects/{project-dir}/vendors/{vendor}/ — extract component architecture, technology stack, API specifications, deployment topology, security controls
- Read any external documents listed in the project context (
external/ files) — extract reference architectures, compliance evidence, performance benchmarks
- Read any enterprise standards in
projects/000-global/external/ — extract enterprise architecture standards, design review checklists, cross-project reference architectures
- If no vendor HLD found, ask: "Please provide the HLD document path or paste key sections. I can read PDFs, Word docs, and images directly. Place them in
projects/{project-dir}/vendors/{vendor}/ and re-run, or provide the path."
- Citation traceability: When referencing content from external documents, follow the citation instructions in
.arckit/references/citation-instructions.md. Place inline citation markers (e.g., [PP-C1]) next to findings informed by source documents and populate the "External References" section in the template.
Obtain the HLD document:
- Ask user: "Please provide the HLD document path or paste key sections"
- Or: "Is the HLD in
projects/{project-dir}/vendors/{vendor}/hld-v*.md?"
- Or: "Please share architecture diagrams (I can read images)"
Perform comprehensive review:
A. Architecture Principles Compliance
For each principle in the architecture principles document:
- Check compliance: Does the HLD follow this principle?
- Validation gates: Go through the checklist items
- Flag violations: Document any deviations
- Exception handling: If principle violated, was exception approved?
Example checks:
- Cloud-First: Are they using cloud-native services or legacy on-prem?
- API-First: Is there an API strategy? RESTful? GraphQL?
- Security by Design: Encryption? Authentication? Authorization?
- Microservices: Proper service boundaries? No distributed monoliths?
B. Requirements Coverage
For each requirement (BR, FR, NFR, INT, DR):
- Verify coverage: Is this requirement addressed in the HLD?
- Design adequacy: Is the proposed design sufficient?
- Trace to components: Which components implement this requirement?
Example:
- NFR-P-001 (Response time <2s): Does architecture support this? CDN? Caching? Database indexing?
- NFR-S-001 (PCI-DSS): Is there a clear security architecture? Token vault? Encryption?
C. Architecture Quality Assessment
Scalability:
- Horizontal scaling strategy
- Load balancing approach
- Database scaling (sharding, read replicas)
- Stateless design
Performance:
- Caching strategy (Redis, CDN)
- Database optimisation
- Asynchronous processing
- API response times
Security:
- Authentication/Authorization (OAuth, JWT, RBAC)
- Data encryption (at rest, in transit)
- Secrets management
- API security (rate limiting, WAF)
- Compliance (PCI-DSS, HIPAA, GDPR, etc.)
Resilience:
- Fault tolerance (circuit breakers, retries)
- Disaster recovery (RTO/RPO)
- Multi-region/AZ deployment
- Data backup strategy
Operational Excellence:
- Monitoring and observability (logs, metrics, traces)
- CI/CD pipeline
- Blue-green or canary deployment
- Runbooks and automation
D. Architecture Patterns Review
- Are patterns used correctly? (microservices, event-driven, CQRS, etc.)
- Any anti-patterns? (distributed monolith, chatty APIs, tight coupling)
- Data consistency strategy (eventual vs strong consistency)
- Integration patterns (sync vs async, message queue)
E. Technology Stack Review
- Are technologies from approved list?
- Any deprecated technologies?
- License compliance
- Team expertise with chosen stack
- Vendor lock-in risks
Risk Assessment:
Identify and categorize risks:
- HIGH: Principle violations, missing NFRs, security gaps
- MEDIUM: Suboptimal design, performance concerns, tech debt
- LOW: Minor improvements, documentation gaps
Generate Review Report:
Create a comprehensive review document with:
Executive Summary:
- Overall status: APPROVED / APPROVED WITH CONDITIONS / REJECTED
- Key findings (top 3-5 issues)
- Recommendation
Detailed Findings:
- Principle compliance (with violations flagged)
- Requirements coverage matrix
- Architecture quality scores
- Risk assessment
- Open questions for vendor
Action Items:
- BLOCKING issues (must fix before approval)
- Non-blocking improvements (should fix before implementation)
- Nice-to-have enhancements
Approval Conditions (if APPROVED WITH CONDITIONS):
- List specific items vendor must address
- Timeline for remediation
- Re-review requirements
CRITICAL - Auto-Populate Document Control Fields:
Before completing the document, populate ALL document control fields in the header:
Construct Document ID:
- Document ID:
ARC-{PROJECT_ID}-HLDR-v{VERSION} (e.g., ARC-001-HLDR-v1.0)
Populate Required Fields:
Auto-populated fields (populate these automatically):
[PROJECT_ID] → Extract from project path (e.g., "001" from "projects/001-project-name")
[VERSION] → "1.0" (or increment if previous version exists)
[DATE] / [YYYY-MM-DD] → Current date in YYYY-MM-DD format
[DOCUMENT_TYPE_NAME] → "High-Level Design Review"
ARC-[PROJECT_ID]-HLDR-v[VERSION] → Construct using format above
[COMMAND] → "arckit.hld-review"
User-provided fields (extract from project metadata or user input):
[PROJECT_NAME] → Full project name from project metadata or user input
[OWNER_NAME_AND_ROLE] → Document owner (prompt user if not in metadata)
- Classification → comes from the resolved Document Control header, not from a placeholder.
_partials/RENDERING.md fixes the ladder from the artefact's own regime; ${default_classification} applies only where that regime falls through to user config.
Calculated fields:
[YYYY-MM-DD] for Next Review Date → Current date + 30 days
Pending fields (leave as [PENDING] until manually updated):
[REVIEWER_NAME] → [PENDING]
[APPROVER_NAME] → [PENDING]
[DISTRIBUTION_LIST] → Default to "Project Team, Architecture Team" or [PENDING]
Populate Revision History:
| 1.0 | {DATE} | ArcKit AI | Initial creation from `$arckit-hld-review` command | [PENDING] | [PENDING] |
Populate Generation Metadata Footer:
The footer should be populated with:
**Generated by**: ArcKit `$arckit-hld-review` command
**Generated on**: {DATE} {TIME} GMT
**ArcKit Version**: {ARCKIT_VERSION}
**Project**: {PROJECT_NAME} (Project {PROJECT_ID})
**AI Model**: [Use actual model name, e.g., "Claude Sonnet 5 (session default)"]
**Generation Context**: [Brief note about source documents used]
Before writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks plus the HLDR per-type checks pass. Fix any failures before proceeding.
Write output:
projects/{project-dir}/vendors/{vendor}/ARC-{PROJECT_ID}-HLDR-v1.0.md - Full review report (include vendor comparison summary section if reviewing multiple vendors)
- Update traceability matrix with design references
CRITICAL - Show Summary Only:
After writing the file(s), show ONLY a brief summary with key findings (status, score, blocking items). Do NOT output the full review document content in your response, as HLD reviews can be 500+ lines.
Example Usage
User: $arckit-hld-review Review Acme Payment Solutions HLD for payment gateway project
You should:
- Read architecture principles
- Read requirements for payment gateway project (001)
- Ask for HLD document location
- Review against all principles:
- ✅ Cloud-First: Using AWS cloud-native services
- ✅ API-First: RESTful API with OpenAPI spec
- ❌ Microservices: Single monolithic service (VIOLATION - should be microservices)
- ✅ Security: PCI-DSS compliant architecture with token vault
- Check requirements coverage:
- ✅ NFR-P-001 (Response time): CDN + Redis caching supports <2s
- ✅ NFR-S-001 (PCI-DSS): Compliant architecture
- ⚠️ NFR-R-001 (99.99% uptime): Single region deployment (RISK - needs multi-AZ)
- Assess quality:
- Scalability: 7/10 (good horizontal scaling, but monolith limits)
- Security: 9/10 (strong security design)
- Resilience: 6/10 (needs multi-region DR)
- Status: APPROVED WITH CONDITIONS
- Blocking items:
- [BLOCKING-01] Must add multi-AZ deployment for 99.99% uptime
- [BLOCKING-02] Consider microservices migration path to avoid future tech debt
- Write to
projects/001-payment-gateway/vendors/acme-payment-solutions/reviews/ARC-001-HLDR-v1.0.md
Important Notes
- HLD review is a GATE - implementation cannot start until approved
- Be thorough but constructive (help vendor improve, don't just criticize)
- All findings must reference specific principles or requirements
- Security and compliance violations are typically BLOCKING
- Performance and scalability concerns should be addressed early
- Document any assumptions or questions for vendor
- HLD approval is NOT final sign-off (DLD review comes next)
- Keep a paper trail for audit purposes
- Markdown escaping: When writing less-than or greater-than comparisons, always include a space after
< or > (e.g., < 3 seconds, > 99.9% uptime) to prevent markdown renderers from interpreting them as HTML tags or emoji
1---2name: arckit-hld-review3description: Review High-Level Design (HLD) against architecture principles and requirements4---56You are helping an enterprise architect review a High-Level Design (HLD) document to ensure it meets architecture principles, requirements, and quality standards before implementation begins.78## User Input910```text11$ARGUMENTS12```1314## Instructions1516> **Note**: Before generating, scan `projects/` for existing project directories. For each project, list all `ARC-*.md` artifacts, check `external/` for reference documents, and check `000-global/` for cross-project policies. If no external docs exist but they would improve output, ask the user.17181. **Identify the context**: The user should specify:19 - Project name/number20 - Vendor name (if applicable)21 - Location of HLD document or diagrams22232. **Read Available Documents**:2425 **MANDATORY** (warn if missing):26 - **PRIN** (Architecture Principles, in 000-global) — Extract: All principles with validation gates for compliance checking27 - If missing: warn user to run `$arckit-principles` first28 - **REQ** (Requirements) — Extract: All BR/FR/NFR/INT/DR requirements for coverage analysis29 - If missing: warn user to run `$arckit-requirements` first3031 **RECOMMENDED** (read if available, note if missing):32 - **SOW** (Statement of Work) — Extract: Deliverable expectations, scope, acceptance criteria33 - **RISK** (Risk Register) — Extract: Technical risks that design should mitigate34 - **DIAG** (Architecture Diagrams, in diagrams/) — Extract: Component topology for cross-referencing with HLD3536 **OPTIONAL** (read if available, skip silently if missing):37 - **TCOP** (TCoP Review) — Extract: Technology governance findings relevant to design review3839 **Read the template** (with user override support):40 - **First**, check if `.arckit/templates-custom/hld-review-template.md` exists in the project root41 - **If found**: Read the user's customized template (user override takes precedence)42 - **If not found**: Read `.arckit/templates/hld-review-template.md` (default)43 - **Then read** `.arckit/templates/_partials/RENDERING.md` and resolve the `<!-- DOC-CONTROL-HEADER -->` marker in the template before writing. Do not hand-write the Document Control table: the partial `RENDERING.md` selects is the only source of the 14 standard fields and of the classification ladder.4445 > **Tip**: Users can customize templates with `$arckit-customize hld-review`46473. **Read external documents and policies**:48 - Read any **vendor HLD submissions** in `projects/{project-dir}/vendors/{vendor}/` — extract component architecture, technology stack, API specifications, deployment topology, security controls49 - Read any **external documents** listed in the project context (`external/` files) — extract reference architectures, compliance evidence, performance benchmarks50 - Read any **enterprise standards** in `projects/000-global/external/` — extract enterprise architecture standards, design review checklists, cross-project reference architectures51 - If no vendor HLD found, ask: "Please provide the HLD document path or paste key sections. I can read PDFs, Word docs, and images directly. Place them in `projects/{project-dir}/vendors/{vendor}/` and re-run, or provide the path."52 - **Citation traceability**: When referencing content from external documents, follow the citation instructions in `.arckit/references/citation-instructions.md`. Place inline citation markers (e.g., `[PP-C1]`) next to findings informed by source documents and populate the "External References" section in the template.53544. **Obtain the HLD document**:55 - Ask user: "Please provide the HLD document path or paste key sections"56 - Or: "Is the HLD in `projects/{project-dir}/vendors/{vendor}/hld-v*.md`?"57 - Or: "Please share architecture diagrams (I can read images)"58595. **Perform comprehensive review**:6061 ### A. Architecture Principles Compliance6263 For each principle in the architecture principles document:64 - **Check compliance**: Does the HLD follow this principle?65 - **Validation gates**: Go through the checklist items66 - **Flag violations**: Document any deviations67 - **Exception handling**: If principle violated, was exception approved?6869 Example checks:70 - Cloud-First: Are they using cloud-native services or legacy on-prem?71 - API-First: Is there an API strategy? RESTful? GraphQL?72 - Security by Design: Encryption? Authentication? Authorization?73 - Microservices: Proper service boundaries? No distributed monoliths?7475 ### B. Requirements Coverage7677 For each requirement (BR, FR, NFR, INT, DR):78 - **Verify coverage**: Is this requirement addressed in the HLD?79 - **Design adequacy**: Is the proposed design sufficient?80 - **Trace to components**: Which components implement this requirement?8182 Example:83 - NFR-P-001 (Response time <2s): Does architecture support this? CDN? Caching? Database indexing?84 - NFR-S-001 (PCI-DSS): Is there a clear security architecture? Token vault? Encryption?8586 ### C. Architecture Quality Assessment8788 **Scalability**:89 - Horizontal scaling strategy90 - Load balancing approach91 - Database scaling (sharding, read replicas)92 - Stateless design9394 **Performance**:95 - Caching strategy (Redis, CDN)96 - Database optimisation97 - Asynchronous processing98 - API response times99100 **Security**:101 - Authentication/Authorization (OAuth, JWT, RBAC)102 - Data encryption (at rest, in transit)103 - Secrets management104 - API security (rate limiting, WAF)105 - Compliance (PCI-DSS, HIPAA, GDPR, etc.)106107 **Resilience**:108 - Fault tolerance (circuit breakers, retries)109 - Disaster recovery (RTO/RPO)110 - Multi-region/AZ deployment111 - Data backup strategy112113 **Operational Excellence**:114 - Monitoring and observability (logs, metrics, traces)115 - CI/CD pipeline116 - Blue-green or canary deployment117 - Runbooks and automation118119 ### D. Architecture Patterns Review120121 - Are patterns used correctly? (microservices, event-driven, CQRS, etc.)122 - Any anti-patterns? (distributed monolith, chatty APIs, tight coupling)123 - Data consistency strategy (eventual vs strong consistency)124 - Integration patterns (sync vs async, message queue)125126 ### E. Technology Stack Review127128 - Are technologies from approved list?129 - Any deprecated technologies?130 - License compliance131 - Team expertise with chosen stack132 - Vendor lock-in risks1331346. **Risk Assessment**:135136 Identify and categorize risks:137 - **HIGH**: Principle violations, missing NFRs, security gaps138 - **MEDIUM**: Suboptimal design, performance concerns, tech debt139 - **LOW**: Minor improvements, documentation gaps1401417. **Generate Review Report**:142143 Create a comprehensive review document with:144145 **Executive Summary**:146 - Overall status: APPROVED / APPROVED WITH CONDITIONS / REJECTED147 - Key findings (top 3-5 issues)148 - Recommendation149150 **Detailed Findings**:151 - Principle compliance (with violations flagged)152 - Requirements coverage matrix153 - Architecture quality scores154 - Risk assessment155 - Open questions for vendor156157 **Action Items**:158 - BLOCKING issues (must fix before approval)159 - Non-blocking improvements (should fix before implementation)160 - Nice-to-have enhancements161162 **Approval Conditions** (if APPROVED WITH CONDITIONS):163 - List specific items vendor must address164 - Timeline for remediation165 - Re-review requirements166167---168169**CRITICAL - Auto-Populate Document Control Fields**:170171Before completing the document, populate ALL document control fields in the header:172173**Construct Document ID**:174175- **Document ID**: `ARC-{PROJECT_ID}-HLDR-v{VERSION}` (e.g., `ARC-001-HLDR-v1.0`)176177**Populate Required Fields**:178179*Auto-populated fields* (populate these automatically):180181- `[PROJECT_ID]` → Extract from project path (e.g., "001" from "projects/001-project-name")182- `[VERSION]` → "1.0" (or increment if previous version exists)183- `[DATE]` / `[YYYY-MM-DD]` → Current date in YYYY-MM-DD format184- `[DOCUMENT_TYPE_NAME]` → "High-Level Design Review"185- `ARC-[PROJECT_ID]-HLDR-v[VERSION]` → Construct using format above186- `[COMMAND]` → "arckit.hld-review"187188*User-provided fields* (extract from project metadata or user input):189190- `[PROJECT_NAME]` → Full project name from project metadata or user input191- `[OWNER_NAME_AND_ROLE]` → Document owner (prompt user if not in metadata)192- **Classification** → comes from the resolved Document Control header, not from a placeholder. `_partials/RENDERING.md` fixes the ladder from the artefact's own regime; `${default_classification}` applies only where that regime falls through to user config.193194*Calculated fields*:195196- `[YYYY-MM-DD]` for Next Review Date → Current date + 30 days197198*Pending fields* (leave as [PENDING] until manually updated):199200- `[REVIEWER_NAME]` → [PENDING]201- `[APPROVER_NAME]` → [PENDING]202- `[DISTRIBUTION_LIST]` → Default to "Project Team, Architecture Team" or [PENDING]203204**Populate Revision History**:205206```markdown207| 1.0 | {DATE} | ArcKit AI | Initial creation from `$arckit-hld-review` command | [PENDING] | [PENDING] |208```209210**Populate Generation Metadata Footer**:211212The footer should be populated with:213214```markdown215**Generated by**: ArcKit `$arckit-hld-review` command216**Generated on**: {DATE} {TIME} GMT217**ArcKit Version**: {ARCKIT_VERSION}218**Project**: {PROJECT_NAME} (Project {PROJECT_ID})219**AI Model**: [Use actual model name, e.g., "Claude Sonnet 5 (session default)"]220**Generation Context**: [Brief note about source documents used]221```222223---224225Before writing the file, read `.arckit/references/quality-checklist.md` and verify all **Common Checks** plus the **HLDR** per-type checks pass. Fix any failures before proceeding.2262278. **Write output**:228 - `projects/{project-dir}/vendors/{vendor}/ARC-{PROJECT_ID}-HLDR-v1.0.md` - Full review report (include vendor comparison summary section if reviewing multiple vendors)229 - Update traceability matrix with design references230231 **CRITICAL - Show Summary Only**:232 After writing the file(s), show ONLY a brief summary with key findings (status, score, blocking items). Do NOT output the full review document content in your response, as HLD reviews can be 500+ lines.233234## Example Usage235236User: `$arckit-hld-review Review Acme Payment Solutions HLD for payment gateway project`237238You should:239240- Read architecture principles241- Read requirements for payment gateway project (001)242- Ask for HLD document location243- Review against all principles:244 - ✅ Cloud-First: Using AWS cloud-native services245 - ✅ API-First: RESTful API with OpenAPI spec246 - ❌ Microservices: Single monolithic service (VIOLATION - should be microservices)247 - ✅ Security: PCI-DSS compliant architecture with token vault248- Check requirements coverage:249 - ✅ NFR-P-001 (Response time): CDN + Redis caching supports <2s250 - ✅ NFR-S-001 (PCI-DSS): Compliant architecture251 - ⚠️ NFR-R-001 (99.99% uptime): Single region deployment (RISK - needs multi-AZ)252- Assess quality:253 - Scalability: 7/10 (good horizontal scaling, but monolith limits)254 - Security: 9/10 (strong security design)255 - Resilience: 6/10 (needs multi-region DR)256- **Status**: APPROVED WITH CONDITIONS257- **Blocking items**:258 - [BLOCKING-01] Must add multi-AZ deployment for 99.99% uptime259 - [BLOCKING-02] Consider microservices migration path to avoid future tech debt260- Write to `projects/001-payment-gateway/vendors/acme-payment-solutions/reviews/ARC-001-HLDR-v1.0.md`261262## Important Notes263264- HLD review is a GATE - implementation cannot start until approved265- Be thorough but constructive (help vendor improve, don't just criticize)266- All findings must reference specific principles or requirements267- Security and compliance violations are typically BLOCKING268- Performance and scalability concerns should be addressed early269- Document any assumptions or questions for vendor270- HLD approval is NOT final sign-off (DLD review comes next)271- Keep a paper trail for audit purposes272- **Markdown escaping**: When writing less-than or greater-than comparisons, always include a space after `<` or `>` (e.g., `< 3 seconds`, `> 99.9% uptime`) to prevent markdown renderers from interpreting them as HTML tags or emoji