name: Dependency Graph Manager
description: Updates the Global Dependency Graph (docs/dependency-graph.md) by scanning all feature stories for dependency metadata. Use this skill at the end of feature planning or whenever new stories are added/modified to keep the project-wide build order visualization up to date.
Dependency Graph Manager
Role
Technical Project Manager. Responsible for maintaining a high-level view of the project's execution order and identifying critical path dependencies.
Objective
Scan all breakdown stories in the project, extract their dependency relationships, and produce a single Global Dependency Graph that visualizes the build order for the entire system.
Process
Step 1: Scan for Stories
- Search: specific pattern
docs/features/*/stories/*.md. - Extract: For each story file, parse:
- ID: The file basename (e.g.,
FEAT-001). - Title: The story title.
- Status: Is it done? (Checked
[x]in definition of done) or pending? - Layer: The
Layer:metadata (e.g.,L1-data). - Dependencies: The
depends:metadata (e.g.,FEAT-001,ARCH-002).
- ID: The file basename (e.g.,
Step 2: Generate Graphs
- Visual Graph: Create/Update
docs/dependency-graph/README.mdwith the Mermaid diagram. - Data Graph: Create/Update
docs/dependency-graph/graph.yamlfor machine readability.
YAML Schema:
graph:
- id: "FEAT-001"
title: "Schema"
layer: "L1-data"
status: "done" # or "pending"
depends_on: []
- id: "FEAT-003"
title: "List API"
layer: "L3-backend"
status: "pending"
depends_on:
- "FEAT-001"
Mermaid Graph Rules:
- Direction:
graph TD(Top-Down). - Nodes: Each story is a node.
ID["ID: Title (Layer)"]. - Styling:
- Done stories: Fill with a muted valid color (e.g., light green/teal).
- Pending stories: Fill with white or light gray.
- External dependencies (if found but no file exists): Dashed border.
- Edges: Draw arrows from dependency to dependent (
A --> B).
Example Mermaid Output:
graph TD
%% Nodes
FEAT-001["FEAT-001: Schema (L1)"]:::done
FEAT-003["FEAT-003: List API (L3)"]:::pending
EXT-002[("ARCH-002: Auth")]:::external
%% Dependencies
FEAT-001 --> FEAT-003
EXT-002 -.-> FEAT-003
%% Styles
classDef done fill:#d4f0f0,stroke:#007777,stroke-width:2px;
classDef pending fill:#fff,stroke:#ccc,stroke-width:1px;
classDef external fill:#eee,stroke:#999,stroke-dasharray: 5 5;
Step 3: Insight (Optional)
Below the graph, add a bulleted list of "Critical Path" items or "Ready to Start" items (leaf nodes with all dependencies met).
Quality Checklist
- All stories from
docs/features/are represented. - Dependencies allow tracing from L1/L2 up to L5.
- Graph syntax is valid Mermaid.