# Oh Story: a Chinese web-fiction writing kit for coding agents (zenstory-ai/oh-story-claudecode) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-08 against commit 70d1cf4 (version 0.9.1).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/zenstory-ai/oh-story-claudecode/

> Note: the pack has changed since this check; re-read its files before relying on details.

## Explain it to a non-programmer
Thirteen skills that turn your AI assistant into a writing partner for Chinese web novels and short stories. It helps you pick a genre from the charts, take apart a bestseller, and plan and write chapters. It also keeps track of characters and clues across a long book, strips out "AI-sounding" phrases and makes a cover.

## Who it is for
- You write long serials or short stories for Chinese platforms such as Qidian, Fanqie, Jinjiang or Zhihu Yanyan
- You want your assistant to remember characters, clues and promises across hundreds of chapters
- Your drafts read as "too AI" and you want a line-by-line check of stock phrases
- You have part of a novel written and want to import it and keep going
- Not for: You don't write in Chinese; the skills, rules and checks are all written for Chinese prose
- Not for: You only want a chat window with no files; the kit keeps the book in folders on your computer

## What it is
- Kind: command, knowledge, scripts
- License: MIT
- Repository: https://github.com/zenstory-ai/oh-story-claudecode

## What it does
- Pipeline: chart scanning, deconstructing a bestseller, outline and prose, de-AI editing, cover art. Scanning and deconstruction are optional.
- The file system is the memory: settings, outlines, prose and continuity tracking sit in separate files, so progress survives a new session.
- A single tracking file is the authority; the context card, foreshadowing list, character states and an author-truth / reader-known timeline are rebuilt from it.
- Long-form chapters go through a blueprint first, then drafting, then deterministic checks (length, AI patterns, repetition, punctuation) before the chapter is committed to tracking.
- Seven specialist helper agents (structure, prose, continuity, characters, research, project lookup, chapter extraction) where the host supports them; otherwise the main session does the same work.
- De-AI editing checks three layers: wording, where the prose spends its attention, and story logic; story changes are proposed, not made, until you approve.

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| story-setup | /story-setup ($story-setup in Codex) | yes | Prepares your book folder for your assistant: copies helpers, rules and checks into it |
| story | /story, /story dashboard | no | The front door: sends your request to the right skill, opens the local workbench, checks for updates |
| story-long-write | /story-long-write | no | Plans and writes a long serial: direction, volume outlines, chapter outlines, chapters, rewrites |
| story-short-write | /story-short-write | no | Writes a short story from the target emotion to a finished draft |
| story-deslop | /story-deslop, /去AI味 | no | Finds and rewrites AI-sounding passages while keeping your plot and voice |
| story-import | /story-import | no | Turns a novel you already wrote into a project the kit can continue |
| story-long-analyze | /story-long-analyze | no | Takes apart a long novel: the first three chapters, payoffs, pacing, characters, style |
| story-short-analyze | /story-short-analyze | no | Takes apart a short story into plot nodes and technique notes you can reuse |
| story-long-scan | /story-long-scan | no | Reads long-form chart pages on Qidian, Fanqie, Jinjiang, Qimao and Ciweimao and spots repeating genres |
| story-short-scan | /story-short-scan | no | The same chart reading for short-story platforms |
| story-review | /story-review | no | A multi-reader review of a draft with platform score sheets (Fanqie, Qidian, Zhihu) |
| story-cover | /story-cover | no | Makes a cover with title and pen name; uses Codex's built-in image tool or an OpenAI-compatible key |
| browser-cdp | /browser-cdp | no | Lets the assistant drive a copy of your Chrome with your existing logins, for chart pages that need them |

### story-setup
- Asks for: Run it in the folder that holds your manuscript
- Asks for: Which assistant app you use, if it cannot tell
- Gives: Helper agents, checks and reference files copied into the project
- Gives: A managed block in CLAUDE.md or AGENTS.md
- Gives: A .story-deployed marker
- Gives: An install report: what you can do now, what you still need to do
- Say: "/story-setup"

### story-long-write
- Asks for: Genre or premise, platform
- Asks for: Which chapter to write or revise
- Asks for: Word range if you have one
- Gives: 设定/ (settings), 大纲/ (outlines and chapter blueprints), 正文/ (chapters)
- Gives: Updated tracking: context card, clues, character states
- Say: "/story-long-write 写第21章"

### story-short-write
- Asks for: The feeling readers should be left with
- Asks for: Genre direction and platform
- Gives: 设定.md (setting and decisions)
- Gives: 小节大纲.md (section outline)
- Gives: 正文.md (the story)
- Say: "帮我写一篇短篇"

