What is learned-rules?
learned-rules is a Claude Code mod by Elmanuel1 that turns your corrections into skill and repo rules you accept one by one, each with how a static check could enforce it. It is listed under Interface and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | Elmanuel1 |
| Repository | Elmanuel1/claude-mods |
| Popularity | no public popularity data yet |
| Category | Interface |
| Security | High risk (44/100) |
| Rank | #5,833 of 9,397 Claude Code mods; #2,476 in Interface |
| Last commit | 2026-11-17 |
| Hooks | 8 events |
| Sees | classic hooks, every prompt |
| Draws on | AbovePrompt, Pane |
Is learned-rules safe to install?
learned-rules scores 44/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 2 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.process.spawn | |
$.prompt.fill | writes the prompt box |
$.session.id | |
$.settings.read | reads settings |
$.state.get | |
$.state.set | |
$.store.delete | keeps its own state |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.notify | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install learned-rules?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/Elmanuel1/claude-mods claude plugin validate ./claude-mods/learned-rules
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add Elmanuel1/claude-mods && claude plugin install learned-rules@elmanuel1-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs learned-rules for you:
Install the "learned-rules" Claude Code mod from https://github.com/Elmanuel1/claude-mods/tree/main/learned-rules. Run claude plugin validate on it first and show me what it can access before you enable it.
More from Elmanuel1/claude-mods
This repository has 2 Claude Code mods on MCPMods.
- docs-watch: When one of your PRs merges, drafts the documentation update and opens it as its own PR once you approve (Review before installing)