analyze
免费Risk analysis and approach selection before planning. Use when requirements are ambiguous, approaches vary, or work touches hub/bridge nodes. Skip for typo fixes.
中文简介正在准备中。当前显示原文说明。
Create a Software Design Document (SDD) defining component architecture, data contracts, API schemas, and platform compatibility before planning. Use in Tier 3 (Full Pipeline) or when modifying interfaces, hooks, databases, or multi-platform contracts.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Draft a machine-readable Software Design Document (SDD) with Mermaid architecture diagrams, strict data/interface contracts, and platform compatibility matrices before task decomposition in /supergraph:plan.
Announce: "📐 /supergraph:sdd — drafting Software Design Document..."
/supergraph:tdd.1a. Read Domain Vocabulary:
head -60 CONTEXT.md 2>/dev/null || echo "No CONTEXT.md"
Always reuse terms from CONTEXT.md for entities, roles, and components.
1b. Read PRD (if exists):
Check latest PRD in docs/supergraph/plans/*prd*.md:
ls -t docs/supergraph/plans/*prd*.md 2>/dev/null | head -1
1c. Codebase Architecture Overview:
Query codebase-memory-mcp (get_architecture with overview, layers, boundaries) or inspect hub nodes with Serena. Identify affected components and cross-module boundaries.
Generate the document using the following structured template:
# SDD: [Feature / System Name]
Date: YYYY-MM-DD
Status: draft | approved
## 1. Context & Scope
- **Problem Statement:** [What technical gap or requirement does this address?]
- **Goals:** [Specific technical capabilities to enable]
- **Non-Goals:** [What this design explicitly does NOT cover]
## 2. Component & Flow Architecture
```mermaid
sequenceDiagram
autonumber
actor User/Agent
participant Orchestrator
participant SubsystemA
participant SubsystemB
User/Agent->>Orchestrator: Trigger action
Orchestrator->>SubsystemA: Process contract payload
SubsystemA-->>Orchestrator: Return typed response
Orchestrator->>SubsystemB: Apply changes / sync
SubsystemB-->>Orchestrator: Ack / Status
[Define exact JSON schemas, TypeScript interfaces, Protobuf, or CLI stdin/stdout contracts]
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["status", "data"],
"properties": {
"status": { "type": "string", "enum": ["ok", "error"] },
"data": { "type": "object" }
}
}
(Mandatory for multi-platform tools, hooks, and CLI integrations)
| Feature / Hook | Claude Code | Antigravity | OpenCode | Codex |
|---|---|---|---|---|
| Lifecycle Event | SessionStart | PreInvocation (turn 1) | session.idle | SessionStart |
| Output Protocol | Terminal stdout | injectSteps (ephemeral) | chat.message | hookSpecificOutput |
| Fallback | Silent exit 0 | Fallback allow | No-op | Exit 0 |
| Failure Scenario | Trigger Condition | System Behavior | Fallback / Recovery |
|---|---|---|---|
| Timeout / Hang | Tool/command > 30s | Abort execution | Return error JSON, notify caller |
| Contract Mismatch | Payload missing field | Reject with validation error | Log diagnostic warning |
| Missing Dependency | CLI/MCP not available | Soft degrade | Skip feature non-blockingly |
For every approved Full-tier design, keep execution evidence under the deterministic artifact root .supergraph/sdd/<plan-basename>/:
ledger.md records task ownership, dispatch decisions, conflict rulings, review rounds, and circuit-breaker outcomes.task-N-brief.md is the exact task slice sent to an implementer.task-N-report.md records RED/GREEN/REFACTOR, changed files, and verification results.review-<base>..<head>.diff is the bounded review package for the task range.The execute helpers task-brief and review-package must validate their plan/ref inputs before producing artifacts. A missing or invalid plan is a hard failure; never silently select another plan.
---
### 3. Save SDD File
Save the design document to:
```bash
mkdir -p docs/supergraph/sdd
# Path: docs/supergraph/sdd/YYYY-MM-DD-sdd-<slug>.md
Present a summary of the SDD to the user in their language:
Ask: "Does this design meet your technical requirements? [yes / adjust / reject]"
Incorporate any feedback before proceeding.
Once approved (Review: Approved):
/supergraph:plan./supergraph:plan, every TDD task and contract test must strictly reference the schemas and flows defined in this SDD.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Risk analysis and approach selection before planning. Use when requirements are ambiguous, approaches vary, or work touches hub/bridge nodes. Skip for typo fixes.
中文简介正在准备中。当前显示原文说明。
Proactive architecture review — explore codebase structure, generate a self-contained HTML report with Mermaid diagrams and candidate improvements, then grill the findings. Use when planning a large refactor, onboarding to an unfamiliar codebase, or before a major architectural change.
中文简介正在准备中。当前显示原文说明。
Autonomous human-like browser control and professional QA/QC testing. Powered by agent-browser (Rust native CDP, zero Playwright) with ISTQB test matrix generation, automated testcase execution, console/network error tracing, and defect reporting.
中文简介正在准备中。当前显示原文说明。
Persistent token-compression mode (~75% reduction) — now always-on by default. Strips filler while keeping code exact.
中文简介正在准备中。当前显示原文说明。
Database migration best practices for schema changes, data migrations, rollbacks, and zero-downtime deployments across PostgreSQL, MySQL, and common ORMs (Prisma, Drizzle, Kysely, Django, TypeORM, golang-migrate).
中文简介正在准备中。当前显示原文说明。
Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces that do not look templated. Real design systems when applicable, audit-first on redesigns, strict pre-flight check.
中文简介正在准备中。当前显示原文说明。