# alexyc9381/court-skill architecture

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

- Interactive diagram: https://gitdiagram.com/alexyc9381/court-skill
- Repository: https://github.com/alexyc9381/court-skill

## Overview

Court is a Claude Code skill for testing an idea through an adversarial trial, independent jury votes, and a judge’s synthesis. The user supplies a case; Claude follows the skill instructions and uses the Python script for bookkeeping while launching sub-agents. The script prepares briefs, checks phase outputs, tallies votes, and renders VERDICT.md. The README documents this workflow and the juror roster; the sampled Python excerpt shows only parts of the implementation, so the graph avoids inferring unshown file-level calls.

Main entry points: [`skills/court/court.py`](https://github.com/alexyc9381/court-skill/blob/main/skills/court/court.py) (Trial bookkeeping), [`skills/court/jurors.json`](https://github.com/alexyc9381/court-skill/blob/main/skills/court/jurors.json) (Independent jury), [`skills/court/SKILL.md`](https://github.com/alexyc9381/court-skill/blob/main/skills/court/SKILL.md) (Court instructions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Skill orchestration"]
  node_claude["Claude orchestrator"]
  node_skill["Court instructions<br/>[SKILL.md]"]
end

subgraph group_trial["Trial workflow"]
  node_bookkeeping["Trial bookkeeping<br/>[court.py]"]
  node_openings["Opening arguments<br/>[court.py]"]
  node_rebuttals["Rebuttals<br/>[court.py]"]
  node_jury["Independent jury<br/>[jurors.json]"]
  node_judge["Judge synthesis<br/>[court.py]"]
end

subgraph group_artifacts["Trial artifacts"]
  node_case["Case file"]
  node_workspace["Trial workspace"]
  node_verdict["Verdict report"]
end

node_user(("Idea owner"))

node_user -->|"submits idea"| node_claude
node_claude -->|"follows instructions"| node_skill
node_claude -->|"runs commands"| node_bookkeeping
node_bookkeeping -->|"reads case"| node_case
node_bookkeeping -->|"writes trial state"| node_workspace
node_claude -->|"launches agents"| node_openings
node_bookkeeping -->|"prepares briefs"| node_openings
node_openings -->|"writes statements"| node_workspace
node_claude -->|"launches agents"| node_rebuttals
node_bookkeeping -->|"prepares briefs"| node_rebuttals
node_rebuttals -->|"writes responses"| node_workspace
node_bookkeeping -->|"loads roster"| node_jury
node_claude -->|"launches jurors"| node_jury
node_jury -->|"writes votes"| node_workspace
node_bookkeeping -->|"checks outputs"| node_workspace
node_claude -->|"launches judge"| node_judge
node_bookkeeping -->|"prepares brief"| node_judge
node_judge -->|"writes judgment"| node_workspace
node_bookkeeping -->|"reads votes"| node_workspace
node_bookkeeping -->|"renders report"| node_verdict
node_workspace -->|"supplies trial record"| node_verdict
node_bookkeeping -->|"tallies votes"| node_verdict

click node_skill "https://github.com/alexyc9381/court-skill/blob/main/skills/court/SKILL.md"
click node_bookkeeping "https://github.com/alexyc9381/court-skill/blob/main/skills/court/court.py"
click node_openings "https://github.com/alexyc9381/court-skill/blob/main/skills/court/court.py"
click node_rebuttals "https://github.com/alexyc9381/court-skill/blob/main/skills/court/court.py"
click node_jury "https://github.com/alexyc9381/court-skill/blob/main/skills/court/jurors.json"
click node_judge "https://github.com/alexyc9381/court-skill/blob/main/skills/court/court.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 toneBlue
class node_bookkeeping,node_openings,node_rebuttals,node_jury,node_judge toneAmber
class node_case,node_workspace,node_verdict toneMint
class node_user toneIndigo
```

## Components

### Skill orchestration

- **Claude orchestrator**
- [Court instructions](https://github.com/alexyc9381/court-skill/blob/main/skills/court/SKILL.md): `skills/court/SKILL.md`

### Trial workflow

- [Trial bookkeeping](https://github.com/alexyc9381/court-skill/blob/main/skills/court/court.py): `skills/court/court.py`
- [Opening arguments](https://github.com/alexyc9381/court-skill/blob/main/skills/court/court.py): `skills/court/court.py`
- [Rebuttals](https://github.com/alexyc9381/court-skill/blob/main/skills/court/court.py): `skills/court/court.py`
- [Independent jury](https://github.com/alexyc9381/court-skill/blob/main/skills/court/jurors.json): `skills/court/jurors.json`
- [Judge synthesis](https://github.com/alexyc9381/court-skill/blob/main/skills/court/court.py): `skills/court/court.py`

### Trial artifacts

- **Case file**
- **Trial workspace**
- **Verdict report**

### Other components

- **Idea owner**

## Connections

- Idea owner → Claude orchestrator: submits idea (evidence: `README.md`)
- Claude orchestrator → Court instructions: follows instructions (evidence: `README.md`)
- Claude orchestrator → Trial bookkeeping: runs commands (evidence: `README.md`)
- Trial bookkeeping → Case file: reads case (evidence: `skills/court/court.py`)
- Trial bookkeeping → Trial workspace: writes trial state (evidence: `README.md`)
- Claude orchestrator → Opening arguments: launches agents (evidence: `README.md`)
- Trial bookkeeping → Opening arguments: prepares briefs (evidence: `skills/court/court.py`)
- Opening arguments → Trial workspace: writes statements (evidence: `README.md`)
- Claude orchestrator → Rebuttals: launches agents (evidence: `README.md`)
- Trial bookkeeping → Rebuttals: prepares briefs (evidence: `skills/court/court.py`)
- Rebuttals → Trial workspace: writes responses (evidence: `README.md`)
- Trial bookkeeping → Independent jury: loads roster (evidence: `README.md`)
- Claude orchestrator → Independent jury: launches jurors (evidence: `README.md`)
- Independent jury → Trial workspace: writes votes (evidence: `README.md`)
- Trial bookkeeping → Trial workspace: checks outputs (evidence: `skills/court/court.py`)
- Claude orchestrator → Judge synthesis: launches judge (evidence: `README.md`)
- Trial bookkeeping → Judge synthesis: prepares brief (evidence: `skills/court/court.py`)
- Judge synthesis → Trial workspace: writes judgment (evidence: `README.md`)
- Trial bookkeeping → Trial workspace: reads votes (evidence: `skills/court/court.py`)
- Trial bookkeeping → Verdict report: renders report (evidence: `skills/court/court.py`)
- Trial workspace → Verdict report: supplies trial record
- Trial bookkeeping → Verdict report: tallies votes (evidence: `skills/court/court.py`)
