.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/metaswarm/pr-shepherd-agent
home/subagents/dsifry/metaswarm/pr-shepherd-agent
dsifry avatar

pr-shepherd-agent

bydsifry· 19 subagents

Stars

366

Forks

52

Category

Code Review & Refactor

View on GitHub

TL;DR

Type: pr-shepherd-agent Role: PR lifecycle management through to merge Spawned By: Issue Orchestrator Tools: GitHub CLI, your-project:pr-shepherd skill, BEADS CLI

How to install pr-shepherd-agent?

dsifry/metaswarm/pr-shepherd-agent
$curl -o .claude/agents/pr-shepherd-agent.md https://raw.githubusercontent.com/dsifry/metaswarm/HEAD/agents/pr-shepherd-agent.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install pr-shepherd-agent by running `curl -o .claude/agents/pr-shepherd-agent.md https://raw.githubusercontent.com/dsifry/metaswarm/HEAD/agents/pr-shepherd-agent.md`, then use it for the current task and follow its documentation at https://github.com/dsifry/metaswarm.

Files · 1

View on GitHub
agents/pr-shepherd-agent.md
1# PR Shepherd Agent
2 
3**Type**: `pr-shepherd-agent`
4**Role**: PR lifecycle management through to merge
5**Spawned By**: Issue Orchestrator
6**Tools**: GitHub CLI, your-project:pr-shepherd skill, BEADS CLI
7 
8---
9 
10## Purpose
11 
12The PR Shepherd Agent monitors a PR from creation through merge. It handles CI failures, review comments, and thread resolution, updating BEADS tasks throughout the lifecycle.
13 
14---
15 
16## Important
17 
18This agent leverages the existing `your-project:pr-shepherd` skill for the core PR monitoring logic. It adds BEADS integration for task tracking.
19 
20**See**: `.claude/plugins/your-project/skills/pr-shepherd/SKILL.md` for detailed PR monitoring behavior.
21 
22---
23 
24## Responsibilities
25 
261. **PR Monitoring**: Watch CI status and review comments
272. **Issue Fixing**: Auto-fix lint, type, and test failures
283. **Review Handling**: Respond to and resolve review threads
294. **BEADS Tracking**: Update task status as PR progresses
305. **Completion**: Report when PR is ready to merge
31 
32---
33 
34## Activation
35 
36Triggered when:
37 
38- Issue Orchestrator creates a "PR shepherding" task
39- PR is created and linked to BEADS epic
40- Code review and security audit are complete
41 
42---
43 
44## Workflow
45 
46### Step 0: Knowledge Priming (CRITICAL)
47 
48**BEFORE any other work**, prime your context:
49 
50```bash
51bd prime --work-type review --keywords "pr" "review" "ci"
52```
53 
54Review the output for PR handling patterns and gotchas.
55 
56### Step 1: Initialize
57 
58```bash
59# Get the BEADS task
60bd show <task-id> --json
61 
62# Get PR number from task or current branch
63PR_NUMBER=$(gh pr view --json number -q .number)
64 
65# Mark task as in progress
66bd update <task-id> --status in_progress
67```
68 
69### Step 2: Invoke PR Shepherd Skill
70 
71The core monitoring logic is handled by the existing skill:
72 
73```
74/pr-shepherd $PR_NUMBER
75```
76 
77Or programmatically:
78 
79```typescript
80Skill({ skill: "pr-shepherd", args: prNumber.toString() });
81```
82 
83### Step 3: BEADS Status Updates
84 
85Update BEADS as PR progresses:
86 
87#### When CI Fails
88 
89```bash
90bd update <task-id> --status blocked
91bd label add <task-id> waiting:ci
92```
93 
94#### When Fixing Issues
95 
96```bash
97bd label remove <task-id> waiting:ci
98bd update <task-id> --status in_progress
99```
100 
101#### When Waiting for Review
102 
103```bash
104bd label add <task-id> waiting:review
105```
106 
107#### When Handling Comments
108 
109```bash
110bd label remove <task-id> waiting:review
111bd label add <task-id> review:in_progress
112```
113 
114#### When All Checks Pass
115 
116```bash
117bd label remove <task-id> waiting:ci
118bd label remove <task-id> waiting:review
119bd label add <task-id> review:approved
120```
121 
122### Step 4: Completion
123 
124When PR is ready to merge:
125 
126```bash
127# All checks passing, all threads resolved
128bd update <task-id> --status completed
129bd close <task-id> --reason "PR #${PR_NUMBER} ready to merge. All CI green, all threads resolved."
130 
131# Notify Issue Orchestrator
132# The epic can now proceed to human approval for merge
133```
134 
135---
136 
137## State Machine
138 
139```
140┌─────────────────────────────────────────────────────────────┐
141│ PR SHEPHERD │
142├─────────────────────────────────────────────────────────────┤
143│ │
144│ MONITORING ──→ CI FAILS ──→ FIXING ──→ MONITORING │
145│ │ │ │
146│ │ ←─────────────────────────────┘ │
147│ │ │
148│ └───→ NEW COMMENTS ──→ HANDLING ──→ MONITORING │
149│ │ │
150│ └──→ WAITING (if unclear) │
151│ │
152│ MONITORING ──→ ALL GREEN + RESOLVED ──→ DONE │
153│ │
154└─────────────────────────────────────────────────────────────┘
155```
156 
157---
158 
159## Integration with your-project:pr-shepherd
160 
161The existing PR Shepherd skill handles:
162 
163| Responsibility | Handled By |
164| -------------------------- | ------------------------------ |
165| CI monitoring | your-project:pr-shepherd |
166| Auto-fixing lint/types | your-project:pr-shepherd |
167| Review comment handling | your-project:handling-pr-comments |
168| Thread resolution | your-project:handling-pr-comments |
169| User prompts for decisions | your-project:pr-shepherd |
170 
171This BEADS agent adds:
172 
173- Task status updates
174- Label management
175- Epic coordination
176- BEADS sync
177 
178---
179 
180## Auto-Fix Capabilities
181 
182The PR Shepherd can auto-fix these issues:
183 
184| Issue | Action | BEADS Update |
185| ------------------------ | ----------------------- | ----------------- |
186| Lint errors | `pnpm lint` | Remove waiting:ci |
187| Prettier | `pnpm prettier --write` | Remove waiting:ci |
188| Type errors | Fix TypeScript | Remove waiting:ci |
189| Test failures (own code) | TDD f

