# gotalab/cc-sdd architecture

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

- Interactive diagram: https://gitdiagram.com/gotalab/cc-sdd
- Repository: https://github.com/gotalab/cc-sdd

## Overview

cc-sdd is an installer and Agent Skills workflow for spec-driven development. The install path resolves agent, language, and destination settings, selects and renders manifest artifacts, then previews and applies file operations with conflict policies. Installed skills guide users from discovery through spec creation and autonomous implementation, with batch decomposition and validation as supporting capabilities. Runtime links below are supported by the sampled sources and SOURCE INDEX; workflow links are documented in the README, since skill execution occurs in the host agent.

Main entry points: [`tools/cc-sdd/src/index.ts`](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/index.ts) (Install orchestration), [`tools/cc-sdd/src/plan/fileOperations.ts`](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/plan/fileOperations.ts) (File operations), [`tools/cc-sdd/templates/agents`](https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents) (Discovery), [`tools/cc-sdd/src/manifest/planner.ts`](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/manifest/planner.ts) (Manifest planning)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_install["Installer runtime"]
  node_cli["CLI entry<br/>[cli.ts]"]
  node_installer["Install orchestration<br/>[index.ts]"]
  node_arguments["Argument parsing<br/>[args.ts]"]
  node_config["Resolved config<br/>[config.ts]"]
  node_agents["Agent registry<br/>[registry.ts]"]
  node_planner["Manifest planning<br/>[planner.ts]"]
  node_processor["Artifact filtering<br/>[processor.ts]"]
  node_fileops["File operations<br/>[fileOperations.ts]"]
  node_policies["Conflict policies<br/>[policies.ts]"]
  node_executor["Plan executor<br/>[executor.ts]"]
end

subgraph group_artifacts["Install artifacts"]
  node_templates["Agent skill templates"]
  node_shared["Shared settings"]
end

subgraph group_workflow["Spec workflow"]
  node_discovery["Discovery"]
  node_specs["Spec phases"]
  node_implementation["Autonomous implementation"]
end

subgraph group_support["Workflow support"]
  node_batch["Spec batch"]
  node_steering["Steering and validation"]
end

node_user(("Project user"))
node_host(("AI coding agent"))
node_filesystem[("Project files")]

node_user -->|"runs installer"| node_cli
node_cli -->|"starts"| node_installer
node_installer -->|"parses options"| node_arguments
node_installer -->|"resolves settings"| node_config
node_config -->|"resolves layout"| node_agents
node_installer -->|"plans artifacts"| node_planner
node_planner -->|"processes manifest"| node_processor
node_processor -.->|"selects assets"| node_templates
node_planner -->|"uses settings"| node_config
node_installer -->|"builds operations"| node_fileops
node_fileops -->|"uses artifacts"| node_processor
node_fileops -->|"reads templates"| node_filesystem
node_fileops -.->|"renders assets"| node_templates
node_installer -->|"summarizes conflicts"| node_policies
node_installer -->|"applies plan"| node_executor
node_executor -->|"writes files"| node_filesystem
node_executor -->|"executes operations"| node_fileops
node_templates -->|"installs skills"| node_host
node_shared -.->|"installs settings"| node_host
node_host -->|"starts work"| node_discovery
node_discovery -->|"routes to specs"| node_specs
node_specs -->|"hands off tasks"| node_implementation
node_discovery -->|"routes direct work"| node_implementation
node_discovery -->|"routes initiatives"| node_batch
node_batch -->|"decomposes roadmap"| node_specs
node_steering -->|"guides extension"| node_specs
node_host -.->|"invokes support"| node_steering

click node_cli "https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/cli.ts"
click node_installer "https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/index.ts"
click node_arguments "https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/cli/args.ts"
click node_config "https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/cli/config.ts"
click node_agents "https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/agents/registry.ts"
click node_planner "https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/manifest/planner.ts"
click node_processor "https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/manifest/processor.ts"
click node_fileops "https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/plan/fileOperations.ts"
click node_policies "https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/cli/policies.ts"
click node_executor "https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/plan/executor.ts"
click node_templates "https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents"
click node_shared "https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/shared/settings"
click node_discovery "https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents"
click node_specs "https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents"
click node_implementation "https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents"
click node_batch "https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents"
click node_steering "https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents"

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_cli,node_installer,node_arguments,node_config,node_agents,node_planner,node_processor,node_fileops,node_policies,node_executor,node_user toneBlue
class node_templates,node_shared,node_filesystem toneAmber
class node_discovery,node_specs,node_implementation toneMint
class node_batch,node_steering toneRose
class node_host toneIndigo
```

## Components

### Installer runtime

- [CLI entry](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/cli.ts): `tools/cc-sdd/src/cli.ts`
- [Install orchestration](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/index.ts): `tools/cc-sdd/src/index.ts`
- [Argument parsing](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/cli/args.ts): `tools/cc-sdd/src/cli/args.ts`
- [Resolved config](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/cli/config.ts): `tools/cc-sdd/src/cli/config.ts`
- [Agent registry](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/agents/registry.ts): `tools/cc-sdd/src/agents/registry.ts`
- [Manifest planning](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/manifest/planner.ts): `tools/cc-sdd/src/manifest/planner.ts`
- [Artifact filtering](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/manifest/processor.ts): `tools/cc-sdd/src/manifest/processor.ts`
- [File operations](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/plan/fileOperations.ts): `tools/cc-sdd/src/plan/fileOperations.ts`
- [Conflict policies](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/cli/policies.ts): `tools/cc-sdd/src/cli/policies.ts`
- [Plan executor](https://github.com/gotalab/cc-sdd/blob/main/tools/cc-sdd/src/plan/executor.ts): `tools/cc-sdd/src/plan/executor.ts`

### Install artifacts

- [Agent skill templates](https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents): `tools/cc-sdd/templates/agents`
- [Shared settings](https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/shared/settings): `tools/cc-sdd/templates/shared/settings`

### Spec workflow

- [Discovery](https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents): `tools/cc-sdd/templates/agents`
- [Spec phases](https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents): `tools/cc-sdd/templates/agents`
- [Autonomous implementation](https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents): `tools/cc-sdd/templates/agents`

### Workflow support

- [Spec batch](https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents): `tools/cc-sdd/templates/agents`
- [Steering and validation](https://github.com/gotalab/cc-sdd/tree/main/tools/cc-sdd/templates/agents): `tools/cc-sdd/templates/agents`

### Other components

- **Project user**
- **AI coding agent**
- **Project files**

## Connections

- Project user → CLI entry: runs installer (evidence: `README.md`)
- CLI entry → Install orchestration: starts (evidence: `tools/cc-sdd/src/cli.ts`)
- Install orchestration → Argument parsing: parses options (evidence: `tools/cc-sdd/src/index.ts`)
- Install orchestration → Resolved config: resolves settings (evidence: `tools/cc-sdd/src/index.ts`)
- Resolved config → Agent registry: resolves layout (evidence: `tools/cc-sdd/src/cli/config.ts`)
- Install orchestration → Manifest planning: plans artifacts (evidence: `tools/cc-sdd/src/index.ts`)
- Manifest planning → Artifact filtering: processes manifest (evidence: `tools/cc-sdd/src/manifest/planner.ts`)
- Artifact filtering → Agent skill templates: selects assets
- Manifest planning → Resolved config: uses settings (evidence: `tools/cc-sdd/src/manifest/planner.ts`)
- Install orchestration → File operations: builds operations (evidence: `tools/cc-sdd/src/index.ts`)
- File operations → Artifact filtering: uses artifacts (evidence: `tools/cc-sdd/src/plan/fileOperations.ts`)
- File operations → Project files: reads templates (evidence: `tools/cc-sdd/src/plan/fileOperations.ts`)
- File operations → Agent skill templates: renders assets
- Install orchestration → Conflict policies: summarizes conflicts (evidence: `tools/cc-sdd/src/index.ts`)
- Install orchestration → Plan executor: applies plan (evidence: `tools/cc-sdd/src/index.ts`)
- Plan executor → Project files: writes files (evidence: `tools/cc-sdd/src/plan/executor.ts`)
- Plan executor → File operations: executes operations (evidence: `tools/cc-sdd/src/plan/executor.ts`)
- Agent skill templates → AI coding agent: installs skills (evidence: `README.md`)
- Shared settings → AI coding agent: installs settings
- AI coding agent → Discovery: starts work (evidence: `README.md`)
- Discovery → Spec phases: routes to specs (evidence: `README.md`)
- Spec phases → Autonomous implementation: hands off tasks (evidence: `README.md`)
- Discovery → Autonomous implementation: routes direct work (evidence: `README.md`)
- Discovery → Spec batch: routes initiatives (evidence: `README.md`)
- Spec batch → Spec phases: decomposes roadmap (evidence: `README.md`)
- Steering and validation → Spec phases: guides extension (evidence: `README.md`)
- AI coding agent → Steering and validation: invokes support (evidence: `README.md`)
