learn-rule

learn-rule is a skill for Claude Code, Codex from rohitg00/pro-workflow. It costs 59 tokens per session (522 once invoked), scanned A, original, no licence file.

A learning-rule skill that records corrections and lessons for use in later sessions.

In plain words
What is it for?
Use it after a mistake or when you want the agent to remember a rule for future work.
Why use it?
It keeps important corrections from being lost and organizes them by the mistake and its correction.

Skill for Claude CodeCodex

Part of the pro-workflow plugin — 15 skills, 23 commands, 8 agents, 24 hooks shipped together

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.

agentmods
npx agentmods add skills/rohitg00/pro-workflow/learn-rule
Any agent
npx skills add rohitg00/pro-workflow --skill learn-rule
Clone the repo
git clone --depth 1 https://github.com/rohitg00/pro-workflow

Made for: Claude Code, Codex.

Or install pro-workflow, the plugin that ships this one along with the rest of its 15 skills, 23 commands, 8 agents, 24 hooks.

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-rule

README.md
[![agentmods](https://agentmods.dev/badge/skills/rohitg00/pro-workflow/learn-rule.svg)](https://agentmods.dev/skills/rohitg00/pro-workflow/learn-rule)
Your own site
<a href="https://agentmods.dev/skills/rohitg00/pro-workflow/learn-rule"><img src="https://agentmods.dev/badge/skills/rohitg00/pro-workflow/learn-rule.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 522 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00059 $0.00522
Opus 5 $0.00030 $0.00261
Sonnet 5 $0.00012 $0.00104
Haiku 4.5 $0.00006 $0.00052

Measured 4d ago against content hash f24dbc4dea2d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

learn-rule 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 4d ago.

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.

skills/learn-rule/SKILL.md · 75 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 4d ago First seen · 75 lines · 59 tokens per session scan A f24dbc4dea2d

Subscribe to this mod's changes

learn-rule is a skill published in the GitHub repository rohitg00/pro-workflow (2,807 stars, last pushed 3d ago), with no licence file. It adds 59 tokens to every session and 522 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

drawing-observation

Observational drawing and visual perception techniques for art education. Covers contour drawing, gesture drawing, negative space, proportion and measurement, value mapping, spatial depth cues, and the cognitive shift from symbolic to perceptual seeing. Use when teaching drawing fundamentals, analyzing observational…

Tibsfox/gsd-skill-creator · 65 tokens

gsd-onboard

GSD tutorial and command reference. Use when user is new to GSD or asks about commands.

Tibsfox/gsd-skill-creator · 25 tokens

sustainable-household-pedagogy

Teaching home-economics skills as a durable practice across generations and capacity levels. Covers scaffolded task sequencing, the one-in-one-out rule, the apprenticeship model, learning by failure tolerance, family retros, the edible schoolyard framework, and the difference between teaching a recipe and teaching a…

Tibsfox/gsd-skill-creator · 104 tokens

book-to-skill

Compiles PDF, EPUB, DOCX, HTML, Markdown, text, RTF, MOBI, and AZW documents into provenance-tracked OMK agent skills. Use to create, update, or verify a reusable knowledge skill from documents.

dmae97/omk · 54 tokens

migration-patterns

Safe schema-migration patterns for systems under live traffic — expand/contract, backfill, double-write, shadow-read, online DDL. Use when authoring, reviewing, or sequencing a migration that can't take a maintenance window.

atuljha23/holocron · 50 tokens

token-economy

Rubric for keeping Claude Code sessions cheap without losing quality — model tiering, cache hygiene, Read discipline, MCP pruning, subagent isolation. Use when cost feels wrong, before setting a budget, or when onboarding a teammate.

atuljha23/holocron · 51 tokens