# sedy2014/camu-attendance-sync architecture

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

- Interactive diagram: https://gitdiagram.com/sedy2014/camu-attendance-sync
- Repository: https://github.com/sedy2014/camu-attendance-sync

## Overview

This Claude Code skill guides a user-triggered sync: Claude reads attendance from the user’s logged-in camu.in browser session, prepares JSON input, and runs a local Python script to create or update an Excel workbook. The skill also documents interpreting missing, unknown, and confirmed counts. The script’s implementation is excerpted; the skill instructions are not, so its internal steps are based on the README’s workflow description.

Main entry points: [`scripts/build_attendance_grid.py`](https://github.com/sedy2014/camu-attendance-sync/blob/master/scripts/build_attendance_grid.py) (Grid builder), [`skills/camu-attendance-sync/SKILL.md`](https://github.com/sedy2014/camu-attendance-sync/blob/master/skills/camu-attendance-sync/SKILL.md) (Attendance capture)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sync["Attendance sync"]
  node_claude["Claude Code"]
  node_skill["Sync instructions<br/>[SKILL.md]"]
  node_browser["Browser tool"]
  node_camu["camu.in"]
  node_capture["Attendance capture<br/>[SKILL.md]"]
end

subgraph group_workbook["Workbook generation"]
  node_config["JSON input"]
  node_builder["Grid builder"]
  node_workbook_out[("Excel workbook")]
end

node_user(("User"))

node_user -->|"requests sync"| node_claude
node_claude -->|"follows instructions"| node_skill
node_claude -->|"reads through"| node_browser
node_browser -->|"reads pages"| node_camu
node_capture -->|"reads attendance"| node_camu
node_claude -->|"writes counts"| node_config
node_claude -->|"runs script"| node_builder
node_builder -->|"reads config"| node_config
node_builder -->|"creates or updates"| node_workbook_out
node_user -->|"opens file"| node_workbook_out

click node_skill "https://github.com/sedy2014/camu-attendance-sync/blob/master/skills/camu-attendance-sync/SKILL.md"
click node_capture "https://github.com/sedy2014/camu-attendance-sync/blob/master/skills/camu-attendance-sync/SKILL.md"
click node_builder "https://github.com/sedy2014/camu-attendance-sync/blob/master/scripts/build_attendance_grid.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_claude,node_skill,node_browser,node_camu,node_capture,node_user toneBlue
class node_config,node_builder,node_workbook_out toneAmber
```

## Components

### Attendance sync

- **Claude Code**
- [Sync instructions](https://github.com/sedy2014/camu-attendance-sync/blob/master/skills/camu-attendance-sync/SKILL.md): `skills/camu-attendance-sync/SKILL.md`
- **Browser tool**
- **camu.in**
- [Attendance capture](https://github.com/sedy2014/camu-attendance-sync/blob/master/skills/camu-attendance-sync/SKILL.md): `skills/camu-attendance-sync/SKILL.md`

### Workbook generation

- **JSON input**
- [Grid builder](https://github.com/sedy2014/camu-attendance-sync/blob/master/scripts/build_attendance_grid.py): `scripts/build_attendance_grid.py`
- **Excel workbook**

### Other components

- **User**

## Connections

- User → Claude Code: requests sync (evidence: `README.md`)
- Claude Code → Sync instructions: follows instructions (evidence: `README.md`)
- Claude Code → Browser tool: reads through (evidence: `README.md`)
- Browser tool → camu.in: reads pages (evidence: `README.md`)
- Attendance capture → camu.in: reads attendance (evidence: `README.md`)
- Claude Code → JSON input: writes counts (evidence: `README.md`)
- Claude Code → Grid builder: runs script (evidence: `README.md`)
- Grid builder → JSON input: reads config (evidence: `scripts/build_attendance_grid.py`)
- Grid builder → Excel workbook: creates or updates (evidence: `scripts/build_attendance_grid.py`)
- User → Excel workbook: opens file (evidence: `README.md`)