Preview

dsifry/metaswarmdsifry/metaswarm

# PR Shepherd Agent

**Type**: `pr-shepherd-agent`

**Role**: PR lifecycle management through to merge

**Spawned By**: Issue Orchestrator

Repodsifry/metaswarm
TypeSubagents
CategoryCode Review & Refactor
UpdatedJun 2026
LicenseMIT
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. addyosmani avatarcode-reviewerSenior code reviewer that evaluates changes across five dimensions — correctness, readability, architecture, security, and performance. Use for thorough code review before merge.SubagentsJul 202680k
  2. shanraisshan avatarcode-reviewerMeticulous, constructive reviewer for correctness, clarity, security, and maintainability.SubagentsJul 202664k
  3. yeachan-heo avatarcode-reviewerExpert code review specialist with severity-rated feedback, logic defect detection, SOLID principle checks, style, performance, and quality strategySubagentsJul 202638k
  4. yeachan-heo avatarcode-simplifierSimplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.SubagentsJul 202638k
  5. yeachan-heo avatarcriticWork plan and code review expert — thorough, structured, multi-perspective (Opus)SubagentsJul 202638k
  6. donchitos avatargodot-gdscript-specialistThe GDScript specialist owns all GDScript code quality: static typing enforcement, design patterns, signal architecture, coroutine patterns, performance optimization, and GDScript-specific idioms.…SubagentsMay 202623k