Mine Claude Md logo

Mine Claude Md

Community
ragnar-pwninskjold
mine-claude-md

Mine recent Claude Code sessions for non-obvious, multi-file CLAUDE.md candidates, adversarially verify them, and propose paste-ready additions. Use when the user wants to harvest documentation-worthy patterns/gotchas from past coding sessions into a project's CLAUDE.md, or says "mine my sessions for CLAUDE.md", "what should be in my CLAUDE.md", "/mine-claude-md".

Overview

Publisherragnar-pwninskjold
Repositorytech-snacks
Skill namemine-claude-md
Stars
138
Forks
30
Bundled files
Instructions only
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ragnar-pwninskjold on GitHub. Read the source before you install it.

Installation

Install the Mine Claude Md 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/ragnar-pwninskjold/tech-snacks/tree/main/plugins/tech-snacks/skills/mine-claude-md
  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/ragnar-pwninskjold/tech-snacks.git /tmp/tech-snacks
mkdir -p .claude/skills
cp -r /tmp/tech-snacks/plugins/tech-snacks/skills/mine-claude-md .claude/skills/mine-claude-md
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mine Claude Md 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 Mine Claude Md 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 Mine Claude Md 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.

mine-claude-md

Harvest non-obvious knowledge out of a project's recent Claude Code sessions and turn it into proposed CLAUDE.md additions — without inventing anything. This runs a bundled dynamic workflow that mines candidates in parallel, has independent skeptics adversarially challenge each one (reject-by-default), loops until the well runs dry, and synthesizes the survivors into a paste-ready report. It only proposes — it never edits your CLAUDE.md.

Requirements (check first)

This skill drives Claude Code's dynamic workflows feature. Before running, confirm:

  • Claude Code v2.1.154+ and a paid plan (Pro/Max/Team/Enterprise) or API access.
  • Workflows are enabled (/config → Dynamic workflows, or disableWorkflows not set, and CLAUDE_CODE_DISABLE_WORKFLOWS unset).

If workflows are disabled, the Workflow tool call below will fail. If it does, tell the user to enable Dynamic workflows in /config and re-run — do not fall back to doing the mining inline (the whole point is the parallel adversarial-verification harness).

Resolve the bundled workflow path

The orchestration script ships inside this plugin. Resolve its absolute path now — this works whether the plugin is installed at the personal, project, or plugin level, and regardless of the current working directory:

echo "${CLAUDE_SKILL_DIR}/../../workflows/mine-claude-md-from-sessions.workflow.js"

Use the path printed above as the scriptPath argument. Do not retype or guess it.

Gather inputs

Determine the workflow args before launching:

  • projectPath (required): the absolute path to the repo to mine. Default to the current project root (${CLAUDE_PROJECT_DIR} or the cwd) unless the user named a different repo.
  • sessionCount (optional, default 20): how many recent sessions to read.
  • maxRounds (optional, default 6): safety cap on mining rounds.
  • dryRounds (optional, default 2): consecutive empty rounds that mean "done".
  • miners (optional): miners per round; auto-scales 2–4 from session count if omitted.

If projectPath is ambiguous, ask the user once. Otherwise proceed with the current project.

Run it

Call the Workflow tool with:

  • scriptPath: the absolute path resolved above.
  • args: an object, e.g. { "projectPath": "/abs/path/to/repo", "sessionCount": 20 }.

The run executes in the background across these phases:

  1. Discover — resolve the session store, build one merged, deduped digest of recent sessions (CLAUDE.md included once so nothing re-reads it).
  2. Mine — parallel miners propose non-obvious, multi-file, non-structural candidates.
  3. Verify — one combined-lens skeptic per candidate adversarially tries to break it; survives only if it withstands both the structure lens and the novelty/truth lens.
  4. Synthesize — assemble survivors into a report with a paste-ready "Suggested CLAUDE.md additions" block.

Watch progress with /workflows. When it finishes, present the report to the user. Do not modify CLAUDE.md yourself unless the user explicitly asks you to apply the additions.

What counts as a good candidate

A pattern qualifies only if it is non-obvious (a competent engineer wouldn't guess it from one read), multi-file (needs correlating 2+ locations), not inferable from structure (not from the dir tree, file names, framework conventions, or imports), and not already documented in the current CLAUDE.md. Quality over quantity — zero candidates beats weak ones.

Frequently asked questions

What does the Mine Claude Md AI skill do?

Mine recent Claude Code sessions for non-obvious, multi-file CLAUDE.md candidates, adversarially verify them, and propose paste-ready additions. Use when the user wants to harvest documentation-worthy patterns/gotchas from past coding sessions into a project's CLAUDE.md, or says "mine my sessions for CLAUDE.md", "what should be in my CLAUDE.md", "/mine-claude-md".

Why use Mine Claude Md on TypingMind?

Because you install it once and use it with any model. Mine Claude Md 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 Mine Claude Md in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ragnar-pwninskjold/tech-snacks/tree/main/plugins/tech-snacks/skills/mine-claude-md. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Mine Claude Md?

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 Mine Claude Md?

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

Is the Mine Claude Md AI skill free?

Yes. It is published on GitHub by ragnar-pwninskjold 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 👇