# kwchodev/project-templates architecture

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

- Interactive diagram: https://gitdiagram.com/kwchodev/project-templates
- Repository: https://github.com/kwchodev/project-templates

## Overview

This repository provides Markdown templates and Claude Code guidance for two project-memory workflows: maintaining durable knowledge in pjt-docs and session-level progress/history in .baton. Its runtime pieces are the baton lifecycle hook and the generated documentation consistency checker; setup and adoption procedures are documented capabilities, but their implementation files were not sampled. The graph reflects README-described flows and sampled source calls; unsampled procedure links are omitted.

Main entry points: [`skills/baton-init/templates/baton-hook.mjs`](https://github.com/kwchodev/project-templates/blob/main/skills/baton-init/templates/baton-hook.mjs) (Baton Hook), [`template/pjt-docs`](https://github.com/kwchodev/project-templates/tree/main/template/pjt-docs) (Durable Knowledge), [`template/scripts/check-docs.py`](https://github.com/kwchodev/project-templates/blob/main/template/scripts/check-docs.py) (Docs Checker), [`template`](https://github.com/kwchodev/project-templates/tree/main/template) (Project Templates)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_knowledge["Project Knowledge"]
  node_projectdocs["Durable Knowledge"]
  node_decisions["Design Decisions"]
  node_localdocs["Private Notes"]
end

subgraph group_baton["Work Tracking"]
  node_batonrecords["Session Records"]
  node_ownerconfig["Owner Setting"]
end

subgraph group_runtime["Runtime Checks"]
  node_hook["Baton Hook<br/>[baton-hook.mjs]"]
  node_checker["Docs Checker<br/>[check-docs.py]"]
end

subgraph group_guidance["Adoption Guidance"]
  node_template["Project Templates"]
  node_structure["Structure Standard<br/>[STRUCTURE.md]"]
  node_adoption["Adoption Procedure<br/>[adopt.md]"]
  node_updates["Update Procedure<br/>[update.md]"]
  node_batonskill["Baton Init Skill<br/>[SKILL.md]"]
end

node_developer(("Developer / AI"))
node_claude(("Claude Code"))
node_git[("Git")]

node_developer -->|"updates progress"| node_batonrecords
node_developer -->|"curates knowledge"| node_projectdocs
node_batonrecords -->|"promotes knowledge"| node_projectdocs
node_developer -->|"records decisions"| node_decisions
node_developer -->|"stores private notes"| node_localdocs
node_claude -->|"invokes hooks"| node_hook
node_hook -->|"reads status"| node_batonrecords
node_hook -->|"reads owner"| node_ownerconfig
node_hook -->|"checks changes"| node_git
node_claude -->|"runs check"| node_checker
node_checker -->|"validates documents"| node_projectdocs
node_developer -->|"adopts files"| node_template
node_developer -->|"follows procedure"| node_adoption
node_developer -->|"requests refresh"| node_updates
node_developer -->|"requests baton setup"| node_batonskill
node_structure -.->|"defines standard"| node_template
node_projectdocs -->|"versions with code"| node_git
node_batonrecords -->|"versions history"| node_git

click node_projectdocs "https://github.com/kwchodev/project-templates/tree/main/template/pjt-docs"
click node_decisions "https://github.com/kwchodev/project-templates/tree/main/template/pjt-docs/decisions"
click node_localdocs "https://github.com/kwchodev/project-templates/tree/main/template/pjt-docs/local"
click node_hook "https://github.com/kwchodev/project-templates/blob/main/skills/baton-init/templates/baton-hook.mjs"
click node_checker "https://github.com/kwchodev/project-templates/blob/main/template/scripts/check-docs.py"
click node_template "https://github.com/kwchodev/project-templates/tree/main/template"
click node_structure "https://github.com/kwchodev/project-templates/blob/main/STRUCTURE.md"
click node_adoption "https://github.com/kwchodev/project-templates/blob/main/adopt.md"
click node_updates "https://github.com/kwchodev/project-templates/blob/main/update.md"
click node_batonskill "https://github.com/kwchodev/project-templates/blob/main/skills/baton-init/SKILL.md"

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_projectdocs,node_decisions,node_localdocs toneBlue
class node_batonrecords,node_ownerconfig,node_git toneAmber
class node_hook,node_checker toneMint
class node_template,node_structure,node_adoption,node_updates,node_batonskill toneRose
class node_developer,node_claude toneIndigo
```

## Components

### Project Knowledge

- [Durable Knowledge](https://github.com/kwchodev/project-templates/tree/main/template/pjt-docs): `template/pjt-docs`
- [Design Decisions](https://github.com/kwchodev/project-templates/tree/main/template/pjt-docs/decisions): `template/pjt-docs/decisions`
- [Private Notes](https://github.com/kwchodev/project-templates/tree/main/template/pjt-docs/local): `template/pjt-docs/local`

### Work Tracking

- **Session Records**
- **Owner Setting**

### Runtime Checks

- [Baton Hook](https://github.com/kwchodev/project-templates/blob/main/skills/baton-init/templates/baton-hook.mjs): `skills/baton-init/templates/baton-hook.mjs`
- [Docs Checker](https://github.com/kwchodev/project-templates/blob/main/template/scripts/check-docs.py): `template/scripts/check-docs.py`

### Adoption Guidance

- [Project Templates](https://github.com/kwchodev/project-templates/tree/main/template): `template`
- [Structure Standard](https://github.com/kwchodev/project-templates/blob/main/STRUCTURE.md): `STRUCTURE.md`
- [Adoption Procedure](https://github.com/kwchodev/project-templates/blob/main/adopt.md): `adopt.md`
- [Update Procedure](https://github.com/kwchodev/project-templates/blob/main/update.md): `update.md`
- [Baton Init Skill](https://github.com/kwchodev/project-templates/blob/main/skills/baton-init/SKILL.md): `skills/baton-init/SKILL.md`

### Other components

- **Developer / AI**
- **Claude Code**
- **Git**

## Connections

- Developer / AI → Session Records: updates progress (evidence: `README.md`)
- Developer / AI → Durable Knowledge: curates knowledge (evidence: `README.md`)
- Session Records → Durable Knowledge: promotes knowledge (evidence: `README.md`)
- Developer / AI → Design Decisions: records decisions (evidence: `README.md`)
- Developer / AI → Private Notes: stores private notes (evidence: `README.md`)
- Claude Code → Baton Hook: invokes hooks (evidence: `skills/baton-init/templates/baton-hook.mjs`)
- Baton Hook → Session Records: reads status (evidence: `skills/baton-init/templates/baton-hook.mjs`)
- Baton Hook → Owner Setting: reads owner (evidence: `skills/baton-init/templates/baton-hook.mjs`)
- Baton Hook → Git: checks changes (evidence: `skills/baton-init/templates/baton-hook.mjs`)
- Claude Code → Docs Checker: runs check (evidence: `README.md`)
- Docs Checker → Durable Knowledge: validates documents (evidence: `template/scripts/check-docs.py`)
- Developer / AI → Project Templates: adopts files (evidence: `README.md`)
- Developer / AI → Adoption Procedure: follows procedure (evidence: `README.md`)
- Developer / AI → Update Procedure: requests refresh (evidence: `README.md`)
- Developer / AI → Baton Init Skill: requests baton setup (evidence: `README.md`)
- Structure Standard → Project Templates: defines standard
- Durable Knowledge → Git: versions with code (evidence: `README.md`)
- Session Records → Git: versions history (evidence: `README.md`)
