# mauriceos/reverse-skill architecture

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

- Interactive diagram: https://gitdiagram.com/mauriceos/reverse-skill
- Repository: https://github.com/mauriceos/reverse-skill

## Overview

#### Purpose and Entry Points
This is a client-neutral cybersecurity skill-routing repository for AI-assisted reverse engineering, pentesting, CTFs, and reporting—not an application service. An agent begins with policy and routing, then invokes local tools/scripts and records a case. Primary entry points are `README_AI.md`, `RULES.md`, `skills/MASTER-ROUTING.md`, and `skills/SKILL.md`.

#### Routing Core
The routing system maps a task description to a PRIMARY skill and workflow using a single structured source of truth: `skills/config/routing.json`. Human-readable navigation and the full routing matrix are maintained in `skills/MASTER-ROUTING.md`, `skills/routing.md`, and generated `skills/INDEX.md`. The one-shot PowerShell router, `skills/scripts/master-route.ps1`, consumes the routing configuration; routing is designed to remain independent of any particular AI client.

#### Authorization and Case Lifecycle
Before active interaction with a target, global rules require scope and network authorization. Case bootstrap scripts create a local, gitignored work area with scope, timeline, work items, evidence, and report artifacts: `skills/scripts/case-init.ps1`, `skills/ops/scope-contract.md`, and `skills/ops/timeline-workitem.md`. The central flow is: task → routing → case/scope gate → selected skill/tooling → evidence and findings → report or field-journal.

#### Domain Skill Modules
Skill directories are self-contained procedural modules, normally anchored by `SKILL.md` plus references and occasional executable helpers. Major capability families include mobile and binary reversing (`skills/apk-reverse/SKILL.md`, `skills/ida-reverse/SKILL.md`, `skills/reverse-engineering/SKILL.md`); web/API and offensive assessment (`skills/pentest-tools/SKILL.md`, `skills/api-security/SKILL.md`, `skills/attack-chain/SKILL.md`); and specialized firmware, malware, cloud, and LLM analysis (`skills/firmware-pentest/SKILL.md`, `skills/malware-analysis/SKILL.md`, `skills/llm-security/SKILL.md`).

#### Evidence, Review, and Knowledge Reuse
The output boundary is an evidence-backed case rather than unstructured agent prose. Case review provides read-only evidence graph and artifact-fixity checking through `skills/case-review/SKILL.md` and `skills/case-review/scripts/review_case.py`. Durable lessons and precedents are captured in `skills/field-journal/_index.md` and related journal entries. Report/diagram production is routed separately via `skills/docs-generator/SKILL.md` and `skills/diagram-generator/SKILL.md`.

#### CTF and Burp/MCP Integrations
`CTF-Sandbox-Orchestrator/` is a GPLv3 bundled skill collection with a top-level orchestrator and many scenario-specific competition skills, e.g. `CTF-Sandbox-Orchestrator/ctf-sandbox-orchestrator/SKILL.md` and `CTF-Sandbox-Orchestrator/competition-web-runtime/SKILL.md`. `burp-mcp-full/` is the principal compiled integration: a Gradle Java Burp extension (`burp-mcp-full/src/main/java/com/burpmcp/BurpMcpExtension.java`) exposes an HTTP/MCP bridge (`burp-mcp-full/src/main/java/com/burpmcp/McpHttpServer.java`), with Node-side bridge support in `burp-mcp-full/mcp-bridge.js`.

#### Runtimes, Platforms, and Quality Gates
Core execution targets PowerShell on Windows and Bash on Linux/macOS; local discovery produces a tool index using `skills/scripts/refresh-tool-index.ps1` and `skills/scripts/refresh-tool-index.sh`. Material optional runtimes/services include Java/JDK, Node.js, Python, Docker, Burp Suite/MCP, and external reverse/security tools such as IDA, Ghidra, radare2, jadx, apktool, and Frida. CI runs cross-platform checks from `.github/workflows/ci.yml`; routing coherence and supply-chain pinning are enforced by `skills/scripts/verify-routing-coherence.ps1`, while regression behavior is defined by `skills/tests/routing-benchmark.json`.

