🎯

webnovel-learn

🎯Skill

from lingfengqaq/webnovel-writer

VibeIndex|
What it does

Extracts and learns writing patterns from the current conversation, appending them to the project's memory for future reference.

📦

Part of

lingfengqaq/webnovel-writer(7 items)

webnovel-learn

Installation

git cloneClone repository
git clone https://github.com/lingfengQAQ/webnovel-writer.git .claude
pip installInstall dependencies
pip install -r .claude/scripts/requirements.txt
PythonRun Python server
python -m data_modules.index_manager process-chapter --chapter 1 --project-root "."
PythonRun Python server
python -m data_modules.index_manager get-debt-summary --project-root "."
PythonRun Python server
python -m data_modules.index_manager get-recent-review-metrics --limit 5 --project-root "."

+ 2 more commands

📖 Extracted from docs: lingfengqaq/webnovel-writer
3Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

从当前会话提取成功模式并写入 project_memory.json

Overview

# /webnovel-learn

Project Root Guard(必须先确认)

  • 必须在项目根目录执行(需存在 .webnovel/state.json
  • 若当前目录不存在该文件,先询问用户项目路径并 cd 进入
  • 进入后设置变量:$PROJECT_ROOT = (Resolve-Path ".").Path

目标

  • 提取可复用的写作模式(钩子/节奏/对话/微兑现等)
  • 追加到 .webnovel/project_memory.json

输入

```bash

/webnovel-learn "本章的危机钩设计很有效,悬念拉满"

```

输出

```json

{

"status": "success",

"learned": {

"pattern_type": "hook",

"description": "危机钩设计:悬念拉满",

"source_chapter": 100,

"learned_at": "2026-02-02T12:00:00Z"

}

}

```

执行流程

  1. 读取 "$PROJECT_ROOT/.webnovel/state.json",获取当前章节号(progress.current_chapter)
  2. 读取 "$PROJECT_ROOT/.webnovel/project_memory.json",若不存在则初始化 {"patterns": []}
  3. 解析用户输入,归类 pattern_type(hook/pacing/dialogue/payoff/emotion)
  4. 追加记录并写回文件

约束

  • 不删除旧记录,仅追加
  • 避免完全重复的 description(可去重)