issue-pr-loop
Skill by thomhurst
Runs a GitHub issue and pull request queue unattended when asked for continuous work or /issue-pr-loop. It handles reviews, CI, merges, recovery and issue implementation. It is not meant for handling feedback on a single PR.
Install issue-pr-loop
Built from the published package, never by AI.
git clone --depth 1 https://github.com/thomhurst/TUnit /tmp/TUnit && mkdir -p ~/.claude/skills && cp -r /tmp/TUnit/.agents/skills/issue-pr-loop ~/.claude/skills/issue-pr-loopRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/thomhurst/TUnit /tmp/TUnit && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/TUnit/.agents/skills/issue-pr-loop ~/.gemini/antigravity-cli/skills/issue-pr-loopAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
issue-pr-loop is an agent skill (SKILL.md) that tells an AI assistant to work through a repository's GitHub issues and pull requests without supervision. Each iteration it removes merged worktrees, surveys the queue, and completes one unit in priority order. Units include fixing a red main branch, merging eligible PRs, fixing conflicts, failed CI or review findings, publishing stranded work, tidying issues, and claiming and implementing issues. When nothing is actionable, it runs a triage unit.
Work is coordinated with Redis locks through a scripts/AgentLocks.ps1 script, and implementation runs in isolated git worktrees. Items that cannot proceed are deferred with a named category such as human, upstream, credentials or locked. The skill is aimed at maintainers who want continuous agent work on a GitHub repository. It also supports a single-unit mode for running one item at a time.
Written from the project's SKILL.md and checked against it.
What it can do
- Queue surveySurveys the issue and PR queue and completes one unit per iteration in priority order.
- PR mergingMerges pull requests that are eligible under the repository's merge gate.
- CI and review fixesFixes conflicts, failed CI and review findings on open PRs, then pushes the changes.
- Issue implementationClaims an available issue, implements its full scope, and opens a pull request.
- Red main recoveryFixes a failing main branch under a dedicated lock before other work.
- Queue tidyingCloses parents whose sub-issues are all closed and issues already implemented or superseded.
- TriageRuns a triage or discovery unit when nothing else in the queue is actionable.
- Single-unit modeCompletes exactly one unit and prints a single result line, then stops.
What you need
- PowerShell (pwsh)
- GitHub CLI (gh)
- Redis for locks
- Git with worktree support
- Repository guidance files referenced by the skill
Try asking
- /issue-pr-loop
- Run the issue/PR loop unattended until the queue is empty
- Run the issue-pr-loop once in single-unit mode
Good to know
- Does not handle feedback on a single PR; use it for continuous queue work.
- Defers items that need a human decision, an upstream fix, or credentials.
- Opens at most 15 PRs without needs-human or on-hold by default.
- Reviewing or editing the skill does not start the loop.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/issue-pr-loop/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md20 KB -
references/coordinator.md652 B -
references/draft-review.md4 KB -
references/pick-an-issue.md3 KB -
references/queue-units.md5 KB
Show all 8 files
-
references/recovery.md3 KB -
references/repository.md6 KB -
references/rework-budget.md1 KB
Alternatives to issue-pr-loop
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
issue-pr-loop: common questions
When does the issue-pr-loop skill start running?
It runs when asked for continuous work or the /issue-pr-loop command is used. Reviewing or editing the skill does not start the loop.
How does it stop two workers from changing the same item?
It takes a Redis lock per item, such as pr-N or issue-N. A lock held by another owner means the item is skipped.
What happens when an item cannot be finished?
It is deferred with a category such as human, upstream, credentials or locked. The blocker is recorded on the issue or PR so people can see it.
How do I install issue-pr-loop?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is issue-pr-loop free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is issue-pr-loop safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to issue-pr-loop?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
