/write-paper
The map for the whole family. Sections are not written in the order they are read, and this skill keeps track of where a manuscript actually stands and what to do next.
It does not write anything itself. It surveys, reports, and hands off to the section skill that does the work.
Before anything else
- Check for
paper-out/STATE.md. This is the fast path and it comes first. If it exists, read it plusdecisions.mdandopen-questions.mdbefore anything else. If it does not, this is either a new paper or a manuscript nobody has used these skills on yet. - Load the style rules. Invoke
paper-writing-style, which holds the writing order, the house style, and the session state protocol inreferences/session-state.md. Read that reference before creating or updating any state. - Lock the language. Language of the user's first message, whole run. Any LaTeX the section skills produce is English.
- Survey the manuscript. Read the
.texfiles, the.bib, the figures and their captions. Work out what exists rather than asking.
This skill owns the state folder
Every skill in the family reads paper-out/ and appends to it. This one owns its lifecycle: it
creates the folder, writes STATE.md, and keeps it accurate. The section skills log their own decisions
and interview answers; only this skill maintains the position table and the next step, because only this
skill sees the whole manuscript.
Resuming
When paper-out/STATE.md exists, open with a short reconciliation, not a fresh interview:
Resuming from 2026-08-19. Target journal ACS Nano, 250 word abstract. Your principal result is the 96% versus 71% retention comparison, and the size-dependence result was deferred pending TEM data. Last position: results and discussion done, conclusions next.
Two things have changed in the manuscript since then: Section 3.6 is new, and Table 2 now reads 91% where the state records 96%. The manuscript wins, so I have corrected the state. Does the new section change which result is principal?
Three moves in that order: state what you know, report what has changed underneath it, then ask only what the change raises. Never replay the original interview.
Verify state against the manuscript every time. Stored position is a hint, not a fact. A section recorded as done that no longer looks done, or a value that no longer matches, means the state is stale: say so, correct it, and continue. Silent trust in stale state is worse than having no state at all.
Creating it
Create paper-out/ on the first run that produces something worth saving, not on arrival. Then:
- Tell the researcher it was created, and list the files.
- Say once that it is intended to be committed alongside the manuscript, since the decision log is
project history a co-author benefits from, and it carries the same sensitivity as the unpublished
paper itself. Offer to add it to
.gitignoreif they prefer. Record the answer inSTATE.mdso it is not raised again.
Updating it
At the end of any run that changed something, rewrite STATE.md in place: the position table, the next
step, the open question count, and the decisions that shape everything downstream. STATE.md is a
snapshot; decisions.md is the append-only log.
The writing order
| # | Step | Skill | Precondition |
|---|---|---|---|
| -1 | Set up the project: template, repo, Overleaf | /setup-paper-project |
A target venue is chosen |
| 0 | Select and order the figures | none, this is yours | The research is finished |
| 1 | Results and discussion | /create-results-discussion |
Figures selected and ordered |
| 2 | Conclusions | /create-conclusions |
Results written |
| 3 | Introduction | /create-introduction |
Results and conclusions written |
| 4 | Methods or experimental | none yet, see todo/ |
The work is done |
| 5 | Abstract | /create-abstract |
Everything above written |
| 6 | Title | /create-title |
Everything above written |
| 7 | Cover letter | /create-cover-letter |
Target journal chosen |
| 8 | Submit, then revise | /create-response-to-reviewers |
Reviews received |
Step 3 is the one that matters. Writing the introduction after the results keeps the two sections connected, because a gap promised in the introduction and never answered in the results is the commonest structural fault in a manuscript.
Step 4 has no create skill. The course proposes no model for the methods section, so one was not
invented. See todo/methods-family.md. Write it yourself, or ask for /review-methods guidance once
it exists.
Workflow
1. Survey and report position
Determine, for each section, whether it is absent, partial, or complete. A section is partial if it exists but is missing mandatory parts, which you can check quickly:
| Section | Complete when |
|---|---|
| Results and discussion | Every figure has a block with a description carrying values |
| Conclusions | Principal result, interpretation and contribution all present |
| Introduction | All four movements present, purpose in the last paragraph |
| Abstract | Purpose, results and conclusions present |
| Title | Not a placeholder |
Present a status table: section, status, and what is missing. Then name the single next step and why it is next. Do not present a list of everything outstanding; one next action is more useful.
2. Check the precondition
Before recommending a step, verify its precondition holds. The two that matter:
- Figures selected and ordered, before results and discussion. If they are not, say so: this is step 0 and no skill can do it. The figures tell the story and the text supports them, so writing before they are chosen means writing to a story that is still changing.
- Results and conclusions written, before the introduction. If someone wants to start with the introduction, say what it costs: an introduction written first states a gap that the results may not answer, and it usually needs rewriting.
If a precondition fails, say so, explain the cost, and let the researcher decide. Working out of order is a judgement call, not an error.
3. Hand off
Invoke the section skill for the next step. Do not reimplement its work: each section skill has its own interview, model and checks, and duplicating them here would produce a worse version.
After it finishes, offer to continue to the next step or to stop.
4. Track the ripple
Once more than one section exists, a change in one makes others stale. After any step, check and report:
- Results changed, so the abstract, conclusions and introduction gap may be stale.
- Conclusions changed, so the abstract's closing sentences and the title may be stale.
- The introduction's gap changed, so the abstract's gap may be stale.
- Any section changed, so the title may no longer name the principal finding.
Name the affected sections and the update-* skill for each. Do not run them unasked.
5. Pre-submission pass
When every section exists, offer a review sweep rather than declaring the paper finished:
/review-abstract,/review-introduction,/review-results-discussion,/review-conclusions,/review-title- Then the cross-section checks that no single review can make: the abstract, introduction final paragraph and conclusions must all state the same purpose and contribution; every value in the abstract and conclusions must match the results; every gap in the introduction must be answered.
- Then
/create-cover-letter.
Report the cross-section checks yourself, since they fall between the section skills.
Answering "what should I write next?"
This is the commonest reason to invoke this skill, and the answer should be short. Survey, then:
Your results and discussion covers Figures 1 to 3 but not Figures 4 and 5. Finish those first: everything downstream is shaped by them. Run
/update-results-discussion, mode C, to resume.After that, conclusions, since it is step 2 and it derives directly from the results.
One next action, the reason, the skill to run.
Answering "where were we?"
The other common reason to invoke this skill, and it should be answerable in one screen. Read
STATE.md, verify it against the manuscript, and report: where the paper stands, what changed since
last time, what is open, and the next step. Then stop and let the researcher direct.
Hard rules
- Never write section content yourself. Hand off. This skill's value is orientation, and a half-implemented section skill inside it would be worse than the real one.
- Never invent the state of the manuscript. If you cannot tell whether a section is complete, say what you could not determine and ask.
- Never trust stored state over the manuscript. Verify every time; report and correct staleness.
- Never re-ask a question answered in
paper-out/interviews/. - Never write to
paper-out/silently. Name the files created or changed. - Never block on missing or malformed state. Carry on without it and say so. The manuscript is what matters.
- Never declare a paper finished. Offer the pre-submission pass instead.
- Never insist on the order. State the cost of deviating and let the researcher choose.
- Never emit an em dash (
---). - If there is no manuscript at all, point at
/setup-paper-projectfor step -1. If there is a project but no figures chosen, say that the research has to be finished and the figures selected and ordered before any writing applies, rather than starting an interview.