Skip to content

What's included

Path Kind What it does
output-styles/katharsis.md, katharsis-coding.md Output styles The classification table, the reference codes, the question form. One body, two frontmatters.
styles/*.md Guidance files One per exchange type: cues, ceiling, shape, ambiguities, verification, examples. README.md holds the shared rules, and katharsis-style-template.md is the skeleton for a new one.
styles/models/*.md Model notes One per model family, or per version where a version needs its own, attached by the prompt hook when the note changes and after a compaction.
styles/richness/sketches.md Sketch rules The rules for an inline text sketch, for a rendered diagram of a shape too dense for one, for a question round’s page, for a local video, and for Claude Motion animations, attached by the prompt hook at the sketch or rich richness level. Its question-page rules apply at every level. Not an exchange type.
scripts/katharsis-exchange-style.sh Script Prints a type’s guidance file and stamps the type. The model runs it once per typed turn.
scripts/katharsis-artifact.sh, assets/pages/ Script At the rich richness level, renders a diagram too dense for an inline sketch with D2 or the Mermaid CLI, writes it as an HTML page under ~/.claude/katharsis-data/pages/ with the Flexoki stylesheet and theme toggle from assets/pages/, and opens it. With no renderer, or when a render fails, it says so and the reply draws an inline sketch instead. At any level, it also writes the page for a question round when your message asks for one, and refuses a body that holds a script or a remote reference. For video, it names the installed video tool, reserves a video file there for vhs, ffmpeg, or Remotion to write, and opens the video; it never runs the video tool.
hooks/register.ts Hooks module The prompt hook: the per-turn reminder, the inherited stamp on an untyped turn, the active-session marker, the session record, the answers to the last Questions round, the owed list after a compaction, the model note, the handoff chain link, the next free code numbers, the autonomy level when it is not guided, the richness level and the sketch rules when it is not text, the Claude Motion off line when that option is off, and a Recheck line for each open question at or past the question recheck count. Under a bare outputStyle of Katharsis or Katharsis coding that no output style file of your own goes by, it adds only a line on the session’s first turn naming the qualified style to pick; a bare name such a file goes by counts as Katharsis.
hooks/ledger.ts Hooks module Reads the ledger and the session records for the prompt hook, the drawer, and kref, so all three agree on what a code says and where numbering resumes.
hooks/answers.ts Hooks module Reads each typed message for answers to the latest Questions round without a model call, and decides which questions are still open.
hooks/suggest.ts Hooks module Counts how often your answers took the model’s recommendation, for the drawer’s autonomy suggestion.
hooks/session.ts Hooks module Builds the session record: the Katharsis release and the session title.
hooks/style.ts Hooks module Decides for the prompt hook and the drawer whether the session’s output style loads Katharsis, looking for an output style file of your own by that name where Claude Code loads them when the setting is a bare Katharsis or Katharsis coding.
hooks/drawer.tsx, drawer-model.ts, links.ts Hooks module The drawer: the drawer /kdrawer opens, the reply chips, and the optional band. It also names the session with a short model call at the third turn and every 15 turns after.
scripts/stop-classify.sh Hook Stop: consumes the stamp, records a gate miss, an inherited ! turn, or a truncated read of the guidance to telemetry, and never holds the reply.
scripts/ledger-stop.sh Hook Stop: writes the transcript path beside the session record, in <id>.transcript, writes every coded item in the reply to the ledger, records per-reply counts, and holds the reply once for a code whose claim changed.
scripts/mistakes.sh, scripts/mistakes.py Hook PreToolUse and PostToolUse on Bash: copies a file a call is about to replace unread, and saves it, records the loss, and tells you and the model when lines of it are gone. Stop: checks the reply’s test, build, validation, lint, CI, verified, and count claims, and a PR body’s ticked checks, against the session’s tool results, records each hit, shows one line for it, and holds the reply once for a replaced file that the first reply after the call does not mention. --replay <transcript> runs the Stop checks over a finished session and prints the records.
scripts/stop-verifier.sh Hook Stop: holds the reply once for an opening that buries the finding, and asks for the finding on its own line rather than a rewrite.
scripts/detect-reply.sh, scripts/packs/*.txt Script Runs the writing rules over one reply and prints a fix line per hit. The verifier calls it, and you can run it over a saved reply.
scripts/session-link.sh Hook SessionStart: remakes the ~/.claude/katharsis symlink and asks for setup until setup has run.
cli/kref.ts, bin/kref Script Reads the ledger back in the terminal, as JSON, or as HTML.
scripts/setup.sh, scripts/setup_settings.py, skills/setup/ Setup Checks the Claude Code version, adds the two permission entries, names the two styles and each settings file that holds a bare style name, which loads no Katharsis style unless an output style file of your own goes by that name, and reports the diagram renderers and video tools on PATH, with an install command for each one missing.
scripts/instruction-files.sh, skills/rules-check/ Skill Lists the instruction files Claude Code loads for a folder, and finds the rules in them that repeat or contradict the style.
skills/pr/ Skill /katharsis:pr: drafts a PR title and body that follow the repo’s convention, or the visual default. Only you can run it.
skills/commit/ Skill /katharsis:commit: writes a commit message for the staged change that follows the repo’s subject convention, or the default, and commits only when you ask. Only you can run it.
skills/review-reply/ Skill /katharsis:review-reply: writes a PR review comment or a reply to one that follows the repo’s review convention, or the default, and posts only when you ask. Only you can run it.
hooks/hooks.json Manifest Wires the SessionStart, Bash PreToolUse and PostToolUse, and Stop hooks and names the hooks module, register.ts.
.claude-plugin/plugin.json, marketplace.json Manifest Name the plugin, its version, and the marketplace it installs from.