truth-validation

truth-validation is a skill for Claude Code, Codex from LiPu-jpg/Openwrite. It costs 42 tokens per session (877 once invoked), scanned A, original, Apache-2.0.

A consistency checker for a novel's story records and chapters. It compares the current world state, resources, character relationships, timelines, summaries, and unresolved clues with chapter content.

In plain words
What is it for?
Use it to validate a new or specified chapter for state conflicts, time problems, missing story support, unresolved foreshadowing, and earlier edits that affect continuity.
Why use it?
It can reveal contradictions such as a character being in two places, unexplained changes in status, broken timelines, or clues that disappear without resolution.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to validate a new or specified chapter for state conflicts, time problems, missing story support, unresolved foreshadowing, and earlier edits that affect continuity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lipu-jpg/openwrite/truth-validation
Install

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.

Any agent
npx skills add LiPu-jpg/Openwrite --skill truth-validation
Clone the repo
git clone --depth 1 https://github.com/LiPu-jpg/Openwrite

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for truth-validation

README.md
[![agentmods](https://agentmods.dev/badge/skills/lipu-jpg/openwrite/truth-validation/github.svg)](https://agentmods.dev/skills/lipu-jpg/openwrite/truth-validation)
Your own site
<a href="https://agentmods.dev/skills/lipu-jpg/openwrite/truth-validation"><img src="https://agentmods.dev/badge/skills/lipu-jpg/openwrite/truth-validation/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.

agentmods 80×15 button for truth-validation

Your own site · 80×15
<a href="https://agentmods.dev/skills/lipu-jpg/openwrite/truth-validation"><img src="https://agentmods.dev/badge/skills/lipu-jpg/openwrite/truth-validation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 877 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00877
Opus 5.5 $0.00017 $0.00351
Sonnet 5.5 $0.00008 $0.00175
Haiku 4.5 $0.00004 $0.00088

Measured 1mo ago against content hash 1c3d6f45317d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

truth-validation 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.

presets/dante/skills/truth-validation/SKILL.md · 119 lines

What it actually says

真相文件验证系统

验证真相文件与章节内容的一致性,确保故事逻辑连贯。

核心概念

真相文件是记录世界当前状态的 Markdown 文件,包括:

  • current_state.md - 世界当前状态
  • ledger.md - 资源账本
  • relationships.md - 角色关系矩阵

相关运行时文件(用于一致性校验):

  • data/foreshadowing/dag.yaml - 伏笔状态
  • data/hierarchy.yaml 与 data/compressed/ - 章节摘要与压缩信息

验证问题类型

严重程度 类型 说明
critical 状态矛盾 章节内容与真相文件矛盾
critical 时间悖论 时间线出现矛盾
warning 叙事缺失 状态变化没有叙事支持
warning 伏笔异常 伏笔未回收就消失
info 回溯编辑 暗示状态变化发生在前章

可用工具

工具 说明
validate_truth 验证真相文件与章节的一致性

使用示例

验证最新章节

用户: 检查一下最新章节有没有问题

AI: 让我验证一下...
[COMMAND] validate_truth {
  "chapter_id": "latest"
}

结果:
- ✅ 状态矛盾: 无
- ✅ 时间悖论: 无
- ⚠️  叙事缺失: 1个
  - 主角境界从筑基初期跳到筑基中期,但章节中没有突破描写
- ✅ 伏笔异常: 无
- ✅ 回溯编辑: 无

建议: 在第5章添加主角修炼的过渡场景

验证指定章节

用户: 第3章有没有逻辑问题?

AI:
[COMMAND] validate_truth {
  "chapter_id": "ch_003"
}

结果:
- ❌ 状态矛盾: 1个
  - 真相文件记录主角在青河镇,但章节中主角出现在青云宗
- ✅ 时间悖论: 无
- ⚠️  叙事缺失: 2个
...

常见问题及修复

1. 状态矛盾

问题: 真相文件说主角在A地,但章节中主角在B地

修复:

  • 检查是否是穿越/传送情节
  • 如果是,更新真相文件中的位置
  • 如果不是,修复章节内容

2. 时间悖论

问题: 章节说"三天后",但上一章到这章只过了一天

修复:

  • 添加过渡段落说明时间流逝
  • 或者修正天数

3. 叙事缺失

问题: 真相文件记录主角境界提升,但章节中没有描写

修复:

  • 添加修炼/突破的场景
  • 或者回退真相文件中的状态

验证时机

建议在以下时机进行验证:

  1. 写完章节后
  2. 审查章节前
  3. 重大剧情转折前
  4. 发现逻辑问题时

与伏笔系统的关系

验证系统会检查:

  • 待回收伏笔是否在预期章节被回收
  • 已埋伏笔是否在章节中得到呼应
  • 是否有伏笔未声明就被回收
Changes

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.

  1. 1mo ago First seen · 119 lines · 42 tokens per session scan A 1c3d6f45317d

Subscribe to this mod's changes

truth-validation is a skill published in the GitHub repository LiPu-jpg/Openwrite (872 stars, last pushed yesterday), licensed Apache-2.0. It adds 42 tokens to every session and 877 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.