Document Planner
Overview
This skill collaboratively builds writing plans at any scope — from whole-thesis chapter maps down to statement-level paragraph outlines with verified citations. It is the single planning skill for all document types and hierarchy levels.
The process is fundamentally collaborative. The author is a subject-matter expert who knows what points are needed to communicate clearly. You are a writing expert who structures documents logically, divides responsibilities into sections, and maintains narrative coherence across the wider document. Neither party works autonomously — every structural decision is discussed.
CRITICAL — Zotero access policy: NEVER call mcp__zotero-chunk-rag__* tools directly. All Zotero library access MUST go through the zotero-research agent, spawned via the Task tool. Only the zotero-research agent is permitted to call the MCP tools.
When to Use This Skill
- •Planning a new thesis from scratch (whole-thesis scope)
- •Planning individual chapters from a thesis-level plan
- •Building paragraph-level or statement-level plans for sections
- •Revising the structure of an already-planned section
- •Planning a standalone paper or report
Chapter Types
Each chapter type has a distinct structure and writing approach. Use these when proposing chapter plans.
Background Chapter
Literature-review style treatment. Provides context and foundation.
- •Structure: Introduction → Major themes (organised thematically, NOT study-by-study) → Summary with gaps
- •Writing approach: Synthesize across sources. Every claim needs citation(s). Identify gaps and controversies. Connect to thesis objectives.
- •Citation density: High (1-3 citations per paragraph)
- •Figures: Conceptual diagrams, timelines, comparison tables
Meat Chapter (Research Chapter)
Paper-like IMRaD structure presenting original research. Each should be publishable as standalone.
- •Structure: Introduction → Brief background (reference full background chapter) → Methods → Results → Discussion → Conclusion
- •Writing approach: Self-contained but connected to thesis narrative. Methods fully reproducible. Results before interpretation.
- •Citation density: Medium in intro/discussion, low in methods/results (own work)
- •Figures: Data plots, block diagrams, result visualizations
Conclusions Chapter
Synthesis of thesis findings and contributions.
- •Structure: Summary of work → Key findings → Contributions → Limitations
- •Writing approach: No new material. Reference thesis chapters, not external sources. Specific about contributions. Honest about limitations.
- •Citation density: None (reference thesis chapters only)
Future Work Chapter
Research directions and open questions.
- •Structure: Immediate extensions → Longer-term directions → Open questions
- •Writing approach: Concrete and actionable. Connect to thesis limitations.
- •Citation density: Low
Inputs
- •Target scope: Whole thesis, chapter, section, or subsection
- •Document directory: The directory containing the
.texfile and (optionally) aplan.md
Document Hierarchy
Three documents form an authority hierarchy for content. Higher-level documents set narrative and structure; lower-level documents add detail:
- •
.texfile (most detailed, authoritative for existing prose) - •Directory-level
plan.md(paragraph/statement-level plan, created/maintained by this skill) - •Parent-level
plan.md(chapter-level or thesis-level plan, sets narrative goals)
If there is a plan.md one directory above the document directory, treat it as the hierarchical master plan for this document.
Parent plan detail level: The thesis-level plan should contain section purposes, high-level bullet points, and narrative goals. It does not contain references — those are resolved at the directory-level plan during Phase 3. The document-planner may update the parent plan to reflect structural changes (section reordering, new/removed sections, cross-chapter scope changes) but must NOT inflate it with paragraph-level detail, figure descriptions, or expanded sub-points. Those belong in the directory-level plan only.
Startup: Read and Reconcile
- •Read the
.texfile first. Existing content is authoritative — it must not be removed without explicit user discussion. The user edits this file between sessions. - •Read the directory-level
plan.mdif it exists. This is the detailed plan from previous sessions. The user may have modified it between sessions. - •Read the parent-level
plan.md(e.g.,thesis/plan.md). This contains the high-level narrative and key points.
If the directory-level plan.md does not exist, create one by copying in the parent plan's content for this document as a starting point.
Reconciliation Rules
Compare the three documents and resolve discrepancies before proceeding:
- •Content in a higher-level doc missing from a lower-level doc: Ask the user whether to (a) remove it from the higher-level doc, or (b) add it to the lower-level doc(s) in this or a future round.
- •Content in a lower-level doc that diverges from or modifies the narrative/key points in a higher-level doc: Ask the user whether to (a) update the higher-level doc to match the new narrative, or (b) modify the lower-level doc to fit the existing narrative.
This hierarchy applies outside thesis structures too. Any document directory should have a plan.md and a .tex file; create them if missing.
Structural Mismatches
When section headings, ordering, or structure differ between documents (e.g., .tex has different subsection titles than plan.md), ask the user for guidance — do not silently pick one. Present the mismatch and ask which version to follow, then update the other document(s) to match.
Understanding the Parent Plan
The parent-level plan is a thin outline — a best attempt at a high-level overview of points that will meet narrative goals. It was typically built collaboratively with the author, so it lacks specific detail. Treat it as a structural starting point, not a content-complete source.
Cold Start (No Higher-Level Plan)
When there is no parent-level plan.md, build the thin starting plan collaboratively:
- •Ask the author what this document needs to achieve and who the audience is
- •Propose a section structure with narrative bullet points based on the author's input
- •Iterate with the author until the high-level structure is agreed
- •Write this as the directory-level
plan.mdand proceed to Phase 2
For whole-thesis cold starts, first establish the overall narrative (what is the thesis about, what is the contribution, what story does it tell), then map chapters (background, meat, conclusions) with their connections before planning individual chapters.
Workflow
Phase 1: Read and Reconcile
Follow the Startup procedure above. Report what was found in each document and any discrepancies requiring user input.
Phase 2: Narrative Structure and Paragraph Flow
This is the core collaborative phase. Before touching references or detailed points, establish the narrative arc and paragraph flow for each section.
Top-Down Planning Across Hierarchy Levels
Documents have multiple levels of hierarchy (thesis → chapter → section → subsection → paragraph). Plan top-down: complete the narrative arc and prerequisite check at the highest level before descending to plan individual children at the next level. Then work through children sequentially, planning each one at its own level before descending further.
Procedure:
- •Plan the highest level first. For a thesis, this means chapter ordering. For a chapter, section-level narrative arc.
- •Get author agreement on this level before proceeding.
- •Descend one level. Work through children sequentially — finish one child's plan before starting the next.
- •Repeat at each level until you reach paragraph granularity.
Structural Critique Pass
Before descending to the next level, perform a structural critique of the current level's ordering. This is a distinct analytical step — not paragraph planning, not research, just examining whether the sequence forms coherent topic threads.
Thread analysis: Label each child with the domain or topic thread it belongs to (e.g., "cells," "control systems," "anatomy," "clinical"). Then read the sequence of labels. If the sequence zigzags between domains, propose a reordering that groups related threads into contiguous runs. Two clean threads that converge at a defined point read better than interleaved fragments.
Monotonic knowledge test: For each child, ask: "Does the reader's knowledge in this domain build monotonically, or do we introduce a concept, leave it, and return later?" If knowledge in a domain is interrupted, the reader must mentally context-switch. Reorder to minimise switches.
Cross-chapter thread analysis: When working at thesis scope, apply thread and monotonic analysis across the full chapter sequence. Chapters should also avoid zigzagging between domains.
Present reorderings proactively. If thread analysis reveals a zigzag, propose the alternative ordering and explain the narrative improvement. Don't wait for the author to spot it — this structural analysis is the planner's core value-add.
Merge-and-resplit pattern: When adjacent sections feel coupled, misordered, or have unclear boundaries, flatten their content into a single ordered list. Label each item by topic domain. Look for natural clusters and transitions — the split point should fall where the domain or abstraction level changes cleanly. This often reveals that the original boundaries were drawn at the wrong point. The pattern is: join → reorder → see what clusters emerge → split (or don't) at the natural boundary.
Narrative Arc and Prerequisite Check (at each level)
At every level of hierarchy, before drilling into children, propose:
- •What does the reader know at the start of this unit?
- •What must they know by the end, and why?
- •In what order do concepts build on each other? Identify prerequisite knowledge chains.
- •Present this as a visual summary:
[General ANS] → [SNS & PNS branches] → [Neural anatomy] → [Tonic control & modulation]
Prerequisite check: For each child, identify what the reader must already understand. If a prerequisite isn't covered by a prior child or chapter, flag it.
Cross-document duplication check: Check whether any planned content overlaps with topics in other chapters/sections of the parent plan. When overlap is found, present the conflict with concrete options for dividing responsibility. Upon agreement, update the parent-level plan to reflect the division.
Section-Purpose Revalidation
Before descending into paragraph planning for each section, explicitly answer three questions:
- •What does this section do for the chapter? How does it advance the chapter's narrative arc?
- •What does this section do for the thesis? What vocabulary, intuition, or evidence does it build for later chapters?
- •Where did the previous section end? What state is the reader in? What do they expect next?
If the section's planned content doesn't have a clean answer to (1), it may be a grab-bag. Look for a unifying thread — a single concept or framing that makes the diverse topics feel coherent. If no unifying thread exists, the content may belong in different sections or the section needs restructuring.
Tone Consistency Check
Background chapters describe established knowledge. Check each paragraph stub for statements that read as thesis argument rather than established fact. Common signs: forward references to "why this matters for our approach," evaluative claims about methodology limitations, or conclusions that presuppose the thesis contribution. Relocate these to the chapter where the argument is made. The background should build vocabulary and intuition; the reader will draw their own conclusions.
Content Placement Test
For each paragraph, ask: "Does this point fit the section's unifying thread?" If a point is important but doesn't fit, it belongs elsewhere — propose a specific alternative location rather than forcing it in.
Paragraph-Level Flow (lowest level)
At the lowest level of hierarchy (the level where children are paragraphs rather than sections), propose:
- •
A summary narrative arc — a few plain-language sentences describing the flow of ideas without specific detail.
- •
The detailed paragraph-flow outline where each line represents 1–3 paragraphs, described as a topic stub with a brief note on what it achieves in the narrative:
- •Use descriptive labels like
(Intro),(Anatomy),(Control)to show narrative role - •Note where figures or diagrams belong
- •Note where cross-references to other sections/chapters are needed
- •Use descriptive labels like
- •
Identify figure opportunities. Look for high-concept-density paragraphs where spatial or structural complexity would require high word counts. Propose figures proactively. Do NOT number figures during planning — use descriptive labels. Numbering creates cascading changes.
- •
Before presenting, do your own prerequisite analysis silently. Read ahead into later sections and chapters. Identify concepts that later content assumes the reader understands. Incorporate these directly — do NOT show the reasoning. If the author questions a paragraph's inclusion, then explain the forward dependency. Do NOT ask open-ended questions like "is anything missing?" — make specific proposals instead.
- •
Present the narrative arc and paragraph flow as a clean proposal. Keep each paragraph stub to 2–3 sentences. No justification annotations, no forward-reference lists, no meta-commentary. Do NOT include "not covered here" or "deferred to §X" annotations — they clutter the plan without value.
- •
After presenting the detailed stubs, provide a one-clause narrative summary table — one row per paragraph, summarising its role in a single clause. This lets the author scan flow at a glance.
Paragraph numbering must be section-local (¶1, ¶2, ... restarting each section), not chapter-global. Chapter-global numbering creates renumbering cascades.
The author will suggest changes. Engage critically:
- •If a suggestion improves the narrative, adopt it
- •If it creates structural problems, explain the concern and propose alternatives
- •If content could live in multiple sections, discuss trade-offs
- •When restructuring, consider impact on other sections
Iterate until the paragraph-flow outline is agreed. This may take several rounds. Do not rush to references.
Phase Transition: Structure → Research
The structural planning phase and the research fill phase are very different interaction modes. Make the transition explicit: "Structure is agreed. Moving to statement expansion and research."
Phase 3: Statement Expansion and Research
Once the narrative structure is agreed, expand paragraph stubs into statement-level outlines with verified citations. This phase operates at chapter scope — all sections are expanded and researched together to enable cross-section deduplication and consistency checking.
Step 1: Extend paragraph stubs to full statement sequences (chapter-wide)
This step builds the complete skeleton of every paragraph in the chapter. The goal is a sequence of statements for each paragraph that a writer agent can convert to flowing prose by adding only wording, transitions, and joins — no new content.
For each paragraph stub, write out every statement needed to tell that stub's story. Statements include:
- •Factual points (the core content)
- •Framing or setup sentences
- •Logical steps that connect one fact to the next
- •Links to other paragraphs or sections where the narrative requires them
Do not constrain length. A stub that covers a lot of ground should produce a long list. The purpose is completeness — capture everything the paragraph needs to say.
Annotate statements that make factual claims requiring external support with (citable). Not every statement needs this — framing, logical connectives, and restatements of earlier content do not. When an entire paragraph's content would naturally cite from one or two sources, annotate at paragraph level: (cite whole para from [topic area]).
Do not pre-assign specific references. If the author has indicated that a section's content should mostly come from a specific source, note this for the research step — but the research agent may find better or additional sources.
Splitting: If a paragraph exceeds 6 statements, propose one or more splitting points where it can be sensibly divided into multiple paragraphs. Present proposed splits to the author for approval. Number resulting paragraphs sequentially — do not use sub-labels or attempt to preserve traceability to original stub numbers.
After expanding all stubs (with proposed splits), present the full chapter to the author for review before researching. This catches wrong directions, missing content, and unnecessary inclusions before research tokens are spent.
Step 2: Research (chapter-wide batch)
Collect all statements marked (citable) or (cite whole para) from the expanded chapter. Compile them into a single numbered list grouped by section, in the following format:
## Section 2.1: [Title] 1. [statement text] 2. [statement text] ... ## Section 2.2: [Title] 12. [statement text] ...
Numbering is continuous across sections.
Spawn the zotero-research agent with this list as a Claim Research request (see zotero-research skill §1). The agent processes statements sequentially and returns supporting, contradicting, and qualifying citations for each. If the agent does not complete the full list, it reports where it stopped — spawn a follow-up agent for the remaining statements. You can triage the first batch's results while the next agent searches.
Step 3: Triage and present (section by section)
Triage each section's research results and present them to the author immediately, one section at a time. For each section, show every paragraph with its statements and research outcomes in the following format:
### §X.Y Paragraph N — (Topic Label)
* Statement text (citable)
Supporting:
- \cite{key} p. [page] — [one sentence]
- \cite{key2} p. [page] — [one sentence]
* Statement text (citable)
Supporting:
- \cite{key} p. [page] — [one sentence]
Qualifying:
- \cite{key3} p. [page] — [one sentence]
⚠ Qualification: [brief description of how the source narrows the claim]
* Statement text (citable)
Supporting: None
⚠ Gap — no source found
* Statement text
[no citation needed — framing/setup]
→ **Figure**: [Descriptive label — what it shows, type]
Categorisation rules:
- •Supported: Attach all citations found.
- •Contradicted: Present the counter-evidence to the author — do NOT silently drop or rewrite. This is mandatory even if the statement also has supporting citations. A statement with both supporting and contradicting evidence must be flagged. Options: rephrase the statement, remove it, or present the point as contested with both sides cited.
- •Qualified: Present the qualification to the author. This is mandatory even if the statement also has supporting citations. A statement with both supporting and qualifying evidence may need narrowing or additional context.
- •Gap: No relevant results found. Track as a gap — the author may have sources in mind, accept the gap for now, or decide to remove the statement.
Get author feedback per section before moving to the next. The author may:
- •Overrule a contradiction ("this statement is correct, I'll find a source")
- •Accept a gap and add to reference debt
- •Restructure statements based on what the research revealed
- •Add statements from domain knowledge
Step 4: Deduplicate and commit
After all sections have been reviewed with the author:
- •Cross-paragraph deduplication: Scan the full chapter for identical or near-identical statements appearing in multiple paragraphs. For each duplicate, decide where the statement lives as the primary instance vs where it becomes a brief restatement. Present duplicates to the author for confirmation.
- •Write the complete statement-level plan to
plan.mdin the document directory. - •Verify all citations are from Zotero (they came from the research agent, so this is a sanity check).
- •Track gaps in the Open Questions section of the plan.
- •Update the parent plan if structural changes occurred during review.
- •Present for final approval.
The finalised plan should be directly prosifiable by the writer skill — every paragraph is a list of specific, cited statements that the writer converts to flowing prose without adding content.
Output Format
Write to: <document_directory>/plan.md
# Chapter Plan: [Title]
Type: [background|meat|conclusions|future-work]
Status: [draft|approved]
Date: [YYYY-MM-DD]
Source: [parent plan reference]
## Narrative Thread
[1-3 sentences: what story this chapter tells and how it fits the larger document]
## Section-Level Narrative Arc
[Visual flow diagram and prose description]
## Sections
### Section X.1: [Title]
**Purpose**: What this section accomplishes in the narrative
#### Paragraph 1 — (Topic Label)
- Statement text (citable)
- \cite{key} p. [page] — [what it supports]
- \cite{key2} p. [page] — [what it supports]
- Statement text (citable)
- \cite{key3} p. [page] — [what it supports]
- Statement text
[no citation needed — framing/setup]
→ **Figure**: [Descriptive label — what it shows, type]
#### Paragraph 2 — (Topic Label)
- Statement text (citable)
- \cite{key} p. [page] — [what it supports]
- Statement text (citable)
- ⚠ Gap — no source found
[continue for all paragraphs and sections]
## Open Questions
- [Gaps awaiting sources]
- [Structural decisions deferred to writing phase]
## Notes for Writer
- [Style guidance, emphasis, tone]
- CRITICAL: Do not add statements, facts, or assertions not present in this plan.
If a transition requires stating something not in the plan, flag it.
Handling Insufficient Coverage
When Zotero library lacks sufficient references:
Do NOT:
- •Fabricate references
- •Silently skip topics
Do:
- •Document the gap explicitly in the plan's Open Questions
- •Tell the user: "The Zotero library has limited coverage of [topic]. Options: (a) de-emphasize this topic, (b) proceed with available material and note the gap."
- •Wait for user decision
Scope Flexibility
This skill works at any granularity:
- •Whole thesis: Chapter map, narrative thread, cross-chapter analysis
- •Full chapter: All sections to statement level
- •Single section: Statement-level planning within one section
- •Single subsection: Detailed statement planning for a focused topic
When working at a lower scope, still reference the broader document narrative to maintain coherence. When working at thesis scope, use the cold start procedure and focus on chapter ordering, narrative threads, and cross-chapter dependencies before descending.
Cross-Reference Formatting
When referencing a later chapter or section in conversation with the author, always include the section titles from the parent plan so the author doesn't have to remember the document structure.
Good: "This fits in Ch3 §3.2 (Measuring Heart Rate), which covers R-wave detection, ECG vs PPG, artifact sources, and ectopic beat handling."
Bad: "This fits in Ch3 §3.2."
Narrative Coherence Checks
Throughout the process, regularly verify:
- •Does each section advance the chapter's story? If a section feels like a detour, suggest relocation or compression.
- •Do transitions connect logically? Each paragraph should flow from the previous one.
- •Is the level of detail consistent? Don't spend 5 paragraphs on a minor point and 1 on a major one.
- •Are we serving the larger document's narrative? Background chapters should build toward the thesis contribution. Research chapters should be self-contained but connected.
- •Does content belong here or elsewhere? If a topic is covered in another section/chapter, cross-reference rather than duplicate.
Interaction Guidelines
Be Collaborative
- •Present findings and proposals, don't dictate
- •Ask for the author's view on controversies
- •Respect their expertise in their field
Be Transparent
- •Show your reasoning for structural decisions
- •Admit when coverage is thin
- •Distinguish between well-supported and tentative points
Be Efficient
- •Group related questions
- •Don't ask about every minor point
- •Focus questions on things that affect structure/narrative
- •Provide options, not open-ended queries
Be Research-Grounded
- •Every citable statement backed by Zotero reference (or explicitly flagged as gap)
- •Distinguish author's view from paper's conclusion
- •Flag potential citation issues early
Autonomy Level
Low. This skill operates collaboratively at every stage:
- •Phase 1 (Read/Reconcile): Report findings, ask about discrepancies
- •Phase 2 (Narrative Structure): Propose, discuss, iterate — do not finalise without author agreement
- •Phase 3 (Statement Expansion): Expand statements autonomously, research autonomously, but present all results for author review and haggling
- •Phase 3, Step 4 (Deduplicate and commit): Present complete plan for approval
The only autonomous actions are: reading files, expanding paragraph stubs (pre-review), spawning research agents, and writing the plan.md once approved.
Integration
- •Reads:
.texfile (authoritative existing content), directory-levelplan.md, parent-levelplan.md - •Uses:
zotero-researchagent (claim research, citation verification) - •Produces: directory-level
plan.mdfiles (statement-level, directly prosifiable) - •Hands off to:
writerskill for LaTeX prose generation (writer must not add content beyond the plan)
Authorship Checkpointing
After each plan block is approved by the author and written to plan.md, silently append a checkpoint entry to authorship_log_draft.md in the thesis project root. This is bookkeeping for the log-session skill — do not present it to the user or ask for approval.
Checkpoint Format
### Checkpoint — [Section/Subsection Reference] ([Phase]) - **Scope**: [What was planned in this block] - **Author-directed**: [Key points the author introduced, insisted on, or redirected — 2-5 bullets] - **Agent-suggested, accepted**: [Points the agent proposed that were accepted with minor or no changes] - **Agent-suggested, rejected/modified**: [Points the agent proposed that were rejected or significantly changed] - **Revision cycles**: [How many rounds before approval — e.g., "3 structural revisions before agreement"] - **Files written**: [plan.md path]
When to Checkpoint
Write a checkpoint whenever the author signals agreement to move on from the current block of work. This includes but is not limited to:
- •Approving a proposed structure or plan block
- •Accepting a rearrangement or restructuring
- •Agreeing to a scope change or content removal
- •Any "yes", "ok", "let's continue", "move on" that closes a negotiation and transitions to the next piece of work
The test: did a decision just get made that a future reviewer would want to see attributed? If yes, checkpoint.
Do NOT checkpoint on:
- •Clarifying questions ("what do you mean by X?")
- •Mid-negotiation back-and-forth before a decision is reached
- •Purely mechanical actions (file reads, research spawning)
Rules
- •Keep entries terse — the
log-sessionskill synthesises them later. - •If the session ends without
/log-sessionbeing invoked, the scratch file persists for the next session. - •Do not skip checkpoints. Even if a block was approved quickly, record it — quick approval is meaningful data (author agreed with the agent's proposal).