ai-novelist: Instructions file for Claude Code

CLAUDE.md

ai-novelist CLAUDE.md is an instructions file for Claude Code from YuppyChen/ai-novelist. It costs 1,442 tokens per session, scanned A, original, MIT.

Project instructions for an AI-assisted Chinese novel writing workspace. They describe its writing, analysis, document-generation, planning, and reader-building skills, along with its Python setup and project structure.

In plain words
What is it for?
Use them to plan and write Chinese novel chapters, check word counts, analyze stories and characters, remove signs of machine-written prose, create Word documents, and build a single-file HTML reader.
Why use it?
They give an AI assistant the conventions and commands needed to work on the novel project without guessing how chapters, scripts, dependencies, or generated readers are handled.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is YuppyChen/ai-novelist's own configuration. It tells Claude Code how to work on ai-novelist 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 ai-novelist configures →

Reuse

Borrowing it

Nothing to install: this file belongs to YuppyChen/ai-novelist. 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/YuppyChen/ai-novelist/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/YuppyChen/ai-novelist

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 ai-novelist CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yuppychen/ai-novelist/claude-md/github.svg)](https://agentmods.dev/instructions/yuppychen/ai-novelist/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/yuppychen/ai-novelist/claude-md"><img src="https://agentmods.dev/badge/instructions/yuppychen/ai-novelist/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 ai-novelist CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/yuppychen/ai-novelist/claude-md"><img src="https://agentmods.dev/badge/instructions/yuppychen/ai-novelist/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,442 This file is loaded in full into every session.
When invoked 1,442 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.01442 $0.01442
Opus 5 $0.00721 $0.00721
Sonnet 5 $0.00288 $0.00288
Haiku 4.5 $0.00144 $0.00144

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

Security

Grade A, and why

ai-novelist 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 11d 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 · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 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.

项目概述

这是一个 AI 辅助中文小说创作工作站,集成多个 Claude Code Skills,支持从大纲规划到成稿输出的完整创作流程。

核心技能 (Skills)

项目集成了以下 Claude Code Skills,通过 /skill-name 调用:

  • chinese-novelist - 分章节创作中文小说(3000-5000字/章)
  • humanizer-zh - 去除 AI 生成痕迹,24 种模式检测
  • novelist-analyst - 叙事结构分析和角色弧光评估
  • docx - Word 文档生成和编辑
  • planning-with-files - 文件化任务规划(task_plan.md, findings.md, progress.md)
  • frontend-design - 前端界面设计(用于阅读器等)

Python 环境

必须使用 uv 运行所有 Python 脚本:

# 添加依赖
uv add <package-name>

# 执行脚本
uv run <script.py>

Python 版本要求:>= 3.12

关键脚本

字数检查

# 检查单章
uv run .claude/skills/chinese-novelist/scripts/check_chapter_wordcount.py novels/<小说名>/第01章.md

# 检查全部章节
uv run .claude/skills/chinese-novelist/scripts/check_chapter_wordcount.py --all novels/<小说名>

阅读器生成

每个小说目录下有 build_reader.py,用于生成单文件 HTML 阅读器:

cd novels/<小说名>
uv run build_reader.py

项目结构

novelist-test/
├── novels/                    # 小说作品目录
│   └── <小说名>/
│       ├── 00-大纲.md         # 故事概述、章节规划
│       ├── 01-人物档案.md     # 主角、反派、配角档案
│       ├── 02-风格参考手册.md # 仿写风格分析(可选)
│       ├── 03-审查报告.md     # 质量审查结果(可选)
│       ├── 第01章.md          # 章节正文
│       ├── build_reader.py    # 阅读器生成脚本
│       └── reader.html        # 生成的阅读器
├── references/                # 仿写参考作品
│   └── *.txt                  # 参考小说原文
├── qimao/                     # 七猫平台相关资料
├── .claude/skills/            # Claude Code Skills
└── pyproject.toml             # Python 依赖配置

创作工作流

标准创作流程(3 阶段)

  1. 阶段 1:规划 - 使用 chinese-novelist 生成大纲和人物档案
  2. 阶段 2:创作 - 使用 chinese-novelist 逐章创作,每章 3000-5000 字
  3. 阶段 3:润色 - 使用 humanizer-zh 去除 AI 痕迹

仿写工作流(6 阶段)

  1. Phase 1:拆书分析 - 分析参考作品风格 → 02-风格参考手册.md
  2. Phase 2:骨架搭建 - 使用 chinese-novelist 生成大纲和人物档案
  3. Phase 3:逐章创作 - 使用 chinese-novelist 串行执行,短剧爽文节奏(2500-3500字/章)
  4. Phase 4:润色去AI - 使用 humanizer-zh 检测,可并行处理
  5. Phase 5:质量审查 - 8 维度评分 + 连贯性检查
  6. Phase 6:输出成稿 - 合并章节 + 生成 Word 文档

Read the full file on GitHub · 145 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. 11d ago First seen · 145 lines · 1,442 tokens per session scan A c6d9c6144253

Subscribe to this mod's changes

ai-novelist CLAUDE.md is an instructions file published in the GitHub repository YuppyChen/ai-novelist (92 stars, last pushed 4mo ago), licensed MIT. It adds 1,442 tokens to every session, about $0.0072 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

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 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

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