rb:learn

rb:learn is a skill for Claude Code from slbug/claude-ruby-grape-rails. It costs 41 tokens per session (1,024 once invoked), scanned A, original, MIT.

A learning-note tool for recording lessons from corrections or fixes in Ruby on Rails projects. It captures the underlying mistake and checks existing project notes before adding a new one.

In plain words
What is it for?
Use it after a bug fix or correction to document the root cause and preserve the lesson for future Rails work.
Why use it?
It prevents the same implementation mistake from being repeated. Examples include inefficient database queries, parameter key mismatches, and missing test configuration.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the ruby-grape-rails plugin — 52 skills, 19 agents, 17 hooks shipped together

Good fit Use it after a bug fix or correction to document the root cause and preserve the lesson for future Rails work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/slbug/claude-ruby-grape-rails/learn
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 slbug/claude-ruby-grape-rails --skill learn
Clone the repo
git clone --depth 1 https://github.com/slbug/claude-ruby-grape-rails

Made for: Claude Code.

Or install ruby-grape-rails, the plugin that ships this one along with the rest of its 52 skills, 19 agents, 17 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 rb:learn

README.md
[![agentmods](https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/learn/github.svg)](https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/learn)
Your own site
<a href="https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/learn"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/learn/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 rb:learn

Your own site · 80×15
<a href="https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/learn"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,024 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 44
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
How audits are shown
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.00041 $0.01024
Opus 5.5 $0.00016 $0.00410
Sonnet 5.5 $0.00008 $0.00205
Haiku 4.5 $0.00004 $0.00102

Measured 1mo ago against content hash 82ae947ec1f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rb:learn 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 1mo 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.

plugins/ruby-grape-rails/skills/learn/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Learn From the Fix

After fixing a bug or receiving a correction, capture the lesson to prevent future mistakes.

Usage

/rb:learn Fixed N+1 query in user listing - was missing includes
/rb:learn String vs symbol key mismatch in params handling
/rb:learn Turbo Frame needs data-turbo-frame attribute in tests

Workflow

Step 1: Identify the Root Cause

Look at recent conversation context or the file/diff the user points at. Classify the mistake:

  • Knowledge gap: didn't know the correct API or pattern
  • Wrong assumption: assumed behavior that doesn't match reality
  • Tooling gap: lacked a check that would have caught this
  • Process failure: skipped a step or checked the wrong thing

Extract the root cause, not the symptom. "Missing includes on association" not "query was slow."

Step 2: Check for Duplicates

Before writing anything, check all existing knowledge stores:

  1. Read ${CLAUDE_SKILL_DIR}/references/common-mistakes.md (shipped plugin reference — READ-ONLY, never edit)
  2. Grep project CLAUDE.md for the pattern keyword
  3. Grep .claude/solutions/ for similar fixes
  4. Check auto-memory for similar lessons

If already documented, tell the user and stop. Do not duplicate.

Step 3: Decide Destination

CRITICAL: NEVER edit plugin files. Files under ~/.claude/plugins/ are cached and get overwritten on updates. Always write to project or memory locations.

Scope Destination When to use
This project only Project CLAUDE.md Convention or rule for this codebase
Cross-project Auto-memory General Ruby/Rails lesson that applies everywhere
Complex fix .claude/solutions/ via /rb:compound Multi-step debugging story
Safety-critical Iron Law suggestion Suggest to user, never auto-add

Auto-memory requires consent. Before writing to ~/.claude/projects/{hash}/memory/, ask the user: "This lesson applies beyond this project. Save to auto-memory for future sessions?"

Read the full file on GitHub · 125 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 125 lines · 41 tokens per session scan A 82ae947ec1f1

Subscribe to this mod's changes

rb:learn is a skill published in the GitHub repository slbug/claude-ruby-grape-rails (7 stars, last pushed 16d ago), licensed MIT. It adds 41 tokens to every session and 1,024 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

greek-philosopher

Channel ancient wisdom through Socratic questioning, Stoic principles, and philosophical inquiry to examine life's deepest questions with poetic eloquence and timeless insight. Use when examining a life decision, seeking Stoic perspective on adversity, or wanting Socratic questioning of an assumption.

frankxai/claude-skills-library · 59 tokens

gym-training-expert

Apply cutting-edge exercise science from 2025 research on hypertrophy, progressive overload, biomechanics, and evidence-based training protocols for optimal strength and muscle development. Use when designing a training program, choosing exercises and progression, or applying evidence-based hypertrophy/strength…

frankxai/claude-skills-library · 58 tokens

acos-visual-gen

Generate research-grounded visuals using the InfoGenius pipeline. Use when creating infographics, diagrams, educational visuals, or any image that benefits from factual accuracy. Supports 8 visual styles (3D, technical, minimalist, photorealistic, futuristic, vintage, cartoon, standard) and 4 audience levels.

frankxai/claude-skills-library · 69 tokens

onboarding

Getting started guide for new users. Walks through setup validation, the skill/agent hierarchy, and the three most useful commands per role (developer, PM, tech lead). Use when someone is new to the workstation or asks "where do I start?".

ulises-jeremias/agent-toolkit · 54 tokens

feynman-thinking

Transform Claude into a Feynman mentor. Focuses on simple explanations, architectural models, Socratic questioning, and stripping away unnecessary complexity. Triggers on: feynman, feynman alignment, explain simply, explain architecture, explain logic, explain concept, build mental model.

frankxai/claude-skills-library · 63 tokens

animation-vocabulary

Reverse-lookup glossary that turns a vague description of a web animation or motion effect into its exact term ("the bouncy thing when a popover opens" → Pop in; "the iOS rubber-band scroll" → Rubber-banding). Use when the user asks "what's it called when…", or describes a motion effect without knowing its name and…

frankxai/claude-skills-library · 98 tokens