Main entry points: [`skills/scripts/master-route.ps1`](https://github.com/mauriceos/reverse-skill/blob/main/skills/scripts/master-route.ps1) (PowerShell router), [`skills/config/routing.json`](https://github.com/mauriceos/reverse-skill/blob/main/skills/config/routing.json) (Routing source of truth), [`skills/reverse-engineering/SKILL.md`](https://github.com/mauriceos/reverse-skill/blob/main/skills/reverse-engineering/SKILL.md) (Reverse engineering skills), [`RULES.md`](https://github.com/mauriceos/reverse-skill/blob/main/RULES.md) (Global rules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Agent Entry"]
  node_readme["AI entry guide<br/>guidance<br/>[README_AI.md]"]
  node_rules["Global rules<br/>policy<br/>[RULES.md]"]
  node_skill_contract["Skill contract<br/>guidance<br/>[SKILL.md]"]
end

subgraph group_routing["Routing Core"]
  node_routing_config["Routing source of truth<br/>routing config<br/>[routing.json]"]
  node_routing_docs["Routing matrix &amp; index<br/>generated navigation<br/>[MASTER-ROUTING.md]"]
  node_router["PowerShell router<br/>PowerShell CLI<br/>[master-route.ps1]"]
end

subgraph group_case["Authorized Casework"]
  node_case_bootstrap["Case bootstrap<br/>PowerShell CLI<br/>[case-init.ps1]"]
  node_scope_contract["Scope contract<br/>authorization template<br/>[scope-contract.md]"]
  node_case_artifacts[("Evidence-backed case<br/>local case workspace")]
  node_case_review["Case review &amp; fixity<br/>Python review tool<br/>[review_case.py]"]
end

subgraph group_skills["Skill Ecosystem"]
  node_reverse_skills["Reverse engineering skills<br/>skill modules<br/>[SKILL.md]"]
  node_assessment_skills["Assessment skills<br/>skill modules<br/>[SKILL.md]"]
  node_specialist_skills["Specialist analysis skills<br/>skill modules<br/>[SKILL.md]"]
  node_reporting_skills["Report &amp; diagram skills<br/>output modules<br/>[SKILL.md]"]
  node_field_journal["Field journal<br/>knowledge base<br/>[_index.md]"]
end

subgraph group_integrations["Integrations &amp; Quality"]
  node_ctf_orchestrator["CTF sandbox collection<br/>bundled GPLv3 skills<br/>[SKILL.md]"]
  node_burp_extension{{"Burp MCP extension<br/>Java Burp extension"}}
  node_tool_discovery["Tool discovery<br/>cross-platform scripts"]
  node_ci_quality["CI coherence gates<br/>GitHub Actions<br/>[ci.yml]"]
end

node_readme -->|"starts with"| node_rules
node_rules -->|"governs"| node_routing_config
node_skill_contract -.->|"module pattern"| node_reverse_skills
node_routing_config -->|"drives"| node_routing_docs
node_routing_config -->|"consumed by"| node_router
node_router -->|"selected workflow"| node_case_bootstrap
node_rules -->|"requires"| node_scope_contract
node_scope_contract -->|"authorizes"| node_case_bootstrap
node_case_bootstrap -->|"creates"| node_case_artifacts
node_router -->|"routes to"| node_reverse_skills
node_router -->|"routes to"| node_assessment_skills
node_router -->|"routes to"| node_specialist_skills
node_router -->|"routes to"| node_reporting_skills
node_router -->|"routes to"| node_ctf_orchestrator
node_tool_discovery -.->|"indexes dependencies"| node_reverse_skills
node_assessment_skills -.->|"uses optional bridge"| node_burp_extension
node_reverse_skills -->|"records evidence"| node_case_artifacts
node_assessment_skills -->|"records findings"| node_case_artifacts
node_specialist_skills -->|"records evidence"| node_case_artifacts
node_case_artifacts -->|"reviewed by"| node_case_review
node_case_artifacts -->|"feeds report"| node_reporting_skills
node_case_artifacts -->|"yields lessons"| node_field_journal
node_routing_config -->|"validated by"| node_ci_quality

click node_readme "https://github.com/mauriceos/reverse-skill/blob/main/README_AI.md"
click node_rules "https://github.com/mauriceos/reverse-skill/blob/main/RULES.md"
click node_skill_contract "https://github.com/mauriceos/reverse-skill/blob/main/skills/SKILL.md"
click node_routing_config "https://github.com/mauriceos/reverse-skill/blob/main/skills/config/routing.json"
click node_routing_docs "https://github.com/mauriceos/reverse-skill/blob/main/skills/MASTER-ROUTING.md"
click node_router "https://github.com/mauriceos/reverse-skill/blob/main/skills/scripts/master-route.ps1"
click node_case_bootstrap "https://github.com/mauriceos/reverse-skill/blob/main/skills/scripts/case-init.ps1"
click node_scope_contract "https://github.com/mauriceos/reverse-skill/blob/main/skills/ops/scope-contract.md"
click node_case_review "https://github.com/mauriceos/reverse-skill/blob/main/skills/case-review/scripts/review_case.py"
click node_reverse_skills "https://github.com/mauriceos/reverse-skill/blob/main/skills/reverse-engineering/SKILL.md"
click node_assessment_skills "https://github.com/mauriceos/reverse-skill/blob/main/skills/pentest-tools/SKILL.md"
click node_specialist_skills "https://github.com/mauriceos/reverse-skill/blob/main/skills/malware-analysis/SKILL.md"
click node_reporting_skills "https://github.com/mauriceos/reverse-skill/blob/main/skills/docs-generator/SKILL.md"
click node_field_journal "https://github.com/mauriceos/reverse-skill/blob/main/skills/field-journal/_index.md"
click node_ctf_orchestrator "https://github.com/mauriceos/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/ctf-sandbox-orchestrator/SKILL.md"
click node_burp_extension "https://github.com/mauriceos/reverse-skill/blob/main/burp-mcp-full/src/main/java/com/burpmcp/BurpMcpExtension.java"
click node_tool_discovery "https://github.com/mauriceos/reverse-skill/blob/main/skills/scripts/refresh-tool-index.ps1"
click node_ci_quality "https://github.com/mauriceos/reverse-skill/blob/main/.github/workflows/ci.yml"

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_readme,node_rules,node_skill_contract toneBlue
class node_routing_config,node_routing_docs,node_router toneAmber
class node_case_bootstrap,node_scope_contract,node_case_artifacts,node_case_review toneMint
class node_reverse_skills,node_assessment_skills,node_specialist_skills,node_reporting_skills,node_field_journal toneRose
class node_ctf_orchestrator,node_burp_extension,node_tool_discovery,node_ci_quality toneIndigo
```

## Components

### Agent Entry

- [AI entry guide](https://github.com/mauriceos/reverse-skill/blob/main/README_AI.md): guidance · `README_AI.md`
- [Global rules](https://github.com/mauriceos/reverse-skill/blob/main/RULES.md): policy · Requires scope and network authorization before active target interaction. · `RULES.md`
- [Skill contract](https://github.com/mauriceos/reverse-skill/blob/main/skills/SKILL.md): guidance · `skills/SKILL.md`

### Routing Core

- [Routing source of truth](https://github.com/mauriceos/reverse-skill/blob/main/skills/config/routing.json): routing config · Maps task descriptions to primary skills and workflows. · `skills/config/routing.json`
- [Routing matrix & index](https://github.com/mauriceos/reverse-skill/blob/main/skills/MASTER-ROUTING.md): generated navigation · `skills/MASTER-ROUTING.md`
- [PowerShell router](https://github.com/mauriceos/reverse-skill/blob/main/skills/scripts/master-route.ps1): PowerShell CLI · `skills/scripts/master-route.ps1`

### Authorized Casework

- [Case bootstrap](https://github.com/mauriceos/reverse-skill/blob/main/skills/scripts/case-init.ps1): PowerShell CLI · Creates gitignored scope, timeline, work-item, evidence, and report workspace. · `skills/scripts/case-init.ps1`
- [Scope contract](https://github.com/mauriceos/reverse-skill/blob/main/skills/ops/scope-contract.md): authorization template · `skills/ops/scope-contract.md`
- **Evidence-backed case**: local case workspace · Holds timeline, evidence, findings, and report artifacts.
- [Case review & fixity](https://github.com/mauriceos/reverse-skill/blob/main/skills/case-review/scripts/review_case.py): Python review tool · Provides read-only evidence graph and artifact-fixity checks. · `skills/case-review/scripts/review_case.py`

### Skill Ecosystem

- [Reverse engineering skills](https://github.com/mauriceos/reverse-skill/blob/main/skills/reverse-engineering/SKILL.md): skill modules · Mobile, binary, and general reverse-engineering procedures. · `skills/reverse-engineering/SKILL.md`
- [Assessment skills](https://github.com/mauriceos/reverse-skill/blob/main/skills/pentest-tools/SKILL.md): skill modules · Web/API testing and attack-chain procedures. · `skills/pentest-tools/SKILL.md`
- [Specialist analysis skills](https://github.com/mauriceos/reverse-skill/blob/main/skills/malware-analysis/SKILL.md): skill modules · Firmware, malware, cloud, and LLM analysis procedures. · `skills/malware-analysis/SKILL.md`
- [Report & diagram skills](https://github.com/mauriceos/reverse-skill/blob/main/skills/docs-generator/SKILL.md): output modules · `skills/docs-generator/SKILL.md`
- [Field journal](https://github.com/mauriceos/reverse-skill/blob/main/skills/field-journal/_index.md): knowledge base · Durable lessons and precedents. · `skills/field-journal/_index.md`

### Integrations & Quality

- [CTF sandbox collection](https://github.com/mauriceos/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/ctf-sandbox-orchestrator/SKILL.md): bundled GPLv3 skills · Top-level competition orchestrator with scenario-specific skills. · `CTF-Sandbox-Orchestrator/ctf-sandbox-orchestrator/SKILL.md`
- [Burp MCP extension](https://github.com/mauriceos/reverse-skill/blob/main/burp-mcp-full/src/main/java/com/burpmcp/BurpMcpExtension.java): Java Burp extension · Compiled Burp integration exposing an HTTP/MCP bridge. · `burp-mcp-full/src/main/java/com/burpmcp/BurpMcpExtension.java`
- [Tool discovery](https://github.com/mauriceos/reverse-skill/blob/main/skills/scripts/refresh-tool-index.ps1): cross-platform scripts · Builds a local index of available security tools. · `skills/scripts/refresh-tool-index.ps1`
- [CI coherence gates](https://github.com/mauriceos/reverse-skill/blob/main/.github/workflows/ci.yml): GitHub Actions · Cross-platform checks enforce routing coherence and supply-chain pinning. · `.github/workflows/ci.yml`

## Connections

- AI entry guide → Global rules: starts with
- Global rules → Routing source of truth: governs
- Skill contract → Reverse engineering skills: module pattern
- Routing source of truth → Routing matrix & index: drives
- Routing source of truth → PowerShell router: consumed by
- PowerShell router → Case bootstrap: selected workflow
- Global rules → Scope contract: requires
- Scope contract → Case bootstrap: authorizes
- Case bootstrap → Evidence-backed case: creates
- PowerShell router → Reverse engineering skills: routes to
- PowerShell router → Assessment skills: routes to
- PowerShell router → Specialist analysis skills: routes to
- PowerShell router → Report & diagram skills: routes to
- PowerShell router → CTF sandbox collection: routes to
- Tool discovery → Reverse engineering skills: indexes dependencies
- Assessment skills → Burp MCP extension: uses optional bridge
- Reverse engineering skills → Evidence-backed case: records evidence
- Assessment skills → Evidence-backed case: records findings
- Specialist analysis skills → Evidence-backed case: records evidence
- Evidence-backed case → Case review & fixity: reviewed by
- Evidence-backed case → Report & diagram skills: feeds report
- Evidence-backed case → Field journal: yields lessons
- Routing source of truth → CI coherence gates: validated by
