
- Installs
- 574
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/lingfengqaq/webnovel-writer --skill webnovel-learn- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads webnovel-learn automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
/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。
成功标准
project_memory.json存在且格式合法,新 pattern 已追加到patterns数组。- 输出包含
status: success和完整learned对象。
失败恢复
| 故障 | 恢复方式 |
|---|---|
project_memory.json 不存在 | 脚本自动初始化 {"patterns": []} 后继续 |
| JSON 解析失败 | 不写入脏数据,告知用户文件损坏并建议手动修复 |
state.json 缺失无法取章节号 | 用 source_chapter: null,不阻断 |
FAQ
What does the webnovel-learn skill do?
从当前会话提取成功写作模式并写入 projectmemory.json
How do I install webnovel-learn?
Run npx skills add https://github.com/lingfengqaq/webnovel-writer --skill webnovel-learn in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/webnovel-learn/ (personal) or .claude/skills/webnovel-learn/ (project).
Which AI agents can use webnovel-learn?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is webnovel-learn safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains webnovel-learn?
It is published by lingfengqaq in lingfengqaq/webnovel-writer. It has 574 recorded installs.
More from lingfengqaq/webnovel-writer
webnovel-review
lingfengqaq/webnovel-writer
使用审查 Agent 评估章节质量,生成报告并写回审查指标。
webnovel-plan
lingfengqaq/webnovel-writer
基于总纲生成卷纲、时间线和章纲,并把新增设定增量写回现有设定集。
webnovel-init
lingfengqaq/webnovel-writer
深度初始化网文项目。通过分阶段交互收集完整创作信息,生成可直接进入规划与写作的项目骨架与约束文件。
webnovel-query
lingfengqaq/webnovel-writer
查询项目设定、角色、力量体系、势力、伏笔等信息。支持紧急度分析与金手指状态查询。
webnovel-dashboard
lingfengqaq/webnovel-writer
启动只读小说管理面板,查看项目状态、实体图谱与章节内容。
Popular education & science skills
teach
mattpocock/skills
Teach the user a new skill or concept, within this workspace.
scaffold-exercises
mattpocock/skills
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
paper-context-resolver
lllllllama/rigorpilot-skills
Rigor Paper Context helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacing README guidance by default.
caveman-learn
juliusbrussee/caveman
Act on a Caveman learn report - review the ranked token sinks, apply cost-lowering fixes with per-edit consent, and report what those fixes returned. Use when asked to lower an agent's token cost, what caveman has saved, to trim a heavy CLAUDE.md, or to offload re-pasted context into cavemem.
gsap-plugins
greensock/gsap-skills
Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG drawing, or plugin registration.
teach-impeccable
pbakaus/impeccable
DEPRECATED: Use /impeccable teach instead. This command has been folded into the impeccable skill.