zjs105910/workbuddy-market / bundled/novel-writing-suite/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/codex/AGENTS.md.tmpl
View on GitHub# {项目名} — 网文写作工具集(Codex)
## Skill 路由表
Codex CLI 中优先通过 `$skill-name` 或 `/skills` 调用;自然语言也可触发对应 skill。
| 命令/意图 | Skill | 说明 |
|------|-------|------|
| `$story-long-write`、写长篇 | story-long-write | 长篇网文写作(逐章推进) |
| `$story-short-write`、写短篇 | story-short-write | 短篇网文写作(情绪驱动) |
| `$story-long-analyze`、长篇拆文 | story-long-analyze | 长篇小说深度拆解 |
| `$story-short-analyze`、短篇拆文 | story-short-analyze | 短篇小说拆文分析 |
| `$story-long-scan`、长篇扫榜 | story-long-scan | 长篇小说榜单与市场趋势 |
| `$story-short-scan`、短篇扫榜 | story-short-scan | 短篇小说榜单与情绪风口 |
| `$story-deslop`、去 AI 味 | story-deslop | 去除 AI 写作痕迹 |
| `$story-cover`、封面 | story-cover | 生成封面图 |
| `$story-review`、审查 | story-review | 多视角对抗式审查 |
| `$story-import`、导入 | story-import | 逆向导入已有小说到项目结构 |
| `$story`、网文 | story | 工具箱路由 · 模糊意图自动分发 |
| `$story-setup`、准备写书 | story-setup | 环境部署 · hooks/agents/AGENTS.md 一键部署 |
| `$browser-cdp` | browser-cdp | 浏览器 CDP 工具 |
## 文件结构
- `拆文库/` — 拆文分析结果存放目录
- `{书名}/正文/` — 长篇小说正文章节
- `{书名}/正文.md` — 短篇小说正文
- `{书名}/设定/` — 角色设定、世界设定
- `{书名}/大纲/` — 卷纲、细纲
- `{书名}/追踪/` — `_tracking-state.json` 唯一结构化权威、固定 7 栏 `上下文.md` 续写状态卡、逐章紧凑记录、核心角色独立派生快照、伏笔当前视图、作者与读者双时间线;全部通过追踪工具生成
- `{书名}/对标/` — 对标作品分析
## Codex 项目约定
- Codex custom agents 部署在 `.codex/agents/*.toml`,需要新开 Codex 会话后才会稳定可用。
- Codex hooks 部署在 `.codex/hooks.json` 和 `.codex/hooks/`;项目 `.codex/` 层需要被信任,非 managed hooks 还需要在 `/hooks` 中 review/trust 后才会运行。
- 写正文前必须先有对应大纲:长篇 `大纲/细纲_第N章*.md`,短篇 `小节大纲.md`。Codex hooks 会做机械守卫,但 skill 流程本身也必须遵守。
- Compact 后优先读取 `{书名}/追踪/上下文.md` 恢复当前写作状态。
## 协作规则
Agent 间的协调关系由 `.codex/agents/*.toml` 的职责边界描述定义,不需要独立协调规则文件。
## 与作者协作
- 回复和报告用写书的话说(书、章、大纲、设定),不向作者抛脚本名、字段名或状态名;只有报错时才附原始报错。skill 里标着 `<!-- author-report -->` 的模板块只是格式参考,回复时直接输出其中的文字,不带代码块围栏。
- 作者要求记住、忘掉或确认一条写作习惯/偏好时(如「记住:这本书对话用直角引号」),走 story skill 的「作者记忆」,由它的脚本写入 `.story/作者记忆/`;不要存进编程工具自带的记忆。一次性要求直接照做,不记录。
- 不修改项目里已安装的 skill 文件(`SKILL.md`、`references/`、`scripts/`;story-setup 重新部署时覆盖除外)。skill 脚本报错时停下,把报错和所执行的命令告诉作者,不自行修补绕过。
## Compact 后恢复上下文
写作中的关键上下文:
1. 当前写作项目名称和进度
2. 最近讨论的角色设定变更
3. 未完成的伏笔列表
4. 当前章节的情绪/节奏目标
如果存在 `{书名}/追踪/上下文.md`,compact 后首先读取该文件恢复上下文。
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: 322k | 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: 322k | 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: 322k | Updated | Claude CodeCodex | Verified | Install |