- 📄 SKILL.md
github-pr-fix
Fix unresolved PR review threads — fetch feedback, assess each thread, apply surgical fixes, commit, push, resolve threads on GitHub, and post a summary comment. **Triggers — use this skill when:** - User says "fix PR", "fix review feedback", "address PR comments" - User pastes PR review threads or review bot output - User says "resolve review threads", "handle PR feedback" - User mentions "/gh-pr-fix" or "pr-fix" workflow - User asks to "go through PR comments and fix them" - User shares a GitHub PR URL with review feedback to address **Covers:** Any GitHub PR with unresolved review threads. Fetches threads via GraphQL, presents assessment, applies fixes, commits, pushes, resolves threads, and posts a summary comment. --- # GitHub PR Fix — Review Thread Resolution Fix unresolved review threads on a GitHub pull request. This is the manual workflow equivalent of the `/gh-pr-fix` command from the `pi-github` extension. ## Prerequisites - `gh` CLI installed and authenticated - On the PR's feature branch (or in its worktree) - Push access to the repo ## Workflow ### Step 1: Identify the PR If the user hasn't provided a PR number, detect it: ```bash # From current branch gh pr view --json number,title,headRefName,url # Or list open PRs with review feedback gh pr list --state open --json number,title,headRefName ``` ### Step 2: Fetch unresolved review threads