novel-diag

novel-diag is a skill for Claude Code, Codex from Xiaoyangy/novel-studio. It costs 65 tokens per session (454 once invoked), scanned A, original, Apache-2.0.

A diagnostic tool for projects created with Novel Studio, a writing workflow for producing books. It checks the project's saved output and reports issues across process, quality, planning, and story context.

In plain words
What is it for?
Use it to inspect revision loops, missing evidence, chapter problems, stalled plot threads, incomplete outlines, timeline gaps, and missing character or relationship data, then create a privacy-safe report.
Why use it?
It helps explain why a writing workflow is stuck or inconsistent without changing the project's pipeline or rerunning its stages.

Skill for Claude CodeCodex

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

Good fit Use it to inspect revision loops, missing evidence, chapter problems, stalled plot threads, incomplete outlines, timeline gaps, and missing character or relationship data, then create a privacy-safe report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaoyangy/novel-studio/novel-diag
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 Xiaoyangy/novel-studio --skill novel-diag
Clone the repo
git clone --depth 1 https://github.com/Xiaoyangy/novel-studio

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 novel-diag

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaoyangy/novel-studio/novel-diag/github.svg)](https://agentmods.dev/skills/xiaoyangy/novel-studio/novel-diag)
Your own site
<a href="https://agentmods.dev/skills/xiaoyangy/novel-studio/novel-diag"><img src="https://agentmods.dev/badge/skills/xiaoyangy/novel-studio/novel-diag/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 novel-diag

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoyangy/novel-studio/novel-diag"><img src="https://agentmods.dev/badge/skills/xiaoyangy/novel-studio/novel-diag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 454 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.00065 $0.00454
Opus 5 $0.00032 $0.00227
Sonnet 5 $0.00013 $0.00091
Haiku 4.5 $0.00006 $0.00045

Measured 11d ago against content hash 44f8fb949e5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

novel-diag 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 11d 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.

skills/novel-diag/SKILL.md · 39 lines

What it actually says

novel-diag:项目产物诊断

对当前项目(cwd 的 output 产物)做静态分析,在终端打印本地 Findings,产出可执行的 发现和改进建议,并写出一份已脱敏meta/diag-export.md(移除正文,仅留行为骨架), 适合贴到 GitHub issue。

前置条件

  • 已完成首次配置(见 skills/README.md)。
  • 在项目目录下运行(含 output/novel/)。

执行

novel-studio --diag

诊断维度

  • 流程 — 改写循环卡顿、未消费的转向指令、阶段/流程状态异常、章节跳号、流水线证据漂移
  • 质量 — 评审维度持续低分、合同履约率、改写率、章节字数异常
  • 规划 — 伏笔停滞、指南针过时、大纲耗尽、摘要缺失
  • 上下文 — 角色消失、时间线缺口、关系数据停滞

产物

  • 终端报告:本地可读 Findings(可能包含剧情/伏笔/流程细节,不适合直接贴 issue)
  • meta/diag-export.md(脱敏行为骨架)

diag 会只读检查 meta/pipeline.json:已完成阶段若缺少 evidence、证据状态不是 verified、或证据指向的 artifact/checkpoint 已不存在,会在 Findings 中报告;它不会 自动清除阶段标记或重跑流水线。

随时对已有项目单独诊断。

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 39 lines · 65 tokens per session scan A 44f8fb949e5e

Subscribe to this mod's changes

novel-diag is a skill published in the GitHub repository Xiaoyangy/novel-studio (107 stars, last pushed 2d ago), licensed Apache-2.0. It adds 65 tokens to every session and 454 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories