# xiaolai/claude-bughunter architecture

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

- Interactive diagram: https://gitdiagram.com/xiaolai/claude-bughunter
- Repository: https://github.com/xiaolai/claude-bughunter

## Overview

claude-bughunter is a Claude Code skill bundle for authorized bug bounty and external red-team work, with a secondary deterministic CLI. The user’s main workflow is engagement setup, reconnaissance, vulnerability hunting, finding validation, and reporting; separate capability branches cover enterprise attack surfaces, operator discipline, and CVE coverage. The README documents the skill and command workflow; sampled CLI code confirms recon, URL classification, triage, and report rendering. Other skill internals were not sampled, so their connections reflect documented capabilities rather than inspected calls.

Main entry points: [`scripts/cbh.py`](https://github.com/xiaolai/claude-bughunter/blob/main/scripts/cbh.py) (CBH CLI), [`skills/triage-validation/SKILL.md`](https://github.com/xiaolai/claude-bughunter/blob/main/skills/triage-validation/SKILL.md) (Finding Triage), [`skills`](https://github.com/xiaolai/claude-bughunter/tree/main/skills) (Web Vulnerability Hunting), [`scripts/refresh-cve-index.py`](https://github.com/xiaolai/claude-bughunter/blob/main/scripts/refresh-cve-index.py) (CVE Coverage Scan)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Engagement Workflow"]
  node_commands["Slash Commands"]
  node_cli["CBH CLI<br/>[cbh.py]"]
  node_methodology["Hunt Methodology<br/>[SKILL.md]"]
  node_discipline["Operator Discipline<br/>[SKILL.md]"]
end

subgraph group_recon["Reconnaissance"]
  node_recon_skills["Recon Skills"]
  node_cli_recon["CLI Recon<br/>[cbh.py]"]
end

subgraph group_hunting["Hunting Capabilities"]
  node_web_hunt["Web Vulnerability Hunting"]
  node_cve_refresh["CVE Coverage Scan"]
  node_coverage_corpus["Skill And Report Corpus"]
end

subgraph group_enterprise["Enterprise Red Team"]
  node_platform_hunt["Platform Attack Chains"]
  node_cloud_mobile_supply["Cloud And Supply Chain"]
end

subgraph group_validation["Validation And Reporting"]
  node_triage["Finding Triage<br/>[SKILL.md]"]
  node_cli_triage["CLI Triage<br/>[cbh.py]"]
  node_evidence["Evidence Hygiene<br/>[SKILL.md]"]
  node_reporting["Report Writing<br/>[SKILL.md]"]
  node_cli_report["CLI Report Draft<br/>[cbh.py]"]
end

node_operator(("Researcher"))
node_claude["Claude Code"]
node_kev[("CISA KEV Feed")]

node_operator -->|"describes target"| node_claude
node_claude -->|"loads by topic"| node_commands
node_operator -->|"runs commands"| node_cli
node_commands -->|"guides workflow"| node_methodology
node_methodology -->|"maps attack surface"| node_recon_skills
node_cli -->|"dispatches recon"| node_cli_recon
node_cli_recon -->|"suggests next steps"| node_recon_skills
node_recon_skills -->|"informs hunting"| node_web_hunt
node_web_hunt -->|"extends to platforms"| node_platform_hunt
node_platform_hunt -->|"covers adjacent surfaces"| node_cloud_mobile_supply
node_web_hunt -->|"validates findings"| node_triage
node_discipline -->|"applies discipline"| node_triage
node_cli -->|"dispatches triage"| node_cli_triage
node_cli_triage -->|"applies gate"| node_triage
node_triage -->|"preserves evidence"| node_evidence
node_evidence -->|"supports reporting"| node_reporting
node_cli -->|"renders draft"| node_cli_report
node_cli_report -->|"uses report styles"| node_reporting
node_cve_refresh -->|"fetches catalog"| node_kev
node_cve_refresh -->|"checks coverage"| node_coverage_corpus

click node_commands "https://github.com/xiaolai/claude-bughunter/tree/main/commands"
click node_cli "https://github.com/xiaolai/claude-bughunter/blob/main/scripts/cbh.py"
click node_methodology "https://github.com/xiaolai/claude-bughunter/blob/main/skills/bug-bounty/SKILL.md"
click node_recon_skills "https://github.com/xiaolai/claude-bughunter/tree/main/skills"
click node_cli_recon "https://github.com/xiaolai/claude-bughunter/blob/main/scripts/cbh.py"
click node_web_hunt "https://github.com/xiaolai/claude-bughunter/tree/main/skills"
click node_platform_hunt "https://github.com/xiaolai/claude-bughunter/tree/main/skills"
click node_cloud_mobile_supply "https://github.com/xiaolai/claude-bughunter/tree/main/skills"
click node_discipline "https://github.com/xiaolai/claude-bughunter/blob/main/skills/redteam-mindset/SKILL.md"
click node_triage "https://github.com/xiaolai/claude-bughunter/blob/main/skills/triage-validation/SKILL.md"
click node_cli_triage "https://github.com/xiaolai/claude-bughunter/blob/main/scripts/cbh.py"
click node_evidence "https://github.com/xiaolai/claude-bughunter/blob/main/skills/evidence-hygiene/SKILL.md"
click node_reporting "https://github.com/xiaolai/claude-bughunter/blob/main/skills/report-writing/SKILL.md"
click node_cli_report "https://github.com/xiaolai/claude-bughunter/blob/main/scripts/cbh.py"
click node_cve_refresh "https://github.com/xiaolai/claude-bughunter/blob/main/scripts/refresh-cve-index.py"
click node_coverage_corpus "https://github.com/xiaolai/claude-bughunter/tree/main/skills"

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_commands,node_cli,node_methodology,node_discipline toneBlue
class node_recon_skills,node_cli_recon,node_kev toneAmber
class node_web_hunt,node_cve_refresh,node_coverage_corpus toneMint
class node_platform_hunt,node_cloud_mobile_supply toneRose
class node_triage,node_cli_triage,node_evidence,node_reporting,node_cli_report,node_operator,node_claude toneIndigo
```

## Components

### Engagement Workflow

- [Slash Commands](https://github.com/xiaolai/claude-bughunter/tree/main/commands): `commands`
- [CBH CLI](https://github.com/xiaolai/claude-bughunter/blob/main/scripts/cbh.py): `scripts/cbh.py`
- [Hunt Methodology](https://github.com/xiaolai/claude-bughunter/blob/main/skills/bug-bounty/SKILL.md): `skills/bug-bounty/SKILL.md`
- [Operator Discipline](https://github.com/xiaolai/claude-bughunter/blob/main/skills/redteam-mindset/SKILL.md): `skills/redteam-mindset/SKILL.md`

### Reconnaissance

- [Recon Skills](https://github.com/xiaolai/claude-bughunter/tree/main/skills): `skills`
- [CLI Recon](https://github.com/xiaolai/claude-bughunter/blob/main/scripts/cbh.py): `scripts/cbh.py`

### Hunting Capabilities

- [Web Vulnerability Hunting](https://github.com/xiaolai/claude-bughunter/tree/main/skills): `skills`
- [CVE Coverage Scan](https://github.com/xiaolai/claude-bughunter/blob/main/scripts/refresh-cve-index.py): `scripts/refresh-cve-index.py`
- [Skill And Report Corpus](https://github.com/xiaolai/claude-bughunter/tree/main/skills): `skills`

### Enterprise Red Team

- [Platform Attack Chains](https://github.com/xiaolai/claude-bughunter/tree/main/skills): `skills`
- [Cloud And Supply Chain](https://github.com/xiaolai/claude-bughunter/tree/main/skills): `skills`

### Validation And Reporting

- [Finding Triage](https://github.com/xiaolai/claude-bughunter/blob/main/skills/triage-validation/SKILL.md): `skills/triage-validation/SKILL.md`
- [CLI Triage](https://github.com/xiaolai/claude-bughunter/blob/main/scripts/cbh.py): `scripts/cbh.py`
- [Evidence Hygiene](https://github.com/xiaolai/claude-bughunter/blob/main/skills/evidence-hygiene/SKILL.md): `skills/evidence-hygiene/SKILL.md`
- [Report Writing](https://github.com/xiaolai/claude-bughunter/blob/main/skills/report-writing/SKILL.md): `skills/report-writing/SKILL.md`
- [CLI Report Draft](https://github.com/xiaolai/claude-bughunter/blob/main/scripts/cbh.py): `scripts/cbh.py`

### Other components

- **Researcher**
- **Claude Code**
- **CISA KEV Feed**

## Connections

- Researcher → Claude Code: describes target (evidence: `README.md`)
- Claude Code → Slash Commands: loads by topic (evidence: `README.md`)
- Researcher → CBH CLI: runs commands (evidence: `scripts/cbh.py`)
- Slash Commands → Hunt Methodology: guides workflow (evidence: `README.md`)
- Hunt Methodology → Recon Skills: maps attack surface (evidence: `README.md`)
- CBH CLI → CLI Recon: dispatches recon (evidence: `scripts/cbh.py`)
- CLI Recon → Recon Skills: suggests next steps (evidence: `scripts/cbh.py`)
- Recon Skills → Web Vulnerability Hunting: informs hunting (evidence: `README.md`)
- Web Vulnerability Hunting → Platform Attack Chains: extends to platforms (evidence: `README.md`)
- Platform Attack Chains → Cloud And Supply Chain: covers adjacent surfaces (evidence: `README.md`)
- Web Vulnerability Hunting → Finding Triage: validates findings (evidence: `README.md`)
- Operator Discipline → Finding Triage: applies discipline (evidence: `README.md`)
- CBH CLI → CLI Triage: dispatches triage (evidence: `scripts/cbh.py`)
- CLI Triage → Finding Triage: applies gate (evidence: `scripts/cbh.py`)
- Finding Triage → Evidence Hygiene: preserves evidence (evidence: `README.md`)
- Evidence Hygiene → Report Writing: supports reporting (evidence: `README.md`)
- CBH CLI → CLI Report Draft: renders draft (evidence: `scripts/cbh.py`)
- CLI Report Draft → Report Writing: uses report styles (evidence: `scripts/cbh.py`)
- CVE Coverage Scan → CISA KEV Feed: fetches catalog (evidence: `scripts/refresh-cve-index.py`)
- CVE Coverage Scan → Skill And Report Corpus: checks coverage (evidence: `scripts/refresh-cve-index.py`)
