Home / Claude Code mods / Interface / learned-rules

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.

Updated 2026-11-17

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.

TypeClaude code mod
AuthorElmanuel1
RepositoryElmanuel1/claude-mods
Popularityno public popularity data yet
CategoryInterface
SecurityHigh risk (44/100)
Rank#5,833 of 9,397 Claude Code mods; #2,476 in Interface
Last commit2026-11-17
Hooks8 events
Seesclassic hooks, every prompt
Draws onAbovePrompt, 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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Doesn't drive ClaudePass
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.writewrites files
$.process.runruns processes
$.process.spawn
$.prompt.fillwrites the prompt box
$.session.id
$.settings.readreads settings
$.state.get
$.state.set
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.notifydraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install learned-rules?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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)