
Mine learnings
Mines git history and docs for reusable learnings and records them in LEARNINGS.md
Mine learnings is an open-source agent skill for knowledge and memory. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 5
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Mine learnings
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".
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 5 files (6 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the grid-core plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add oneafrikan/the-grid
/plugin install grid-core@the-gridOr copy only this skill to ~/.claude/skills/mine-learnings:
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.
Copy the skill folder to ~/.agents/skills/mine-learnings to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/mine-learnings to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/oneafrikan/the-grid.git --path plugins/grid-core/skills/mine-learningsOr copy the folder to ~/.gemini/skills/mine-learnings yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/mine-learnings:
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.
Get the folder:
git clone --depth 1 https://github.com/oneafrikan/the-grid.gitThen 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.
What it does
- 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
Mine learnings 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.
More from oneafrikan/the-grid

Turns a business goal into funded bets, budgets, kill conditions and release gates
- Open source
- 5 GitHub stars
- Productivity

Runs hypothesis-driven funnel experiments to move a growth metric, one variable at a time
- Open source
- 5 GitHub stars
- Marketing and SEO

Coordinates a multi-step dev team: writes PRDs, makes architecture calls, reviews output
- Open source
- 5 GitHub stars
- Developer tools

Splits small fixes across specialist agents, merges them, then runs independent QA
- Open source
- 5 GitHub stars
- Developer tools

Lists open GitHub issues grouped by the repo's own severity labels, highest first
- Open source
- 5 GitHub stars
- Developer tools

Guides you through using the-grid: which commands, agents and factories to reach for
- Open source
- 5 GitHub stars
- Developer tools






