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-code

Installs 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

More from lingfengqaq/webnovel-writer

All 6

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs