issue-to-pr
issue-to-pr — Automatically fix GitHub issues end-to-end: reads the issue, analyzes repository code, implements a fix, and submits a pull request. Use when the user provides a GitHub issue URL, mentions fixing a GitHub issue, or uses the /fix-issue command. Supports URLs in the format https://github.com/{owner}/{repo}/issues/{number}.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/4ydx3906/issue-to-prissue-to-pr — Agent Skill
You are an autonomous agent that reads a GitHub issue, understands the problem, locates the relevant code, implements a fix, and prepares everything for review. Follow the phases below in order, using the checklist to track progress.
Progress Checklist
Use this checklist to track your progress through the workflow:
- Phase 1: Parse Issue Reference
- Phase 2: Fetch Issue Details
- Phase 3: Clone or Locate Repository
- Phase 4: Analyze the Issue
- Phase 5: Implement the Fix
- Phase 6: Verify the Fix
- Phase 7: Present Changes & Get Confirmation
- Phase 8: Submit Pull Request (User-Approved)
Phase 1: Parse Issue Reference
Extract the GitHub issue reference from the user's input.
Supported input formats:
| Format | Example |
|---|---|
| Full URL | https://github.com/owner/repo/issues/123 |
| Shorthand | owner/repo#123 |
| Issue number only | #123 or 123 (requires being in a git repo) |
Parsing logic
- Full URL: Scan for
https://github.com/{owner}/{repo}/issues/{number}and extract components directly. - Shorthand: Match
{owner}/{repo}#{number}pattern. - Issue number only: If only a number (or
#number) is provided:- Run
git remote -vto detect the current repository's GitHub remote. - Parse
ownerandrepofrom the remote URL (supports both HTTPS and SSH formats). - If not in a git repo or no GitHub remote is found, ask the user for the full URL.
- Run
- If no valid reference is found, ask the user to provide a valid GitHub issue URL.
- Confirm the parsed values before proceeding:
Parsed issue: {owner}/{repo}#{number}
Phase 2: Fetch Issue Details
Retrieve the full issue content including title, body, labels, and comments.
Strategy A: Use gh CLI (preferred)
Run in the terminal:
gh issue view {number} --repo {owner}/{repo} --comments
If the command succeeds, extract from the output:
- Title
- Body / Description
- Labels
- Comments (may contain important context, reproductions, or workarounds)
Strategy B: Fallback to fetch_content
If gh is not installed or the command fails:
- Use the
fetch_contenttool with the issue URL:https://github.com/{owner}/{repo}/issues/{number} - Parse the fetched page content to extract:
- Issue title and body
- Any referenced file paths, error messages, or stack traces
- Comments from maintainers or the reporter
Extract Key Information
From the issue content, identify and note:
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-4ydx3906-issue-to-pr": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
obsidian-cli
Skill for the official Obsidian CLI (v1.12+). Complete vault automation including files, daily notes, search, tasks, tags, properties, links, bookmarks, bases, templates, themes, plugins, sync, publish, workspaces, and developer tools.
onlyclaw-social-commerce
在只来龙虾平台以龙虾身份自动发帖带货、读取帖子、检索帖子、点赞评论,支持关联商品/店铺/Skill、封面与视频(先上传再发帖),实现 AI Agent 24h 社交电商自动运营
autodream-core
通用记忆整理引擎 — 基于适配器模式的跨平台记忆整理技能。自动去重、合并、删除过时条目。| Universal Memory Consolidation Engine — Adapter-based cross-platform memory organization. Auto-dedup, merge, prune stale entries.
highlevel
Connect your AI assistant to GoHighLevel CRM via the official API v2. Manage contacts, conversations, calendars, pipelines, invoices, payments, workflows, and 30+ endpoint groups through natural language. Includes interactive setup wizard and 100+ pre-built, safe API commands. Python 3.6+ stdlib only — zero external dependencies.
daily-report-generator
Automatically generate daily/weekly work reports from git commits, calendar events, and task lists. Use when you need to quickly create professional work reports without manual effort.