Agent Pr Replay
Description
Agent PR Replay takes merged PRs from any repository, reverse-engineers the task prompt, runs Claude Code against it, and compares what the agent did versus what humans actually shipped. The result is targeted, empirical guidance.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Agent PR Replay
**Discover how AI coding agents actually navigate your codebase, and where they diverge from human developers.**
The best way to improve an agent's ability to work in a codebase is to observe its default behavior, measure the gap against real human solutions, and steer it based on evidence.
Agent PR Replay takes merged PRs from any repository, reverse-engineers the task prompt, runs Claude Code against it, and compares what the agent did versus what humans actually shipped. The result is targeted, empirical guidance.
**[See example reports →](examples/)**
How It Works
flowchart TB
subgraph ground["① Ground Truth: Human PRs"]
H1["PR #1234 merged"] --> H2["Human diff:
auth.py +12 -3"]
end
subgraph replay["② Replay"]
R1["Checkout base commit"] --> R2["Reverse-engineer prompt:
'Fix login validation for empty passwords'"]
end
subgraph agent["③ Run Claude Code"]
A1["Claude explores codebase"] --> A2["Claude diff:
auth.py +28 -3, test_auth.py +45"]
end
subgraph compare["④ Compare & Synthesize"]
C1["Human: minimal fix
Claude: added tests, refactored"] --> C2["Gap: over-engineering"]
C2 --> C3["CLAUDE.md / AGENTS.md:
'Match scope of request,
don't add tests unless asked'"]
end
ground --> replay
replay --> agent
ground --> compare
agent --> compare
- Ground Truth: Start with real merged PRs as human-validated solutions
- Replay Setup: Checkout the repo at the PR's base commit, reverse-engineer a task prompt from the diff
- Run Agent: Execute Claude Code with the prompt (same starting point, same task, different solver)
- Compare: Diff what Claude changed vs what humans shipped; identify systematic gaps
- Synthesize: Generate targeted guidance (CLAUDE.md, AGENTS.md, skills) based on observed behavioral patterns
Installation
**Prerequisites:**
- Python 3.11+
- [GitHub CLI](https://cli.github.
Related Skills
使用 Git Worktrees
创建孤立的 Git worktrees,带有智能目录选择与安全验证。
Git Claude skills github
[Building agent skills blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-ag
Git #148
, [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
Git GitHub MCP
| Token | Repos, issues, PRs, workflows |
Git GitHub MCP Server
Official first-party server to read repos, manage issues/PRs, and automate workflows.
Git mcp-server-github
GitHub API integration for repos, issues, PRs.
Git