learn-rules

learn-rules is a skill for Claude Code, Codex from edgehero/pi-dispatch. It costs 30 tokens per session (221 once invoked), scanned A, original, MIT.

A weekly workflow that turns repeated pull-request review remarks into short contributor rules. Contributor notes are project files that explain how people should work in the repository.

In plain words
What is it for?
It helps find recurring naming, testing, or coding-pattern remarks, update contributor notes on a separate branch, and open a draft pull request.
Why use it?
It prevents the same review guidance from being repeated and avoids adding rules that the project already documents.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit It helps find recurring naming, testing, or coding-pattern remarks, update contributor notes on a separate branch, and open a draft pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/edgehero/pi-dispatch/learn-rules
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add edgehero/pi-dispatch --skill learn-rules
Clone the repo
git clone --depth 1 https://github.com/edgehero/pi-dispatch

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for learn-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/edgehero/pi-dispatch/learn-rules/github.svg)](https://agentmods.dev/skills/edgehero/pi-dispatch/learn-rules)
Your own site
<a href="https://agentmods.dev/skills/edgehero/pi-dispatch/learn-rules"><img src="https://agentmods.dev/badge/skills/edgehero/pi-dispatch/learn-rules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for learn-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/edgehero/pi-dispatch/learn-rules"><img src="https://agentmods.dev/badge/skills/edgehero/pi-dispatch/learn-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 221 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00221
Opus 5.5 $0.00012 $0.00088
Sonnet 5.5 $0.00006 $0.00044
Haiku 4.5 $0.00003 $0.00022

Measured today against content hash f805c03b9f42, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

learn-rules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

worker/starters/dev-team/skills/learn-rules/SKILL.md · 18 lines

What it actually says

Learn the house rules

Once a week. With the forge's command line (gh), read the review comments people left on this repository's pull requests in the last seven days.

  1. Find remarks that came back at least twice: a naming rule, a test people keep asking for, a pattern to avoid.
  2. Read the contributor notes the project has (CONTRIBUTING.md, AGENTS.md or the like). Leave out what they say already.
  3. Nothing new: stop. That is a successful run.
  4. Otherwise, on a new branch pi/rules-$(date +%F), add at most five short rules to those notes, each with one example from a real remark. Commit, push, and open a draft pull request that lists them. Save the list to /artifacts/rules.md too.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 18 lines · 30 tokens per session scan A f805c03b9f42

Subscribe to this mod's changes

learn-rules is a skill published in the GitHub repository edgehero/pi-dispatch (202 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 221 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-06.

Related

learn-rules compared with skills from other repositories

learn-rules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
learn-rulesedgehero/pi-dispatchSkill202todayMITA30Claude Code, Codex
juryExponential-OS/prompt-engineering-in-actionSkill1112d agoAGPL-3.0A73Claude Code
team-qahuuanh20/awesome-ai-agent-skillsSkill14mo agoMITA70Claude Code
ck:qualityhuuanh20/awesome-ai-agent-skillsSkill14mo agoMITA102Claude Code
code-reviewhuuanh20/awesome-ai-agent-skillsSkill14mo agoMITA148Claude Code, Codex
requesting-code-reviewcoctostan/pi-superpowers-plusSkill1069mo agoMITA22Claude Code, Codex
human-reviewIrtezaAsadRizvi/claude-human-reviewSkill147mo agononeA83Claude Code