zenstory-ai/oh-story-claudecode / skills/story-setup
story-setup
Flagged网文写作工具集基础设施部署与检查。为 Claude Code / OpenCode / Codex / Google Antigravity / ZCode / OpenClaw / Reasonix 提供内置适配;Web AI / 通用 Agent 可走 skills + AGENTS.md 文件模式。触发方式:/story-setup、$story-setup、「准备写书」「帮我搭一下环境」「配置写作项目」「检查写作环境」。
references/agent-references/cross-book-recall.md
View on GitHub---
name: cross-book-recall
description: 多对标跨书召回
---
# 跨书召回
> 谁读:对标登记 ≥2 本时,主会话定设定、出卷纲、出细纲整份读;任务包列在包末按条件读。
## 触发
按 `设定/题材定位.md`「对标登记」的书目数量启用:登记了 ≥2 本才走本文件,登记为无或只登记 1 本时不走;老书没有登记时才按 `对标/`、`拆文库/` 里的书数(≥2 本)启用。先排除当前作品:按项目目录名、`.active-book` 与本书设定识别,排除同名或来源指向当前正文的 `拆文库/{当前书}/` 与历史误建的 `对标/{当前书}/`,它们只是本书自己的导入底稿,不能当跨书样本。主对标取登记的「主对标书」;没填或指向本书时用 `对标/` 下字典序第一本(没有再看 `拆文库/`),并在 `gaps.main_benchmark_unspecified: true` 中提示作者补;登记了的书目录里找不到,停下核对书名,不换书。
> **数量规则**:主对标书最多 1 本,用于文风和最终正文输入;副对标 / 参考对标**不限制登记数量**。执行时按题材相关性、引用强度和阶段预算逐本召回;超过预算时裁剪条目,不删除书目。
## 两条防线
1. 副对标只做结构/设定/情绪补充,不读取、不传入副对标 `文风.md` 或副书原文锚点(正文 prompt 只吃主对标文风/原文锚点 + 预算筛选后的 `副对标召回摘要`)
2. 角色/剧情/设定模块可从所有副对标召回,但须先按相关性、再按引用强度排序,并受每本/总量预算约束
## 跨题材判断
从项目 `设定/题材定位.md`「对标书列表」字段读每本副对标的「题材类型」与「引用强度」(未登记的书按「参考」处理,并输出 `gaps.benchmark_registry_missing: true`):
- 同题材 + 引用强度=辅:全阶段可召回,按每本上限取条目
- 同题材 + 引用强度=参考:只取最相关条目,默认不超过每本上限的一半
- 弱相关:仅设定/大纲,每本 ≤1 条
- 不相关:跳过
排序规则:先按相关性(同题材 > 弱相关),再按引用强度(辅 > 参考),再按用户在 `对标书列表` 中的顺序;若缺少 `对标书列表` 或其中未登记某本书,则剩余副书按目录名/书名 Unicode 字典序稳定排序,并输出 `gaps.benchmark_registry_missing: true` 提示补全清单。副书数量不限;如果总条数超过阶段预算,裁条目不裁书目记录。
## 阶段消费
表中数字为**每本副对标召回上限**;同时设置阶段总预算,防止副书很多时挤爆上下文。
| 阶段 | 读什么 | 同题材每本上限 | 弱相关每本上限 | 阶段总预算 |
|------|---------|----------------|----------------|------------|
| 设定 | `拆文报告.md` | ≤2 | ≤1 | ≤8 |
| 大纲 | `章节/*_摘要.md` + `剧情/*.md` | ≤3 | ≤1 | ≤10 |
| 模块 | `角色/` + `剧情/` + `设定/` | ≤2 | 0 | ≤8 |
| 正文 | `文风.md` + 原文 | 0 | 0 | 0 |
> **大纲阶段按剧情单元检索**:检索键为剧情单元「类型」(第一键,必填枚举)/「桥段标签、套路框架位置」(第二键);同题材内同类命中条目优先进入预算。仅限大纲阶段按剧情单元检索时生效,不改其余阶段排序与预算数字。同类零命中时回退主对标来源条并输出非阻塞 `gaps.similar_plot_not_found: true`,流程继续。
## 输出要求
跨书召回输出必须包含:
```markdown
## 副对标召回摘要
| 书名 | 引用强度 | 相关性 | 召回阶段 | 召回条数 | 使用方式 |
|---|---|---|---|---|---|
| {书名} | 辅/参考 | 同题材/弱相关 | 设定/大纲/模块 | {n} | {用于补充某类结构,不进入文风/原文锚点} |
```
若副书很多,只输出被本阶段实际召回的条目;未召回的副书不代表被删除,只是本阶段预算未命中。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |