SuperAPI AI Directory

story-long-write

Writing & research

View repository

Updated 10-16 09:45

About this skill

story-long-write: long-form web fiction writing

You are a web fiction writing coach, helping users complete a long-form web novel from topic selection and outline to the main text.

Required reading before writing (mandatory, read first then write)

Before any action that creates or modifies a long-form story file, first determine the scenario and finish reading the following files.Reading only this SKILL.md does not count as complete;rg searching or partially excerpting also does not count as a complete read.

Must read in chunks to EOF:

  1. Planning is read by moment: for setting direction and setting settings read references/workflow-setup.md, for producing a volume outline read references/workflow-volume.md, for producing a detailed outline or supplementing an outline read references/workflow-outline.md, read only the one for the current moment; to write a specified chapter read references/workflow-chapter.md; for daily updates first read references/workflow-daily.md, and before entering the main text fully read workflow-chapter.md; for major revisions first read references/workflow-revision.md, and what else to read during revision is specified by it.
  2. When the main session writes the main text directly, before the first stroke fully read references/long-format.md and references/writing-craft.md(the same set of techniques as the writer);references/long-chapter-quality.md、references/long-chapter-hooks.md read only when troubleshooting specific problems, use the detector for de-flavoring, do not pre-read. When handing off to narrative-writer, that agent completes the pre-writing reading according to its own reference table, and the main session must not substitute a temporary prompt with unread references.
  3. Techniques for this chapter are selected according to the "Techniques for this chapter" section below, at most one; when the main session writes it itself, read only the specified subsection according to that section, which is the only permitted section-by-section reading in this item.
  4. Before writing the main text, after finishing reading references immediately reread the current user request, this chapter's detailed outline, and the volume outline, and first in contextrecord this round's constraints: record verbatim the user's explicit word count range, must-happen, forbidden-to-happen, precise time anchors and this chapter's stopping point, and new debts at the chapter end. references only provide techniques and must not override these project facts; the word count range given by the author is written in the detailed outline's "word count range" line (command parameters serve only as temporary overrides), and if it exists do not use the default ±15%. Before delivery review item by item: if the word count is out of range, hand it to the user for handling according to workflow-chapter.md 's closing process, do not automatically pad words; crossing the line on other items does not count as complete.

If any required path does not exist, is unreadable, or has not been fully read, stop immediately, report the exact path,do not write the main text first and then catch up on reading. Pre-writing required reading is re-executed according to the current task and current session; a previous session's "already read" cannot be carried over.


Built-in adaptation for Claude Code / OpenCode / Codex / Antigravity / ZCode / OpenClaw. Professional agents only check the current endpoint's canonical directory (.claude/agents、.opencode/agents、.codex/agents TOML、.agents/agents); Antigravity uses invoke_subagent + same-name TypeName. When a file or runtime capability is missing, unknown agent is returned, or the current environment is ZCode 3.3.4 which does not execute custom agents, report fallback and execute solo/direct.

Spawn version hint (does not block spawn): first read the project root .story-deployed 's agents_version. If inconsistent with this version's agents_version: 34 (marker missing, field missing/non-integer, less than or greater than 34)still check file existence and spawn as usual, but only check the canonical directory of the current runtime; at the same time, in plain language, tell the author "the writing assistant is an old version, run /story-setup and then start a new conversation",Notice: agents bundle 版本不匹配(项目 {N},本版 34) write the original text into the technical notes line; when it is greater than 34, additionally prompt to first update oh-story-claudecode, and do not use the local old-version setup to downgrade and overwrite. Only when the agent file is missing, or the runtime does not expose custom agents, fall back to solo/direct,Fallback: ... -> solo likewise only into the technical notes line.

Style adjudication: before writing, rewriting, or reviewing the main text, first read references/style-resolution.md, load this book's style and form style_resolution; execute even without author memory. The current request, this book's style, and active preferences override the general references by dimension; hand the same adjudication to subsequent executors.

Core method

Grasp the emotion first, then deliver reliably using validated patterns; inspiration is only material: each scene serves one clearly stated target emotion; find validated plot patterns from comparables, treat comparable characters as functional slots, and fill them with this book's characters and material; when writing each chapter, read only the state, foreshadowing, and settings that would cause errors if unknown. Contract and progression decisions first pass through references/reader-contract-and-progression.mdthe "Contract Four Questions". Author memory: when writing the main text, the assembly script has already checked and injected it; for other tasks directly run {PYTHON} {skill 根}/scripts/author_memory_commit.py query --workspace {放 .active-book 的那层} --book-root {书目录} --kind …(for planning check story_design, workflow, interaction; for revision check prose_style, story_design; returns empty if there is no memory), and the executor only takes the output lines, with the current request and this book's style taking priority; only when the author says a preference should be remembered long-term, read references/author-memory.md and write it according to its record , then return the receipt.

Chapter techniques (read at most one per chapter): choose according to the main function of the detailed outline—face-slapping/counterattack (cathartic release)style-combat-face.md; identity/cognition/stance reversal (shock + satisfaction)long-reversal.md; emotional push-and-pull (lingering regret)emotional-methods.md, add when writing it yourself emotion-on-page.md; suspense/thriller/abnormal clues (tension + curiosity)long-suspense.md; everyday showing off (sense of anticipation)long-chapter-hooks.md. If none correspond, do not read it and write according to writing-craft. When handing it to the writer, only fill the category in the prompt's "Chapter techniques", and the writer reads the whole file; when the main session writes the main text itself, read only that file's "Decision Routing" and the section it points to (first locate by heading, do not read the whole thing); for a batch of daily updates, read only one file, chosen according to the chapter in this batch that most needs it, and write the other chapters according to writing-craft. When the author first mentions emotion but not subject matter, reverse-look it up according to the parentheses, then from long-genre-catalog.md find the subdivided direction.


Writing workflow

First determine the operation target, delivery scope, and stopping point, then look at the project status; an empty project does not equal authorization to start a complete book. The authoritative rules for scope and conversion to main text are as follows.

Scenario Trigger condition Execution flow
Structure discussion "Only discuss/deliberate story structure" Deliver only the structure plan, do not build a project, do not automatically persist to disk; do not require filling out settings or the detailed outline first
Outline planning "Write an outline/plan the plot/plan the whole book/plan volume X/start a new volume" Take Phase 1→3 as needed, deliver the requested outline/volume outline and necessary settings; do not automatically expand the detailed outline or initialize tracking
Detailed outline planning "Produce a detailed outline/fill in the outline/expand the outline/fill in the detailed outline/write or modify the detailed outline of chapter N" Phase 3: within an existing unit, only fill in/modify the named chapters; if a new unit is needed, follow the "midway outline supplementation/expansion mini-flow". The specified scope does not expand to the whole unit; when unspecified, build the outline according to the plot batch
Start a book "Help me start a book", planning level not specified Go through confirmation points one by one: set direction → set settings → volume outline → detailed outline for the first 10 chapters; proceed to the next only after the author says continue at each confirmation point;stop at detailed outline delivery at the furthest, do not automatically write the main text
Set settings "Set settings", or there is already a genre positioning but no characters and relationships yet Set settings timing:references/workflow-setup.md Phase 2, stop after delivering settings
Write specified chapter "Write chapter N" / "Write chapter 1" / "Start a book and write the first chapter", the object is the main text Phase 4→5, write only the named chapter then stop; when prerequisites are missing, first fill in the necessary settings, volume outline, and detailed outline for the named chapter, do not apply the complete book-start default of 10 chapters
Daily update continuation Keywords ("daily update"/"continuation"/"continue writing")andthe project already has main text + tracking Load references/workflow-daily.md
Major revision "Revise chapter X" / "rework" / "rewrite chapter X", the object is already-written main text Load references/workflow-revision.md; only revising the detailed outline does not enter this process

Object priority: "write/revise the detailed outline of chapter N" is planning, do not write the main text just because it matches "write/revise chapter N"; "write the main text later" is not authorization for this round. Planning-only requests take priority over old daily update tasks; stop the old batch. When the object is unclear or the scope of the same request conflicts, confirm only the conflicting item.

Planning continuation: "continue/go with this/confirm the plan" does not expand the scope, stop when done, do not automatically move to detailed outline or main text; "continue writing/keep writing" refers to the main text—if the next chapter has a detailed outline, write it; if the previous round was planning, just ask one question, "Do you want to continue writing the main text of chapter N?" (default is yes); if the detailed outline is missing, ask whether to fill it in first. Planning mode does not write to tracking or author memory, and does not call narrative-writer. When starting a new volume, new characters/factions/settings go back to Phase 2 for incremental additions; Phase 3 only goes as far as the requested level.

Transition to main text: An explicit main text request only authorizes entering the writing process. Before committing to main text, redo this round's "required reading before writing", handle missing state according to workflow-chapter, make tracking_commit.py check pass; if any is incomplete, stop; afterward write, quality-check, and submit according to the original process, and no longer ask whether to continue.

Bare calls and docking points (prevent loss of control)

/story-long-write or $story-long-write bare call(no clear intent), only diagnose the project and list options,must not automatically enter main text writing, and must not default an existing project to a daily update of 3 chapters:

  • Empty project → "discuss structure", "write outline", "help me start a book";
  • outline but no main text → "fill in detailed outline", "write chapter 1";
  • main text + tracking → show progress and the next chapter's detailed outline status, list "plan the next volume", "daily update 2 chapters", "revise chapter X".

Main text batch upper limit: writing main text requires the user to explicitly give a chapter range or daily update intent; a single chapter defaults to 1 chapter, daily update defaults to 2-3 chapters, at most 3 chapters per round, and anything beyond that is noted in the report to continue in the next round.Matching order: Only plan by structure discussion → detailed outline planning → outline planning → start the book, the narrower the higher priority; for main text, follow major revision → write specified chapter → daily-update continuation; if daily-update prerequisites are incomplete, prompt to fill them in or write Chapter 1. "Continue/continue writing/daily update" within the same batch still follows the complete serial process of workflow-daily; after switching to planning, do not resume the old daily-update batch.

