# hedimanai-pro/guardsman architecture

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

- Interactive diagram: https://gitdiagram.com/hedimanai-pro/guardsman
- Repository: https://github.com/hedimanai-pro/guardsman

## Overview

Guardsman is a Claude coding skill that challenges repository changes before they ship. Its main workflow reads repository conventions, assigns a blast-radius risk tier, guides implementation toward the smallest appropriate change, and requires tier-appropriate verification. Separate one-shot modes review or audit code, scan the structured debt log, and report current repository state. The README documents these capabilities and the two bundled scripts; the skill instructions and reference files are present in the tree but were not sampled, so their internal routing is not shown.

Main entry points: [`plugins/guardsman/skills/guardsman/SKILL.md`](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/SKILL.md) (Guardsman skill), [`plugins/guardsman/skills/guardsman/scripts/scan_ledger.py`](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/scripts/scan_ledger.py) (Logbook scan), [`plugins/guardsman/skills/guardsman/references/taxonomy.md`](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/references/taxonomy.md) (Finding taxonomy), [`plugins/guardsman/skills/guardsman/assets/ledger_template.md`](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/assets/ledger_template.md) (Logbook format)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Change workflow"]
  node_skill["Guardsman skill<br/>[SKILL.md]"]
  node_conventions["Convention detection"]
end

subgraph group_guidance["Skill guidance"]
  node_risk["Risk tiers<br/>[risk-tiers.md]"]
  node_build_order["Build order<br/>[SKILL.md]"]
  node_stack_guides["Stack guidance"]
  node_convention_guide["Conventions guide<br/>[conventions.md]"]
  node_taxonomy["Finding taxonomy<br/>[taxonomy.md]"]
  node_ledger_template["Logbook format<br/>[ledger_template.md]"]
end

subgraph group_modes["Review and reporting"]
  node_review["Diff review<br/>[SKILL.md]"]
  node_audit["Repository audit<br/>[SKILL.md]"]
  node_logbook["Logbook scan<br/>[scan_ledger.py]"]
  node_post_report["Post report<br/>[SKILL.md]"]
end

subgraph group_tools["Repository scanners"]
end

node_developer(("Developer"))

node_developer -->|"invokes mode"| node_skill
node_skill -->|"detects conventions"| node_conventions
node_skill -->|"sets tier"| node_risk
node_skill -->|"guides changes"| node_build_order
node_skill -->|"consults cheat sheets"| node_stack_guides
node_skill -->|"follows conventions"| node_convention_guide
node_skill -->|"marks shortcuts"| node_ledger_template
node_skill -->|"runs review mode"| node_review
node_skill -->|"runs audit mode"| node_audit
node_skill -->|"runs logbook mode"| node_logbook
node_skill -->|"runs report mode"| node_post_report
node_review -->|"uses taxonomy"| node_taxonomy
node_audit -->|"uses taxonomy"| node_taxonomy
node_logbook -->|"scans markers"| node_ledger_template

click node_skill "https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/SKILL.md"
click node_conventions "https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/scripts/detect_conventions.py"
click node_risk "https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/references/risk-tiers.md"
click node_build_order "https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/SKILL.md"
click node_stack_guides "https://github.com/hedimanai-pro/guardsman/tree/main/plugins/guardsman/skills/guardsman/references/stacks"
click node_convention_guide "https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/references/conventions.md"
click node_taxonomy "https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/references/taxonomy.md"
click node_ledger_template "https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/assets/ledger_template.md"
click node_review "https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/SKILL.md"
click node_audit "https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/SKILL.md"
click node_logbook "https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/scripts/scan_ledger.py"
click node_post_report "https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/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_skill,node_conventions toneBlue
class node_risk,node_build_order,node_stack_guides,node_convention_guide,node_taxonomy,node_ledger_template toneAmber
class node_review,node_audit,node_logbook,node_post_report toneMint
class node_developer toneIndigo
```

## Components

### Change workflow

- [Guardsman skill](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/SKILL.md): `plugins/guardsman/skills/guardsman/SKILL.md`
- [Convention detection](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/scripts/detect_conventions.py): `plugins/guardsman/skills/guardsman/scripts/detect_conventions.py`

### Skill guidance

- [Risk tiers](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/references/risk-tiers.md): `plugins/guardsman/skills/guardsman/references/risk-tiers.md`
- [Build order](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/SKILL.md): `plugins/guardsman/skills/guardsman/SKILL.md`
- [Stack guidance](https://github.com/hedimanai-pro/guardsman/tree/main/plugins/guardsman/skills/guardsman/references/stacks): `plugins/guardsman/skills/guardsman/references/stacks`
- [Conventions guide](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/references/conventions.md): `plugins/guardsman/skills/guardsman/references/conventions.md`
- [Finding taxonomy](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/references/taxonomy.md): `plugins/guardsman/skills/guardsman/references/taxonomy.md`
- [Logbook format](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/assets/ledger_template.md): `plugins/guardsman/skills/guardsman/assets/ledger_template.md`

### Review and reporting

- [Diff review](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/SKILL.md): `plugins/guardsman/skills/guardsman/SKILL.md`
- [Repository audit](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/SKILL.md): `plugins/guardsman/skills/guardsman/SKILL.md`
- [Logbook scan](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/scripts/scan_ledger.py): `plugins/guardsman/skills/guardsman/scripts/scan_ledger.py`
- [Post report](https://github.com/hedimanai-pro/guardsman/blob/main/plugins/guardsman/skills/guardsman/SKILL.md): `plugins/guardsman/skills/guardsman/SKILL.md`

### Other components

- **Developer**

## Connections

- Developer → Guardsman skill: invokes mode (evidence: `README.md`)
- Guardsman skill → Convention detection: detects conventions (evidence: `README.md`)
- Guardsman skill → Risk tiers: sets tier (evidence: `README.md`)
- Guardsman skill → Build order: guides changes (evidence: `README.md`)
- Guardsman skill → Stack guidance: consults cheat sheets (evidence: `README.md`)
- Guardsman skill → Conventions guide: follows conventions (evidence: `README.md`)
- Guardsman skill → Logbook format: marks shortcuts (evidence: `README.md`)
- Guardsman skill → Diff review: runs review mode (evidence: `README.md`)
- Guardsman skill → Repository audit: runs audit mode (evidence: `README.md`)
- Guardsman skill → Logbook scan: runs logbook mode (evidence: `README.md`)
- Guardsman skill → Post report: runs report mode (evidence: `README.md`)
- Diff review → Finding taxonomy: uses taxonomy (evidence: `README.md`)
- Repository audit → Finding taxonomy: uses taxonomy (evidence: `README.md`)
- Logbook scan → Logbook format: scans markers (evidence: `README.md`)
