Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add LiPu-jpg/Openwrite --skill world-querygit clone --depth 1 https://github.com/LiPu-jpg/OpenwriteWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/lipu-jpg/openwrite/world-query)<a href="https://agentmods.dev/skills/lipu-jpg/openwrite/world-query"><img src="https://agentmods.dev/badge/skills/lipu-jpg/openwrite/world-query/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/lipu-jpg/openwrite/world-query"><img src="https://agentmods.dev/badge/skills/lipu-jpg/openwrite/world-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.00642 |
| Opus 5.5 | $0.00019 | $0.00257 |
| Sonnet 5.5 | $0.00010 | $0.00128 |
| Haiku 4.5 | $0.00005 | $0.00064 |
Grade A, and why
world-query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
世界查询系统
把 data/novels/{novel_id}/src/ 下的人物与世界实体文件作为唯一关系真源。Studio 拓扑和 ReAct 的 get_world_relations 必须调用同一个拓扑查询,不维护 graph.yaml 或第二套关系数据库。
查询
- 用
query_world查询实体列表或详情。 - 用
get_world_relations读取与 Studio 连续性页面同源的节点和边。 - Studio 关系拓扑支持按节点名称、ID、类型、摘要和关系文字搜索;命中节点会保留一跳相邻节点和连线作为上下文。
- ReAct 没有第二套拓扑搜索索引;需要搜索时读取
get_world_relations后在同一份节点/边结果中按上述字段过滤。 - 先用 ID 定位;用户只提供名称时允许按 front matter 名称或 Markdown H1 定位。
兼容读取以下关系来源:
- TOML front matter 中的
[[related]]。 - 世界实体的
## 关联列表。 - 人物卡的
## 关系网络、## 人物关系、## 与主角的关系、## 与某人的关系/羁绊。
把“主角”解析为 role = "主角" 或 tier = "主角" 的人物。读取关系目标时清理末尾括号别名,例如 周策(老周) 定位到 周策。未找到目标时保留 unresolved 节点,不静默丢边。
增量修改关系
新建、更新或删除正式关系时使用 edit_world_relation,并固定执行两阶段确认:
- 先以
confirm=false调用,保存返回的base_revision,向用户展示 diff。此步不得写文件。 - 只有用户明确确认后,才传回同一个
base_revision并设置confirm=true。 - 若返回
relation_revision_conflict,重新预览;不得复用旧 revision 或整文件重写。 - 用户拒绝、犹豫或只是讨论关系时,不得确认写入。
正式修改统一写入源文件 TOML front matter:
[[related]]
target = "partner_id"
kind = "related"
note = "共同调查旧案"
使用 action="upsert" 新增或更新,使用 action="remove" 删除。源和目标必须是已有实体,禁止自关系。旧 Markdown 关系段落继续作为兼容只读来源;不要为了修改一条边而覆盖人物卡正文。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 45 lines · 48 tokens per session scan A b5d21715c3c2
world-query is a skill published in the GitHub repository LiPu-jpg/Openwrite (872 stars, last pushed yesterday), licensed Apache-2.0. It adds 48 tokens to every session and 642 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
webnovel-init
A guided setup process for a web-novel project that collects creative requirements and creates the project’s initial structure and rules.
webnovel-write
A workflow for producing publishable web-novel chapters, from understanding the context through drafting, review, polishing, submission, and backup.
webnovel-plan
A planning tool for turning a web-novel outline into volume plans, timelines, and chapter outlines. It also writes new story settings back into the existing setting collection.
webnovel-review
A review agent for assessing the quality of fiction chapters. It produces a review report and writes review measurements back to the project.
webnovel-query
A Chinese-language skill for querying a web novel project's setting and story information, including characters, power systems, factions, and foreshadowing.
webnovel-learn
A project skill for learning from a web novel-writing project through the `/webnovel-learn` command. The provided details do not explain what learning tasks or outputs it performs.