# sunitghub/canon-skills architecture

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

- Interactive diagram: https://gitdiagram.com/sunitghub/canon-skills
- Repository: https://github.com/sunitghub/canon-skills

## Overview

canon is a local-first workflow for coding agents, combining repository-resident sprint planning and mechanical close gates with a local Cockpit board and embedded agent sessions. The main loop is: an agent starts a sprint and records a ticket, builds the work, runs wrapup and independent evaluation, then closes only when required evidence and gates pass; the board displays project and session state. The graph also includes documented model-tier, worktree, handoff, and skill-evaluation capabilities. Several relationships are documented in the README; unsampled implementation details are not inferred.

Main entry points: [`skills/sprint/SKILL.md`](https://github.com/sunitghub/canon-skills/blob/main/skills/sprint/SKILL.md) (Sprint protocol), [`tools/sprint-check-app/cockpit.html`](https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-app/cockpit.html) (Cockpit interface), [`tools/sprint-check-go/main.go`](https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-go/main.go) (Go board server), [`tools/sprint-check-app/app.html`](https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-app/app.html) (Project board)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Sprint workflow"]
  node_sprint_skill["Sprint protocol<br/>[SKILL.md]"]
  node_ticket["Sprint ticket"]
end

subgraph group_cockpit["Cockpit and board"]
  node_cockpit_ui["Cockpit interface<br/>[cockpit.html]"]
  node_board_ui["Project board<br/>[app.html]"]
  node_python_board["Python board server<br/>[server.py]"]
  node_go_board["Go board server<br/>[main.go]"]
  node_daemon["Cockpit daemon<br/>[main.go]"]
  node_change_tracking[("Change tracking<br/>[changes.go]")]
  node_model_tiers["Model tiers<br/>[model-tiers.json]"]
end

subgraph group_assurance["Review and gates"]
  node_wrapup_skill["Wrapup gates<br/>[SKILL.md]"]
  node_review_skills["Review skills"]
  node_evaluator["Criterion evaluator<br/>[canon-evaluator.md]"]
  node_standards["Shared standards"]
  node_headless_grading["Headless grading<br/>[headless-ci.md]"]
  node_skill_eval["Skill evaluation<br/>[skilleval.go]"]
end

subgraph group_context["Project context"]
  node_handoff["Session handoff<br/>[handoff.ts]"]
end

node_developer(("Developer"))
node_coding_agent(("Coding agent"))
node_review_agent(("Fresh reviewer"))

node_developer -->|"opens"| node_cockpit_ui
node_coding_agent -->|"starts sprint"| node_sprint_skill
node_sprint_skill -->|"records plan"| node_ticket
node_ticket -->|"informs next start"| node_sprint_skill
node_coding_agent -->|"builds and completes"| node_sprint_skill
node_sprint_skill -->|"runs wrapup"| node_wrapup_skill
node_wrapup_skill -->|"runs checks"| node_review_skills
node_sprint_skill -->|"requests evaluation"| node_evaluator
node_review_agent -->|"grades criteria"| node_evaluator
node_standards -.->|"sets standards"| node_sprint_skill
node_developer -->|"views project"| node_board_ui
node_cockpit_ui -->|"controls sessions"| node_daemon
node_cockpit_ui -->|"hosts session"| node_coding_agent
node_python_board -.->|"serves interface"| node_cockpit_ui
node_go_board -.->|"serves interface"| node_cockpit_ui
node_daemon -->|"tracks changes"| node_change_tracking
node_board_ui -.->|"configures gates"| node_model_tiers
node_sprint_skill -->|"refreshes context"| node_handoff
node_handoff -->|"injects context"| node_coding_agent
node_developer -->|"runs unattended"| node_headless_grading
node_go_board -->|"handles skill evaluation"| node_skill_eval

click node_sprint_skill "https://github.com/sunitghub/canon-skills/blob/main/skills/sprint/SKILL.md"
click node_wrapup_skill "https://github.com/sunitghub/canon-skills/blob/main/skills/wrapup/SKILL.md"
click node_review_skills "https://github.com/sunitghub/canon-skills/tree/main/skills/pr-review"
click node_evaluator "https://github.com/sunitghub/canon-skills/blob/main/agents/canon-evaluator.md"
click node_standards "https://github.com/sunitghub/canon-skills/tree/main/standards"
click node_cockpit_ui "https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-app/cockpit.html"
click node_board_ui "https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-app/app.html"
click node_python_board "https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-app/server.py"
click node_go_board "https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-go/main.go"
click node_daemon "https://github.com/sunitghub/canon-skills/blob/main/tools/cockpit-daemon/main.go"
click node_change_tracking "https://github.com/sunitghub/canon-skills/blob/main/tools/cockpit-daemon/changes.go"
click node_model_tiers "https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-app/model-tiers.json"
click node_handoff "https://github.com/sunitghub/canon-skills/blob/main/extensions/pi/handoff.ts"
click node_headless_grading "https://github.com/sunitghub/canon-skills/blob/main/docs/headless-ci.md"
click node_skill_eval "https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-go/skilleval.go"

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_sprint_skill,node_ticket,node_review_agent toneBlue
class node_cockpit_ui,node_board_ui,node_python_board,node_go_board,node_daemon,node_change_tracking,node_model_tiers toneAmber
class node_wrapup_skill,node_review_skills,node_evaluator,node_standards,node_headless_grading,node_skill_eval toneMint
class node_handoff toneRose
class node_developer,node_coding_agent toneIndigo
```

## Components

### Sprint workflow

- [Sprint protocol](https://github.com/sunitghub/canon-skills/blob/main/skills/sprint/SKILL.md): `skills/sprint/SKILL.md`
- **Sprint ticket**

### Cockpit and board

- [Cockpit interface](https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-app/cockpit.html): `tools/sprint-check-app/cockpit.html`
- [Project board](https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-app/app.html): `tools/sprint-check-app/app.html`
- [Python board server](https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-app/server.py): `tools/sprint-check-app/server.py`
- [Go board server](https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-go/main.go): `tools/sprint-check-go/main.go`
- [Cockpit daemon](https://github.com/sunitghub/canon-skills/blob/main/tools/cockpit-daemon/main.go): `tools/cockpit-daemon/main.go`
- [Change tracking](https://github.com/sunitghub/canon-skills/blob/main/tools/cockpit-daemon/changes.go): `tools/cockpit-daemon/changes.go`
- [Model tiers](https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-app/model-tiers.json): `tools/sprint-check-app/model-tiers.json`

### Review and gates

- [Wrapup gates](https://github.com/sunitghub/canon-skills/blob/main/skills/wrapup/SKILL.md): `skills/wrapup/SKILL.md`
- [Review skills](https://github.com/sunitghub/canon-skills/tree/main/skills/pr-review): `skills/pr-review`
- [Criterion evaluator](https://github.com/sunitghub/canon-skills/blob/main/agents/canon-evaluator.md): `agents/canon-evaluator.md`
- [Shared standards](https://github.com/sunitghub/canon-skills/tree/main/standards): `standards`
- [Headless grading](https://github.com/sunitghub/canon-skills/blob/main/docs/headless-ci.md): `docs/headless-ci.md`
- [Skill evaluation](https://github.com/sunitghub/canon-skills/blob/main/tools/sprint-check-go/skilleval.go): `tools/sprint-check-go/skilleval.go`

### Project context

- [Session handoff](https://github.com/sunitghub/canon-skills/blob/main/extensions/pi/handoff.ts): `extensions/pi/handoff.ts`

### Other components

- **Developer**
- **Coding agent**
- **Fresh reviewer**

## Connections

- Developer → Cockpit interface: opens (evidence: `README.md`)
- Coding agent → Sprint protocol: starts sprint (evidence: `README.md`)
- Sprint protocol → Sprint ticket: records plan (evidence: `README.md`)
- Sprint ticket → Sprint protocol: informs next start (evidence: `README.md`)
- Coding agent → Sprint protocol: builds and completes (evidence: `README.md`)
- Sprint protocol → Wrapup gates: runs wrapup (evidence: `README.md`)
- Wrapup gates → Review skills: runs checks (evidence: `README.md`)
- Sprint protocol → Criterion evaluator: requests evaluation (evidence: `README.md`)
- Fresh reviewer → Criterion evaluator: grades criteria (evidence: `README.md`)
- Shared standards → Sprint protocol: sets standards
- Developer → Project board: views project (evidence: `README.md`)
- Cockpit interface → Cockpit daemon: controls sessions (evidence: `README.md`)
- Cockpit interface → Coding agent: hosts session (evidence: `README.md`)
- Python board server → Cockpit interface: serves interface
- Go board server → Cockpit interface: serves interface
- Cockpit daemon → Change tracking: tracks changes (evidence: `tools/cockpit-daemon/main.go`)
- Project board → Model tiers: configures gates
- Sprint protocol → Session handoff: refreshes context (evidence: `extensions/pi/handoff.ts`)
- Session handoff → Coding agent: injects context (evidence: `extensions/pi/handoff.ts`)
- Developer → Headless grading: runs unattended (evidence: `README.md`)
- Go board server → Skill evaluation: handles skill evaluation (evidence: `tools/sprint-check-go/skilleval.go`)
