New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Read-only query skill that searches project settings, characters, power systems, factions, and foreshadowing, routing each query to the narrowest memory tool.

skills.sh installs
654
GitHub stars
8K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers query types: entity state at a chapter, relationships, world rules, open-loop foreshadowing, comprehensive lookups, and static settings
  • Includes knowledge and memory-contract subcommands plus Grep/Read for static setting files and formatted result templates
  • Enforces a source priority: story-system contracts and accepted commits before the state.json and index.db projection layer
  • Designed for Chinese-language web novel projects that keep story bibles under .webnovel/ and .story-system/

Install

$ npx -y skills add lingfengqaq/webnovel-writer --skill webnovel-query -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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。

Details

Repository
github.com/lingfengqaq/webnovel-writer
Categories
Writing & Content, Memory & Context
First seen
Jun 3, 2026

More from lingfengqaq/webnovel-writer

All 6

Similar to Webnovel Query

More Writing & Content