Röntgen
Docs

Methodology — the loop

Mirrored from the skill package. This is the canonical English text that Claude actually loads, published here so it can be read next to its Turkish mirror instead of only on GitHub. Edit the source above, not this page; the Turkish mirror is docs/tr/metodoloji.md.

Rontgen

It maps a codebase that already exists. The family’s verbs stay separate — iskele builds, mizan weighs, kiyas generates, ux-mizan audits experience, rontgen maps. Mizan starts from a claim and asks whether it holds; Rontgen starts with no claim at all and asks what is here, how does it hang together, and what will it cost to understand?

Why this skill exists

“Is this code understandable?” is normally answered by the person who has read the most of it, from memory. Three things go wrong:

  1. The map is a feeling. “The payment module is the scary part” may be true, or may be the last thing someone was bitten by.
  2. The diagram is a memory. An architecture picture drawn once by hand describes the code as intended; nothing ties it to the code as it is.
  3. Speed outruns reading. A fast author — a model, or a team under deadline — produces more than anyone reviews. The gap is invisible until someone new has to change the code.

Rontgen answers the countable half from sources that cannot flatter anyone, then spends the reading half where the counts point — and measures how much reading was actually done.

The two halves, and what each is worth

The fixed core runs without a model and gives the same answer every time:

Script Produces Says
rontgen.py rontgen.md / .json inventory, size, hotspots, knowledge spread, files that change together, commit shape, test coverage
yapi.py yapi.md / .json block diagram, dependencies, cycles, blind spots, entry surface, stores, outline of large files
belge.py belge.md / .json code paths the project’s documents name: which exist, which document names most, which modules none names
paket.py paket.md / .json package manifests (Cargo, npm, .NET, Python, Go, Maven, Gradle): internal, external, feature-gated, test-only
atif.py check / --capala / --ornek whether every citation still points at what was read; a blind checklist for a second reader
kapsam.py kapsam.md / .json how much of the code the documents rest on; the next slice: unread files that read files import ([K], where a resolver exists), else unread heat
devir.py backlog / registry hand-off to iskele (tasks with acceptance criteria, review baseline) and mizan (unheld sentences)
dogrula.py check every JSON output against its frozen schema in schemas/
cikti.py svg / png / docx / tex / pdf optional formats; --yokla says which this machine can make
pano.py pano.html one self-contained page (no network): block diagram, links in and out, lines by module, module matrix, depth from entry points, most-used files, hotspots, where to start reading (from structure, [H]) and, when the reading half was done, its documents and how much of each module they rest on; TR / EN switch, first view from report_lang; --name sets the name shown, no local path reaches the page

ortak.py and sonda.py hold what they share. Each script has a --self-test. Thresholds and exclusions come from rontgen.config.json (optional) and are printed with their source; nothing is excluded silently.

The reading half is yours: reading order, module notes with function walkthroughs, flow diagrams, data map, glossary. Templates and rules are in references/belgeler.md. Its quality depends on the reader and the time given; the core cannot check that a sentence is true, only that its citation still points where it did and how much ground the reading covered.

The loop — seven steps

Each step names the reference that holds its details. Read it when you reach the step, not before.

1. Measure before reading

python scripts/rontgen.py --repo . --out rontgen-out
python scripts/yapi.py    --repo . --out rontgen-out
python scripts/belge.py   --repo . --out rontgen-out
python scripts/paket.py   --repo . --out rontgen-out

Reports are written in plain Turkish by default; --lang tr restores the diacritics, --lang en writes English (or report_lang in the config). JSON outputs never change with the language.

Run them first, read code second: reading first anchors you on whichever file you opened. Then read what was left out — the “Olcume girmeyenler” list and the unclassified extensions — and correct it in rontgen.config.json before going on — in the output folder, passed with --config, when the repository is not yours to write (one run left test files counted as source rather than write there). With no git history, churn, coupling and knowledge are unmeasured, not zero. Config, exclusions, live vendored code, extra sources and entry points: references/olcum.md; a language the project made for itself: references/ozel-dil.md.

2. Read the results as questions

Section The question it answers
Inventory, exclusions How much is there, in what, and what was left out or NOT classified?
Block diagram, fan-in/out What are the parts, and which ones is everything leaning on?
Cycles Which parts cannot be understood without each other?
Blind spots What can these scripts NOT see in this codebase?
Hotspots Which files are both expensive to read and constantly changed?
Coupling Which files are tied by habit rather than by an import?
Entry surface, stores Where does the outside come in, and where does state live?
Package manifests What may each layer depend on, and what is switched on only by a feature or a test?
Knowledge, change shape Who could explain this, and was the history ever reviewable?

Solid arrows are [K] (a dependency that resolves in the repository), dashed arrows [H] (a name used across files). Only [K] edges make a cycle. Per-language rules: references/olcum.md.

3. Close a blind spot with a probe — only if it matters

