# riverflow96/sdd-workflow-kit architecture

> Architecture diagram of the GitHub repository riverflow96/sdd-workflow-kit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/riverflow96/sdd-workflow-kit
- Repository: https://github.com/riverflow96/sdd-workflow-kit

## Overview

SDD Workflow Kit combines a human-led specification-to-verification method with starter documents and a local initializer. The principal workflow is a project team adapting the methodology and templates, then using them to clarify a change, approve a specification and plan, authorize tasks, implement, verify, and record evidence. The executable product is small: its initializer copies absent files or performs a read-only installation check. The tree and excerpts do not expose adapter contents, so their internal behavior and connections are not inferred.

Main entry points: [`scripts/init.py`](https://github.com/riverflow96/sdd-workflow-kit/blob/main/scripts/init.py) (Initializer CLI), [`docs/templates/plan.md`](https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/templates/plan.md) (Implementation plan), [`docs/templates/spec.md`](https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/templates/spec.md) (Specification), [`docs/templates/tasks.md`](https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/templates/tasks.md) (Authorized tasks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["SDD workflow"]
  node_request["Change request<br/>[methodology.md]"]
  node_spec["Specification<br/>[spec.md]"]
  node_plan["Implementation plan<br/>[plan.md]"]
  node_tasks["Authorized tasks<br/>[tasks.md]"]
  node_implementation["Implementation"]
  node_verification["Verification<br/>[project-policy.md]"]
  node_evidence["Completion evidence<br/>[methodology.md]"]
end

subgraph group_kit["Kit resources"]
  node_methodology["Methodology<br/>[methodology.md]"]
  node_policy["Project policy<br/>[project-policy.md]"]
  node_agent_guidance["Agent guidance<br/>[AGENTS.md]"]
  node_claude_guidance["Claude guidance<br/>[CLAUDE.md]"]
  node_adapters["Agent adapters"]
end

subgraph group_initializer["Local initializer"]
  node_initializer["Initializer CLI<br/>[init.py]"]
end

node_team(("Project team"))
node_target[("Existing project")]
node_installed_files["Installed workflow files"]
node_version["Version marker"]
node_diagnostic["Check report"]

node_team -->|"defines change"| node_request
node_team -->|"drafts and approves"| node_spec
node_spec -->|"guides"| node_plan
node_team -->|"approves"| node_plan
node_plan -->|"breaks down"| node_tasks
node_team -->|"authorizes"| node_tasks
node_team -->|"implements"| node_implementation
node_implementation -->|"undergoes"| node_verification
node_team -->|"records and closes"| node_evidence
node_team -->|"adapts"| node_methodology
node_team -->|"configures"| node_policy
node_team -->|"reviews"| node_agent_guidance
node_team -->|"reviews"| node_claude_guidance
node_team -->|"connects agents"| node_adapters
node_team -->|"runs locally"| node_initializer
node_initializer -->|"validates directory"| node_target
node_initializer -->|"copies absent files"| node_installed_files
node_initializer -->|"writes if absent"| node_version
node_initializer -->|"reports status"| node_diagnostic
node_initializer -->|"checks installation"| node_target

click node_request "https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/methodology.md"
click node_spec "https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/templates/spec.md"
click node_plan "https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/templates/plan.md"
click node_tasks "https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/templates/tasks.md"
click node_verification "https://github.com/riverflow96/sdd-workflow-kit/blob/main/templates/project/docs/sdd/project-policy.md"
click node_evidence "https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/methodology.md"
click node_methodology "https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/methodology.md"
click node_policy "https://github.com/riverflow96/sdd-workflow-kit/blob/main/templates/project/docs/sdd/project-policy.md"
click node_agent_guidance "https://github.com/riverflow96/sdd-workflow-kit/blob/main/templates/project/AGENTS.md"
click node_claude_guidance "https://github.com/riverflow96/sdd-workflow-kit/blob/main/templates/project/CLAUDE.md"
click node_adapters "https://github.com/riverflow96/sdd-workflow-kit/tree/main/adapters"
click node_initializer "https://github.com/riverflow96/sdd-workflow-kit/blob/main/scripts/init.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_request,node_spec,node_plan,node_tasks,node_implementation,node_verification,node_evidence toneBlue
class node_methodology,node_policy,node_agent_guidance,node_claude_guidance,node_adapters,node_target toneAmber
class node_initializer toneMint
class node_team,node_installed_files,node_version,node_diagnostic toneIndigo
```

## Components

### SDD workflow

- [Change request](https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/methodology.md): `docs/methodology.md`
- [Specification](https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/templates/spec.md): `docs/templates/spec.md`
- [Implementation plan](https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/templates/plan.md): `docs/templates/plan.md`
- [Authorized tasks](https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/templates/tasks.md): `docs/templates/tasks.md`
- **Implementation**
- [Verification](https://github.com/riverflow96/sdd-workflow-kit/blob/main/templates/project/docs/sdd/project-policy.md): `templates/project/docs/sdd/project-policy.md`
- [Completion evidence](https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/methodology.md): `docs/methodology.md`

### Kit resources

- [Methodology](https://github.com/riverflow96/sdd-workflow-kit/blob/main/docs/methodology.md): `docs/methodology.md`
- [Project policy](https://github.com/riverflow96/sdd-workflow-kit/blob/main/templates/project/docs/sdd/project-policy.md): `templates/project/docs/sdd/project-policy.md`
- [Agent guidance](https://github.com/riverflow96/sdd-workflow-kit/blob/main/templates/project/AGENTS.md): `templates/project/AGENTS.md`
- [Claude guidance](https://github.com/riverflow96/sdd-workflow-kit/blob/main/templates/project/CLAUDE.md): `templates/project/CLAUDE.md`
- [Agent adapters](https://github.com/riverflow96/sdd-workflow-kit/tree/main/adapters): `adapters`

### Local initializer

- [Initializer CLI](https://github.com/riverflow96/sdd-workflow-kit/blob/main/scripts/init.py): `scripts/init.py`

### Other components

- **Project team**
- **Existing project**
- **Installed workflow files**
- **Version marker**
- **Check report**

## Connections

- Project team → Change request: defines change (evidence: `README.md`)
- Project team → Specification: drafts and approves (evidence: `README.md`)
- Specification → Implementation plan: guides (evidence: `README.md`)
- Project team → Implementation plan: approves (evidence: `README.md`)
- Implementation plan → Authorized tasks: breaks down (evidence: `README.md`)
- Project team → Authorized tasks: authorizes (evidence: `README.md`)
- Project team → Implementation: implements (evidence: `README.md`)
- Implementation → Verification: undergoes (evidence: `README.md`)
- Project team → Completion evidence: records and closes (evidence: `README.md`)
- Project team → Methodology: adapts (evidence: `README.md`)
- Project team → Project policy: configures (evidence: `README.md`)
- Project team → Agent guidance: reviews (evidence: `README.md`)
- Project team → Claude guidance: reviews (evidence: `README.md`)
- Project team → Agent adapters: connects agents (evidence: `README.md`)
- Project team → Initializer CLI: runs locally (evidence: `README.md`)
- Initializer CLI → Existing project: validates directory (evidence: `scripts/init.py`)
- Initializer CLI → Installed workflow files: copies absent files (evidence: `scripts/init.py`)
- Initializer CLI → Version marker: writes if absent (evidence: `scripts/init.py`)
- Initializer CLI → Check report: reports status (evidence: `scripts/init.py`)
- Initializer CLI → Existing project: checks installation (evidence: `scripts/init.py`)
