/kulmine:analyzing-sessionsfrom kulmine
Analyzes past Claude Code sessions to count user corrections by error type, or turns a finished session into an interactive review page for commenting and acting on feedback.
Ships in kulmine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A correction is a user turn saying the previous reply or action was wrong, unwanted, too long, incomplete or off topic, that repeats an instruction already given, or that interrupts the agent. New requests, approvals, answers and follow-up questions are not.
The error types are the rows of the table in ${CLAUDE_SKILL_DIR}/../../docs/common-ai-errors.md. During the Count don't touch that file or the agent setup: you are measuring them.
python3 "${CLAUDE_SKILL_DIR}/scripts/turns.py" > <scratchpad>/turns.jsonl, with --since <date> only if the user gives a range. One line per turn since the last report: user is the turn, agent the end of the text before it. Empty file: say so and stop.<scratchpad>/labels.jsonl: {"id", "type", "words", "quote", "did"}. type is a code from the table, or other if it only fits by forcing it; words the user's words copied exactly from user; quote the same in English, at most 20 words; did what the agent had done, in one line. Several complaints in the same turn: a single line, on the main point.kulmine:pages, type report: the turns read, each error type with its habit in a few words, and one row per correction (quote, what the agent had done, proposed error type) with data-k-options option buttons on the codes, other and not a correction. In the page's reply the user adds the missing corrections. Apply the reply to labels.jsonl.python3 "${CLAUDE_SKILL_DIR}/scripts/count.py" <scratchpad>/turns.jsonl <scratchpad>/labels.jsonl > <scratchpad>/report.md; if it flags wrong labels, fix them and run it again. Append ## Candidates for a new error type: every cause that corrections from two or more sessions share and no error type names, with one quote per session, or None.. Copy it to ~/.kulmine/corrections/<today>.md (<today>T<HHMM>.md if it already exists).python3 "${CLAUDE_SKILL_DIR}/scripts/session_page.py" --project <session folder> --grep "<words from the first prompt>" -o <scratchpad>/<name>.html. The folder comes from the user or, if they name the session by title, from the cwd of mcp__ccd_session_mgmt__list_sessions. Check that the first message is the prompt the user meant.capabilities: {"db": {}}, icon: "chat"; for a session already reviewed, republish to its url, so the comments stay on the messages. Give the link only to the user: the page contains the whole transcript.ArtifactData list on comments and on replies with query: {"limit": 1000}, and ArtifactComments read. A comments document opens a thread on message n (selected quote, text, sometimes the first reply); a replies document is a later turn of it (comment, role, text, at). A thread is waiting for you if its last turn by at is not agent.AGENTS.md; comments with the same cause get a single fix. A question gets an answer and no change.ArtifactData batch with one set in replies per thread (new doc_id, {comment, role: "agent", text, at}, at the current ISO time); for platform threads reply, then resolve. One or two sentences: what changed or why nothing did. In chat, one line.README.md (opens in a new tab)scripts/count.py (opens in a new tab)scripts/fixtures/session.jsonl (opens in a new tab)scripts/katex.css (opens in a new tab)scripts/session_page.html (opens in a new tab)scripts/session_page.py (opens in a new tab)scripts/test_count.py (opens in a new tab)scripts/test_session_page.py (opens in a new tab)scripts/test_turns.py (opens in a new tab)scripts/turns.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mk27mk/kulmine --plugin kulmine10 skills in this plugin
/domain-modelingBuild and sharpen a project's domain model. Use when discussing codebase terminology, or writing or editing a GLOSSARY.md./interview-meInterviews the user with an HTML page, one question at a time, until nothing ambiguous is left; the finished page is the spec. Use it when you have two or more questions for the user, before implementing something ambiguous, and when the user asks to be interviewed./orchestrateOrchestrates large tasks using subagents and sub-sessions./pagesBuilds and publishes a kulmine HTML page, the format in which the agent answers the user for everything long or interactive that doesn't fit in a chat reply. Use it for every page (plans, specs, explanations, comparisons, reviews, research, reports, questions) and when a page must collect the user's choices and bring them back to the agent./prototypingShows the user the options instead of describing them - side-by-side alternatives, a brainstorm of interventions, a clickable mockup or a throwaway editor - in an HTML page where they choose with option buttons and controls. Use it when there are several ways to do something, when the user will only know what they want by seeing it, before building a UI, and when some data is easier to edit than to describe (sorting, triaging, configuring, tuning)./researchingInvestigate a question against high-trust primary sources and capture the findings as an HTML page in the repo. Use when the user wants a topic researched, docs or API facts gathered, or reading legwork delegated to a background agent.Other plugins' skills for the same job