ReasoningMapper
Turn an expert's own record of their work into Claude skills that reason the way they do.
ReasoningMapper reads someone's email archive, the documents they wrote, and transcripts of them thinking aloud through real problems in their field. It extracts the reasoning moves they actually make and groups those into habits, which the expert reviews and names. It then writes the result as Claude skills in a three-tier structure, with an orchestration map in the YAML. An agent can follow those skills when it meets a new situation in that field.
It runs locally by default. Your archive never leaves your machine unless you explicitly allow it, and even then only after redaction that has been independently verified.
corpus ─► ingest ─► authored text ─► threads ─► episodes ─► redact + verify
│
skills ◄─ write-skills ◄─ align ◄─ link ◄─ draft ◄─ expert review ◄─ group ◄─ extract (open question)
The three tiers
| Tier | What it holds | Relationship fields |
|---|
| 3 · orchestration | how the expert decides what a situation needs | source_skills (what it orchestrates), works_with (peer tier 3s) |
| 2 · behavioral | how they apply analysis in kinds of situation, or with people | orchestrated_by |
| 1 · structural | the core analytical moves | orchestrated_by |
The orchestration map of the worked example: two tier 3 habits decide what an incident needs, and call on the tier 1 and 2 habits beneath them. Amber is tier 3, green tier 2, blue tier 1. rmap visualize draws this for any map, and also writes an interactive 3D version.
flowchart TB
n4["Size the response to harm and reversibility"]
n6["Stabilise first, diagnose second"]
n3["Promise the next update, not the fix"]
n5["Price the risk, offer a cheaper path"]
n0["Ask what changed"]
n1["Find who carries the cost"]
n2["Prefer the move you can undo"]
n4 --> n0
n6 --> n0
n4 --> n1
n4 --> n2
n6 --> n2
n6 --> n3
n4 --> n5
classDef t3 fill:#f2b84b,stroke:#9a6b10,color:#1d1d1b
classDef t2 fill:#7bd389,stroke:#2e7d4f,color:#1d1d1b
classDef t1 fill:#5aa9e6,stroke:#245f8f,color:#1d1d1b
classDef flagged stroke:#d33,stroke-width:3px
class n4,n6 t3
class n3,n5 t2
class n0,n1,n2 t1
Every generated set also includes a router skill (<prefix>-reasoning). It lists the tier 3 activation cues and the orchestration map, so an agent knows where to start. The tool ships with an empty three-tier structure: your patterns come from your material, not from a taxonomy someone else wrote. See docs/SKILL_FORMAT.md.
Quick start
pip install -e '.[docs]' # add [pst] for Outlook, [audio] for recordings, [anthropic] for the Claude API
rmap -C my-expert init # writes rmap.yaml, calibration/known.yaml, .gitignore
# edit my-expert/rmap.yaml: your addresses, your field, your sources, your local models
rmap -C my-expert ingest # PST, mbox/Gmail Takeout, .eml, docx/pptx/pdf/md, transcripts
rmap -C my-expert prepare # strip quoted replies, attribute authorship, thread, classify episodes
rmap -C my-expert calibrate # known-answer checks: do the instruments work on YOUR material?
rmap -C my-expert redact # input-side redaction, audited by a second model family
rmap -C my-expert extract # open extraction: what moves did the expert make?
rmap -C my-expert group # moves -> candidate habits, written to review/moves.yaml
# ...the expert reviews review/moves.yaml: keep / merge / drop, name each habit, give it a tier
rmap -C my-expert draft # reviewed habits -> map/patterns.yaml
rmap -C my-expert link # propose orchestration links from co-occurrence
# (--judge: the model proposes a parent for any left orphaned)
rmap -C my-expert visualize # map/graph.html: the orchestration as an interactive 3D graph
# ...edit map/patterns.yaml until `rmap validate` is clean
rmap -C my-expert align # which general reasoning approaches does each habit build on?
rmap -C my-expert write-skills # -> my-expert/skills/
rmap status shows where a project stands at any point.
A worked example
examples/incident-commander is a complete run on a fully synthetic expert: a fictional incident commander, with 23 emails, a guide they wrote and a think-aloud transcript. Every stage's output is committed, from the review decisions and the pattern map to the eight generated skills. It runs offline from recorded model responses, and the test suite rebuilds it byte for byte.
cd examples/incident-commander && python reproduce.py