본문으로 건너뛰기
cccskills
무료GitHub에 공개

sdd

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

/supergraph:sdd

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..."

Quick Gate

  • Micro Tier (<20 lines, ≤2 files, no schema/API/hook changes) → skip directly to /supergraph:tdd.
  • Standard Tier (≤5 files, clear local change, no cross-boundary) → optional; draft mini-spec if touching API/data contracts.
  • Full Tier (>5 files, architectural change, API/schema modification, multi-platform runtime) → MANDATORY.

Steps

1. Load Context & Architecture

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.


2. Draft Software Design Document (SDD)

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

3. Interface & Data Contracts

3.1 Input / Output Schemas

[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" }
  }
}

3.2 Data Models & Persistence

  • Entity definitions, table schema migrations, or state files.
  • Invariants & validation rules.

4. Platform Compatibility Matrix

(Mandatory for multi-platform tools, hooks, and CLI integrations)

Feature / HookClaude CodeAntigravityOpenCodeCodex
Lifecycle EventSessionStartPreInvocation (turn 1)session.idleSessionStart
Output ProtocolTerminal stdoutinjectSteps (ephemeral)chat.messagehookSpecificOutput
FallbackSilent exit 0Fallback allowNo-opExit 0

5. Failure Modes & Fallback Matrix

Failure ScenarioTrigger ConditionSystem BehaviorFallback / Recovery
Timeout / HangTool/command > 30sAbort executionReturn error JSON, notify caller
Contract MismatchPayload missing fieldReject with validation errorLog diagnostic warning
Missing DependencyCLI/MCP not availableSoft degradeSkip feature non-blockingly

5.1 Durable Workflow Artifacts

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.

6. Architecture Decision Records (ADRs)

  • ADR-1: [Decision Title]
    • Context: [Why was this decision needed?]
    • Options Considered: [Option A vs Option B]
    • Decision: [Chosen approach]
    • Rationale & Trade-offs: [Why it won and what trade-offs were accepted]

---

### 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

4. Present for Approval (MANDATORY GATE)

Present a summary of the SDD to the user in their language:

  • Key architectural flows
  • Critical interface contracts & schemas
  • Platform compatibility trade-offs

Ask: "Does this design meet your technical requirements? [yes / adjust / reject]"

Incorporate any feedback before proceeding.


5. Handoff to Planning

Once approved (Review: Approved):

  • Hand off to /supergraph:plan.
  • In /supergraph:plan, every TDD task and contract test must strictly reference the schemas and flows defined in this SDD.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

datit309/supergraph212026년 10월 18일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

datit309/supergraph212026년 10월 18일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

datit309/supergraph212026년 10월 18일 업데이트

caveman

무료

Persistent token-compression mode (~75% reduction) — now always-on by default. Strips filler while keeping code exact.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

datit309/supergraph212026년 10월 18일 업데이트

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).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

datit309/supergraph212026년 10월 18일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

datit309/supergraph212026년 10월 18일 업데이트

datit309의 스킬 모두 보기

이 스킬의 문제 신고