# Mine learnings

> Mine learnings is an open-source agent skill for knowledge and memory. Mines git history and docs for reusable learnings and records them in LEARNINGS.md. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/oneafrikan/the-grid/tree/main/plugins/grid-core/skills/mine-learnings
- **Repository:** https://github.com/oneafrikan/the-grid
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** mine-learnings
- **Collection:** https://github.com/oneafrikan/the-grid
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-01

## About

This skill reads a project's history, including commits, docs and logs, and pulls out durable lessons. Each approved lesson is written as a dated entry in a LEARNINGS.md file with its category, source reference and a content hash. The most actionable ones are also folded into CLAUDE.md as short rules that link back to the full entry.

Runs are idempotent: hashes of accepted and rejected candidates are kept in a hidden ledger inside LEARNINGS.md, so reruns skip anything already seen. Nothing is written until the user approves, edits or rejects each candidate in batches. The skill only writes local files and does not push commits.

It works from the repository root and needs git available. Sections with extraction signals, history source caps and model-routing guidance are loaded only when the matching step runs. No scripts are bundled with the skill.

## When your agent uses it

> Mine project history (commits, docs, logs) for durable learnings and write them to LEARNINGS.md and CLAUDE.md, idempotently. Use when the user asks to "extract learnings", "mine learnings from history" or "update CLAUDE.md from project history".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/oneafrikan/the-grid/tree/HEAD/plugins/grid-core/skills/mine-learnings)
- [License: MIT](https://github.com/oneafrikan/the-grid/tree/HEAD/plugins/grid-core/skills/mine-learnings)

## Features

- **Git history mining:** Scans commits, docs and logs in the repository for lessons worth keeping.
- **Dated LEARNINGS.md entries:** Writes approved lessons with category, source reference and the learning itself.
- **CLAUDE.md rule folding:** Adds the most durable lessons to CLAUDE.md as short rules linked to their entries.
- **Idempotent reruns:** Uses a hash ledger of accepted and rejected candidates so repeat runs add nothing new.
- **User approval step:** Presents candidates in batches for approve, edit or reject before any file is written.

## Good for

- Extract learnings from this repo's commit history
- Update CLAUDE.md with rules drawn from past project history
- Record lessons from recent logs into LEARNINGS.md
- Review and approve new project learnings before they are saved

## Install

### Claude Code

This skill ships in the `grid-core` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add oneafrikan/the-grid
/plugin install grid-core@the-grid
```

Or copy only this skill to `~/.claude/skills/mine-learnings`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/oneafrikan/the-grid.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/mine-learnings &&
cp -R "$tmp/plugins/grid-core/skills/mine-learnings" ~/.claude/skills/mine-learnings &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/mine-learnings` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/mine-learnings` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/oneafrikan/the-grid.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/mine-learnings &&
cp -R "$tmp/plugins/grid-core/skills/mine-learnings" ~/.agents/skills/mine-learnings &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/mine-learnings` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/mine-learnings` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/oneafrikan/the-grid.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/mine-learnings &&
cp -R "$tmp/plugins/grid-core/skills/mine-learnings" ~/.cursor/skills/mine-learnings &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/mine-learnings` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/oneafrikan/the-grid.git --path plugins/grid-core/skills/mine-learnings
```

Or copy the folder to `~/.gemini/skills/mine-learnings` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/mine-learnings`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/oneafrikan/the-grid.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/mine-learnings &&
cp -R "$tmp/plugins/grid-core/skills/mine-learnings" ~/.copilot/skills/mine-learnings &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/mine-learnings` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/oneafrikan/the-grid.git
```

Then copy `the-grid/plugins/grid-core/skills/mine-learnings` into your agent's skills folder as `mine-learnings`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Mine learnings trigger?

It triggers when the user asks to extract learnings, mine learnings from history or update CLAUDE.md from project history.

### Does Mine learnings write files without asking?

No. Each candidate is presented for approval, editing or rejection before anything is written to LEARNINGS.md or CLAUDE.md.

### Does Mine learnings push changes to git?

No. The skill only writes local files; committing and pushing the result is a separate step.

### Is Mine learnings safe to run repeatedly?

Yes. Hashes of accepted and rejected candidates are stored, so a rerun with no new history makes no changes.

### How do I install Mine learnings in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/mine-learnings to use it in all your projects, or to .claude/skills/mine-learnings in one project. Or install the grid-core plugin, which includes it: /plugin marketplace add oneafrikan/the-grid, then /plugin install grid-core@the-grid.

### Does Mine learnings run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Mine learnings?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Mine learnings?

The closest alternatives to Mine learnings are Continuous learning, Memory sync, Learn, Claude mem and Continuous learning v2.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Continuous learning](https://ai-powered.com/skills/continuous-learning): Continuous learning is an open-source agent skill for knowledge and memory.
- [Memory sync](https://ai-powered.com/skills/memory-sync): Memory sync is an open-source agent skill for knowledge and memory.
- [Learn](https://ai-powered.com/skills/learn): Learn is an open-source agent skill for knowledge and memory.
- [Claude mem](https://ai-powered.com/skills/claude-mem-smartworldarafath): Claude mem is an open-source agent skill for knowledge and memory.
- [Continuous learning v2](https://ai-powered.com/skills/continuous-learning-v2): Continuous learning v2 is an open-source agent skill for knowledge and memory.
- [Continual learning](https://ai-powered.com/skills/continual-learning): Continual learning is an open-source agent skill for knowledge and memory.
- [Wiki changelog](https://ai-powered.com/skills/wiki-changelog): Wiki changelog is an open-source agent skill for developer tools.
- [Research](https://ai-powered.com/skills/research-hec-ovi-2): Research is an open-source agent skill for web search and scraping.

---
Source: https://ai-powered.com/skills/mine-learnings
