How this command is triggered — by the user, by Claude, or both
Slash command
/virtualboard:Architect-Generate_Architecture_Reportagents/architect/The summary Claude sees in its command listing — used to decide when to auto-load this command
# Generate Architecture Report (GAR) **Trigger Phrases:** - "Generate Architecture Report" - "GAR" - "Create architecture report" - "Architecture analysis" **Action:** When the Architect agent receives this command, it should: ## 1. Analyze System Architecture - Scan project structure and key directories - Identify architectural patterns in use (MVC, microservices, layered, etc.) - Review technology stack and frameworks - Map component dependencies and relationships - Identify integration points and external dependencies ### 2. Assess Architecture Quality - **Scalability:** Evaluate hor...
Trigger Phrases:
Action: When the Architect agent receives this command, it should:
Create report at .virtualboard/architecture/reports/AR-{YYYY-MM-DD}.md:
# Architecture Report
**Generated:** {YYYY-MM-DD}
**Architect:** {Name/Team}
**System:** {Project Name}
---
## Executive Summary
{2-3 sentence overview of architecture health and key findings}
---
## System Overview
### Technology Stack
- **Frontend:** {Framework/libraries}
- **Backend:** {Framework/language}
- **Database:** {Database system}
- **Infrastructure:** {Cloud provider, deployment model}
- **External Services:** {Third-party integrations}
### Architecture Pattern
**Primary Pattern:** {Monolith/Microservices/Serverless/Layered/etc.}
**Description:** {Brief description of how the architecture is organized}
---
## Component Analysis
### Layer 1: {Layer Name} (e.g., Presentation Layer)
**Purpose:** {What this layer does}
**Technologies:** {Technologies used}
**Components:**
- `{Component 1}` - {Description}
- `{Component 2}` - {Description}
**Dependencies:**
- Depends on: {Other layers/components}
- Used by: {Other layers/components}
**Health:** ✅ Good | ⚠️ Needs Attention | ❌ Critical Issues
---
### Layer 2: {Layer Name}
{Repeat structure}
---
## Architecture Diagram
```mermaid
graph TB
UI[User Interface]
API[API Gateway]
Auth[Authentication Service]
BL[Business Logic]
Data[Data Access Layer]
DB[(Database)]
Cache[(Cache)]
Queue[Message Queue]
UI --> API
API --> Auth
API --> BL
BL --> Data
Data --> DB
Data --> Cache
BL --> Queue
Rating: ⭐⭐⭐⭐☆ (4/5) Strengths:
Weaknesses:
Recommendations:
Rating: ⭐⭐⭐☆☆ (3/5) Bottlenecks Identified:
Optimization Opportunities:
Rating: ⭐⭐⭐⭐☆ (4/5) Security Measures:
Vulnerabilities:
Rating: ⭐⭐⭐☆☆ (3/5) Code Organization: {Assessment} Documentation: {Assessment} Technical Debt: {Assessment}
Rating: ⭐⭐⭐⭐☆ (4/5) Test Coverage: {XX}% Testing Strategy:
Rating: ⭐⭐⭐☆☆ (3/5) Error Handling: {Assessment} Monitoring: {Assessment} Disaster Recovery: {Assessment}
| Dependency | Version | Last Updated | Vulnerabilities | Status |
|---|---|---|---|---|
| {Package} | {Ver} | {Date} | {Count} | ✅/⚠️/❌ |
graph LR
A[Module A] --> B[Module B]
A --> C[Module C]
B --> D[Module D]
C --> D
Circular Dependencies: {None | List if found} Coupling Assessment: {Tight/Loose coupling analysis}
Total Debt Score: {X}/10 (lower is better)
| Service | Type | Purpose | Health Check | Documentation |
|---|---|---|---|---|
| {Name} | REST | {Why} | ✅ | {Link} |
{Action 1}
{Action 2}
{Summary of architecture health, key strengths, critical improvements needed}
.virtualboard/architecture/decisions/Next Review: {YYYY-MM-DD} Last Updated: {YYYY-MM-DD}
### 4. Create Directory if Needed
- Ensure `.virtualboard/architecture/reports/` exists
- Use `mkdir -p` to create if necessary
### 5. Announce Completion
- Inform the user that the architecture report has been created
- Provide the file path
- Highlight key findings, critical issues, and top recommendations
- Summarize overall architecture health rating
### 6. Optional — Generate Branded HTML Report
If the user appends `--html`, says "as HTML"/"branded HTML", or sets
`format: html`, also produce an HTML rendering. **Additive** — the Markdown
report is always written first.
1. Load `templates/reports/html/architect-architecture-report.html`. The
comment block at the top of that file lists every placeholder this command
must compute.
2. Inline `{{INCLUDE: _partials/<name>.html}}` directives until none remain.
3. Substitute `{{BRAND_LOGO_DATAURI}}` with the **stripped** contents of
`templates/reports/html/_partials/astucia-logo.b64.txt` (no leading/trailing
whitespace).
4. Substitute `{{BRAND_NAME}}` (default `Astucia`) and `{{BRAND_TAGLINE}}`
(default `AI Development Studio`) unless the user provided overrides.
5. Substitute the cross-cutting placeholders and the per-template scalars
listed in the template's comment header (`MATURITY_PERCENT`,
`MATURITY_VERDICT`, `MATURITY_VERDICT_CLASS`, `EXECUTIVE_SUMMARY_HTML`,
`OVERVIEW_HTML`, `QUALITY_TABLE_HTML`, `PATTERNS_HTML`, `INTEGRATION_HTML`,
`EVOLUTION_HTML`, `METRICS_HTML`, `CLOSING_ASSESSMENT_HTML`,
`KPI_RESPONSE_P95`, `KPI_THROUGHPUT`, `KPI_ERROR_RATE`, `KPI_UPTIME`,
`KPI_LOC`, `KPI_COMPLEXITY`, `KPI_TEST_COVERAGE`, `KPI_DUPLICATION`).
6. Build `RISKS_JSON` as a JSON.stringify-formatted array of objects with
keys `id`, `sev` (`critical`/`high`/`medium`/`low`), `title`, `file`,
`impact`, `likelihood`, `reco`. Escape any literal `</` inside values as
`<\/` to keep the inline `<script>` tag intact. Do **not** wrap the value
in extra quotes — the placeholder sits where the JSON expression goes.
7. Expand the list blocks (`HERO_META_CELLS`, `TOP_RISKS`, `TOP_OPPORTUNITIES`,
`COMPONENT_TABLE`, `TECH_DEBT_HIGH`, `TECH_DEBT_MEDIUM`, `TECH_DEBT_LOW`,
`IMMEDIATE_RECOS`, `SHORT_TERM_RECOS`, `LONG_TERM_RECOS`, `TRADEOFFS`).
8. Set each `LIST_EMPTY_<NAME>` scalar to `""` if the list has items, or to
a small italic note if empty.
9. Write the rendered HTML next to the Markdown:
`.virtualboard/architecture/reports/AR-{YYYY-MM-DD}.html`.
10. **Verify before reporting completion.** Search the output for any
literal `{{` — there must be none. Resolve leftovers (or substitute the
empty string for known-optional slots) before continuing.
11. In your final reply, list **both** file paths.
A filled-in reference example lives at
`templates/reports/examples/architect-architecture-report.example.html`. Open
it side-by-side with `reports/virtualboard-architecture-review-rev3.html` to
confirm visual parity.
npx claudepluginhub virtualboard/template-base --plugin virtualboard