Skip to main content
skill CX Codex

story-memory — Claude Code skill: durable story state

A skill that keeps canon, facts and context alive across chapters. Useful once a fiction project outgrows a single session.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add haowjy/creative-writing-skills --skill story-memory -a claude-code
Open on GitHub

What story-memory does

story-memory is a reference skill about long-term memory in fiction writing. It does not draft prose. It tells the agent which facts to keep, what to hand off to the next session, and how to run a wiki and an issue log.

Five resources sit inside. resources/story-context.md covers what context to pass to writers, critics, brainstormers and knowledge agents. resources/fact-extraction.md covers pulling durable facts out of chapters: character state, timeline, reveals, terminology. The other three handle reference pages and vocab, where work and kb artifacts live, and tracking writing issues that carry across chapters.

The skill is marked model-invocable, so the agent can load it on its own when memory work comes up. Solo writers who hold the whole story in their head get little from it. On longer projects with several agents, it is a reason to check whether canon has drifted between files.

What it helps with

  • pull character and timeline facts out of a chapter
  • hand context to the next agent without losing it
  • keep terminology and decisions in one wiki
  • lay out work and kb artifacts in predictable folders
  • track writing issues that span chapters

Example prompts for the agent

  • Extract durable facts from this chapter: character state, timeline, reveals
  • Build the handoff context for the next critic using story-memory
  • Log this issue and note which chapters it still affects

How to install story-memory

1Skills CLI (Vercel)

npx skills add haowjy/creative-writing-skills --skill story-memory -a claude-code

2Manually: put the files in place

~/.claude/skills/story-memory/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/story-memory/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about story-memory

How do I install story-memory in Claude?

Run npx skills add haowjy/creative-writing-skills --skill story-memory -a claude-code. The skill lands at ~/.claude/skills/story-memory/SKILL.md.

What does story-memory do?

It gives the agent conventions for durable story state: fact extraction, context handoffs, reference writing, artifact layout and issue tracking.

Who is it for?

Writers running a fiction project with several agents who want canon to stay consistent. Knowledge agents such as kb-lead get the fiction-specific categories and conventions.

Source text

SKILL.md · Apache-2.0
---
name: story-memory
type: reference
description: >
  Creative-writing domain knowledge for durable story state. Load when
  preserving or retrieving project memory — fact extraction, context scoping,
  reference writing, artifact layout, and issue tracking. If you are a
  knowledge agent such as kb-lead, load this for the
  fiction-specific categories and conventions your general methodology
  doesn't cover.
model-invocable: true
---

# Story Memory

Knowledge that must survive the current pass: canon facts, context handoffs,
vocab/reference material, project layout, and persistent issues.

Load the resource needed:

- `resources/story-context.md` — what context to pass into handoffs for writers, critics, brainstormers, and knowledge agents.
- `resources/fact-extraction.md` — extract durable facts from chapters: character state, timeline, reveals, terminology.
- `resources/story-reference-writing.md` — wiki pages, vocab, decisions, summaries, issue logs.
- `resources/writing-artifacts.md` — where work and kb artifacts live.
- `resources/writing-issues.md` — persistent writing issue tracking across chapters.

© haowjy · Apache-2.0 · haowjy/creative-writing-skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set22

character-sim Shifts the assistant into an in-character dialogue mode based on emotional state and knowledge limits. Useful for voice discovery and scene pressure tests. CX Codex +1 530installs creative-writing-modes A skill that adds five prose modes to your writing pass: fresh draft, revision, bridge, alternate take and line polish. Useful once structure is settled and the page needs words. CX Codex +1 534installs kb-management Organizes story knowledge bases in kb/ with rules for canon, vocab, and characters. It helps keep lore and continuity consistent across writing agents. CX Codex +1 527installs intent-modeling A skill that makes an AI agent work out what you meant before it acts on what you literally said. CX Codex +1 527installs shared-dao Keeps story terms consistent across lore files and drafts, organizing them inside kb/. It eliminates drifting names, ambiguous factions, and conflicting magic systems. CX Codex +1 520installs grill-with-docs Challenges project plans through sequential questioning, verifies terminology against project docs, and records decisions on the fly. CX Codex +1 514installs creative-writing-muse A skill for a single agent that switches stances on its own: plans, drafts, critiques and remembers. Useful when no subagents are around. CX Codex +1 494installs creative-research This skill gathers grounded material for a story question: history, culture, daily detail, how a trade actually works. You get back a sourced report. CX Codex +1 487installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor