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/deploy-reasonix.md
View on GitHub# Reasonix 部署
`target_cli` 含 `reasonix` 时,由 SKILL.md Phase 2 完整读取并依次执行本文件。路径检查、幂等重跑、残留清理、部署标记、模板占位符、项目指令合并和报告遵循 SKILL.md 的公共规则。
## 部署清单(机械可检查)
| Source path | Target path | Owner class | Merge mode | Validation check |
|-------------|-------------|-------------|------------|------------------|
| `skills/story-setup/references/reasonix/AGENTS.md.tmpl` | `AGENTS.md` | user+managed | managed block merge | contains Reasonix story skill routing sections and solo/direct fallback |
| repository `skills/{browser-cdp,story*}/` | `skills/{browser-cdp,story*}/` | story-setup managed for known skill names | replace known skill dirs only | 14 `SKILL.md` files exist; OpenClaw-compatible frontmatter |
| repository `skills/story-setup/references/agent-references/` | 随上一行整份 skill 拷贝落地,本行 no-op | story-setup managed | 不单独复制 | every reference resolves |
## Reasonix skills-only 部署算法
Reasonix(DeepSeek-Reasonix CLI)项目部署只含 skills 与 `AGENTS.md`,不部署 hooks/custom agents(原生插件用根 `reasonix-plugin.json` Manifest v2:`apiVersion: "reasonix.io/plugin/v2"`;hooks 与子代理留待后续阶段)。
1. 复制仓库当前 `skills/` 下所有含 `SKILL.md` 的 story skill 目录(14 个:`browser-cdp` 与 `story*`)到目标项目 `skills/{skill-name}/`;仅替换这些 story-setup 管理的已知 skill 目录(`status: safe` 时按 SKILL.md 先清理各已知目录内源端已删除的旧文件),保留用户其他目录。项目副本是整份 skill 拷贝,agent references 只使用当前规范前缀 `skills/`。
2. 在项目根创建 `.agents/skills → ../skills` 相对 symlink(与 Codex 共用的 skill root),使 Reasonix 原生扫描 `.agents/skills` 时发现这些 skill;若已是指向 `skills/` 的 symlink 则保留,若被占用为普通目录则不覆盖并在安装报告提示。Windows 未启用 symlink 时跳过本步,改用安装源仓库根的 `reasonix-plugin.json` 执行 `reasonix plugin install`。
3. 用 `skills/story-setup/references/reasonix/AGENTS.md.tmpl` 按 SKILL.md「项目指令合并」写入项目 `AGENTS.md`(`--host reasonix`)。
4. `.story-deployed` 的 `target_cli` 写入 `reasonix` 或多端组合;`references_dir` 对 Reasonix 写 `skills/story-setup/references/agent-references`。
5. 安装报告提示项见下方「安装报告必须提示」。
## 验证
- 检查 `AGENTS.md` 含 Reasonix story skill routing sections 与 solo/direct fallback 说明
- 检查 `skills/` 下 14 个 story skill 目录存在,且每个 `SKILL.md` 可读
- 检查项目 `.agents/skills` 为指向 `skills/` 的 symlink(POSIX;使 Reasonix 原生扫描发现 skill);Windows 未建 symlink 时确认能从安装源仓库执行 `reasonix plugin install`,使用其根 `reasonix-plugin.json`
- 按源目录相对路径核对 `skills/story-setup/references/agent-references/`,含子目录
## 安装报告必须提示
Reasonix 当前是 skills-only;未部署 Reasonix hooks/custom agents,写正文前大纲守卫、commit 提醒、session/compact 自动注入只作为 skill 内软约束,涉及专业 Agent 的 Skill 走 solo/direct fallback;可用 `reasonix doctor capabilities` 校验 skill 发现,部署后如未显示新 skills,新开 Reasonix session 或从安装源仓库根的 `reasonix-plugin.json` 走原生 plugin 安装。
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 |