shepherd-learn

shepherd-learn is a skill for Claude Code from mshadmanrahman/pm-pilot. It costs 49 tokens per session (1,057 once invoked), scanned A, original, MIT.

A learning-log tool for recording why a bug-triage decision was wrong and what the team learned from investigating it.

In plain words
What is it for?
Use it after a bug session to record investigation mistakes, technical lessons, surprises, and ways to improve future triage.
Why use it?
It prevents teams from repeating the same mistaken assumptions and preserves lessons from previous bug investigations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the bug-shepherd plugin — 5 skills, 1 agent shipped together

Good fit Use it after a bug session to record investigation mistakes, technical lessons, surprises, and ways to improve future triage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mshadmanrahman/pm-pilot/shepherd-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 mshadmanrahman/pm-pilot --skill shepherd-learn
Clone the repo
git clone --depth 1 https://github.com/mshadmanrahman/pm-pilot

Made for: Claude Code.

Or install bug-shepherd, the plugin that ships this one along with the rest of its 5 skills, 1 agent.

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 shepherd-learn

README.md
[![agentmods](https://agentmods.dev/badge/skills/mshadmanrahman/pm-pilot/shepherd-learn.svg)](https://agentmods.dev/skills/mshadmanrahman/pm-pilot/shepherd-learn)
Your own site
<a href="https://agentmods.dev/skills/mshadmanrahman/pm-pilot/shepherd-learn"><img src="https://agentmods.dev/badge/skills/mshadmanrahman/pm-pilot/shepherd-learn.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,057 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 pass 7 Sept 2026
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.00049 $0.01057
Opus 5 $0.00024 $0.00528
Sonnet 5 $0.00010 $0.00211
Haiku 4.5 $0.00005 $0.00106

Measured yesterday against content hash 149739136df3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

shepherd-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 yesterday.

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/bug-shepherd/skills/shepherd-learn/SKILL.md · 146 lines

How it starts

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

/shepherd-learn — Capture Session Lessons

End-of-session command that captures what you learned into the institutional memory. This is what makes Bug Shepherd smarter over time.

Audience: Anyone who just finished a bug session. The lessons are written in plain language, not code.

Why This Matters

Every bug session teaches something. Without capturing it, you (or your team) will repeat the same mistakes, fall into the same traps, and waste time rediscovering the same patterns. The learning log is Bug Shepherd's institutional memory.

Workflow

1. Review the Session

Analyze what happened in this session:

  • Which ticket was investigated? ({TICKET-ID})
  • What was the bug?
  • What was the root cause?
  • How many iterations did the fix take?
  • Were there false starts or wrong assumptions?
  • Did the reviewer catch anything?
  • What was surprising or non-obvious?

2. Identify Lessons

Extract lessons in these categories:

Investigation Lessons:

  • What did you look at first? Was that the right place?
  • What assumption was wrong?
  • What would you do differently next time?

Technical Lessons (even for non-developers):

  • What component/feature area was the bug in?
  • What made it hard to fix?
  • Are there related areas likely to have similar bugs?

Process Lessons:

  • Did the workflow help or hinder?
  • Was context from the tracker sufficient?
  • Did institutional memory surface useful past lessons?

Pattern Lessons:

  • Is this a recurring bug pattern? (e.g., "long text overflows in translated locales")
  • Does this bug suggest a systemic issue?
  • Should a new safety rule be added to triage.config.yaml?

3. Check for Repeated Mistakes

Read .claude/learning-log.md and check:

  • Did this session repeat a mistake documented in a previous entry?
  • If yes, flag it clearly:
    "REPEATED MISTAKE: This is the same pattern as session {date} ({ticket})."
    "The lesson was: {previous lesson}"
    "Suggestion: Add a review check to catch this pattern."
    

Read the full file on GitHub · 146 lines

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. yesterday Changed · +16 tokens per session 149739136df3
  2. 8d ago First seen · 146 lines · 33 tokens per session scan A 924a066a0f1d

Subscribe to this mod's changes

shepherd-learn is a skill published in the GitHub repository mshadmanrahman/pm-pilot (20 stars, last pushed 2d ago), licensed MIT. It adds 49 tokens to every session and 1,057 once invoked, about $0.0002 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