repo-reverse-engineering
Skill4 starsChanged 6 months agoMITView on GitHub
Static-first reverse engineering of downloaded or cloned source repositories. Use when Codex or Claude Code needs to deeply analyze an unfamiliar repo, map architecture, entrypoints, dependencies, API/CLI/MCP/plugin surfaces, security and supply-chain risks, and produce both a Markdown report and RAG/MCP-ready corpus outputs.
In this repository7 other files it gives its agents.
- android-reverse-engineeringSkill
- binary-triageSkill
- ghidra-headlessSkill
- ioc-extractionSkill
- re-parity-reviewSkill
- reverse-engineeringSkill
- unpacking-analysisSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Do not run builds, tests, installers, package managers, Docker, shell scripts, binaries, or repo-provided CLIs automatically.
- Distinctive: line 14
If execution is requested or required, respond:
- Distinctive: line 34
When the user asks to query the corpus through an agent/MCP workflow, serve it read-only:
- Distinctive: line 42
Read details only when needed:
- Very specific: line 58
If MCP/RAG interaction is requested, use repo_corpus_mcp.py and prefer cursor-paginated tools (reveng.list_graph_nodes, …
- Distinctive: line 59
Write the Markdown report with these sections:
- Distinctive: line 66
Test/build strategy observed from files.
- Distinctive: line 75
If requested, MCP server startup command for querying the generated corpus.
- Distinctive: line 78
Do not claim runtime behavior, successful builds, test status, exploitability, or production safety unless those were separately verified …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repo Reverse Engineering
Analyze a local source repository without executing its code. Produce an evidence-backed Markdown report plus structured artifacts for downstream RAG/MCP ingestion.
Safety
- Static-first only: read files, manifests, docs, configs, tests, routes, lockfiles, and source text.
- Do not run builds, tests, installers, package managers, Docker, shell scripts, binaries, or repo-provided CLIs automatically.
- If execution is requested or required, respond:
PAUSE: This step would execute code from the analyzed repository. Confirm sandbox, network posture, snapshot/rollback state, exact command, and output path before continuing.
Quick Start
From the plugin root, run:
mkdir -p case
python3 scripts/repo_inventory.py /path/to/repo --json-out case/repo_inventory.json
python3 scripts/repo_map.py /path/to/repo --json-out case/repo_map.json
python3 scripts/repo_corpus_export.py /path/to/repo --repo-map case/repo_map.json --jsonl-out case/repo_corpus.jsonl
python3 scripts/case_manifest.py --case-dir case --target /path/to/repo \
--artifact repo_inventory=case/repo_inventory.json \
--artifact repo_map=case/repo_map.json \
--artifact repo_corpus=case/repo_corpus.jsonl \
--cap repo_corpus_max_file_bytes=500000When the user asks to query the corpus through an agent/MCP workflow, serve it read-only:
python3 scripts/repo_corpus_mcp.py --corpus case/repo_corpus.jsonl --repo-map case/repo_map.jsonOn Windows, use python if python3 is absent.
Read details only when needed:
references/repo-analysis-playbook.mdreferences/repo-analysis-schema.mdreferences/case-manifest-schema.mdreferences/output-schemas.mdreferences/report-templates.md
Analysis Procedure
- Inspect
repo_inventory.jsonfor languages, file mix, size, ignored directories, and manifest evidence. - Inspect
repo_map.jsonfor entrypoints, dependencies, routes, plugin/MCP surfaces, configs, and risk observations. - Inspect
repo_map.jsonmodule_graphfor Python internal import edges and unresolved/external imports. - Inspect
repo_map.jsongraphfor file, module, symbol, route, entrypoint, dependency, and plugin nodes plus evidence-backed edges. - Inspect
case_manifest.jsonfor artifact hashes, target content hash, caps, ignored directories, warnings, and static-first safety posture. - Sample
repo_corpus.jsonlto verify records contain stable hashes, summaries, symbols, imports, evidence excerpts, andgraph_refswhen exported with--repo-map. - If MCP/RAG interaction is requested, use
repo_corpus_mcp.pyand prefer cursor-paginated tools (reveng.list_graph_nodes,reveng.list_graph_edges,reveng.graph_neighbors) over pasting large corpus sections into chat. - Write the Markdown report with these sections:
- Apparent purpose.
- Structure and major modules.
- Entrypoints and flows.
- Dependencies and toolchain.
- API, CLI, MCP, plugin, and service surfaces.
- Security and supply-chain risk signals.
- Test/build strategy observed from files.
- Limitations and next steps.
Output Contract
Always deliver:
- A Markdown report with file/line evidence for non-obvious claims.
- Paths to
case_manifest.json,repo_inventory.json,repo_map.json, andrepo_corpus.jsonl. - If requested, MCP server startup command for querying the generated corpus.
- Limitations, especially anything not executed because of the static-first boundary.
Do not claim runtime behavior, successful builds, test status, exploitability, or production safety unless those were separately verified under an approved execution gate.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

