Borrowing it
Nothing to install: this file belongs to HePudding/ba-storybook. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/HePudding/ba-storybook/main/CLAUDE.mdgit clone --depth 1 https://github.com/HePudding/ba-storybookWrote 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.
[](https://agentmods.dev/instructions/hepudding/ba-storybook/claude-md)<a href="https://agentmods.dev/instructions/hepudding/ba-storybook/claude-md"><img src="https://agentmods.dev/badge/instructions/hepudding/ba-storybook/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00742 | $0.00742 |
| Opus 5 | $0.00371 | $0.00371 |
| Sonnet 5 | $0.00148 | $0.00148 |
| Haiku 4.5 | $0.00074 | $0.00074 |
Grade A, and why
ba-storybook 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 8d 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.
What it actually says
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
语言
始终使用简体中文与用户交流。所有文档使用简体中文。
常用命令
# 剧情文本生成管线
python3 -m utils.build_manifest # 重建 manifest.json(GroupId 分类)
python3 -m utils.generate_all # 生成全部 7 类剧情 Markdown
python3 -m utils.build_readme # 重建 ba-stories/README.md 和统计
# 翻译表管线
python3 -m utils.build_translation_table # 从游戏数据提取 JP→CN
python3 -m utils.build_gaps # 找出缺失条目
python3 -m utils.merge_translations # 合并所有来源(优先级:game_data_tw > moegirl > gamekee)
python3 -m utils.build_md_report # 生成 翻译对照表.md
# 冒烟测试
python3 -m utils._smoke_test
所有模块通过 python3 -m utils.<module> 运行,不要直接 python3 utils/<module>.py。
架构概览
两条独立管线:
剧情提取管线:raw-data/Excel (JP JSON) → load_data.py (加载+索引) → parse_dialogue.py (ScriptKr 指令解析) → format_markdown.py (Markdown 输出) → generate_all.py (调度 7 类生成) → ba-stories/ (2022 个 Markdown 文件)
翻译表管线:raw-data-global/Excel (Tw 字段,繁中) → build_translation_table.py (初始提取) → build_gaps.py (缺失识别) → 外部补全 (moegirl/gamekee JSON) → merge_translations.py (合并+繁转简) → translation_table.json
关键设计决策
- 数据源结构:Excel JSON 都包在
{"DataList": [...]}里,加载时需要 unwrap。load_translation.py和load_data.py都处理了这一点。 - 角色名解析:ScriptKr 用韩语角色名,需通过
ScenarioCharacterNameExcelTable映射到日语。无法匹配时用子串回退(如 "통신아로나" 包含 "아로나" → "アロナ"),最终兜底为NPC_<id>。 - 繁简转换:翻译表的主要来源是 global 分支的 Tw 字段(繁体中文),通过
opencc的t2s配置转为简体中文。转换在merge_translations.py的_convert_all_to_sc()中执行。 - 社团名/活动名:大部分社团名和全部活动名不在 Excel 表中(存在于 UI AssetBundle),需从萌娘百科/GameKee 外部补全。
- 目录名是日语:
ba-stories/下的子目录名(主線、イベント 等)是日语,这是实际文件夹名,不要改。
外部依赖
唯一的第三方包是 opencc-python-reimplemented(繁转简)。其余全部使用标准库。
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.
- 8d ago First seen · 48 lines · 742 tokens per session scan A e35ad0f9fb46
ba-storybook CLAUDE.md is an instructions file published in the GitHub repository HePudding/ba-storybook (13 stars, last pushed 4mo ago), licensed MIT. It adds 742 tokens to every session, about $0.0037 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.
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.
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.
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).
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).
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.
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.