
Webnovel Learn
Extracts reusable writing patterns from the current session into a project's project_memory.json file.
- skills.sh installs
- 619
- GitHub stars
- 8K
- last updated
- Aug 21, 2026
What it does
- Covers pattern types hook, pacing, dialogue, payoff, emotion, format, and other, taken from user-approved writing choices or supplied text
- Runs
webnovel.py project-memory add-patternwith--pattern-type,--description,--category, and--importanceflags, so no JSON is hand-written - Enforces append-only storage and skips exact duplicates of an existing
pattern_typeanddescription, while keeping partial matches - Requires a project root containing
.webnovel/state.jsonand tags each entry with the current chapter number when it is available
Install
$ npx -y skills add lingfengqaq/webnovel-writer --skill webnovel-learn -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
/webnovel-learn
Project Root Guard(必须先确认)
- 必须在项目根目录执行(需存在
.webnovel/state.json) - 用统一入口解析项目根,避免写错目录:
export WORKSPACE_ROOT="${CLAUDE_PROJECT_DIR:-$PWD}"
export SCRIPTS_DIR="${CLAUDE_PLUGIN_ROOT:?}/scripts"
export PROJECT_ROOT="$(python -X utf8 "${SCRIPTS_DIR}/webnovel.py" --project-root "${WORKSPACE_ROOT}" where)"
目标
提取可复用的写作模式(钩子/节奏/对话/微兑现等),追加到 .webnovel/project_memory.json。
执行流程
- 读取
"$PROJECT_ROOT/.webnovel/state.json"的progress.current_chapter作为当前章节号;缺失则用source_chapter: null,不阻断。 - 解析用户输入(
/webnovel-learn后的经验文本;为空则取本次对话中用户认可的写法),归类pattern_type(hook/pacing/dialogue/payoff/emotion/format/other,无法归类用other)。 - 调用
project-memory add-pattern写入,不得手写或拼接 JSON:
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}"
约束
- 不删除旧记录,仅追加。
- 追加前扫描已有
patterns;pattern_type+description完全相同则跳过并告知用户,部分相似不去重。 - 禁止使用
Write或手工编辑.webnovel/project_memory.json。
成功标准
Details
- Repository
- github.com/lingfengqaq/webnovel-writer
- Categories
- Writing & Content, Memory & Context
- First seen
- Jun 3, 2026
More from lingfengqaq/webnovel-writer
All 6Similar to Webnovel Learn
More Writing & Content
webnovel-querySkilllingfengqaq/webnovel-writer654 installsRead-only query skill that searches project settings, characters, power systems, factions, and foreshadowing, routing each query to the narrowest memory tool.
webnovel-initSkilllingfengqaq/webnovel-writer719 installsDeep-mode project initializer for web novels that collects story details in stages before generating the project skeleton and constraint files.
writing-fragmentsSkillmattpocock/skills545.9K installsCapture raw writing fragments in one markdown file, with no structure imposed until later.
wikiSkillyeachan-heo/oh-my-claudecode685 installsPersistent markdown wiki that ingests, queries, lints, and captures project knowledge across sessions.
Mneme MemoryMCP serverslow-stack252 starsPersistent cross-session memory for AI coding agents, stored in a local SQLite database.
A Mem McpMCP serverdiaaaj35 starsPersistent Zettelkasten-style memory store for coding agents, with semantic and graph search.