chonsong/riptide/github-pr-lifecycle
Claude Code and agent skill by chonsong/riptide
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install chonsong/riptide/github-pr-lifecycleSKILL.md
The same SKILL.md was published earlier as chonsong/riptide/github-pr-lifecycle.
GitHub PR Lifecycle
Branch → commit → push → create → edit → CI → merge. The gh way plus the curl/api fallback with documented pitfalls.
Workflow
Silent-Failures (ALWAYS Check)
- gh pr edit — returns exit code 1 WITHOUT applying edit when GitHub emits deprecation warning. Use
gh api -X PATCHinstead. - gh pr diff >20k lines — fails with "diff exceeded maximum." Use
gh api repos/O/R/pulls/N/files --paginate. - GITHUB_TOKEN env var — overrides stored
ghauth. If stale/revoked,unset GITHUB_TOKEN GH_TOKEN. - Inline comments —
-F line=N(integer) not-f line=N(string). String "42" → 422 error. - Markdown bodies — shell mangles backticks. Use
gh pr comment --body-file <file>not--body. - gh release upload — stores asset by file basename. Rename before upload or lookup fails.
- gh pr diff — no file path filtering. Use
git diffwith PR branch for per-file.
Pre-Flight (Before Deep Analysis)
Posting Inline Comments
Fields:
| Field | Type | Flag | |
|---|---|---|---|
| body | string | -f body='...' | |
| commit_id | string (full SHA) | -f commit_id='...' | |
| path | string | -f path='...' | |
| line | integer | -F line=N | |
| side | RIGHT/LEFT | -f side='RIGHT' |
LEFT side = old file (deleted lines). RIGHT side = new file (added/modified).
Markdown in body — use --input with JSON file to avoid shell mangling:
Multi-line — add start_line and start_side.
CI Validation Triage
Merge Inflation Detection
PR shows 100+ files but title says small change:
Dead Code Verification
When PR removes code, verify unreferenced:
Zero hits → safe to remove. Hits in files NOT modified → still has live callers.
Bot Filter Chain
For cron-polled PR bots:
24h cooldown is redundant — SHA dedup already prevents re-processing. Remove it.
Subagent 3-Bullet Rule
- Input: file path, diff, JSON
- Task: exactly one action
- Output: path, format, pass/fail
NEVER: background context, "explore the architecture," multi-step exploration.
References (Load on Demand)
references/merge-inflation.md— PR shows 50+ files but title describes small changereferences/ghost-diff.md— fork master behind upstream, 100+ file ghost diffreferences/inline-comments.md— posting inline review comments with markdownreferences/excalidraw.md— generating and uploading architecture diagramsreferences/bot-patterns.md— building cron-polled PR botsreferences/dead-code.md— verifying removed code is unreferencedreferences/ci-triage.md— CI failures vs pre-existing red on masterreferences/cron-constraints.md— execute_code blocked, heredoc blocked, rm -rf blockedreferences/generated-artifacts.md— PRs with 4000+ LOC from graphify-out/references/patch-reformat.md— patch tool reformatting whole file on small editreferences/scope-reduction.md— surgical removal via interactive rebase
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/github-pr-lifecycle/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chonsong/riptide/github-pr-lifecycle)