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/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.
<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="Reviewed on agentmods" width="80" 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.5 | $0.00297 | $0.00297 |
| Sonnet 5.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 2mo 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.
- 2mo 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 (28 stars, last pushed 6mo ago), licensed MIT. It adds 742 tokens to every session, about $0.0030 per session on Opus 5.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.
ba-storybook CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ba-storybook CLAUDE.mdHePudding/ba-storybook | Instructions file | 28 | 6mo ago | MIT | A | 742 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,649 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |