with one click
webnovel-learn
从当前会话提取成功模式并写入 project_memory.json
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
从当前会话提取成功模式并写入 project_memory.json
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
番茄写作技巧、番茄风章节、番茄留存约束;Use ONLY when writing or revising Fanqie chapters. Supplements webnovel-write with opener, pacing, dialogue, hook, and retention rules.
将小说章节自动发布到国内主流小说平台(番茄等)。触发条件:"发布小说"、"发布章节"、"上传到番茄"、"自动发布"、"清理草稿"、"发布草稿"。
七猫写作技巧、七猫风章节、七猫留存与签约约束;Use ONLY when writing or revising Qimao chapters. Supplements webnovel-write with opener, pacing, hook, expectation, character, and content-audit rules.
使用审查 Agent 评估章节质量,生成报告并写回审查指标。
产出可发布章节,完整执行上下文→起草→审查→润色→提交→备份。
深度初始化网文项目。通过分阶段交互收集完整创作信息,生成可直接进入规划与写作的项目骨架与约束文件。
| name | webnovel-learn |
| description | 从当前会话提取成功模式并写入 project_memory.json |
| compatibility | opencode |
.webnovel/state.json)export WORKSPACE_ROOT="${PWD}"
export SCRIPTS_DIR="${PWD}/.opencode/scripts"
export PROJECT_ROOT="$(python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${WORKSPACE_ROOT}" where)"
test -n "$PROJECT_ROOT" && test -f "${PROJECT_ROOT}/.webnovel/state.json" || { echo "❌ PROJECT_ROOT 解析失败"; exit 1; }
.webnovel/project_memory.json"$PROJECT_ROOT/.webnovel/state.json",获取当前章节号(progress.current_chapter)python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${PROJECT_ROOT}" project-memory add-pattern \
--pattern-type "{pattern_type}" \
--description "{用户输入或提炼后的完整描述}" \
--category "{分类,可空}" \
--importance "{high|medium|low}"
脚本会自动读取/初始化 .webnovel/project_memory.json,并用 JSON 序列化写回,自动转义英文双引号、换行等字符。
pattern_type + description 完全相同则跳过Write 或手工编辑 .webnovel/project_memory.jsonproject_memory.json 存在且格式合法patterns 数组status: success 和完整 learned 对象| 故障 | 恢复方式 |
|---|---|
project_memory.json 不存在 | 自动初始化 {"patterns": []} 后继续 |
| JSON 解析失败 | 不写入脏数据,告知用户文件损坏并建议手动修复 |
state.json 缺失导致无法获取章节号 | 使用 source_chapter: null,不阻断 |
| 用户输入无法归类 | 使用 pattern_type: "other",不阻断 |