Agent Skillschrisbanes/skills › shepherd

shepherd

GitHub

自动跟进并处理代码审查反馈与CI状态,通过本地验证修复失败项,批量提交并解决线程,仅在授权下合并PR/MR。

skills/shepherd/SKILL.md chrisbanes/skills

Trigger Scenarios

需要跟进Pull Request或Merge Request的审查反馈 需要监控和修复CI构建失败 需要自动处理代码评审中的例行后续工作

Install

npx skills add chrisbanes/skills --skill shepherd -g -y
More Options

Use without installing

npx skills use chrisbanes/skills@shepherd

指定 Agent (Claude Code)

npx skills add chrisbanes/skills --skill shepherd -a claude-code -g -y

安装 repo 全部 skill

npx skills add chrisbanes/skills --all -g -y

预览 repo 内 skill

npx skills add chrisbanes/skills --list

SKILL.md

Frontmatter
{
    "name": "shepherd",
    "description": "Use when asked to shepherd, babysit, monitor, or poll open pull requests or merge requests, including triaging review feedback, CI failures, and routine follow-up."
}

Shepherd

Core principle

Keep an authorized PR or MR moving with evidence, not noise: poll, act on new actionable items, batch each target's local fixes into one push, then resolve addressed threads. After a code-related CI failure, use full local verification as the repair loop and CI only as confirmation. Never merge without explicit authority.

Do not start persistent polling for a one-off inspection, no open targets, or an action requiring human judgment; report the state and stop.

Procedure

  1. Detect the platform with git remote get-url origin: use gh for GitHub and glab for GitLab. If it is ambiguous or unavailable, stop and ask.
  2. Establish targets and a handled-ID snapshot. Every external comment, review, or thread absent from that snapshot is new, including pre-session feedback. After each poll record feedback IDs, CI state, and this controller's comments.
  3. Before repeated polling, use one lowest-cost read-only evidence helper when available. Give it targets and the snapshot; require new feedback IDs, body, location, review state, non-manual CI state, failed jobs, and log references. It never mutates. Keep triage, repairs, replies, pushes, resolution, retries, and merging with the authorized controller.
  4. Poll with the platform CLI using provider commands, then compare complete review, comment, and CI state with the snapshot. Inspect failed logs only when needed. Do not reprocess old feedback or post a status-only update.
  5. Triage new evidence before remote mutation. Fix clear requests and narrow formatting, lint, compile, or test failures; answer clear questions in-thread. Escalate architectural or contradictory feedback, unfamiliar failures, non-obvious fixes, and out-of-scope conflicts. GitLab manual jobs are non-blocking unless instructed otherwise.
  6. Handle each target in its own head checkout and batch every known actionable item. Until a code-related CI failure, validate proportionately. After one, inspect its evidence, run every locally available CI-equivalent check, fix all failures, and rerun the full local suite before one repair push. Report exact checks unavailable locally instead of using CI as an iterative test runner. Reply after an addressed change or answer; resolve its thread only after the reply and required push succeed. Do not combine heads, push after every comment, resolve a local-only fix, or comment when nothing changed.
  7. Recheck CI after the verified repair push; return to step 6 on another code-related failure. Retry a suspected flaky GitLab job once without code changes; report a second failure. Poll pending checks every 2–5 minutes, active repair every 30–60 seconds, and after three or more unchanged cycles every 10+ minutes. Two unchanged cycles remain on the normal 2–5 minute cadence.
  8. Merge only when requirements and CI are green, conflicts are absent, and the user granted explicit or standing merge authority. Do not infer authority from approval.

Finish or escalate

Continue until the user stops monitoring, every target is merged or closed, or an escalation is needed. Report the target, current CI/review state, actions taken, and the next required human decision. Escalate immediately for ambiguous platform/target selection, an unresolved conflict, material human judgment, conflicting reviewer direction, or a failure that remains after three repair cycles.

Version History

  • 2026.8.27 Current 2026-08-28 05:52

    增强CI失败后的本地完整验证流程,支持批量修复后单次推送,并恢复技能评估功能以对比效率指标。

  • 2026.8.24 2026-08-27 17:16

    简化技能指令描述,降低信息冗余度。

  • 2026.8.16 2026-08-19 19:31

    优化轮询工作流,将只读轮询委托给低成本子代理,精简指令并保留安全门禁。

  • 2026.7.21 2026-07-24 12:25

Same Skill Collection

skills/compose-animations/SKILL.md
skills/compose-component-design/SKILL.md
skills/compose-focus-navigation/SKILL.md
skills/compose-modifier-and-layout-style/SKILL.md
skills/compose-performance/SKILL.md
skills/compose-recomposition-performance/SKILL.md
skills/compose-side-effects/SKILL.md
skills/compose-slot-api-pattern/SKILL.md
skills/compose-stability-diagnostics/SKILL.md
skills/compose-state-and-effects/SKILL.md
skills/compose-state-authoring/SKILL.md
skills/compose-state-deferred-reads/SKILL.md
skills/compose-state-hoisting/SKILL.md
skills/compose-state-holder-ui-split/SKILL.md
skills/compose-ui-testing-patterns/SKILL.md
skills/gradle-run/SKILL.md
skills/grounded-writing/SKILL.md
skills/implement-issue/SKILL.md
skills/implement-with-subagents/SKILL.md
skills/kotlin-api-design/SKILL.md
skills/kotlin-concurrency-and-flow/SKILL.md
skills/kotlin-control-flow/SKILL.md
skills/kotlin-coroutines-structured-concurrency/SKILL.md
skills/kotlin-flow-state-event-modeling/SKILL.md
skills/kotlin-functions/SKILL.md
skills/kotlin-multiplatform-expect-actual/SKILL.md
skills/kotlin-types-value-class/SKILL.md
skills/run-github-project/SKILL.md
skills/to-plan/SKILL.md
skills/using-chrisbanes-skills/SKILL.md

Metadata

Files
0
Version
2026.8.27
Hash
ad26298e
Indexed
2026-07-24 12:25

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-28 06:42
浙ICP备14020137号-1 $Carte des visiteurs$