diagram

v1.0.0

Auto-generate Mermaid diagrams of SDD workflow state, feature progress, and task dependencies.

Community extension — Independently maintained. Use at your own discretion. Learn more

spec-kit-diagram

A Spec Kit extension that auto-generates Mermaid diagrams for SDD workflow visualization, feature progress tracking, and task dependency graphs.

Problem

Spec Kit projects grow quickly — multiple features, dozens of tasks, complex dependency chains. Teams struggle with:

  • No visual overview of the SDD workflow or where a project currently stands
  • No way to see all features and their progress at a glance
  • Task dependencies in tasks.md are text-based and hard to reason about
  • New team members cannot quickly understand the project's lifecycle state
  • No visual aid for sprint planning or stakeholder updates

Solution

The Diagram extension adds three commands that generate GitHub-renderable Mermaid diagrams:

CommandPurposeModifies Files?
/speckit.diagram.workflowVisualize the full SDD lifecycle with phase statusNo — read-only
/speckit.diagram.statusShow feature progress across all SDD phasesNo — read-only
/speckit.diagram.dependenciesVisualize task dependency DAG with execution wavesNo — read-only

Installation

specify extension add --from https://github.com/Quratulain-bilal/spec-kit-diagram-/archive/refs/tags/v1.0.0.zip

Commands

/speckit.diagram.workflow

Generates a Mermaid flowchart of the complete SDD workflow:

  • Shows all phases: Constitution → Specify → Plan → Tasks → Implement → Verify
  • Color-codes phases by status (completed, in-progress, not started)
  • Includes feedback loops and iteration paths (e.g., refine → re-plan)
  • Adapts to installed extensions (adds refine, reconcile nodes if present)

/speckit.diagram.status

Generates a Mermaid Gantt chart showing feature progress:

  • Lists every feature under specs/ with its current phase
  • Shows task completion percentage for features in the Implement phase
  • Identifies stale or blocked features
  • Provides a summary table with progress stats

/speckit.diagram.dependencies

Generates a Mermaid DAG from tasks.md:

  • Parses task IDs, dependencies, and completion status
  • Groups tasks into execution waves (parallel scheduling)
  • Identifies the critical path (longest dependency chain)
  • Color-codes by status: completed (green), ready (yellow), blocked (gray)
  • Reports statistics: total, completed, ready, blocked tasks

Workflow

/speckit.diagram.workflow      ← See the full SDD lifecycle
       │
       ▼
/speckit.diagram.status        ← Track feature progress
       │
       ▼
/speckit.diagram.dependencies  ← Visualize task dependencies

Output Format

All diagrams use Mermaid syntax that renders natively on:

  • GitHub (README, issues, PRs, wikis)
  • GitLab
  • VS Code (with Mermaid extension)
  • Notion, Obsidian, and other Markdown tools

Hooks

The extension registers an optional hook:

  • after_tasks: Auto-generates a task dependency diagram after task breakdown

Design Decisions

  • Read-only — all three commands produce output without modifying any files
  • Mermaid syntax — renders natively on GitHub, no external tools needed
  • Status-aware — diagrams reflect actual project state, not static templates
  • Wave-based grouping — dependency diagrams group tasks by execution wave for clear parallel scheduling
  • Scalable — large task sets are grouped by phase to keep diagrams readable

Requirements

  • Spec Kit >= 0.4.0

Related

  • Issue #467 — SpecKit Workflow Diagram (50+ upvotes)

License

MIT

Stats

8 stars

Version

1.0.0
Updated about 1 month ago

Install

Using the Specify CLI

specify extension add diagram --from https://github.com/Quratulain-bilal/spec-kit-diagram-/archive/refs/tags/v1.0.0.zip

License

MIT