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 foreshadowing-systemgit 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/foreshadowing-system)<a href="https://agentmods.dev/skills/lipu-jpg/openwrite/foreshadowing-system"><img src="https://agentmods.dev/badge/skills/lipu-jpg/openwrite/foreshadowing-system/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/foreshadowing-system"><img src="https://agentmods.dev/badge/skills/lipu-jpg/openwrite/foreshadowing-system.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.00052 | $0.01004 |
| Opus 5.5 | $0.00021 | $0.00402 |
| Sonnet 5.5 | $0.00010 | $0.00201 |
| Haiku 4.5 | $0.00005 | $0.00100 |
Grade A, and why
foreshadowing-system 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
伏笔管理系统
管理小说中的伏笔和悬念,确保故事线索连贯。
核心概念
伏笔(foreshadowing)是作者在前面章节埋下的线索,后面再回收。
伏笔状态:
埋伏- 已埋下,等待回收待收- 即将回收已收- 已回收废弃- 放弃的伏笔
伏笔层级:
主线- 核心剧情伏笔支线- 次要剧情伏笔彩蛋- 趣味小彩蛋
可用工具
| 工具 | 说明 |
|---|---|
create_foreshadowing |
创建伏笔节点 |
list_foreshadowing |
列出伏笔 |
update_foreshadowing |
更新伏笔状态 |
validate_foreshadowing |
验证伏笔DAG |
使用示例
创建伏笔
用户: 在第三章埋一个伏笔,关于主角的神秘身世
AI: 好的,我来创建一个主线伏笔。
[COMMAND] create_foreshadowing {
"node_id": "f001",
"content": "主角发现自己体内有一道封印的神秘力量",
"weight": 9,
"layer": "主线",
"created_at": "ch_003",
"target_chapter": "ch_015"
}
结果: ✅ 伏笔已创建
- ID: f001
- 内容: 主角发现自己体内有一道封印的神秘力量
- 权重: 9
- 层级: 主线
- 预期回收: 第15章
查看待回收伏笔
用户: 有哪些待回收的伏笔?
AI: 让我查询一下...
[COMMAND] list_foreshadowing {
"status": "待收",
"min_weight": 5
}
结果:
- f001: 主角身世之谜 (权重9, 主线)
- f003: 师父的秘密 (权重7, 主线)
- f005: 神秘玉佩 (权重6, 支线)
更新伏笔状态
用户: 第八章回收了 f003 的伏笔,更新状态
AI: 好的
[COMMAND] update_foreshadowing {
"node_id": "f003",
"status": "已收"
}
结果: ✅ f003 状态已更新为「已收」
验证伏笔DAG
用户: 检查伏笔有没有问题
AI: 让我验证一下伏笔图...
[COMMAND] validate_foreshadowing {}
结果:
- ✅ DAG有效,无环
- ✅ 无孤立引用
- ⚠️ 提示: 有3个伏笔超期未收
创建伏笔的时机
在写作时,AI 应该主动识别并建议创建伏笔:
- 建立悬念时 - "主角做了一个奇怪的梦..."
- 引入神秘元素时 - "某个配角的来历不明..."
- 埋下线索时 - "桌上放着一封未拆的信..."
- 暗示未来事件时 - "天气预报说三天后会下大雨..."
伏笔设计原则
- 可识别性 - 伏笔要能被读者注意到
- 合理性 - 回收时要有合理的解释
- 权重分配 - 重要伏笔高权重,主线权重≥7
- 时机控制 - 埋设和回收之间要有足够铺垫
DAG验证规则
- 无环 - 伏笔之间不能循环依赖
- 有向 - 边必须从伏笔指向回收点
- 可达 - 每个待收伏笔必须有明确的回收章节
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 · 125 lines · 52 tokens per session scan A ff4638e801fd
foreshadowing-system is a skill published in the GitHub repository LiPu-jpg/Openwrite (872 stars, last pushed yesterday), licensed Apache-2.0. It adds 52 tokens to every session and 1,004 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.