# ooiyeefei/ccc architecture

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

- Interactive diagram: https://gitdiagram.com/ooiyeefei/ccc
- Repository: https://github.com/ooiyeefei/ccc

## Overview

This repository is a catalog of Claude Code plugins, skills, commands, and a reusable agent toolkit—not one application. The common user journey is to install a capability, invoke its command or skill in Claude Code, and receive a domain-specific result. The graph highlights documented product branches and sampled runtime internals; directory-level nodes represent documented capabilities whose implementation was not sampled, so their internal links are omitted rather than inferred.

Main entry points: [`plugins/bash-safety-guard/hooks/guard-hook.ts`](https://github.com/ooiyeefei/ccc/blob/main/plugins/bash-safety-guard/hooks/guard-hook.ts) (PreToolUse hook), [`plugins/daily-chief/bin/daily-chief.mjs`](https://github.com/ooiyeefei/ccc/blob/main/plugins/daily-chief/bin/daily-chief.mjs) (Daily Chief CLI), [`plugins/daily-chief/scripts/daily-chief.mjs`](https://github.com/ooiyeefei/ccc/blob/main/plugins/daily-chief/scripts/daily-chief.mjs) (Plan-today workflow), [`skills/scribe/scripts/transcribe.py`](https://github.com/ooiyeefei/ccc/blob/main/skills/scribe/scripts/transcribe.py) (Transcript generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Plugin Catalog"]
  node_bashguard["Bash safety guard"]
  node_deckling["Deckling presentations"]
  node_dailychief["Daily Chief planning"]
  node_mvp["MVP launch check"]
  node_pm["Product management"]
  node_surveys["Survey design"]
end

subgraph group_skills["Skill Catalog"]
  node_agenticdesign["Agent system design"]
  node_selfimprove["Self-improving systems"]
  node_scribe["Scribe transcription"]
  node_htmldrop["HTML sharing"]
  node_uat["Web app UAT"]
  node_pitchsuite["Pitch creation suite"]
end

subgraph group_agents["Agent Toolkit"]
  node_agentkit["Agentic toolkit"]
end

subgraph group_internals["Runtime Internals"]
  node_guardhook["PreToolUse hook<br/>[guard-hook.ts]"]
  node_guards["Command classifier<br/>[guards.ts]"]
  node_dailycli["Daily Chief CLI<br/>[daily-chief.mjs]"]
  node_dailyflow["Plan-today workflow<br/>[daily-chief.mjs]"]
  node_planrender["Local plan preview"]
  node_transcribe["Transcript generation<br/>[transcribe.py]"]
  node_audit["Transcript audit<br/>[audit.py]"]
  node_thresholds["Confidence thresholds<br/>[_thresholds.py]"]
  node_council["Council runner"]
  node_subagents["Sub-agent runner"]
  node_events["Agent event schema<br/>[events.ts]"]
  node_gateway["Model gateway<br/>[gateway.ts]"]
  node_models["Model registry<br/>[models-registry.ts]"]
  node_provenance["Tool provenance<br/>[provenance.ts]"]
end

node_user(("Claude Code user"))
node_claude["Claude Code"]

node_user -->|"uses"| node_claude
node_claude -->|"installs"| node_bashguard
node_claude -->|"installs"| node_deckling
node_claude -->|"installs"| node_dailychief
node_claude -->|"installs"| node_mvp
node_claude -->|"installs"| node_pm
node_claude -->|"installs"| node_surveys
node_claude -->|"installs"| node_agenticdesign
node_claude -->|"installs"| node_selfimprove
node_claude -->|"installs"| node_scribe
node_claude -->|"installs"| node_htmldrop
node_claude -->|"installs"| node_uat
node_claude -->|"installs"| node_pitchsuite
node_user -->|"invokes"| node_dailycli
node_dailycli -->|"calls"| node_dailyflow
node_dailyflow -->|"renders preview"| node_planrender
node_user -.->|"runs Bash"| node_guardhook
node_guardhook -->|"classifies command"| node_guards
node_user -->|"submits audio"| node_transcribe
node_transcribe -->|"resolves threshold"| node_thresholds
node_audit -->|"resolves threshold"| node_thresholds
node_user -->|"uses source"| node_agentkit
node_council -->|"emits events"| node_events
node_subagents -->|"emits events"| node_events
node_user -.->|"routes model calls"| node_gateway
node_user -.->|"selects models"| node_models
node_user -.->|"tracks tool history"| node_provenance

click node_bashguard "https://github.com/ooiyeefei/ccc/tree/main/plugins/bash-safety-guard"
click node_guardhook "https://github.com/ooiyeefei/ccc/blob/main/plugins/bash-safety-guard/hooks/guard-hook.ts"
click node_guards "https://github.com/ooiyeefei/ccc/blob/main/plugins/bash-safety-guard/lib/guards.ts"
click node_deckling "https://github.com/ooiyeefei/ccc/tree/main/plugins/deckling"
click node_dailychief "https://github.com/ooiyeefei/ccc/tree/main/plugins/daily-chief"
click node_dailycli "https://github.com/ooiyeefei/ccc/blob/main/plugins/daily-chief/bin/daily-chief.mjs"
click node_dailyflow "https://github.com/ooiyeefei/ccc/blob/main/plugins/daily-chief/scripts/daily-chief.mjs"
click node_planrender "https://github.com/ooiyeefei/ccc/blob/main/plugins/daily-chief/scripts/render-plan-today.mjs"
click node_mvp "https://github.com/ooiyeefei/ccc/tree/main/plugins/mvp-launch"
click node_pm "https://github.com/ooiyeefei/ccc/tree/main/plugins/product-management"
click node_surveys "https://github.com/ooiyeefei/ccc/tree/main/plugins/rethink-surveys"
click node_agenticdesign "https://github.com/ooiyeefei/ccc/tree/main/skills/agentic-system-design"
click node_selfimprove "https://github.com/ooiyeefei/ccc/tree/main/skills/self-improving-systems"
click node_scribe "https://github.com/ooiyeefei/ccc/tree/main/skills/scribe"
click node_transcribe "https://github.com/ooiyeefei/ccc/blob/main/skills/scribe/scripts/transcribe.py"
click node_audit "https://github.com/ooiyeefei/ccc/blob/main/skills/scribe/scripts/audit.py"
click node_thresholds "https://github.com/ooiyeefei/ccc/blob/main/skills/scribe/scripts/_thresholds.py"
click node_htmldrop "https://github.com/ooiyeefei/ccc/tree/main/skills/htmldrop"
click node_uat "https://github.com/ooiyeefei/ccc/tree/main/skills/uat-testing"
click node_pitchsuite "https://github.com/ooiyeefei/ccc/tree/main/skills/pitch-package"
click node_agentkit "https://github.com/ooiyeefei/ccc/tree/main/plugins/agentic-toolkit"
click node_council "https://github.com/ooiyeefei/ccc/blob/main/plugins/agentic-toolkit/src/council-state-machine.ts"
click node_subagents "https://github.com/ooiyeefei/ccc/blob/main/plugins/agentic-toolkit/src/sub-agent-runner.ts"
click node_events "https://github.com/ooiyeefei/ccc/blob/main/plugins/agentic-toolkit/src/events.ts"
click node_gateway "https://github.com/ooiyeefei/ccc/blob/main/plugins/agentic-toolkit/src/gateway.ts"
click node_models "https://github.com/ooiyeefei/ccc/blob/main/plugins/agentic-toolkit/src/models-registry.ts"
click node_provenance "https://github.com/ooiyeefei/ccc/blob/main/plugins/agentic-toolkit/src/provenance.ts"

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_bashguard,node_deckling,node_dailychief,node_mvp,node_pm,node_surveys,node_user toneBlue
class node_agenticdesign,node_selfimprove,node_scribe,node_htmldrop,node_uat,node_pitchsuite toneAmber
class node_agentkit toneMint
class node_guardhook,node_guards,node_dailycli,node_dailyflow,node_planrender,node_transcribe,node_audit,node_thresholds,node_council,node_subagents,node_events,node_gateway,node_models,node_provenance toneRose
class node_claude toneIndigo
```

## Components

### Plugin Catalog

- [Bash safety guard](https://github.com/ooiyeefei/ccc/tree/main/plugins/bash-safety-guard): `plugins/bash-safety-guard`
- [Deckling presentations](https://github.com/ooiyeefei/ccc/tree/main/plugins/deckling): `plugins/deckling`
- [Daily Chief planning](https://github.com/ooiyeefei/ccc/tree/main/plugins/daily-chief): `plugins/daily-chief`
- [MVP launch check](https://github.com/ooiyeefei/ccc/tree/main/plugins/mvp-launch): `plugins/mvp-launch`
- [Product management](https://github.com/ooiyeefei/ccc/tree/main/plugins/product-management): `plugins/product-management`
- [Survey design](https://github.com/ooiyeefei/ccc/tree/main/plugins/rethink-surveys): `plugins/rethink-surveys`

### Skill Catalog

- [Agent system design](https://github.com/ooiyeefei/ccc/tree/main/skills/agentic-system-design): `skills/agentic-system-design`
- [Self-improving systems](https://github.com/ooiyeefei/ccc/tree/main/skills/self-improving-systems): `skills/self-improving-systems`
- [Scribe transcription](https://github.com/ooiyeefei/ccc/tree/main/skills/scribe): `skills/scribe`
- [HTML sharing](https://github.com/ooiyeefei/ccc/tree/main/skills/htmldrop): `skills/htmldrop`
- [Web app UAT](https://github.com/ooiyeefei/ccc/tree/main/skills/uat-testing): `skills/uat-testing`
- [Pitch creation suite](https://github.com/ooiyeefei/ccc/tree/main/skills/pitch-package): `skills/pitch-package`

### Agent Toolkit

- [Agentic toolkit](https://github.com/ooiyeefei/ccc/tree/main/plugins/agentic-toolkit): `plugins/agentic-toolkit`

### Runtime Internals

- [PreToolUse hook](https://github.com/ooiyeefei/ccc/blob/main/plugins/bash-safety-guard/hooks/guard-hook.ts): `plugins/bash-safety-guard/hooks/guard-hook.ts`
- [Command classifier](https://github.com/ooiyeefei/ccc/blob/main/plugins/bash-safety-guard/lib/guards.ts): `plugins/bash-safety-guard/lib/guards.ts`
- [Daily Chief CLI](https://github.com/ooiyeefei/ccc/blob/main/plugins/daily-chief/bin/daily-chief.mjs): `plugins/daily-chief/bin/daily-chief.mjs`
- [Plan-today workflow](https://github.com/ooiyeefei/ccc/blob/main/plugins/daily-chief/scripts/daily-chief.mjs): `plugins/daily-chief/scripts/daily-chief.mjs`
- [Local plan preview](https://github.com/ooiyeefei/ccc/blob/main/plugins/daily-chief/scripts/render-plan-today.mjs): `plugins/daily-chief/scripts/render-plan-today.mjs`
- [Transcript generation](https://github.com/ooiyeefei/ccc/blob/main/skills/scribe/scripts/transcribe.py): `skills/scribe/scripts/transcribe.py`
- [Transcript audit](https://github.com/ooiyeefei/ccc/blob/main/skills/scribe/scripts/audit.py): `skills/scribe/scripts/audit.py`
- [Confidence thresholds](https://github.com/ooiyeefei/ccc/blob/main/skills/scribe/scripts/_thresholds.py): `skills/scribe/scripts/_thresholds.py`
- [Council runner](https://github.com/ooiyeefei/ccc/blob/main/plugins/agentic-toolkit/src/council-state-machine.ts): `plugins/agentic-toolkit/src/council-state-machine.ts`
- [Sub-agent runner](https://github.com/ooiyeefei/ccc/blob/main/plugins/agentic-toolkit/src/sub-agent-runner.ts): `plugins/agentic-toolkit/src/sub-agent-runner.ts`
- [Agent event schema](https://github.com/ooiyeefei/ccc/blob/main/plugins/agentic-toolkit/src/events.ts): `plugins/agentic-toolkit/src/events.ts`
- [Model gateway](https://github.com/ooiyeefei/ccc/blob/main/plugins/agentic-toolkit/src/gateway.ts): `plugins/agentic-toolkit/src/gateway.ts`
- [Model registry](https://github.com/ooiyeefei/ccc/blob/main/plugins/agentic-toolkit/src/models-registry.ts): `plugins/agentic-toolkit/src/models-registry.ts`
- [Tool provenance](https://github.com/ooiyeefei/ccc/blob/main/plugins/agentic-toolkit/src/provenance.ts): `plugins/agentic-toolkit/src/provenance.ts`

### Other components

- **Claude Code user**
- **Claude Code**

## Connections

- Claude Code user → Claude Code: uses (evidence: `README.md`)
- Claude Code → Bash safety guard: installs (evidence: `README.md`)
- Claude Code → Deckling presentations: installs (evidence: `README.md`)
- Claude Code → Daily Chief planning: installs (evidence: `README.md`)
- Claude Code → MVP launch check: installs (evidence: `README.md`)
- Claude Code → Product management: installs (evidence: `README.md`)
- Claude Code → Survey design: installs (evidence: `README.md`)
- Claude Code → Agent system design: installs (evidence: `README.md`)
- Claude Code → Self-improving systems: installs (evidence: `README.md`)
- Claude Code → Scribe transcription: installs (evidence: `README.md`)
- Claude Code → HTML sharing: installs (evidence: `README.md`)
- Claude Code → Web app UAT: installs (evidence: `README.md`)
- Claude Code → Pitch creation suite: installs (evidence: `README.md`)
- Claude Code user → Daily Chief CLI: invokes (evidence: `README.md`)
- Daily Chief CLI → Plan-today workflow: calls (evidence: `plugins/daily-chief/bin/daily-chief.mjs`)
- Plan-today workflow → Local plan preview: renders preview (evidence: `plugins/daily-chief/scripts/daily-chief.mjs`)
- Claude Code user → PreToolUse hook: runs Bash
- PreToolUse hook → Command classifier: classifies command (evidence: `plugins/bash-safety-guard/hooks/guard-hook.ts`)
- Claude Code user → Transcript generation: submits audio (evidence: `README.md`)
- Transcript generation → Confidence thresholds: resolves threshold (evidence: `skills/scribe/scripts/transcribe.py`)
- Transcript audit → Confidence thresholds: resolves threshold (evidence: `skills/scribe/scripts/audit.py`)
- Claude Code user → Agentic toolkit: uses source (evidence: `README.md`)
- Council runner → Agent event schema: emits events (evidence: `plugins/agentic-toolkit/src/council-state-machine.ts`)
- Sub-agent runner → Agent event schema: emits events (evidence: `plugins/agentic-toolkit/src/sub-agent-runner.ts`)
- Claude Code user → Model gateway: routes model calls
- Claude Code user → Model registry: selects models
- Claude Code user → Tool provenance: tracks tool history
