一键导入
review-architecture
Analyze system architecture described in a note, identify design gaps, scalability concerns, and recommend improvements — auto-executes
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze system architecture described in a note, identify design gaps, scalability concerns, and recommend improvements — auto-executes
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate a sprint retrospective with KPI dashboard and action decision records
Generate a risk register PM block with probability, impact, and mitigation strategies
Generate downloadable Markdown or HTML files (reports, summaries, styled docs)
Conversational skill creator — build, test, and refine skills in chat
Generate a lightweight Architecture Decision Record as a Decision block
Creates a structured note from a homepage chat conversation
| name | review-architecture |
| description | Analyze system architecture described in a note, identify design gaps, scalability concerns, and recommend improvements — auto-executes |
| approval | auto |
| model | opus |
Perform a senior architect-level review of system architecture described in a note. Analyzes component design, data flows, scalability patterns, and alignment with project design decisions. Writes structured findings to a PM block for stakeholder review.
Use this skill when:
/review-architecture)Example:
User: "Review the architecture for our new notification system"
AI reviews:
- Component boundaries: Are responsibilities well-separated?
- Scalability: What's the bottleneck at 10k users?
- Data model: Correct relationship cardinality? Index strategy?
- Integration points: External dependencies, circuit breakers?
- Alignment: Does this follow DD-001 (async-first) and DD-064 (CQRS-lite)?
Parse Architecture Description
search_notes to find related architecture decisions or existing componentsget_project to understand project scope and tech stack constraintsAnalyze Architecture Dimensions
Classify Findings
Write Findings + PM Block
write_to_note to append ## Architecture Review sectioncreate_pm_block to generate an ADR-lite block summarizing the recommendationAuto-Execute
status: completed — review is read-only (DD-003){
"status": "completed",
"skill": "review-architecture",
"note_id": "note-uuid",
"summary": "Architecture review complete: 0 BLOCKERS, 2 HIGH, 3 MEDIUM",
"findings": {
"blockers": 0,
"high": 2,
"medium": 3,
"low": 1
},
"health_score": 72,
"top_recommendation": "Add circuit breaker to notification dispatch — single point of failure at Slack API",
"verdict": "REQUEST_CHANGES"
}
Input: Architecture note describing a notification service with direct DB calls
Output: Appends to note:
## Architecture Review
**Health Score**: 72/100 | **Verdict**: REQUEST_CHANGES
### [HIGH] Notification service makes direct DB calls — bypasses repository layer
**Component**: NotificationService → DB
**Issue**: Violates clean architecture. Service should use INotificationRepository. Direct SQLAlchemy calls in service layer create untestable coupling.
**Recommendation**: Introduce `INotificationRepository` protocol with `PostgresNotificationRepository` impl. Wire via DI container (DD-064).
### [HIGH] No circuit breaker on Slack API dispatch
**Component**: NotificationDispatcher → Slack API
**Issue**: Slack API outage will cause unbounded request queuing and potential OOM.
**Recommendation**: Wrap in `ResilientExecutor` with circuit breaker (3 failures → OPEN, 30s recovery). Use Supabase Queue for retry on failure.
### [MEDIUM] Missing idempotency key on notification dispatch
**Issue**: Retry on transient failure will send duplicate Slack messages.
**Recommendation**: Add `idempotency_key = sha256(user_id + event_type + event_id)` to dispatch payload.
Input: Proposed schema with junction table for many-to-many relationship
Output: Flags missing composite unique constraint, recommends partial index for active records.
search_notes: Find related architecture decisions and existing component patternsget_project: Fetch project context for scope and tech stack constraintswrite_to_note: Append architecture review findings to the notecreate_pm_block: Generate ADR-lite decision record for key recommendations/review-architecture command (Opus model)note_write_lock mutex only for PM block creation (C-3)