woke_novel: Instructions file for Claude Code

CLAUDE.md

woke_novel CLAUDE.md is an instructions file for Claude Code from keyboardgdy/woke_novel. It costs 3,733 tokens per session, scanned A, original, MIT.

Repository instructions for woke_novel, a workflow tool that uses Claude CLI or Codex CLI to help an author write Chinese web fiction. It records the author’s decisions and runs writing steps in a fixed pipeline.

In plain words
What is it for?
Use them when changing the workflow runner, project setup, narrative contract, templates, command-line modes, session handling, or the files that define writing principles and system prompts.
Why use it?
They preserve the author’s narrative requirements and keep the workflow’s runner, path handling, project state, and writing stages consistent.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

This is keyboardgdy/woke_novel's own configuration. It tells Claude Code how to work on woke_novel itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything woke_novel configures →

Reuse

Borrowing it

Nothing to install: this file belongs to keyboardgdy/woke_novel. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/keyboardgdy/woke_novel/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/keyboardgdy/woke_novel

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for woke_novel CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/keyboardgdy/woke_novel/claude-md/github.svg)](https://agentmods.dev/instructions/keyboardgdy/woke_novel/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/keyboardgdy/woke_novel/claude-md"><img src="https://agentmods.dev/badge/instructions/keyboardgdy/woke_novel/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for woke_novel CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/keyboardgdy/woke_novel/claude-md"><img src="https://agentmods.dev/badge/instructions/keyboardgdy/woke_novel/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,733 This file is loaded in full into every session.
When invoked 3,733 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03733 $0.03733
Opus 5 $0.01867 $0.01867
Sonnet 5 $0.00747 $0.00747
Haiku 4.5 $0.00373 $0.00373

Measured 9d ago against content hash 2e9f0afab6c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

woke_novel CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

项目定位

woke_novel 是一个作者掌舵、驱动 Claude CLI / Codex CLI 写中文网文的工作流工具。运行器先用单问题访谈把作者欲望锁进 00_baseline/作者叙事契约.json,再按流水线顺序调用模型,让后续产物服从这份契约。

内容原则集中在 steps/00 小说性与题材校准.md,执行契约集中在 steps/00 系统提示词.md;修改模板前再结合 steps/00 流程编排.md。创作步骤只加载这一份内容原则,避免多份负面规则叠加。

三层架构

文件分工:

  • workflow_runner.pyWorkflowRunnerworkflow_runner.py:62)+ STEP_FILES/STEP_NAMESworkflow_runner.py:17,39)+ 日志/session 调度。
  • path_resolver.pyPathResolver.resolve()path_resolver.py:61)做模板变量替换,STEP_FILE_MAPpath_resolver.py:16)必须与 STEP_FILES 同步维护。
  • project_info.pyProjectInfo 读 / 写 projects/<name>/.project_info.json,是断点依据。
  • narrative_contract.py — 持久化作者原话和八项逐题裁决;契约未锁定时所有创作步骤 fail-closed。
  • project_structure.py — 项目首次构造时自动建出 00_baseline/ ~ 04_characters/ 6 个子目录(project_structure.py:13)。
  • run_workflow.py — 顶层 CLI(init / loop / continue / single / session)。
  • cli.pyrun_workflow.py init 用的交互式提示模块(ask_genre / ask_project_name / ask_user_description / print_banner),所有 loop / continue 跑前都会先调它。
  • menu.py(+ menu.bat)— 交互式菜单,封装 single / full_loop / continue 三种入口。

每个步骤都走同一条三段管线:

  1. 模板加载path_resolver.PathResolver.load_step_template()path_resolver.py:128)读 steps/<编号 名称>.md
  2. 变量替换WorkflowRunner.resolve_prompt()workflow_runner.py:114)→ PathResolver.resolve()path_resolver.py:61)把 {project}{round}{option_index}{act_num}{ref_works}{prev_act_skeleton} 等替换为绝对路径或值。任何新步骤模板如果要写入文件,路径必须用这些变量,禁止硬编码绝对路径。
  3. CLI 执行WorkflowRunner.execute_step()workflow_runner.py:125)把渲染好的 prompt 写入临时文件,用 claude "@<temp>" --session-id/--resume <uuid> 子进程跑(Windows 上 shutil.which 也会找 claude.cmd/claude.bat),超时 1800s(30 分钟)。每一步日志写到 logs/<name>/<seq>_step_<step>[_A<act>]_R<round>_C<session>.loglogs/projects/ 平级,不再放在项目目录里;老项目里的 projects/<name>/logs/ 保持原样不动)。

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 111 lines · 3,733 tokens per session scan A 2e9f0afab6c6

Subscribe to this mod's changes

woke_novel CLAUDE.md is an instructions file published in the GitHub repository keyboardgdy/woke_novel (15 stars, last pushed 1mo ago), licensed MIT. It adds 3,733 tokens to every session, about $0.0187 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens