/bug-shepherd:shepherd-startfrom bug-shepherd
Opens a focused bug investigation session: pulls full tracker details, loads past lessons and triage history, and builds a structured investigation plan.
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.
Begin a focused investigation session for a single bug. This command sets up context, loads institutional memory, and prepares a structured investigation plan.
Audience: PMs, designers, or developers. No code knowledge required for investigation; code knowledge only needed if you plan to fix it yourself.
{TICKET-ID} (required): The bug tracker ID (e.g., PROJ-1234, #456)Read .claude/triage.config.yaml for project settings. If it does not exist, run
the first-run setup in /shepherd-sync step 1 to create it from the bundled
template, then continue.
team.git_email is set, verify: git config user.email matches. If not, warn:
"Git email mismatch. Expected: {git_email}, Got: {actual}."
"Fix: git config user.email {git_email}"
git status --porcelain. If dirty:
"Working directory has uncommitted changes. Commit or stash before starting a new session."
If .claude/backlog-live.md doesn't exist or is older than 24 hours, run /shepherd-sync first.
Load the appropriate adapter and fetch complete bug details:
For Jira:
For Linear:
For GitHub Issues:
Only if the user intends to fix (not just investigate):
git checkout main && git pull origin main
git checkout -b fix/{TICKET-ID}-{slug}
Where {slug} is a kebab-case summary (max 5 words from the title).
Read .claude/learning-log.md and search for:
If matches found, surface them:
Related lessons from past sessions:
- Session {date}: "{lesson summary}" (from {ticket})
- Pattern: "{recurring pattern description}"
Search all .claude/triage-log-*.md files for this ticket ID. If found:
Triage history:
- {date}: {status} — "{triage notes}"
Based on the bug details, generate a structured investigation plan:
## Session: {TICKET-ID}
**Bug:** {title}
**Priority:** {priority}
**Reported:** {date} by {reporter}
**Category:** {auto-detected: UI/UX, i18n, performance, functionality, etc.}
### What the reporter described
{Summary of the bug in plain language}
### Reproduction steps
1. Go to {URL from bug report}
2. {Step-by-step from description}
3. Expected: {expected behavior}
4. Actual: {actual behavior}
### Investigation checklist
- [ ] Reproduce the bug on live site
- [ ] Check if it affects multiple viewports ({viewports from config})
- [ ] Check if it affects multiple locales (if applicable)
- [ ] Identify the page/component where the bug occurs
- [ ] Check if similar bugs exist in the backlog
- [ ] Determine severity: cosmetic / functional / blocking
### Possible outcomes
- **Fix it**: Create a minimal code change (developer needed)
- **Escalate**: Assign to the right team with context
- **Close**: Cannot reproduce with documented evidence
- **Defer**: Confirmed but low priority, add context for later
Present the complete briefing and wait for the user to direct next steps. Do NOT start investigating automatically. The user decides what to do.
Session ready: {TICKET-ID} — {title}
Branch: fix/{TICKET-ID}-{slug} (if created)
{count} related lessons loaded from memory.
What would you like to do?
- "Reproduce it" — I'll check the live site
- "Investigate" — I'll trace through the codebase
- "Just context" — I've shown you everything, take it from here
CRITICAL RULES:
/shepherd-learn.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mshadmanrahman/pm-pilot --plugin bug-shepherd5 skills in this plugin
/shepherd-learnCapture what a bug session taught into a learning log that future sessions read. Records root cause, wrong assumptions, recurring patterns, and any triage verdict that turned out wrong. Use at the end of a bug session./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-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.Other plugins' skills for the same job