# william-zou21/gymforclaude architecture

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

- Interactive diagram: https://gitdiagram.com/william-zou21/gymforclaude
- Repository: https://github.com/william-zou21/gymforclaude

## Overview

GYMforClaude is a manually triggered reflection protocol for Claude Code: it extracts recent transcript friction, guides the agent to classify and distill lessons, and updates a project-local Personal Record. The repository is intentionally small; the README documents the workflow, but no source excerpts were provided, so relationships below are limited to those documented there.

Main entry points: [`skill/SKILL.md`](https://github.com/william-zou21/gymforclaude/blob/main/skill/SKILL.md) (Reflection Skill), [`skill/scripts/friction.sh`](https://github.com/william-zou21/gymforclaude/blob/main/skill/scripts/friction.sh) (Friction Extractor), [`GYMforClaude.md`](https://github.com/william-zou21/gymforclaude/blob/main/GYMforClaude.md) (Personal Record)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_reflection["Reflection Workflow"]
  node_skill["Reflection Skill<br/>[SKILL.md]"]
  node_extractor["Friction Extractor<br/>[friction.sh]"]
  node_reflection_agent["Classify and Distill<br/>[SKILL.md]"]
end

subgraph group_memory["Persistent Learning"]
  node_record["Personal Record<br/>[GYMforClaude.md]"]
end

node_user(("User"))
node_transcripts[("Session Transcripts")]

node_user -->|"triggers"| node_skill
node_skill -->|"runs"| node_extractor
node_extractor -->|"reads"| node_transcripts
node_extractor -->|"prints digest"| node_reflection_agent
node_skill -->|"guides"| node_reflection_agent
node_reflection_agent -->|"updates rules"| node_record

click node_skill "https://github.com/william-zou21/gymforclaude/blob/main/skill/SKILL.md"
click node_extractor "https://github.com/william-zou21/gymforclaude/blob/main/skill/scripts/friction.sh"
click node_reflection_agent "https://github.com/william-zou21/gymforclaude/blob/main/skill/SKILL.md"
click node_record "https://github.com/william-zou21/gymforclaude/blob/main/GYMforClaude.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_skill,node_extractor,node_reflection_agent,node_user toneBlue
class node_record,node_transcripts toneAmber
```

## Components

### Reflection Workflow

- [Reflection Skill](https://github.com/william-zou21/gymforclaude/blob/main/skill/SKILL.md): `skill/SKILL.md`
- [Friction Extractor](https://github.com/william-zou21/gymforclaude/blob/main/skill/scripts/friction.sh): `skill/scripts/friction.sh`
- [Classify and Distill](https://github.com/william-zou21/gymforclaude/blob/main/skill/SKILL.md): `skill/SKILL.md`

### Persistent Learning

- [Personal Record](https://github.com/william-zou21/gymforclaude/blob/main/GYMforClaude.md): `GYMforClaude.md`

### Other components

- **User**
- **Session Transcripts**

## Connections

- User → Reflection Skill: triggers (evidence: `README.md`)
- Reflection Skill → Friction Extractor: runs (evidence: `README.md`)
- Friction Extractor → Session Transcripts: reads (evidence: `README.md`)
- Friction Extractor → Classify and Distill: prints digest (evidence: `README.md`)
- Reflection Skill → Classify and Distill: guides (evidence: `README.md`)
- Classify and Distill → Personal Record: updates rules (evidence: `README.md`)
