Analyzing Sessions logo

Analyzing Sessions

Community
MK27MK
analyzing-sessions

Reads past Claude Code sessions looking for the user's corrections, in two modes. Count - labels every correction since the last report with an error type from common-ai-errors.md or other, has the user confirm the labels on a page and writes the counts to ~/.kulmine/corrections/. Session page - turns a finished session into a page the user comments on message by message, then acts on every comment. Use it when the user asks to count their corrections, which errors keep coming back or whether a change to the agent setup made them rarer, and when they want to review, comment on or walk through a finished session.

Overview

PublisherMK27MK
Repositorykulmine
Skill nameanalyzing-sessions
Stars
84
Forks
3
Bundled files
8
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by MK27MK on GitHub. Read the source before you install it.

Installation

Install the Analyzing Sessions AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/MK27MK/kulmine/tree/main/skills/analyzing-sessions
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MK27MK/kulmine.git /tmp/kulmine
mkdir -p .claude/skills
cp -r /tmp/kulmine/skills/analyzing-sessions .claude/skills/analyzing-sessions
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Analyzing Sessions in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Analyzing Sessions on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Analyzing Sessions is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Analyzing sessions

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.

Count

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.

  1. Turns. 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.
  2. Labels. One line per correction in <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.
  3. Confirmation. A page with 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.
  4. Report. 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).
  5. Outcome. Update the same page with the total, the error type that changed most since the previous report in corrections per 100 turns, the report's path and the candidates: one becomes an error type only if the user picks it up.

Session page

  1. Page. 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.
  2. Publish with Artifact, 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.
  3. Read when the user is done: 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.
  4. Act on every waiting comment following "Changing the agent setup" in kulmine's AGENTS.md; comments with the same cause get a single fix. A question gets an answer and no change.
  5. Answer in the page, not in chat: an 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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Analyzing Sessions AI skill do?

Reads past Claude Code sessions looking for the user's corrections, in two modes. Count - labels every correction since the last report with an error type from common-ai-errors.md or other, has the user confirm the labels on a page and writes the counts to ~/.kulmine/corrections/. Session page - turns a finished session into a page the user comments on message by message, then acts on every comment. Use it when the user asks to count their corrections, which errors keep coming back or whether a change to the agent setup made them rarer, and when they want to review, comment on or walk throu...

Why use Analyzing Sessions on TypingMind?

Because you install it once and use it with any model. Analyzing Sessions is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Analyzing Sessions in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/MK27MK/kulmine/tree/main/skills/analyzing-sessions. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Analyzing Sessions?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Analyzing Sessions?

As many as you like. As long as a model supports skills, you can use Analyzing Sessions with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Analyzing Sessions AI skill free?

Yes. It is published on GitHub by MK27MK under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