
Webnovel Query
This queries story elements in Chinese web novel projects by reading from a structured memory system. It routes questions about characters, power systems, factions, or plot threads to the right data sources, prioritizing a contract-based hierarchy: master settings, volume and chapter contracts, committed chapters, then falling back to state.json and markdown files. The skill includes temporal queries so you can ask what a character's status was at chapter N. It's read-only and explicitly protects the project root from accidental writes. If you're managing a web novel with complicated world-building across hundreds of chapters and need to keep track of foreshadowing or power level consistency, this gives you structured lookups instead of grepping through files.
- skills.sh installs
- 641
- GitHub stars
- 7.9K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add lingfengqaq/webnovel-writer --skill webnovel-query --agent claude-codeInstalls into .claude/skills of the current project.
Files
Information Query Skill
Use when
用户询问关于故事设定、角色、力量体系、势力、伏笔、金手指、节奏等项目内信息时触发。
项目根保护
export WORKSPACE_ROOT="${CLAUDE_PROJECT_DIR:-$PWD}"
export SCRIPTS_DIR="${CLAUDE_PLUGIN_ROOT}/scripts"
export SKILL_ROOT="${CLAUDE_PLUGIN_ROOT}/skills/webnovel-query"
export PROJECT_ROOT="$(python "${SCRIPTS_DIR}/webnovel.py" --project-root "${WORKSPACE_ROOT}" where)"
PROJECT_ROOT必须包含.webnovel/state.json- 禁止在
${CLAUDE_PLUGIN_ROOT}/下读取或写入项目文件
查询分类 → 最窄工具
先识别查询类型,再用下表最窄工具。不默认全量加载,只在综合 / 跨多类型查询时用 memory-contract load-context。
| 查询类型 | 关键词 | 最窄工具 |
|---|---|---|
| 角色历史状态 | 某角色在第N章时 / 时间点状态 / 境界变化 | knowledge query-entity-state |
| 实体关系 | 关系 / 敌友 / 师徒 / 阵营归属 | knowledge query-relationships |
| 世界规则 | 力量规则 / 设定铁律 / 境界体系约束 | memory-contract query-rules |
| 伏笔 / open loop | 伏笔 / 紧急伏笔 / 未闭合悬念 | memory-contract get-open-loops |
| 综合 / 复杂 | 跨多类型、需要时间线 + 长期记忆联合 | memory-contract load-context |
| 静态设定 | 角色卡 / 力量体系 / 世界观 / 势力 / 标签格式 | Grep + Read 设定集 |
引用加载策略
按查询类型按需加载,先识别再加载。路径说明:references/ 指 skill 私有 skills/webnovel-query/references/;../../references/ 指共享 references。
Sponsors
Details
- Repository
- github.com/lingfengqaq/webnovel-writer
- First seen
- Jun 3, 2026