story-maintenance

story-maintenance is a skill for Claude Code from danjdewhurst/story-skills. It costs 178 tokens per session (5,389 once invoked), scanned A, original, MIT.

A maintenance guide and command-line tool for Story Skills projects, which are markdown-based projects for managing stories and manuscripts. It handles mechanical checks and file organization rather than creative story decisions.

In plain words
What is it for?
Use it to validate a project, rebuild registries, check links or continuity, count words, summarize the project, import or export a manuscript, migrate its format, or run other supported story-maintenance commands.
Why use it?
It helps keep story project files, indexes, links, word counts, and continuity information consistent. It can also make reports and move manuscript content between the project and exported files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the story-skills plugin — 24 skills shipped together

Good fit Use it to validate a project, rebuild registries, check links or continuity, count words, summarize the project, import or export a manuscript, migrate its format, or run other supported story-maintenance commands.

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

Made for: Claude Code.

Or install story-skills, the plugin that ships this one along with the rest of its 24 skills.

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 story-maintenance

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/danjdewhurst/story-skills/story-maintenance"><img src="https://agentmods.dev/badge/skills/danjdewhurst/story-skills/story-maintenance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 178 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,389 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
  • Socket pass 14 Oct 2026
  • Snyk pass 14 Oct 2026
  • 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.00178 $0.05389
Opus 5.5 $0.00071 $0.02156
Sonnet 5.5 $0.00036 $0.01078
Haiku 4.5 $0.00018 $0.00539

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

Security

Grade A, and why

story-maintenance 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 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/story.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/story-maintenance/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Story Maintenance

Overview

Run deterministic maintenance for Story Skills projects. Use the CLI for structure validation, registry rebuilds, word counts, link checks, continuity checks, project reports, next-action reports, pacing, clue, voice, and name checks, revision-pass tracking, Mermaid diagrams, schema migration, entity helpers, manuscript import, and manuscript export and builds. The creative skills still own story decisions; this skill handles mechanical consistency. It runs a check and reports what it found, and fixes mechanical problems such as broken references and stale registries; deciding what a finding means for the story, and revising the story to fix it, belongs to revision-continuity, plot-structure, voice-style, or genre-craft.

CLI Access

Prefer the first available command:

  1. story <command> - when the package bin is installed
  2. node scripts/story.js <command> - bundled fallback, resolving scripts/story.js relative to this skill folder
  3. node <checkout>/bin/story.js <command> - only when the user names a Story Skills repository checkout or you are working in one, where <checkout> is its path

Write the script in forms 2 and 3 as an absolute path and run the command from the folder you would run story from, so . and other relative paths keep their meaning. Use Node, not Bun or the story script in the checkout's package.json: Bun would load that folder's bunfig.toml (which can run code) and .env, and a package script runs from the checkout's root, so . would be the checkout, not the story project.

If none of these are available, perform the requested maintenance manually using the shared conventions in references/conventions.md.

Run the installed or bundled CLI in place. Do not copy scripts/story.js into the user's story project, and do not create project-local build scripts, generator scripts, or bulk writer scripts to generate story content. Story projects should remain markdown-first, plus explicitly requested exports such as dist/manuscript.md.

Read the full file on GitHub · 111 lines

Files

What ships with it

7 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. 13d ago Changed cbfcaf461232
  2. 20d ago Changed · -79 lines · +24 tokens per session e821d28b0237
  3. 21d ago Changed · +36 lines · +66 tokens per session 7e5bd6aef4af
  4. 24d ago Changed d99c2144c372
  5. 25d ago Changed · +2 lines 0acba815c34c
  6. 28d ago Changed · +2 lines e72b0cc51d82
  7. 1mo ago Changed · +14 lines 83a8601d344e
  8. 1mo ago Changed · +2 lines 40b2855fb909
  9. 1mo ago Changed · +6 lines 0b8d7df2694b
  10. 1mo ago First seen · 128 lines · 88 tokens per session scan A d7abab7af8d5

Subscribe to this mod's changes

story-maintenance is a skill published in the GitHub repository danjdewhurst/story-skills (361 stars, last pushed today), licensed MIT. It adds 178 tokens to every session and 5,389 once invoked, about $0.0007 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.

Related

Other skills, from other repositories

alive:demo

Generate a believable, lived-in ALIVE world from a free-text persona description (custom path) or a deterministic sandbox preset. Routes the create/list/activate/deactivate/delete/status surface and orchestrates the 5-stage subagent generation pipeline.

alivecontext/alive · 52 tokens

alive:save

The human wants to checkpoint. Or: the stash has grown heavy — 5+ items, 30+ minutes, a natural pause in the work. The squirrel doesn't decide when to save. It surfaces the need and lets the human pull the trigger. Runs the full save protocol: confirms stash, writes log, updates state, generates projections…

alivecontext/alive · 78 tokens

alive:system-upgrade

Upgrade ALIVE to the current version. Handles v1/v2/v3.x source states, multi-surface aware (alive-mcp / Hermes / Codex), retroactive version detection, partial-failure resume, dry-run previews, and rollback inspection.

alivecontext/alive · 57 tokens

alive:system-cleanup

The world feels messy. Stale tasks, orphan folders, v2 remnants, unsaved sessions — entropy is accumulating and needs to be addressed before it compounds. Scans across all walnuts, then surfaces issues one at a time.

alivecontext/alive · 52 tokens

alive:create-walnut

Something new is emerging. A venture, an experiment, a person entering the orbit, a life area getting serious. It needs its own walnut — its own identity, history, and future. Scaffolds the full structure, maps existing context sources, and optionally migrates files across.

alivecontext/alive · 63 tokens

alive:session-history

Revive sessions (quick or heavy), browse, and search — 'what happened recently?', 'find the session where we discussed X', 'revive yesterday's session'. For single-session recall and multi-session browsing. If the human needs to merge multiple sessions into one working context or detect conflicts between parallel…

alivecontext/alive · 76 tokens