Ani Book Skill
A Codex skill that takes a novel from idea to finished book, keeping plan, chapters and continuity in Markdown files.
- 119 ★ on the repository
- Last commit
- Apache-2.0
Minimal access
Why this level
- The skill writes and edits files in the book workspace, and the user is responsible for rights to analysed texts.
Install
- Works in
In your terminal, with SkillFoxx CLI
npx skillfoxx add skills/ani-book-skillDetects the agents on your machine, shows the access level and pins the version.
Other ways to install
Access and checks
How we reviewMinimal accessThe tool runs nothing and makes no network calls.
- The skill writes and edits files in the book workspace, and the user is responsible for rights to analysed texts.
This is third-party code. Review the repository files before installing.
What it does
Ani Book Skill is a Codex skill for long-form fiction in Chinese. It organizes novel work into a resumable process: brief and target reader, story engine, volume structure, chapter plan, full draft, second pass and review. Each chapter ends with recorded facts, plot moves and character changes, so after a break the agent reads the state and continues from the right place. Separate routes cover analysing a reference book with a coverage map and pattern cards, adapting found patterns into an original idea, fan fiction based on authorized texts, tuning an author voice, and shared-universe series. Files live under novels/<title>/, and novelctl.py commands check state and export stable chapters to TXT. An optional local browser reader is included.
Who it is for. Web-novel authors and writers who draft a large Chinese text with Codex and want plans, drafts and revisions kept in their own files.
Good fit when
- A novel is planned for dozens of chapters and needs a volume plan that tracks plot threads.
- An author returns to the manuscript after a week and asks the agent to restore the state.
- A popular book is analysed chapter by chapter to understand its techniques without copying text.
- Finished chapters must be exported to a single TXT for publication.
Not a fit when
- You need a short note or story: the process targets long form.
- You work in Claude Code or Cursor: the skill is built for Codex.
- The text is Russian or English: instructions and techniques address Chinese fiction.
Example request
Use $produce-long-form-novel. My idea is a detective story in a port city. Offer five story seeds and save the book workspace.Limitations
The skill is written for Codex and needs Git and Python 3.10 or newer. README install commands are given for PowerShell, and a sync_skill_mirror.py script synchronizes the skill copy. Analyse and use only texts you have rights to, and keep fan fiction within what is authorized. Prose quality depends on the model. The section on reducing machine-sounding style works from your sample texts and does not guarantee that detectors will pass the result.
How to disable. Delete the produce-long-form-novel folder from the Codex skills directory. The novels/ working folders stay with you and are removed separately if not needed.
FAQ
How do I invoke the skill in Codex?
In a new conversation mention `$produce-long-form-novel` and describe the idea, for example asking for five story seeds.
How do I continue a book after a break?
Ask the agent to continue the `novels/my-book/` folder: it reads the state and recovery log and names the next step.
How do I export the book?
Run `python scripts/novelctl.py export novels/my-book`. You can run it with `--dry-run` first.
Does the skill work in Claude Code?
The skill is built natively for Codex, and the README says nothing about other agents.
What is required?
Codex, Git and Python 3.10 or newer. Results live in local Markdown and YAML files.
Discussion
No questions or reviews yet.
Related
SkillsA skill helps Codex plan Chinese web fiction, revise scenes and check character actions against earlier chapters
A Codex and Claude skill for short Chinese fiction from topic choice to release and review: the human decides, AI speeds up
A skill for multi-volume novels: 30-plus protocol files keep world, characters and style consistent from chapter to chapter
24 skills for fiction in Markdown, from premise to print, and a story command that catches plot contradictions before readers do
A novel-writing skill with nine agents: setting, volume and chapter plans, prose, a machine-style check and an archive with character memory
A novel-core skill for Chinese web fiction that plans chapters, gives writing blocks to fill by hand and tracks story memory.
README in short
The repository holds the skill, reference files, novelctl.py scripts for checks and export, and an optional browser reader. Work is split into routes: from scratch, book analysis, original adaptation, fan fiction, style and series. An English README is provided.
README badge
Original SKILL.md
--- name: produce-long-form-novel description: Produce, maintain, analyze, and export long-form Chinese novels through staged, editable artifacts, with progressive confirmation of high-impact creative settings for novice authors. Use when Codex needs to turn an idea into a novel plan, guide choices such as audience channel or genre, analyze public ranking metadata for hot genres, deconstruct an authorized reference novel or diagnose a manuscript, write fanfic from an authorized analysis workspace, design or revise volumes, generate chapter plans or prose, continue an existing novel, audit and repair chapters, export ready chapters as a TXT file, or decide the next production step from an existing Markdown/YAML workspace. Do not use for generic app development, database operations, unauthorized bulk copying, or unrelated short-form copywriting. --- # Produce Long-Form Novel ## Mission Help a novice author move from a vague idea toward a complete long-form novel. Produce concrete, editable artifacts; preserve author decisions; and recommend one clear next step. ## Codex-Native Execution Boundary **Codex is the only engine for creative understanding, planning, generation, review, and judgment.** This Skill is the process contract; Python scripts perform only deterministic state transitions, validation, indexing, conflict detection, and export. This repository is not an `AI-Novel-Writing-Assistant` runtime or submodule: do not add provider SDKs, Web APIs, database authorities, queues, or a custom agent runtime. `provider` and `model` fields are Token diagnostics only when the Codex host exposes them, never a generation dependency. ## Check Skill Currency Before Running Treat the checked-out repository as the editable Skill source and the locally installed Skill as its runtime mirror. Resolve the installed mirror from `$env:CODEX_HOME\skills\produce-long-form-novel`; when `CODEX_HOME` is unset, use `<UserProfile>\.codex\skills\produce-long-form-novel`. Before the first production action in a task, compare the repository root with that mirror: ```powershell python scripts/sync_skill_mirror.py check <repository-root> <installed-skill-directory> ``` - Report `missing`, `changed`, and `extra` files before relying on the mirror. - After every functional edit to `SKILL.md`, `references/`, `scripts/`, `assets/`, `requirements.txt`, or `agents/`, run the repository's required compile, tests, and Skill quick validator. When they pass, automatically synchronize the repository to the resolved installed mirror and rerun `check`; do not ask for repeated authorization. - Never synchronize failed or unvalidated functional changes. Keep synchronization additive and preserve mirror-only files. Do not hardcode a user-specific absolute path. - This comparison and synchronization are deterministic maintenance operations; do not record them as creative model usage. When a user explicitly says they have no story idea, do **not** begin with the three opening settings or a full premise. Read [opening-seeds.md](references/opening-seeds.md), run its private divergence and quality-gate process, then output exactly five non-authoritative, one-sentence opening seeds. Ask the user to choose one, edit one, or provide an original idea. For a vague request without an explicit “no idea” statement, start with three high-impact choices: audience channel, publishing shape, and genre or primary reader reward. Do not ask about protagonist, style, or length in that first round or generate a full hook package. These choices remain provisional until the user confirms them or delegates the decision. When the user supplies an initial idea or selects one opening seed and still needs direction exploration, generate exactly two non-authoritative new-book brief previews before formal planning. If the user has already selected a concrete direction, supplied a complete brief, or explicitly delegated direct production, reuse those decisions and proceed to the next authorized artifact; do not reopen direction selection. Each preview must include a working title, one-sentence premise, target reader/reward, protagonist path, core conflict, early hook, progression loop, and high-level ending direction. The two previews must differ materially in their selling point, conflict, protagonist path, progression loop, tone, or ending direction. Do not write either preview to `novel-brief.md`, mark it `ready`, or use it for world, volume, or chapter production until the user selects, combines, or delegates a direction. Use Markdown for creative artifacts and a small `novel-state.yaml` file for progress. In a legacy workspace, keep continuity ledgers as readable Markdown. In a migrated workspace, YAML is the sole continuity authority and Markdown ledgers are generated read-only views; SQLite is a disposable local index. Do not require JSON unless the user explicitly requests machine integration or export. ## Choose Persistence Mode Choose one mode before producing files: - **Preview mode**: Return a bounded artifact in the conversation. Use for exploration, first-draft ideas, or any request without a confirmed save location. Do not create files or infer a workspace from chat history. - **Workspace mode**: Write Markdown artifacts and a small YAML state index into one workspace. Use when the user asks to save, create a workspace, analyze a long source, retain ranking snapshots, continue across tasks, protect edits, generate chapters, or otherwise confirms durable production. Novel production uses `novel-state.yaml`; reference-book analysis uses `analysis-state.yaml`; ranking-trend analysis uses `trend-state.yaml`. - **Promote preview**: When the user accepts two or more planning artifacts and wants to continue, recommend workspace mode once. After the user confirms, save the accepted artifacts first, create the state index, and resume from the recorded next action. Do not create a workspace merely because a conversation has multiple turns. If workspace mode is confirmed but no location is supplied, use `novels/<normalized-title>/` for novel production, `analyses/<normalized-title>/` for reference-book analysis, or `trends/<normalized-scope>/` for ranking-trend analysis under the current working directory, then state the chosen path before writing.