/research-superpowers:drafting-manuscript <section, e.g. 3.2 Core arguments>from research-superpowers
Drafts book chapters, article sections, or grant exposés from synthesized wiki content. Settles argument architecture, sketches full text with evidence checks, then writes section-by-section to QMD with citations.
Ships in research-superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn stable synthesis pages into publishable prose. Every claim gets a citation. Every citation resolves in output/bibtex/references.bib. No inventing, no paraphrasing from memory — the wiki is the single source of truth for what is claimed.
But the wiki is deliberately terse — bullets, one-sentence claims, page numbers in parentheses. It is a pointer to the depth, not the depth itself. Drafting straight from it produces dense, compressed prose that reads like reflowed bullet points, without the examples and explanations a reader needs. The fix is not to write more from memory (that reintroduces hallucination) but to reach back to the sources for depth: the illustrative examples, the explanation of why a claim holds, and the surrounding argument live in the source pages' quote/example sections and — when those are too thin — in the original PDFs in the shared library (<library>/pdf/<bibkey>.pdf, put there by acquire-sources). Elaboration must be grounded and cited; only connective/expository framing (transitions, restating an argument's logic) is uncited. See Writing with depth.
And the wiki tells you what is claimed — never what this chapter argues. The claim chain is the author's contribution, not the wiki's — which is why the thesis comes from the author first (STOP 0), and you sharpen it rather than propose it. A thesis the user merely approves looks like agreement but skips the thinking: a polished machine formulation reads as better than one's own and is accepted unchecked (automation bias). Formulating the thesis is the author's work; checking it against the wiki, naming its gaps and its strongest counter-position is yours. And the claim chain is the thing that drifts: drafted in one pass, a chapter wanders into whatever the sources happen to be rich about, and the drift only becomes visible once thousands of words exist and are expensive to throw away. So the argument is settled on paper and discussed before any prose exists, then carried out one section at a time. By default the whole text is sketched first — every section's argument, a paragraph plan for the long sections, and an evidence check that shows where the wiki does not carry a step — so that a weak step in section 5 is found before sections 1–4 are written, and a missing source is fetched before the paragraph that needs it. See The stages and Sketch phase.
Announce at start: "Using drafting-manuscript to draft <chapter/section> into <path>. You state the thesis in your own words, we settle the argument architecture on it, then I sketch the whole text — the argument of every section, a paragraph plan for the long ones, and where the evidence is thin — and only once you have approved that sketch do we write, section by section along it. If you would rather sketch and write section by section, say so."
If a condition is unmet: tell the user which (e.g. "no stable synthesis yet"),
ask for a short reason to draft anyway, write it into
knowledge/_meta/gate-overrides.log, and start the draft. Repeated overrides
on (3) are a maintenance signal.
On (5): an open flag means a content review found an unresolved concern
(overstatement, weak support, stale claim) on a page you are about to turn into
prose — drafting from it would bake the problem into the manuscript. Prefer
resolving it first (fix the page, set the flag state: resolved) over
overriding. Note which page and flag kind in the override reason.
| Stage | Produces | Ends at |
|---|---|---|
| A — Architecture | The author's thesis, then the sharpened thesis + claim chain + per-section claims, in the outline file | STOP 0: author states thesis · STOP 1: user approves the architecture |
| S — Sketch (sketch-first mode, the default) | Argument sketches for all sections, paragraph plans for sections of ≥ 1200 words, the evidence check with its gap list; optionally the argument in prose and an adversarial review of the sketch | STOP S: user approves the whole sketch |
| B — Section loop | Per section: its prose (in per-section mode: first its argument sketch, then its prose) | STOP 3 per section — and STOP 2 in per-section mode, or when the sketch has to change |
| C — Finishing | Citation check, render, log | Done |
Choosing the mode. Sketch-first is the default. Use per-section when the user asks for it ("abschnittsweise", "sketch as we go"), or when the project's root CLAUDE.md sets Drafting mode: per-section under Manuscript style. Per-section suits short pieces (a grant exposé, a single article section) and exploratory writing where the argument is found by writing; say so once when the target looks like that, and let the user choose. Record the mode in the outline's frontmatter. A mode choice is not a gate override and is not logged as one.
Stage B repeats per section. A chapter is finished when every section in the outline has Status: approved.
STOP 0 — The author's thesis (start of Stage A, after reading). Before you
write any outline, ask the user: what does this chapter establish, in one or
two sentences — and roughly how does it get there? Rough is fine: a sentence,
a list of steps, a voice-note transcript, a paragraph of free writing. Do not
offer a candidate thesis in the same message; a suggestion on the table becomes
the answer. Wait. Record their words verbatim in the outline's
Author's formulation field. Then build the thesis and claim chain on that
formulation: sharpen it, check each step against the synthesis and source
pages, and say plainly where the wiki does not carry it, where it is a topic
rather than a claim, and what the strongest counter-position is. If you propose
a substantially different thesis, present it as an alternative next to theirs,
with the reason — not as a silent replacement. On resume (outline exists), STOP 0
is already done.
If the user explicitly asks you to propose the thesis ("schlag du vor", "you
suggest one"), do so — that is an override of STOP 0: note it in
knowledge/_meta/gate-overrides.log, mark the outline's Author's formulation
as agent-proposed — not yet in the author's words, and at STOP 1 ask them to
restate the thesis in their own words before the chain is approved.
STOP 1 — Architecture (end of Stage A). The outline file is written; present the thesis and the claim chain (not the whole file — the user can read it) and ask whether the chain holds. Wait. No prose exists yet and none is written until this is approved.
STOP S — The whole sketch (end of Stage S, sketch-first mode). Every
section's argument sketch, the paragraph plans, and the evidence check are in
the outline. Present the gap list first (what the wiki does not carry, and the
decision proposed for each gap), then the section sketches in order — the user
reads the argument of the whole text in one place. If an argument in prose or
an adversarial review of the sketch was made, present it here too. Wait. No
prose is written until the sketch is approved, and no section with an open
missing gap is drafted until that gap is decided.
STOP 2 — Section argument (per section, Stage B). In per-section mode: the section's Argumentationsgang is sketched into the outline. Present it. Ask whether the argument is right before it costs a thousand words. Wait. This is the cheap place to redirect — that is the entire point of the stage. In sketch-first mode the section's sketch was approved at STOP S, so STOP 2 fires only when it no longer holds: an earlier section's prose deviated in a way that moves this section's starting point, a gap decision changed a step, or a newly ingested source bears on it. Then present the changed sketch, marked as a change against the approved one, and wait. If nothing changed, say "S4: sketch unchanged since STOP S" in the STOP 3 message of the previous section and go on.
STOP 3 — Section prose (per section, Stage B). The prose for THIS section
only, plus an explicit line on where it deviates from the approved sketch and,
where there is one, the paragraph plan (or "no deviations"), plus its reverse outline — one line per paragraph: its
function and its main statement (see Reverse outline). The
reverse outline is what lets the user check in thirty seconds whether the prose
says what they mean; reading a thousand words for that is what gets skipped.
Present. Wait. On approval, append to the target file, set the
section's Status: approved, and move to the next section — one section per
turn, never two.
Overriding. The user may want a straight run ("zieh durch", "just draft the
whole thing"). That is legitimate. Name which stops you are skipping, write the
reason to knowledge/_meta/gate-overrides.log, and proceed. An override is
per-request, not permanent: it covers this draft, not the next one. Repeated
overrides on STOP 2 mean the section loop is not earning its cost — worth saying
so out loud. Choosing per-section mode is not an override; skipping STOP S in
sketch-first mode is.
executing-research-plan routes here)NOT for: working through an existing text paragraph by paragraph (use revising-manuscript — it keeps the decisions of that discussion in a ledger), first-draft brainstorming (use brainstorming-research), unsynthesized material (go back and synthesize first), grant research narratives from scratch (use grant-finder).
<slug>-plan.md; confirm output file pathreview_flags on the pages you pull from?### Direct quotes and ### Examples & illustrations sections (the raw material for depth), not just the one-line claimssketch_status: draft) resumes Stage S; otherwise continue from the first section whose Status is not approved. An outline without a drafting_mode field predates sketch-first mode: continue it in per-section mode and add drafting_mode: per-section, unless the user wants to sketch the remaining sections first. Do not restart the chapter.CLAUDE.md says per-section (see Choosing the mode). For a short target, mention per-section once as an option. Skip on resume — the outline records itoutput/<book|article>/outline/<basename>.md (see Outline file). Distribute target_word_count into per-section budgetsHands to next must be what the next sketch starts from; read them in sequence before going oncarried, thin or missing against the source pages (and, where a page is thin, the PDF at the cited page), and collect the thin and missing steps in the outline's evidence gaps list with a proposed decision eachsketch_status: approved and every section's Status: sketchedresearch before drafting the sections they belong to — acquire-sources / ingest-source, then re-run the evidence check for those steps. Sections whose gaps are decided otherwise (narrow, bracket) can be drafted at once[@bibkey] or [@bibkey, p. 152]. For long sections, dispatch the drafter subagent (see Subagent dispatch)### Direct quotes / ### Examples & illustrations; if still insufficient, open the original PDF at <library>/pdf/<bibkey>.pdf at the page anchors the source page cites, draw out the example/explanation, and cite it. Never fill the gap from memory.qmd, set the section's Status: approved in the outline, then go to step 16 for the next section[@bibkey] has a matching entry in output/bibtex/references.bib; for every source the chapter quotes directly, python scripts/check-quotes.py --key <bibkey> --problems-only reports nothing (see Citation Rules)make render (or quarto render) in the target output/<book|article>/ directory; fix any errorsknowledge/_meta/log.md: date, draft, target file, word count, source countdigraph drafting {
"Confirm plan task" [shape=box];
"Pre-flight (SOFT-GATE)" [shape=box];
"Gate passes?" [shape=diamond];
"Back to synthesis / ingest / lint" [shape=box];
"Read synthesis + source pages" [shape=box];
"Outline exists?" [shape=diamond];
"STOP 0: author states thesis" [shape=box];
"Write outline: thesis + claim chain" [shape=box];
"Resume at first unapproved section" [shape=box];
"STOP 1: architecture approved?" [shape=diamond];
"Revise outline" [shape=box];
"Sketch-first mode?" [shape=diamond];
"Sketch all sections + paragraph plans" [shape=box];
"Evidence check: gap list" [shape=box];
"STOP S: whole sketch approved?" [shape=diamond];
"Revise sketch(es)" [shape=box];
"Close gaps decided as research" [shape=box];
"Sketch still holds?" [shape=diamond];
"Next unapproved section" [shape=box];
"Sketch section argument" [shape=box];
"STOP 2: argument approved?" [shape=diamond];
"Revise sketch" [shape=box];
"Draft prose for THIS section" [shape=box];
"Page too thin for depth?" [shape=diamond];
"Reach back to source quotes / PDF" [shape=box];
"Check prose against sketch" [shape=box];
"STOP 3: section approved?" [shape=diamond];
"Revise prose" [shape=box];
"Append to .qmd; Status=approved" [shape=box];
"Sections left?" [shape=diamond];
"Chapter coherence check" [shape=box];
"Verify citations" [shape=box];
"Citations complete?" [shape=diamond];
"Fix citations" [shape=box];
"Render check" [shape=box];
"Render OK?" [shape=diamond];
"Fix render errors" [shape=box];
"Log entry" [shape=box];
"Done" [shape=doublecircle];
"Confirm plan task" -> "Pre-flight (SOFT-GATE)";
"Pre-flight (SOFT-GATE)" -> "Gate passes?";
"Gate passes?" -> "Back to synthesis / ingest / lint" [label="no"];
"Gate passes?" -> "Read synthesis + source pages" [label="yes"];
"Read synthesis + source pages" -> "Outline exists?";
"Outline exists?" -> "Resume at first unapproved section" [label="yes"];
"Outline exists?" -> "STOP 0: author states thesis" [label="no"];
"STOP 0: author states thesis" -> "Write outline: thesis + claim chain";
"Write outline: thesis + claim chain" -> "STOP 1: architecture approved?";
"STOP 1: architecture approved?" -> "Revise outline" [label="no"];
"Revise outline" -> "STOP 1: architecture approved?";
"STOP 1: architecture approved?" -> "Sketch-first mode?" [label="yes"];
"Sketch-first mode?" -> "Sketch all sections + paragraph plans" [label="yes (default)"];
"Sketch-first mode?" -> "Next unapproved section" [label="no, per-section"];
"Sketch all sections + paragraph plans" -> "Evidence check: gap list";
"Evidence check: gap list" -> "STOP S: whole sketch approved?";
"STOP S: whole sketch approved?" -> "Revise sketch(es)" [label="no"];
"Revise sketch(es)" -> "STOP S: whole sketch approved?";
"STOP S: whole sketch approved?" -> "Close gaps decided as research" [label="yes"];
"Close gaps decided as research" -> "Next unapproved section";
"Resume at first unapproved section" -> "Next unapproved section";
"Next unapproved section" -> "Sketch still holds?" [label="sketch-first"];
"Sketch still holds?" -> "Draft prose for THIS section" [label="yes"];
"Sketch still holds?" -> "Revise sketch" [label="no"];
"Next unapproved section" -> "Sketch section argument" [label="per-section"];
"Sketch section argument" -> "STOP 2: argument approved?";
"STOP 2: argument approved?" -> "Revise sketch" [label="no"];
"Revise sketch" -> "STOP 2: argument approved?";
"STOP 2: argument approved?" -> "Draft prose for THIS section" [label="yes"];
"Draft prose for THIS section" -> "Page too thin for depth?";
"Page too thin for depth?" -> "Reach back to source quotes / PDF" [label="yes"];
"Reach back to source quotes / PDF" -> "Draft prose for THIS section";
"Page too thin for depth?" -> "Check prose against sketch" [label="no"];
"Check prose against sketch" -> "STOP 3: section approved?";
"STOP 3: section approved?" -> "Revise prose" [label="no"];
"Revise prose" -> "STOP 3: section approved?";
"STOP 3: section approved?" -> "Append to .qmd; Status=approved" [label="yes"];
"Append to .qmd; Status=approved" -> "Sections left?";
"Sections left?" -> "Next unapproved section" [label="yes"];
"Sections left?" -> "Chapter coherence check" [label="no"];
"Chapter coherence check" -> "Verify citations";
"Verify citations" -> "Citations complete?";
"Citations complete?" -> "Fix citations" [label="no"];
"Fix citations" -> "Verify citations";
"Citations complete?" -> "Render check" [label="yes"];
"Render check" -> "Render OK?";
"Render OK?" -> "Fix render errors" [label="no"];
"Fix render errors" -> "Render check";
"Render OK?" -> "Log entry" [label="yes"];
"Log entry" -> "Done";
}
One outline per draft target. The path is derived mechanically from output_path: same directory root, outline/, same basename, .md.
| Target | Outline |
|---|---|
output/book/text/03-methods.qmd | output/book/outline/03-methods.md |
output/article/article.qmd | output/article/outline/article.md |
It sits outside Quarto's render tree (_quarto.yml lists chapters explicitly), so it never renders. It is a living document: the architecture, plus each section's approved argument sketch, plus the per-section status. That is what makes a long chapter survive a context compaction or a break of several days — the agreements are on disk, not in the chat history. It is also what you revise against after peer review.
---
title: "<Chapter / section title>"
type: outline
target: output/book/text/03-methods.qmd
plan_task: "<Draft task id from <slug>-plan.md>"
created: YYYY-MM-DD
updated: YYYY-MM-DD
target_words: 4500
drafting_mode: sketch-first | per-section
sketch_status: draft | approved # sketch-first mode only
status: draft | approved
---
# Outline: <Chapter title>
## Author's formulation
<The user's own words at STOP 0, verbatim — rough is fine. Or
`agent-proposed — not yet in the author's words` if STOP 0 was overridden.
Kept as written; the sharpened version goes below.>
## Thesis
<ONE sentence, sharpened from the author's formulation: what this chapter establishes that the reader did not have
before. Not a topic ("this chapter discusses the Low Chronology") — a claim
("the Low Chronology's stratigraphic case rests on three sites whose sequences
are themselves dated by the pottery they are meant to date"). If you cannot
write it as one sentence, the chapter has no thesis yet — go back to the
synthesis pages before proposing an outline.>
## Claim chain
<2–5 sentences of prose: how the sections build from the thesis to the
conclusion, each one earning the next. Readable aloud as a chain. THIS is what
the user approves at STOP 1 — if it only makes sense as a list of topics, it is
a table of contents, not an argument.>
## Sections
### S1 — <Section title>
- **Claim:** <what this section establishes — one sentence>
- **Evidence:** `[@bibkey1]`, `[@bibkey2]`
- **Synthesis basis:** `[[synthesis-page-slug]]`
- **Function:** <what it hands to the next section>
- **Not here:** <the adjacent point that belongs elsewhere — the anti-drift line>
- **Budget:** ~<n> words
- **Status:** outlined | sketched | drafted | approved
### S2 — <Section title>
…
## Evidence gaps ← sketch-first mode, written at the evidence check
| Gap | Section · step | Status | What is missing | Decision |
|-----|----------------|--------|-----------------|----------|
| G1 | S3 · step 2 | missing | No source in the wiki dates Arad XII independently of its pottery | research — Herzog 2002 (acquire + ingest) |
| G2 | S4 · step 1 | thin | Only one source carries the claim, no page anchor | narrow — "in the Negev" instead of "in Judah" |
## Argument in prose ← optional, offered at Stage S
<1–2 pages, exposé-like: the chapter's argument as a reader would follow it,
for people who do not work in the outline.>
This block goes into the outline under the section it belongs to — for all sections at once in Stage S (sketch-first mode), or one section at a time at STOP 2 (per-section mode) — then gets approved. Bullets — writing prose here defeats the purpose.
#### Argument (approved YYYY-MM-DD)
- **Claim:** <the section's claim, sharpened by the discussion>
- **Steps:**
1. <step> — carried by `[@bibkey, p. XX]` · carried
2. <step> — carried by `[@bibkey, p. XX]` · thin → G2
3. <step> — carried by `[@bibkey, p. XX]` · carried
- **Concrete material:** <the specific artefact / site / passage / dataset that
illustrates the argument, named, with its source-page anchor. If you cannot
name one, this section will be assertion-stacking — find one or narrow the
claim.>
- **Counter-position:** <the strongest objection in the literature, cited> —
handled by <conceding / refuting on evidence X / bracketing as out of scope>
- **Hands to next:** <the sentence the next section can start from>
The counter-position line is not decoration. A section that cannot name what argues against it has not engaged the debate, and a reviewer will say so — cheaper to hear it here.
Stage S exists because the expensive mistakes in a long text are not in its sentences but in its argument: a step that the sources do not carry, two sections that make the same point, a conclusion that the middle never earned. Found in a sketch, each costs a few lines to fix; found in prose, it costs sections. The sketch is also what you can hand to a co-author or supervisor before anything is written.
Sketch all sections in order, and read the Hands to next lines in
sequence once they are all there: the chain of handoffs should read as the
claim chain from STOP 1, step by step. Where it does not, fix the sketches
before going on — this is the chapter coherence check (step 24), done while it
is still cheap.
For every section with a budget of 1200 words or more (shorter sections may have one), the sketch is broken down to paragraphs. It goes under the section's sketch, and it is the reverse outline written in advance — after drafting, the reverse outline is read against it.
#### Paragraph plan — S3 (~1600 words)
| ¶ | Function | Main statement | Carried by | Material |
|---|----------|----------------|------------|----------|
| 1 | claim | The Negev argument rests on three sites dated by the horizon they date | — | — |
| 2 | grounding | Tel Masos II is dated only by its pottery | [@finkelstein-1999-hazor, p. 61] | Masos II pottery horizon |
| 3 | example | Arad XII shows the same loop | [@herzog-2002-arad, p. 14] → G1 | Arad XII |
| 4 | counter-position | Mazar reads Arad independently | [@mazar-2011-iron] | — |
| 5 | rebuttal | … | … | … |
| 6 | handoff | The circularity is methodological, not evidential → S4 | — | — |
Functions are the reverse outline's (claim, grounding, example,
counter-position, rebuttal / concession, definition, method,
significance, transition, handoff). A planned paragraph whose main
statement you cannot write is a step you have not understood yet; a section
plan with no example row will be assertion-stacking. Plan roughly one
paragraph per 150–250 words of budget; the plan is a contract for the
argument, not for the word count.
Before STOP S, every step of every sketch (and every paragraph-plan row that carries a claim) gets one mark against the source pages, read now:
Every thin and missing step goes into the outline's Evidence gaps list
with a proposed decision: research (name the source to acquire and ingest),
narrow (the step's claim, reworded to what the sources carry), or
bracket (the text says openly that this is not shown here). The user
decides at STOP S. A section with an undecided missing gap is not drafted;
drafting around a gap is how the paragraph ends up written from memory.
Offer both once, after the evidence check; do them only if the user wants them.
Argument in prose; it is never pasted into the manuscript.peer-reviewer subagent
in the adversarial role on the outline file (a structure pass: it reviews
the thesis, the claim chain, the sketches and the gap list, not prose).
Present its findings at STOP S next to the sketch; the user decides which
change it.Written after the prose, from the prose — not copied from the sketch. One line per paragraph:
#### Reverse outline — S3
| ¶ | Function | Main statement |
|---|----------|----------------|
| 1 | claim | The Negev argument rests on three sites anchored by the horizon they date |
| 2 | grounding | Tel Masos II is dated only by its pottery [@finkelstein-1999-hazor, p. 61] |
| 3 | example | … |
| 4 | counter-position | Mazar reads Arad independently [@mazar-2011-iron] |
| 5 | rebuttal | … |
| 6 | handoff | The circularity is methodological, not evidential → S4 |
Functions (use these words, so a gap is visible): claim, grounding,
example, counter-position, rebuttal / concession, definition,
method, significance, transition, handoff. A paragraph that can only be
labelled facts is knowledge telling — information lined up without being
turned towards the section's claim. Rewrite it so it states what the facts show
for the argument, or cut it.
What the user reads it for: does each line say what they mean? does the sequence follow the approved steps? is any step missing, doubled, or in a paragraph that does two jobs? The reverse outline is stored in the outline file under the section, below its approved sketch, and is updated if the prose is revised.
[@finkelstein-2003] or [@finkelstein-2003, p. 152][@finkelstein-2003; @mazar-2011]output/bibtex/references.bib> or an em-dash, always with page numbercheck-quotes.py passed it. Before the first section is drafted, run python scripts/check-quotes.py --key <bibkey> --problems-only for every source the section may quote; a quote reported altered, gap, not-found or translated? is fixed on the source page from the PDF first (see ingest-source, "Checking the quotes"), never carried into prose as it stands. A quote drawn from the PDF during reach-back is copied from the PDF text, not retyped, and with its printed page. A translation is given as one ("my translation"), not inside quotation marks as the author's wordspython scripts/wiki-to-graph.py timeline <slug> for each concept or synthesis page the section argues about (MCP: graph_timeline), and read the Research chronology section of lint-wiki.py. The timeline lists the sources in publication order with what each says about the page and about the earlier sources; put the relevant lines into the sketch, so the order of the argument is agreed at STOP 2 and not improvised in prose. Then:
revises) appears as history, in the past tense, with what changed their mind: "Finkelstein first dated … [@finkelstein-1996-…]; after the Tel Rehov dates he moved to … [@finkelstein-2003-…]".supersedes is not cited as the state of the question. Cite it together with what superseded it, and say on what basis — new evidence dates the older position, a reinterpretation only disputes it.contradicts, or a responds-to that leaves it open). Order them in time and name the finds or arguments that moved the discussion.shortlabel field on the BibTeX entry, never in note:
@incollection{hensel-2026-obadja,
...
shortlabel = {Hensel 2026e},
note = {Open Access (CC BY-NC-ND 4.0)}
}
The label is a fact about this manuscript's reference list, not about the work — the same title is 2026b in a project whose author wrote a different set of chapters. merge-bibs.py drops shortlabel on merge for exactly that reason, while note keeps merging because the rest of what lives there is shared fact. Putting the label in note sends one book's numbering into every other project.(domain — title) form as an inline link, e.g. [(idai.gazetteer.de — Tel Megiddo)](https://gazetteer.dainst.org/place/2048473). Use sparingly; group separately as "Web resources" in the references list.The single most common failure of wiki-driven drafting is bullet-reflow: each terse wiki claim becomes one flat sentence, so the prose is dense, assertion-stacked, and unreadable. Avoid it by developing every substantive point instead of merely restating it.
Three kinds of expansion — know which you are doing:
| Expansion | Allowed? | Rule |
|---|---|---|
| Grounded elaboration — examples, the explanation of why a claim holds, the argument around it | Yes, do this | Must come from the source (its page/quotes/examples or the PDF), and must be cited |
| Expository framing — transitions, restating an argument's logic, signposting | Yes | Rhetoric, not a new claim; uncited |
| New factual claim from memory | No | This is invention — the thing the wiki-only rule forbids |
Develop each substantive point — a useful pattern per paragraph (not a rigid template):
[@bibkey, p. XX].A single terse wiki bullet typically becomes a developed passage, not a single sentence. If a paragraph has assertions but no example and no explanation, it is not finished.
Reach-back procedure (checklist step 19) — escalate only as far as needed:
The source page's ### Direct quotes and ### Examples & illustrations sections — the cheapest, already-extracted depth.
If still too thin: open the original PDF at <library>/pdf/<bibkey>.pdf at the page numbers the source page cites (the anchors point you straight to the passage — no full re-read), and draw out the example/explanation.
If the source page gives no usable page anchor, do not read the PDF end to end — find the passage:
python scripts/bib-search.py "copper smelting" --key benyosef-2019-copper
It returns the physical PDF page — right for opening the file, wrong for citing. Take the printed page number from the page itself.
Search for the concept, not the string. bib-search is lexical: it matches the characters you typed and nothing else. A method is written differently by every discipline that borrowed it, so a single-string query measures your vocabulary, not the library. Name the method, list its aliases, run them as rank-fused --q variants, and say which alias hit (the via: line reports it) — see Searching for a concept.
Cite whatever you use. If the source genuinely lacks the needed depth, say so plainly or narrow the claim — do not fill the gap from memory.
Before a concept search, run python scripts/bib-search.py index — it is incremental and costs about a second. A stale index answers about the library you had, not the one you have.
Then run the method's aliases as several narrow queries, rank-fused — one alias per --q:
python scripts/bib-search.py '"random labelling"' \
--q '"random labeling"' --q 'relabel* OR shuffl*' \
--q '"mark permutation" OR "permutation of marks"' \
--q '"toroidal shift"' --q '"random thinning"' --limit 40
Every query runs separately and the page lists are merged by reciprocal rank fusion (RRF): a page's score is Σ 1/(60 + rank-in-list) over the lists it appears in. Two consequences, both deliberate: a page that several aliases agree on rises above any single list's top hit, and an alias's best hit can never be flooded out of its own list by a noisy sibling — the failure mode of the old single-OR-query form, where every alias competed inside one BM25 ranking. BM25 scores are never compared across queries (they are not on one scale); only ranks cross the boundary. Each hit's via: line reports which queries matched it — the "say which alias hit" discipline below, mechanised.
What belongs in the alias list, in order of how often it is the one that pays:
labelling / labeling, modelling / modeling, analyse / analyze. Measured on the real library: "random labelling" found one paper, "random labeling" found a different one — a 311-page dissertation that makes the technique its explicit default. One letter, and it was invisible. This is the cheapest alias and the most neglected.relabel*, not relabelling. A paper writes relabeled, permuted, shuffling; an exact-form alias list matches none of those. This is not hypothetical: adding relabel* and shuffl* to the query above takes it from two of five hand-checked papers to three, because one of them names the procedure four times over — "randomly relabeled", "randomly permuted", "shuffling only the labels" — in inflections no exact form catches.relabel* matches 5 pages, shuffl* 21 — both precise. permut* matches 116 and random* matches 2,126: adding permut* surfaced a new paper and dropped one the narrower query had found, because FTS5 ranks by BM25 and a broad stem floods the ranking with pages that merely use the word. Inside one query that trade is real; as its own --q variant a broad stem is harmless to its siblings (each query keeps its own top-limit) — though it still buys little if it matches half the library."mark permutation" surfaced three papers that a purely archaeological vocabulary never reaches.Besiedlungslücke finds no page that says "occupation gap", and the reverse. Run every concept in each language the library holds (German and English at least; French, Spanish, Italian where the field publishes in them), one --q per language. Measured on a 3,131-document library with 20 wiki claims of known source: queries in the source's language found 17, queries in the other language found 3 — and those three only through a proper name both languages share (Teman, Apollonia). Place names and transliterations need the same care: Nitzana / Nessana, Garizim / Gerizim, Qos / Qaus.bib-search helps with the first half: a plain query of 3–6 terms that leaves room under --limit is filled from its two-term pairs, and those hits are marked ~ with the pair that found them. A ~ hit matched part of your query, not all of it — read the page before treating it as an answer, and use --no-relax when "no page has all of these" is itself the finding. Swapping the paraphrased term for the source's own is still yours to do.Report which alias hit which source. That line is the point of the exercise: it is a finding about the field's vocabulary, not search bookkeeping — and it is what makes the next item visible.
Know the ceiling — and don't overstate it. On a hand-checked set of five papers that the wiki says use random labelling, the stem query above finds three. The two it misses fail for different reasons, and telling them apart is the whole lesson:
- One is outranked, not unnamed. It writes "permutation" on two pages and "shuffl" on a third. A lexical query can reach it — but only a stem broad enough to cost another paper its place. That is a ranking limit, and the rank-fused
--qform above is exactly the fix: one alias per query, so the broad stem competes only inside its own list.- One is genuinely unnamed. It calls the procedure "random type assignment to the points in the pattern" and carries no alias on any page. No lexical query reaches it, and adding synonyms cannot change that.
When a concept search comes back thin, that is evidence about naming, not about absence — go to the source pages and the wiki's concept page, which record what the paper does rather than what it calls it. Do not report "not found in the library" from a lexical miss.
Reaching for embeddings here is a trap. The obvious fix — index the library semantically and search by meaning — was prototyped and measured against exactly this question (BGE-M3 and Qwen3-Embedding-0.6B, chunked from 450 down to 40 tokens), and it does not pay. Scored on a 3,000-page sample — a tenth of the library, so a tenth of the difficulty — BGE-M3 put all five gold pages between rank 334 and 621 (
recall@20 = 0 of 5); Qwen3, the better of the two by a factor of four, reachedrecall@10 = 1 of 5. That merely ties the naive one-string FTS query, which scores its 1 of 5 against the whole library — and it costs a 2.3-hour index build. A page of dense academic prose carries one method sentence among hundreds, and the average drowns it at every chunk size whose vectors still fit in memory. The vocabulary gap above is real; a vector index is not what closes it.
A third avenue: curated keywords, once they exist. Both the alias-query technique above and the rejected vector index are derived-from-text mechanisms — they infer intent from what a paper's prose happens to say. A curated
keywordsfield on the BibTeX entry (seeingest-source's BibTeX Entry Convention) is neither: it records what a human or LLM understood the source to be about, at ingest time.bib-search.pychecks it automatically and lists a keyword hit first, ahead of any page hit — cheaper and higher-precision than building an alias query, when it exists. It does not replace the alias-query technique above: most of the library predates this field and carries none yet. Check keywords first, fall back to the alias recipe when a source has none.
Fluent prose is not yet precise prose. The typical failures of model-written academic text are not grammatical; they are these:
executing-research-plan → Writing a synthesis).A project can anchor the prose to a voice instead of to the model's default
register — the counterweight to every manuscript sounding the same. Ask the
user for 2–3 pages of their own published prose (or, failing that, one
article from the target venue they consider well written). Analyse it for:
sentence length and rhythm, person (I / we / impersonal), how claims are
hedged, how sources are introduced (author-prominent or claim-prominent),
paragraph length, and the reader-guidance moves it uses. Write the result as
5–10 concrete bullets into the project's root CLAUDE.md under
Manuscript style → Style profile, show them to the user, and keep only
what they confirm. The style profile then travels into every drafter dispatch.
A profile describes the user's voice; it never licenses imitating another
author's wording.
Per-project house style. Density, example-richness, and target register are tunable per project in the root
CLAUDE.md("Manuscript style"). Read it before drafting; it overrides the defaults here.
If
dao-paper-search-mcp(seedocs/recommended-mcps.md) is available, verify citations through it instead of reconstructing them from memory. Otherwise, copy strictly from the source page's "Direct quotes" sections.
dao-paper-search-mcp.search_crossref(query=<doi>) — check that the hit's identifiers.doi is the DOI you asked for — returns inline_citation.markdown (a ready Author-Year link) and authoritative_bibliography_line (the full references-list line). Paste both verbatim instead of formatting Author-Year yourself.docs/source-classes.md. If aggregator or suspect, either find the primary source or name the aggregator status transparently in the text.For sections over ~1200 words, dispatch the drafter subagent (see agents/drafter.md) at checklist step 18 — one section, after its sketch has been approved (STOP S or STOP 2). Never fan out across sections: a chapter drafted in parallel cannot be steered, which is the failure this skill's staging exists to prevent.
The subagent receives:
narrow decision is the wording to use; a bracket decision is said openly in the textwiki-to-graph.py timeline <slug> output, pasted) — which source came first, who answered whom, what has been supersededcheck-quotes.py result for those sources (--problems-only output, pasted) — so the subagent quotes only what passed<library>/pdf/<bibkey>.pdf — resolve with scripts/library.py) — so the subagent can reach back for examples/context when a page is thin (checklist step 19). Without these, the subagent can only bullet-reflowManuscript style block from the root CLAUDE.md, including the Style profile if one existsIts report includes a deviations-from-sketch line. Carry that into STOP 3 verbatim — do not quietly absorb it. A deviation the user never sees is exactly the drift the stages are meant to surface.
The template's output/book/ uses a Quarto book structure (see templates/research-project-template/output/book/):
_quarto.yml defines the chapter list — update when adding a new chapter filetext/<nn-slug>.qmd is the chapter-file naming convention (01-introduction.qmd, 02-state-of-the-field.qmd, …)outline/<nn-slug>.md holds the chapter's argument architecture — not listed in _quarto.yml, never renderedtemplate/_preamble.tex holds LaTeX preamble for PDF outputMakefile targets: make render, make preview, make cleanFor articles, use output/article/article.qmd with single-file layout and output/article/outline/article.md.
| Thought | Reality |
|---|---|
| "I'll show the outline and get started on section 1 — saves a round-trip" | A stop you walk past is not a stop. The message that presents a stop ends there. |
| "The user approved the outline, so the sections are approved" | STOP 1 approves the chain. Each section's argument is its own agreement — that is where the focus is actually held. |
| "I'll draft all the sections and we can discuss at the end" | Discussion after the fact is editing, not steering. By then the drift is expensive to undo — which is why it never gets undone. |
| "The architecture is approved — I'll sketch each section when I get to it" | In sketch-first mode the whole sketch comes before any prose. Weak steps in S5 are cheap to find now and expensive after S1–S4 are written. |
| "This step is thin, but I can write around it" | Writing around a gap is how a paragraph ends up from memory. Mark it, put it on the gap list, let the user decide: research, narrow, or bracket. |
| "The sketch was approved, so it still holds for S5" | It held at STOP S. If S1–S4 deviated, check it before drafting — and present the change at STOP 2. |
| "The paragraph plan is a suggestion; the prose found a better order" | Then it is a deviation — report it. The plan is the argument the user approved. |
| "Section 3 needs a point from section 5, I'll pull it forward" | That is drift. Either change the outline and say so, or respect the section's "Not here" line. |
| "The source is rich here, so I'll go deeper than the sketch said" | Source richness is not an argument. The sketch is the contract; if it is wrong, renegotiate it — don't silently exceed it. |
| "Both positions are in the wiki, so I'll present both" | One may be thirty years older, and its author may have left it since. Check the years and the supersedes / revises edges before giving them equal weight. |
| "The subagent's deviations line is minor, I won't mention it" | Then the stages bought nothing. Deviations go to the user verbatim. |
| "I'll propose a strong thesis, the user can just approve it" | Approving is not formulating. Ask first (STOP 0); sharpen what they say. A thesis the author never put into words is one they cannot defend. |
| "The user's thesis is weak, I'll quietly use my better one" | Put yours next to theirs, with the reason. A silent replacement is the same drift as in prose, one level up. |
| "Thesis: 'this chapter examines the Low Chronology'" | That is a topic, not a thesis. A thesis can be wrong; a topic cannot. Rewrite it as a claim. |
| "The source roughly says …" | Either a verbatim quote with page, or a paraphrase with a citation. No hearsay. |
| "The quote is on the source page, so it is verbatim" | Only if check-quotes.py says so. Source pages written before the check existed carry smoothed quotes, cuts without […] and physical-page anchors — on the live corpus, one in thirty quotes and over a hundred anchors. In a manuscript, under the author's name, that is a misquotation. |
| "I'll vary the term so the prose reads less repetitively" | In a scholarly text a new word is a new concept. Terms of art are repeated exactly. |
| "Each section was approved, so the chapter is coherent" | Sections pass locally; chapters break globally. Run the chapter coherence check — reverse outlines against the claim chain, introduction against conclusion. |
| "The reverse outline is just the sketch again" | It is written from the prose. If it matches the sketch line by line without you rereading the paragraphs, you copied it. |
| "I've turned every wiki bullet into a sentence — done" | That is bullet-reflow, not prose. Each substantive point needs development: grounding, an example from the source, and why it matters. |
| "The wiki page is thin, so the paragraph is thin" | The wiki points to the depth; the source holds it. Reach back to the quotes/examples or the PDF and cite — don't ship a thin paragraph. |
| "It needs more depth, I'll just add explanation I know" | Grounded elaboration comes from the source and is cited. Explanation from memory is invention. |
| "I'll cite this passage properly later" | Later citations get forgotten. Get it right now, or not at all. |
| "Wiki-lint isn't needed, I know everything is fine" | Mandatory before every draft — broken wikilinks are invisible when rendered. |
"This page is stable, so it's safe to draft" | Stable is maturity, not health. An open review_flag on it is an unresolved content concern — resolve or override, don't ignore. |
| "The chapter is so good, I'll ignore the render errors" | A chapter that won't render is not a chapter. |
What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/acquire-sourcesUse AFTER literature-review and BEFORE ingest-source to obtain the actual PDFs for the A+B graded sources. Auto-downloads Open-Access PDFs into the shared library (<library>/pdf/<bibkey>.pdf — the bibkey IS the filename) and writes a manual-download worklist (input/bibliography/acquisition-todo.md) for everything paywalled or bot-blocked, so the user can fetch originals via university VPN. Re-run to reconcile manually-downloaded files. Triggers on "acquire the sources", "download the literature", "get the PDFs", "Quellen beschaffen", "lade die Literatur herunter". NOT a search skill (that is literature-review), NOT an ingest skill (that is ingest-source)./add-to-libraryAdd ONE document (a PDF) directly to the shared master library — outside the project ingest flow. Auto-discovers the bibliographic metadata, VERIFIES it against Crossref/OpenAlex (never guessing), derives keywords cheaply from the PDF's docinfo + first-page abstract (no full read), computes the canonical bibkey, places the PDF at <library>/pdf/<bibkey>.pdf and appends the entry to <library>/references.bib. Stops and asks when metadata cannot be verified. Triggers on "add this PDF to the library", "add to the master bibliography", "put this straight in the library", "füge das Dokument der Bibliothek hinzu", "nimm das PDF in die Bibliothek auf". NOT ingest-source (which reads a source into a project's wiki), NOT acquire-sources (which downloads a review's worklist).npx claudepluginhub leiverkus/research-superpowers --plugin research-superpowersOther plugins' skills for the same job