skills/gh-update-pr/SKILL.md
Use when updating GitHub PR title or body. Works around the gh pr edit GraphQL bug caused by GitHub's Projects Classic deprecation.
npx skillsauth add lwlee2608/agent-skills gh-update-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
gh pr edit is broken due to GitHub deprecating Projects Classic (projectCards GraphQL field error). Use the REST API instead. gh pr view and gh pr create still work fine — only gh pr edit is affected.
gh pr edit to update PR title or body. It will fail with a GraphQL error.gh api with the REST endpoint. Always pipe JSON via jq --arg to avoid shell injection:
jq -n --arg title "..." --arg body "..." '{title: $title, body: $body}' | \
gh api repos/{owner}/{repo}/pulls/{number} -X PATCH --input - --jq '.html_url'
gh pr view --json number,url,baseRefName
body in the JSON payload, and vice versa. Including an unchanged field risks overwriting it with stale content.html_url (not an error).gh pr view --json title,body and verify the updated fields match what was intended.gh pr view needs repo context. If it fails, pass --repo owner/repo explicitly.gh pr view first — do not hardcode or assume them.documentation
Use when the user wants to condense the current conversation into a handoff document for another agent to pick up.
development
Use when the user asks to explain or teach a technical concept. Replies in plain language with a simple diagram instead of a wall of jargon.
development
Use when writing or editing a system prompt for any LLM API or SDK (any code passing a `system=` / `system` role parameter, or a `.txt`/`.md` file holding such a prompt). Applies prompt-engineering and prompt-caching best practices.
tools
Use before running any Go toolchain command (`go build`, `go test`, `go run`, `go vet`, `go fmt`, `golangci-lint`). Substitutes make targets when a Makefile is present.