### story-deslop
- Asks for: The chapter or passage
- Asks for: Optional: only check, or only a certain kind of problem
- Gives: Plain-language diagnosis with locations
- Gives: Rewritten wording; story-level changes only as a proposal until you agree
- Say: "这篇太AI了"

### story-import
- Asks for: The manuscript files
- Asks for: Title, genre, platform, how to treat an unfinished chapter
- Gives: 拆文库/{书名}/ analysis
- Gives: Project folders: settings, outlines, chapters, tracking
- Gives: An import report with questions for you to confirm
- Say: "把我的书导进来"

### story-long-analyze
- Asks for: A path to the novel's text file
- Gives: 拆文库/{书名}/ with a deconstruction report, summaries and style notes
- Say: "帮我拆这本书"

### story-short-analyze
- Asks for: The short story text
- Gives: 拆文报告.md, 情节节点.md, 写作手法.md and _meta.json under 拆文库/{书名}/
- Say: "拆这篇短文"

### story-long-scan
- Asks for: Platform, channel (male / female), new books or the whole market, a genre to focus on
- Gives: 扫榜/{date}/ with chart files and a summary (扫榜聚合.md)
- Gives: Genre candidates with risks and a list of books worth taking apart
- Say: "长篇什么火"

### story-cover
- Asks for: Title, pen name, platform
- Asks for: Optional reference image and style wish
- Gives: 封面/封面_vN.png plus the prompt text
- Gives: A cropped _上传 version for platforms with a fixed size (Fanqie 600×800)
- Say: "帮我做个封面"

## Know before installing
- /story-setup writes into your book folder: hook registrations in .claude/settings.local.json, scripts in .claude/hooks/, helper agents, and a managed block in CLAUDE.md or AGENTS.md. Your own entries are kept.
- After setup, a check blocks writing a chapter file when its outline is missing or empty.
- Once a day at session start a hook asks GitHub for the latest release and tells you if there is a new one. STORY_NO_UPDATE_CHECK=1 turns it off.
- browser-cdp copies your Chrome login files (cookies, saved logins) into ~/chrome-debug-profile, opens a debugging port and can close your running Chrome after asking. Its guide also shows how to read a site's login token.
- story-cover outside Codex needs GPT_IMAGE_API_KEY and calls the OpenAI images endpoint (or a compatible proxy you set), which may cost money.
- Start a fresh session after /story-setup and after every update, or the helpers are not loaded.

## Install (official commands)
- Any agent (skills CLI): `npx skills add zenstory-ai/oh-story-claudecode -y -g` — -g installs for every folder; drop it for the current folder only. Then run /story-setup in your book folder ($story-setup in Codex) and start a fresh session. Rerun the same command to update.
- Claude Code (plugin): `claude plugin marketplace add https://github.com/zenstory-ai/oh-story-claudecode` && `claude plugin install oh-story@oh-story-skills` — Commands become /oh-story:story-setup, /oh-story:story dashboard and so on.
- ZCode: Add this repository in Plugin Management and install oh-story.
- Any agent that can import a GitHub skill: Tell it: Install this skill https://github.com/zenstory-ai/oh-story-claudecode

## What runs on the user's machine
- Code on the machine: yes (/story-setup deployments and the skills that call their own scripts)
- Network: yes
- /story-setup: Python helpers merge hook registrations into .claude/settings.local.json (or the Codex / Antigravity / OpenCode / ZCode config) and project instructions into CLAUDE.md / AGENTS.md; copies hooks, agents and references into the project.
- Every session start: Bash hooks print the current book's state and missing pieces. Once per 24 h they curl api.github.com for the latest release (5 s limit) and cache the answer in ~/.claude/.story-update-cache.
- Before Bash / Write / Edit: Blocks a first chapter write when the outline is missing or tracking is invalid; warns on git commit.
- After Write / Edit: Runs a light check on saved prose (truncation, refusals, technical words, repeated lines, AI sentence templates) and adds findings to the chat.
- Before and after context compaction, session end: Print a state summary; session end writes 追踪/session-log.txt only if STORY_SESSION_LOG=1.
- Writing and review skills: Node and Python scripts count length, scan for AI patterns and repetition, and commit chapter state to the tracking files in the book folder.
- /story-long-scan, /story-short-scan: Node scrapers open chart pages on qidian.com, fanqienovel.com, jjwxc.net, qimao.com, ciweimao.com, ishugui.com and zhangwenpindu.cn (most through a Chrome you are logged into) and save results under 扫榜/.
- /browser-cdp: Copies your Chrome profile and login files into ~/chrome-debug-profile and starts Chrome with a debugging port on 127.0.0.1; it asks before closing a running Chrome. Needs agent-browser installed globally with npm.
- /story-cover without Codex's built-in tool: curl to the images endpoint at GPT_IMAGE_BASE_URL (default api.openai.com) with your GPT_IMAGE_API_KEY; downloads a reference image if you give a URL.
- /story dashboard: A Node server on 127.0.0.1 that lets you browse, edit and delete project files in the browser.

