/knot:inkfrom knot
Writes and fixes the .ink files of a branching game with a knot.toml: turns an approved beat sheet, or its scene, into Ink knots, stitches, choices, checks, and tags, with state only from globals.ink and state.toml, then runs knot.py ink and the inklecate compiler. Use to write the Ink for a scene, convert a scene or beat sheet to Ink, or revise or debug any .ink file in the project. Proposes new state rather than inventing variables.
Ships in knot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
NO VARIABLE OUTSIDE GLOBALS, NO TAG OUTSIDE THE PROJECT'S LIST, NO HAND-OFF UNTIL KNOT.PY INK IS CLEAN.
The ink skill writes the playable form of a scene: one Ink knot per beat sheet, in the project's ink folder. It drafts from an approved beat sheet, and from the scene when scenes/<id>.md exists. A scene converts element by element, by the table in ink-conventions.md; branches the scene only summarized are written out here, in the speakers' voices. State lives in globals.ink, mirroring state.toml, and tags come only from [ink] tags. The skill runs knot.py ink, which checks both and compiles with inklecate when it is installed.
uv run "${CLAUDE_PLUGIN_ROOT}/scripts/knot.py" config and read every path from its JSON. Exit code 2 means there's no knot.toml: stop, and offer to draft one with the canon skill's setup procedure in ${CLAUDE_PLUGIN_ROOT}/skills/canon/references/setup.md.ink block of the config: dir, main, globals, the knot pattern, and the tags list. Read the rules list.<paths.beats>/<id>.md. If its status isn't approved, stop: name its status and offer the beats skill. Go on only if the user overrides in so many words.<paths.scenes>/<id>.md exists, read it. If it isn't approved, ask whether to wait for it or work from the beat sheet.canon.conventions: tag meanings, stitch naming, the layout under the ink folder, and how a check resolves.canon.state and the globals file. Read main to see the running order and the INCLUDEs.${CLAUDE_PLUGIN_ROOT}/skills/ink/references/ink-conventions.md and patterns.md.<ink dir>/<point>/<id>.ink, unless conventions.md sets another layout. One scene per file. The knot name is the beat's id, and it must match [ink] knot.state.toml and declared in globals. If one is missing from state.toml, stop: that is the beat's gap, and it goes to the beats or canon skill.temp. Neither needs state.state.toml entry with status = "proposed" (type, kind, default, meaning), declare it in globals, log it with the canon skill's changes.md, and tell the user.ink-conventions.md § "Scene to Ink". Expand each [SUMMARY] into full lines, in voice, keeping its structure lines. From a beat sheet alone, write the scene's lines in voice, with the scene format's elements in mind.patterns.md.conventions.md says: a speaker tag on each line of dialogue, a voice tag on each inner-voice line, a check tag before each check. Use no tag outside [ink] tags.INCLUDE <path> to the main file, and the scene's call in play order (beats/index.md order), as ink-conventions.md describes.uv run "${CLAUDE_PLUGIN_ROOT}/scripts/knot.py" ink. Fix every error, I0 to I5. Fix each warning or say why it stands. I7 is expected for state that only later, unwritten scenes use.knot.py ink compiles with inklecate when it's on PATH. If it prints Compile skipped: inklecate not found on PATH., say so: the Ink is checked by knot.py but not by the compiler.knot.py ink result.VAR and LIST appear only in the globals file, one for one with state.toml, with matching types, defaults, and items.state.toml entry. Only the user approves it.[ink] tags, with the meanings in conventions.md. No tags on choice lines.${CLAUDE_PLUGIN_ROOT}/skills/ink/references/ink-conventions.md: file layout, knots and stitches, globals, tags, checks, and the scene-to-Ink table.${CLAUDE_PLUGIN_ROOT}/skills/ink/references/patterns.md: the Ink idiom for each branching pattern.${CLAUDE_PLUGIN_ROOT}/skills/beats/references/patterns.md: what each pattern is, and how it fails.${CLAUDE_PLUGIN_ROOT}/skills/scene/references/scene.md § Format: the scene elements.${CLAUDE_PLUGIN_ROOT}/docs/project-contract.md §4 (state.toml) and §7 (ink and codes I0 to I8)./knot:review), with its state and voice lenses at least./knot:canon), which owns state.toml./knot:scene) or the beats skill (/knot:beats).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dawson-design/knot --plugin knot7 skills in this plugin
/beatsPlans the scenes of a branching game: the scene index (beats/index.md) and one beat sheet per scene, with TOML front matter for clues planted and found, state read and set, and branching patterns, plus each character's want, the player's choices and their costs, skill checks, variants, and consequences. Use to plan, break down, or revise the beats or scenes of a story point or an approved treatment in a project with a knot.toml. Plans scenes; never writes their prose or Ink./canonAnswers what is true in a branching game's story as of a story point: who knows what and from when, what each character wants, where they are, and which secrets the player may learn yet. Records changes to the story's canon (cast, timeline, and the knowledge, clue, and state ledgers) with a changelog line, marking new facts proposed. Sets up knot.toml for a new game. Use in a project with a knot.toml for any question about a character, fact, or secret at a point in the story, even without the word canon./reviewReviews a branching game's story drafts (spine, treatment, beat sheet, scene, or Ink) against canon as of their story point and the project's own rules in knot.toml. Reports findings by severity through lenses: canon, fidelity to the layer above, character wants, secret leaks, fair-play clues, choices, failed checks, voice, and state. Runs one lens alone, or the cold-read and solver tests with fresh readers. Use in a project with a knot.toml whenever a story draft or a story gate needs review./sceneTurns an approved beat sheet into a scene script for a branching game with a knot.toml: present-tense narration, SPEAKER: dialogue in the cast's voices, choice blocks, skill checks, inner voices, and state changes, in a format that converts line for line to Ink. Use to draft, expand, or revise a file in the story's scenes folder, or when asked to write or draft a scene from a beat sheet. Writes scenes only; beat sheets and Ink belong to other skills./storyPlans a branching game's story layers above the scene: the spine (the whole story, built backward from its secret, one section per unit plus the endings) and each unit's treatment (what happens, where, the player's options, wants and turns, clues, what carries forward). Use to write, revise, or plan a spine or a treatment for a story point, season, act, chapter, or side quest in a project with a knot.toml. Not for general outlines, documents, or scene prose./voiceKeeps the voice cards in canon/voices.md and the dialogue rules for a branching game with a knot.toml: how each character and inner voice speaks, what they never say, how they dodge and lie, and the distinctness test. Use to write or revise a voice card, to check that a game's dialogue, narration, or choice text sounds like its speaker, or when the scene, ink, or review skill needs the voices. In-world text follows the voice cards, not general prose style rules.