/bug-shepherd:shepherd-learnfrom bug-shepherd
Captures bug session lessons into a learning log for future reference. Records root cause, wrong assumptions, recurring patterns, and triage mistakes. Use at the end of a bug session.
Ships in bug-shepherd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
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.
Analyze what happened in this session:
{TICKET-ID})Extract lessons in these categories:
Investigation Lessons:
Technical Lessons (even for non-developers):
Process Lessons:
Pattern Lessons:
triage.config.yaml?Read .claude/learning-log.md and check:
"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."
Append a structured entry to .claude/learning-log.md:
---
### {TICKET-ID} | {Short description} | {date}
**Bug:** {One-line description}
**Root Cause:** {One-line root cause in plain language}
**Iterations:** {number} (1 = got it right first try)
**Category:** {UI/UX | i18n | Performance | Functionality | Data | Infrastructure}
**Lesson:**
{2-3 sentences capturing the key insight. Written so someone unfamiliar with the codebase can understand.}
**Pattern:**
{Is this part of a broader pattern? What other bugs might look similar?}
**Process Note:**
{Optional: any workflow improvement suggestion}
Update the bug's status in .claude/backlog-live.md:
Based on the session, proactively suggest improvements:
triage.config.yaml?never_auto_cancel?Session complete: {TICKET-ID}
Lessons captured in learning-log.md
{count} total entries in learning log
Suggestions:
- {improvement 1, if any}
- {improvement 2, if any}
Run /clear to reset for the next session.
The learning log (.claude/learning-log.md) follows this format:
# Bug Shepherd Learning Log
> Institutional memory for {project.name}
> Read this at the start of every session.
## How to Use This Log
- Scan for entries related to your current bug's category
- Look for patterns that might apply
- If you find yourself repeating a documented mistake, stop and re-read
## Entries
{Entries are appended here in reverse chronological order}
After 10 sessions, the learning log typically reveals:
This is the real value of Bug Shepherd: it gets smarter the more you use it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bug-shepherd, learning-log, bug-triage, institutional-memory, postmortem
5 skills in this plugin
/shepherd-reviewBug Shepherd's quality gate for a fix written during a /shepherd-start session. Reviews the diff in an isolated subagent that never saw the investigation, then reports PASS, WARN or BLOCK. Needs a fix/{TICKET-ID} branch and .claude/triage.config.yaml, so use it inside a Bug Shepherd session, not as a general code reviewer./shepherd-startOpen a focused investigation session for one bug: pull its full tracker detail, load past lessons and triage history, and produce an investigation plan. Use when starting work on a single ticket, after /shepherd-sync has built the backlog./shepherd-syncPull all open bugs from Jira, Linear, or GitHub Issues into a local backlog file. Read-only. Use before a triage run, or when the local backlog is stale./shepherd-triageLaunch parallel agents to check whether old bugs still reproduce on the live site, turning a stale backlog into a prioritized verified list. Use when a bug backlog needs cleaning without reading code.npx claudepluginhub mshadmanrahman/pm-pilot --plugin bug-shepherdOther plugins' skills for the same job