## Settings
- `STORY_NO_UPDATE_CHECK`: 1 turns off the daily GitHub release check at session start
- `STORY_SESSION_LOG`: 1 makes the session-end hook append a line to 追踪/session-log.txt
- `GPT_IMAGE_API_KEY`: Key for the cover API fallback
- `GPT_IMAGE_BASE_URL`: Images endpoint (default https://api.openai.com/v1)
- `GPT_IMAGE_MODEL`: default gpt-image-2
- `GPT_IMAGE_SIZE`: default 1024x1536

## Examples (from the pack's own files)
- De-AI check on a passage: prompt "/story-deslop"; without the skill: A hand-made AI-style passage with "不是巧合，而是…" contrasts, a "没有…没有…" list and a chapter end that previews what comes next. The checker finds 8 problems, 7 of them blocking.; with it: The matching passage from chapter 21, written by the skill: the same beat told through visible action and objects. Zero findings, exit 0. (README_EN.md; None, the author's run)
- Continuing a novel at chapter 21: prompt "/story-long-write 写第21章"; without the skill: Tracking said there was no outline for chapter 21 yet, so prose could not be written directly.; with it: The skill wrote the chapter 21 outline first, drafted about 2,068 characters, passed the AI-pattern, repetition and punctuation checks with 0 hits, then updated the context card, clues and character files. (README_EN.md; None, the author's run)
- A /story-deslop checker line: output format defined in README_EN.md

## Author's numbers (as reported, not run by AgentGid)
- The de-AI checker found 8 findings (7 blocking) in a hand-made AI-style sample and zero in the matching passage written by the skill (Author's own demo files). Source: zenstory-ai/oh-story-claudecode/README_EN.md
- Short-form deconstruction of an 8,500-character story yielded 54 plot nodes and 11 technique notes. Source: zenstory-ai/oh-story-claudecode/README_EN.md

## Steps only the person can do
- In Codex, trust the project .codex/ layer, trust the oh-story hooks in /hooks and open a fresh session (docs/hosts_EN.md (Codex section)) Then: The outline guard and post-write checks run on the next session
- Install Node.js if it is missing (Antigravity and ZCode hooks, browser-cdp, check scripts) (https://nodejs.org) Then: The agent reruns /story-setup for that host
- Log in once in your own Chrome to the chart sites that need it, and agree before the agent closes a running Chrome (skills/browser-cdp/SKILL.md) Then: The agent starts the debug Chrome copy and runs the chart scrapers
- Create an OpenAI (or compatible) API key and set GPT_IMAGE_API_KEY, only for covers outside Codex's built-in image tool (https://platform.openai.com/api-keys) Then: The agent runs /story-cover through the API fallback

## Mistakes to avoid
- Not: Keep working in the same session right after installing or running /story-setup. Instead: Start a fresh session after setup and after every update. Why: The helper agents and hooks load only in a new session
- Not: Run $story-setup in Codex and assume the outline-before-prose guard is active. Instead: Open /hooks in Codex, trust the oh-story hooks, then start a fresh session. Why: Codex skips untrusted hooks silently, with no error
- Not: Expect the same hard checks in OpenClaw, Reasonix or a generic agent. Instead: On these hosts treat the outline and tracking checks as instructions the agent may skip, and review chapters yourself. Why: These hosts get skills only, without the hooks that block writes
- Not: Let the cover skill switch to the paid image API when the built-in Codex tool fails. Instead: Report the built-in tool's error first; use the API fallback only on purpose, with your own key. Why: The fallback calls a paid images endpoint with GPT_IMAGE_API_KEY
- Not: Run OpenCode deployment on OpenCode 1.x. Instead: Upgrade to OpenCode 2.x first, then rerun /story-setup. Why: 1.x cannot load the prose-guard plugin, so setup stops

## What leaves the machine
- A request for the latest release version (no story text) → api.github.com, At session start, at most once every 24 hours, after /story-setup. Opt out: Set STORY_NO_UPDATE_CHECK=1
- The cover prompt (title, pen name, style) and an optional reference image → The images endpoint at GPT_IMAGE_BASE_URL (default api.openai.com), /story-cover when Codex's built-in image tool is not used. Opt out: Use Codex's built-in image tool, or skip /story-cover
- Page requests made from your logged-in Chrome session → Chart pages on qidian.com, fanqienovel.com, jjwxc.net, qimao.com, ciweimao.com and short-story sites, /story-long-scan and /story-short-scan. Opt out: Do not run the scan skills

## Lines in the pack aimed at agents (ask the person first)
- "`agent-browser` 已安装：`npm install -g agent-browser`" (skills/browser-cdp/SKILL.md): A global npm install of a browser-automation CLI; ask the person before installing it
- "agent-browser --cdp 9222 eval 'localStorage.getItem("token") || document.cookie'" (skills/browser-cdp/SKILL.md): Reads login tokens and cookies from the person's browser session; never do this without the person asking for it
- "`codex exec` in automation can pass `--dangerously-bypass-hook-trust`." (docs/hosts_EN.md): Bypasses Codex's hook trust check; the person should review and trust the hooks instead
- "Requires **OpenCode 2.x** (`curl -fsSL https://opencode.ai/v2/install | bash` or `npm i -g @opencode/cli`)." (docs/hosts_EN.md): Piping a remote script into bash or a global install changes the person's machine; ask first

## May I use it like this?
- commercial-app: yes (MIT: keep the license notice)
- redistribute-files: yes (MIT: keep the copyright and permission notice in copies)
- client-work: yes (MIT allows use in work for others)

## Which one to pick
- If You want the full Chinese web-fiction pipeline (chart scanning, deconstruction, long and short writing, continuity tracking, de-AI editing, covers): skill:zenstory-ai/oh-story-claudecode
- If You want a lighter kit that generates a complete 10 to 50 chapter Chinese novel from a question-and-answer start: skill:PenglongHuang/chinese-novelist-skill
- If You only need to strip AI-sounding phrasing from Chinese text, without a novel workflow: skill:op7418/Humanizer-zh

## Works well with
- agent:claude-code: Installs as a Claude Code plugin with hooks and seven helper agents
- agent:openai-codex: Codex finds all 13 skills and $story-setup deploys hooks and agents for it
- tool:agent-browser: browser-cdp and the chart scrapers drive Chrome through agent-browser
- api:openai-gpt-image: story-cover's API fallback calls the OpenAI images endpoint

## Works in and needs
- Works in Claude Code: plugin, or skills CLI plus /story-setup
- Works in Codex: skills folder plus $story-setup (hooks and agents in .codex/)
- Works in Google Antigravity: skills, agents and hooks in .agents/ via story-setup
- Works in OpenCode 2.x: skills plus a prose-guard plugin via story-setup
- Works in ZCode: plugin
- Works in OpenClaw: skills folder (no hooks)
- Works in Reasonix: skills folder or native plugin (no hooks)
- Works in Any agent that reads project files: AGENTS.md plus skills/ (generic)
- Needs Node.js: Check scripts, the dashboard and the Antigravity and ZCode hooks run on Node
- Needs Python 3: /story-setup merges settings and project instructions with Python helpers
- Needs Google Chrome, Node.js 20+ and agent-browser: Only for browser-cdp and the chart scrapers that need a logged-in browser
- Needs GPT_IMAGE_API_KEY (OpenAI or compatible), curl, jq: Only for /story-cover outside Codex's built-in image tool

## How to tell it works
Install, run /story-setup in an empty folder and start a new session. Then say: "I want to start a new 〈genre〉 book. Plan only a bounded opening and do not draft prose." The assistant should come back with a central conflict, changes across the first three chapters and the decisions it leaves to you, and create a book folder with 设定/ and 大纲/.

## Related
- zenstory-ai/drama-skills
- zenstory-ai/novel-to-game
- zenstory-ai/video-recap-skills
- zenstory-ai/oh-story-dsh
- zenstory-ai/zenstory
- wen1701/FanqieRankTracker
- Sophomoresty/zhuque

## Safety
/story-setup adds hooks that run shell scripts in your book folder on every session start, before writes and after writes; read skills/story-setup/references/templates/hooks/ first. browser-cdp copies your Chrome cookies and saved logins into ~/chrome-debug-profile and opens a debugging port; delete that folder when you no longer need it. The chart scrapers act inside your logged-in browser on third-party sites; check each site's terms.
