code-archaeologist-explorer
Skill1 starsChanged 49 days agoMITView on GitHub
Create, initialise or replace the Code Archaeologist explorer page (data/explorer.html) for this project -- builds both maps and the review report, then renders the one self-contained, offline HTML page a human opens in a browser. Use only when the user asks for the explorer / explorer.html itself; for questions about the code, use the code-archaeologist skill.
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- code-archaeologistSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
Execution-only mode: Run the commands step-by-step.
- Very specific: line 14
NEVER inspect generated files: Do NOT open, view, or grep data/explorer.html, graph.json, flow_graph.json, notes, or reports.
- Distinctive: line 16
Ignore pending descriptions and warnings: Do not attempt to fill in descriptions or fix missing grammars.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Skill: Code Archaeologist Explorer
One job: leave an up-to-date data/explorer.html in the code-archaeologist skill folder.
The scripts live in the main skill at .agents/skills/code-archaeologist.
Execution Directive (Zero Overthinking & Low Token Usage)
- Execution-only mode: Run the commands step-by-step. Do NOT evaluate or verify data correctness or completeness. The Python scripts handle parsing, extraction, and rendering deterministically.
- NEVER inspect generated files: Do NOT open, view, or grep
data/explorer.html,graph.json,flow_graph.json, notes, or reports. Trust script stdout completely. - NEVER read source code files: Answering architecture questions is the main skill's job, not this one's.
- Ignore pending descriptions and warnings: Do not attempt to fill in descriptions or fix missing grammars. Proceed directly.
Steps
1. Source roots. Fast priority (do not crawl or search the filesystem):
- Roots specified by user in prompt (
/code-archaeologist-explorer ./backend ./frontend). - Otherwise, recorded
rootsin.agents/skills/code-archaeologist/data/cache/manifest.json. - Otherwise,
./srcif it exists, else ask the user which folder to map.
2. Preflight (first build only). Skip completely if manifest.json already exists.
Otherwise check Python 3.10+ and install grammars:
python --version
python .agents/skills/code-archaeologist/scripts/core/grammars.py --install python typescript # the repo's languages3. Build both maps, then the report. Execute chained in a single command to save tool roundtrips:
python .agents/skills/code-archaeologist/scripts/archaeologist.py both --src <roots> && python .agents/skills/code-archaeologist/scripts/archaeologist.py report --src <roots>(Only when user asks to re-render without rebuilding: python .agents/skills/code-archaeologist/scripts/query/build_html.py)
4. Report back. Output ONLY this concise summary and stop:
Explorer ready: `.agents/skills/code-archaeologist/data/explorer.html`
- Structure: <N> nodes, <E> edges (Grade: <G>)
- Flow: <N> nodes, <E> edges (Grade: <G>)
<Any skipped grammar warnings verbatim from build stdout>Open the file only if the user asks (start on Windows, open on macOS, xdg-open on Linux).
Do NOT explain views, features, or architecture unless explicitly asked.
Reference (Provide only if user asks about page features)
- One self-contained offline HTML file (
file://). - Seven views: Flowchart (default), Graph, Treemap, Matrix, Tree, Cluster, Bundle.
- Canvas tools: Blast radius, Freeze view, File tree filter, Reset layout.
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.

