An AI Agent Skill that automatically reads a GitHub issue, analyzes the codebase, implements a fix, and submits a pull request — end-to-end, with one confirmation.
npx skills add 4yDX3906/issue-to-prOr install via ClawHub:
clawhub install issue-to-prThat's it! Once installed, just give your AI agent a GitHub issue URL and watch it work.
- 8-Phase Automated Workflow — from issue parsing to automatic PR submission
- GitHub CLI Integration — uses
ghfor fast, authenticated access withfetch_contentfallback - Smart Repo Detection — auto-detects if you're already in the right repo or clones it
- Default Branch Detection — automatically identifies
main,master, or custom default branches - Minimal Diffs — changes only what's necessary, respecting existing code style
- Built-in Verification — runs tests, linting, and format checks before finishing
- Interactive PR Submission — review changes first, then auto-submit with one confirmation
- Auto-Fork Support — automatically forks repositories when you lack write access
- Structured Output — generates commit messages and PR descriptions ready to use
| Tool | Required | Notes |
|---|---|---|
git |
✅ Yes | Must be installed and configured |
gh (GitHub CLI) |
📌 Recommended | Enables fast issue fetching and PR creation. Install: cli.github.com |
clawhub install issue-to-prbash scripts/install.shOr directly from the repo:
git clone https://github.com/ClawHub/issue-to-pr.git
cd issue-to-pr
bash scripts/install.shmkdir -p ~/.qoder/skills/issue-to-pr
cp SKILL.md ~/.qoder/skills/issue-to-pr/SKILL.mdIn your AI-powered editor (Qoder, Cursor, Claude Code, etc.), simply provide a GitHub issue URL:
/fix-issue https://github.com/owner/repo/issues/123
Or describe it naturally:
Fix this GitHub issue: https://github.com/facebook/react/issues/12345
The agent will automatically:
- Parse the issue URL and fetch details
- Clone or locate the repository
- Analyze the codebase to find the root cause
- Implement a minimal fix
- Run tests and linting
- Present changes and wait for your confirmation
- Auto-submit a PR (commit, push, and create PR) upon approval
GitHub Issue Parse & Fetch Analyze Code Implement Fix Run Tests Submit PR
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌─────────┐ ┌─────────┐
│ 📋 │ ─▶ │ 🔍 │ ─▶ │ 🧠 │ ─▶ │ 🔧 │ ─▶ │ ✅ │─▶ │ 🚀 │
└──────────┘ └──────────┘ └──────────┘ └──────────┘ └─────────┘ └─────────┘
Read issue Fetch details Trace code Minimal fix Lint & test Push & PR
from GitHub & clone repo & find root respecting to verify with one
cause code style quality confirmation
| Phase | Description |
|---|---|
| 1. Parse URL | Extract owner, repo, and issue number from the GitHub URL |
| 2. Fetch Issue | Retrieve issue title, body, labels, and comments via gh or web scraping |
| 3. Locate Repo | Check the current workspace or clone the repository |
| 4. Analyze | Search the codebase, trace code paths, and identify the root cause |
| 5. Implement Fix | Apply minimal, style-consistent code changes |
| 6. Verify | Run the project's test suite and linters |
| 7. Present Changes | Show fix summary and diff, wait for user confirmation |
| 8. Submit PR | Auto commit, push (with fork fallback), and create PR |
- All code analysis and modifications happen locally on your machine
- Only standard Git/GitHub operations (clone, push, PR) communicate with GitHub
- Uses your existing
ghCLI authentication — no additional credentials stored - The agent never pushes code or creates PRs without your explicit approval
- No telemetry or usage data is collected
Contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch (
git checkout -b feature/improvement) - Commit your changes (
git commit -m 'Add new feature') - Push to the branch (
git push origin feature/improvement) - Open a Pull Request
This project is licensed under the MIT License — see the LICENSE file for details.