A probe is a small project-specific script that resolves one blind-spot mechanism and turns [H] into [K]. It is written for a row of the blind-spot table, before reading, with a self-test and a control. One probe has been written so far; whether probes pay for themselves is unmeasured. Contract: references/sonda.md and the head of scripts/sonda.py.

4. Read — navigation documents first, then the hotspots

Open the project’s own navigation documents first (belge.md ranks them) and follow the design documents they link to; then the top hotspots (five is usually enough) — what each is responsible for, what it should not know, what a change breaks elsewhere. The module note goes to the module with the highest [K] fan-in times its lines (yapi.json → fan, modules), not to whichever was read last: five runs that chose freely wrote up five different modules and their coverage swung by 2.5 points. Fan-in alone picked a logging helper on a compiler; weighted by size it picks the parser. Note the authors’ own design vocabulary as you go. Record every range you open in okunan.tsv and every line you will cite in atiflar.tsv, as you go; neither can be rebuilt honestly afterwards. Order without git, change checklists, vocabulary, anchors: references/okuma.md.

5. Tier every statement, and every arrow

Mizan’s tags, unchanged. Counts, resolved imports and a project’s own coverage report are [K]. The scripts’ proxies — nesting from indentation, an edge inferred from a name, a function matched by pattern — are [H]. Everything you conclude from reading is [H] until a source line or something executable confirms it. A measured number does not lend its tier to the opinion next to it, and a diagram does not become true by being a diagram.

6. Write the documents, then have them checked

Read references/belgeler.md now: the templates, including the architecture page (what the system is made of, who owns what). Trace, do not recall: a flow is drawn by opening the entry point and following the calls. Which flows to draw is the owner’s call; if the owner cannot be asked, say in each flow that they did not choose it. One claim, one anchor: a cited line supports only what is on it; a sentence that says more cites each part or carries [H] (forms that fail most often: references/teslim.md). Two of them recur: a signature cited for what the function does (cite the body range), and a measured number leaning on a code line (name its report instead).

Before delivery, in this order:

python scripts/atif.py   --repo . --docs rontgen-out --capala   # anchor what is unanchored
python scripts/atif.py   --repo . --docs rontgen-out            # every citation still holds?
python scripts/atif.py   --docs rontgen-out --ornek 12 > rontgen-out/kor-denetim.md
python scripts/kapsam.py --docs rontgen-out                     # coverage, and the second reader's result

Then the second reader — delivery waits for it. Hand kor-denetim.md to a reader who did not write the documents: a fresh subagent given only the checklist and the repository, never your notes or this conversation. It marks each sentence tuttu / tutmadi / satirdan cikmiyor in the list. Fix or tag [H] every sentence that did not hold, re-run kapsam.py, and write the counts at the top of the reading order (“second reader: 10 of 12 held, 2 fixed”). kapsam.md prints “Ikinci okuyucu: yapilmadi” while the list is missing or unfilled; if no such reader can be started, say so there and to the user. This is the one step that has made the documents measurably more accurate, twice; when it was only offered as a checklist, it was skipped.

Formats. Markdown is always the delivery. Then run python scripts/cikti.py --yokla, show the user which of SVG, PNG, Word, PDF and LaTeX this machine can make (and what is missing for the rest), and ask one question; with no answer, deliver Markdown only. A diagram that cannot be drawn stays as source text with a note, never silently dropped.

Deliver kapsam.md, rontgen.md, yapi.md and the session log (oturum-gunlugu.md, template in references/belgeler.md) with the documents: a reader without the code answered questions from the generated outline that no written page held. A large repository is read in slices, one module per sitting, the ledger naming the next; a new session starts from the ledger and the documents, not from the conversation.

7. Hand off

Rontgen finds; it does not fix and it does not adjudicate. Write the hand-off from the files, not by re-wording them:

python scripts/devir.py --docs rontgen-out --iskele rontgen-out/devir-iskele.md --mizan rontgen-out/devir-mizan.yaml
python scripts/dogrula.py rontgen-out/*.json

Both formats pass the siblings’ own parsers (iskele’s backlog reader, mizan’s validator in strict mode). Mizan entries are recorded as post-hoc: each sentence was written from its line, so re-reading it is an audit, not a prediction.

Re-run the core at each phase close and regenerate the diagrams rather than editing them. atif.py reports which documents rest on files that have changed (BAYAT): those are re-read, not patched.

Red lines

References

Status

Draft 0.6. Local git only: no published repository, no bilingual docs, no CI.

Measured so far (details in references/kanit.md): the core has run on repositories in C#, TypeScript, SQL, Python, C, Rust and Go; Java and Kotlin imports are exercised by self-tests only. On a large Rust repository three runs of 0.6 covered 11.5 of 14 reference points on average (0.5: 9.1; the arm without the skill 4.5 to 6), held 19, 19 and 18 of 20 in a blind check (that arm 19 to 20), and a reader holding only the documents answered 4.7 of

  1. On a Go repository three runs covered 7 of 14 on average against 2 for the arm without the skill, and held 18.7 of 20 against 19. The second reader before delivery remains the one step that raised accuracy.