/bug-shepherd:shepherd-syncfrom bug-shepherd
Pulls open bugs from Jira, Linear, or GitHub Issues into a local backlog file for offline triage. Run before triage sessions or when the local backlog is stale.
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.
Read when SKILL.md points to them.
Pull all open bugs from your tracker into a local backlog file for offline triage.
This command only reads. It never writes to the tracker. Tracker writes happen
in /shepherd-triage, behind the approval gate.
Read .claude/triage.config.yaml to get tracker type, project key, and team settings.
If the config file is missing, create it before doing anything else. This is the first-run path for every Bug Shepherd command, so do it here rather than sending the user away:
.claude/triage.config.yaml.
It lives at templates/triage.config.yaml in the bug-shepherd plugin
directory, and it ships with cautious defaults for every setting.project:
name, live_url, tracker (jira, linear or github-issues), and
tracker_project. Ask for all four in one message.tracker_config block matching their tracker and fill in what
it needs.Do not invent values, and do not proceed with a partial config. A wrong
live_url makes every reproduction verdict meaningless, and a wrong
tracker_project points the write path at the wrong board.
Based on project.tracker in config, load the matching adapter bundled with this skill in references/:
jira: Read references/jira.md for Jira-specific query patternslinear: Read references/linear.md for Linear-specific patternsgithub-issues: Read references/github-issues.md for GitHub Issues patternsExecute the tracker-specific query to fetch ALL open bugs. Handle pagination.
For Jira (via Atlassian MCP):
project = {tracker_project} AND issuetype = Bug AND status NOT IN (Done, Cancelled) ORDER BY created ASCcreated > {last_date} until no more resultsFor Linear (via Linear MCP):
For GitHub Issues (via gh CLI):
gh issue list --repo {repo} --label bug --state open --limit 500 --json number,title,state,labels,createdAt,assignees,bodyFor Jira: Query sprint in openSprints() to find the active sprint name and ID.
For Linear: Get current cycle.
For GitHub: Skip (no sprint concept).
Store sprint info for later use by /shepherd-triage.
Write results to .claude/backlog-live.md:
# Bug Backlog — {project.name}
> Last synced: {ISO 8601 UTC timestamp}
> Sprint: {sprint_name} (ID: {sprint_id})
> Total open bugs: {count}
| Key | Status | Priority | Created | Assignee | Summary | Triaged |
|-----|--------|----------|---------|----------|---------|---------|
| {key} | {status} | {priority} | {date} | {assignee} | {summary} | {yes/no} |
Cross-reference with existing triage logs to mark bugs as "Triaged" if they've been checked before.
Compare with previous backlog (if exists):
Output:
Backlog synced: {count} open bugs
+{new} new since last sync
-{removed} closed/cancelled externally
~{changed} status changes
Sprint: {sprint_name}
Other commands (/shepherd-start, /shepherd-triage) should auto-run this sync if backlog-live.md is older than 24 hours. Check the "Last synced" timestamp in the file header.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
backlog-sync, bug-tracking, triage, jira, linear, github-issues
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-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-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