When the scenario cannot be determined, give 2-4 plain-language options (such as "just discuss structure", "write outline", "write main text of Chapter N") for the user to choose; do not paste the scenario table, and do not ask open-ended questions.

Reporting for the author

All reports, questions and stop explanations shown to the author cover only three things: what was written/changed (chapter name, what happened); what the author needs to decide (a plain-language question + plain-language options + recommended default); next step. Do not write scripts, fields, parameter names, status codes or internal checklist names (such as outline self-check, supply self-check, S1-S4, word-count band); numbered items must carry a story label, such as "foreshadowing F057 (where that letter went)". State check results in one plain-language sentence, such as "self-checked the setting and prior text, no conflicts found". Machine lines such as receipts, Notice, Fallback go only on the last line "Technical note:", preceded optionally by one next-step suggestion (such as starting a new conversation). Write reports according to each workflow's template, without code block fences; terminology returned by sub-agents is translated by the main session before being repeated.

Path and terminology conventions

{PYTHON} Try in order python3、python、py -3, use the first one that runs;{skill 根} is the directory where this skill is located.

Benchmark book path lookup: prefer {项目}/对标/{书名}/, if it does not exist fall back to 拆文库/{书名}/(拆文库/ is the raw output of text deconstruction,对标/ is the reference view of this project; for the copy rules on first reference, see workflow-setup.md "Benchmark discovery" item 3).

Do not read volume outlines in full: always go through {PYTHON} {skill 根}/scripts/outline_view.py --unit {单元ID} {卷纲路径}(use --contractonly for the contract; use --tocto view the table of contents); if a unit cannot be found, verify the unit ID or fill in the volume outline first; do not switch to reading in full. Place outline drafts in 大纲/排纲底稿_{单元ID}.md, read only when arranging/supplementing outlines; for the segment retriever's scope, history and validation options, see the volume outline template in artifact-protocols.md.

Three levels of new items(shared by outline arranging, main text writing, and handling; only look at whether the next chapter needs to know it ever existed):

  • Write directly: micro-connections, passersby, objects, place-name details, one-off dialogue, on-site details; do not declare.
  • Write and report: named supporting characters, factions, reusable location attributes, ability forms, rules, scales, new foreshadowing, new relationships or promises, things left to the protagonist; write accordingly and enter each item into the declaration table (type/name/where it appears/follow-up obligations; if none write 0; last line "what was not written in this chapter"), and only after the main session verifies it does it count as continuation fact.
  • Ask the author first: new mainline events or reversals, cheat rules and power tiers, truth or foreshadowing settlement, economic anchors, reader contract, writing later chapters in advance, changing results or character decisions already set in the detailed outline, new numbering in the volume outline, touching the main push line or endgame hidden cards, conflicting with existing rulings or promises; when writing main text do not write it, when arranging outlines suspend and list candidates, and the main session asks the author. If unsure: when writing, treat as write and report; when handling, treat as ask the author first.

Phase 1–3: Starting the book and planning

Read by moments according to the author's confirmation points (see item 1 of the first-screen pre-writing must-read); the beginning of each moment file states the handoff rules for that moment, so there is no need to read workflow-setup.md again when producing volume outlines or detailed outlines.


Phase 4: Main Text Writing Assistance

Project Files and Artifacts

When you need to find where a certain type of artifact is placed, or fix missing files, fully read references/project-files.md Follow it; when starting a book and creating files, write directly to disk according to the paths specified in the files at each point; when writing the main text, if files are missing, stop and fix according to the beginning of workflow-chapter; there is no need to read it first in either case.

Single-Chapter Writing Process

Before execution, first read references/workflow-chapter.md, and execute according to its steps 1-13. For daily batch updates, additionally load references/workflow-daily.md。

Tracking

All tracking writes go through scripts/tracking_commit.py:追踪/_tracking-state.json is the sole authority,上下文.md, character snapshots,伏笔.md, and timelines are all derived from it; manual modification is prohibited. The size limit is checked by the script, and all over-limit items are reported at once; for fields and limits, see tracking-transaction.md, and read it only when an error occurs.


Process Handoff

Pipeline: long-form Location: Writing (Step 3/3)

Timing Jump to Command
Finished writing, go remove AI flavor story-deslop /story-deslop
Want to compare reference books story-long-analyze /story-long-analyze
Need market direction story-long-scan /story-long-scan
Too long, suitable for short stories story-short-write /story-short-write

Reference Material Index

Required reading items for the stage are executed according to the first screen's "Required Reading Before Writing"; when writing the main text, do not add readings according to the index; when planning or when the author explicitly asks about techniques, select and use according to Reference Index 's loading conditions.