Install
$ agentstack add skill-danjdewhurst-story-skills-story-maintenance ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
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, schema migration, entity helpers, manuscript import, and manuscript export. The creative skills still own story decisions; this skill handles mechanical consistency.
CLI Access
Prefer the first available command:
story- when the package bin is installedbun run story --- when working from this repositorynode scripts/story.js- bundled fallback, resolvingscripts/story.jsrelative to this skill folder
If none of these are available, perform the requested maintenance manually using the conventions in story-init.
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 manuscript.md.
Commands
Run commands from the story project root, or pass the story path explicitly.
story validate .
story reindex .
story wordcount . --write
story links .
story continuity .
story import draft.md --title "Title"
story report .
story report . --actionable
story next .
story doctor .
story migrate .
story add character "Name"
story rename character old-id "New Name"
story remove promise old-promise
story export . --out manuscript.md
story build . --format markdown
story build . --format epub
story build . --format docx
Use:
validateafter initialization and at the end of any multi-file editreindexafter adding/removing/renaming characters, locations, systems, arcs, or chapterswordcount --writeafter writing or revising chapterslinksafter changing character relationships, notable locations, arc participants, or chapter referencescontinuityafter drafting or revising a chapter, and whenever the user asks about contradictions, dead characters appearing, unfired setups, or stale state; it deterministically checksdied-inordering, promise/question chapter ordering, Chekhov gaps, POV/cast consistency, andcontinuity/state.mdreferencesimportwhen the user has an existing manuscript or chapter drafts and wants a Story Skills project built from them; follow up by creating character and location files from the printed entity candidatesreportwhen the user asks for project status, inventory, progress, or a quick health summarynextbefore a drafting session to identify the next deterministic actiondoctorwhen the user asks what is stale, broken, or inconsistentmigratewhen a project has an older schema version or missing v2 pathsadd,rename, andremovefor deterministic entity file operations when they fit the requested changeexportonly when the user asks for a combined manuscript at a specific pathbuildwhen the user asks to build the book artifact; supports markdown, EPUB, and DOCX outputs indist/
Failure Handling
- Treat CLI errors as actionable maintenance findings.
- Fix broken references, missing required files, stale registries, or incorrect word counts when the requested task implies doing so.
- Do not overwrite creative prose or story content merely to satisfy a mechanical check.
- If a validation warning reflects intentional user data, report it rather than silently changing it.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: danjdewhurst
- Source: danjdewhurst/story-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.