pr-comment-workflow
PR Comment Workflow
Procedural knowledge for writing and responding to PR review comments.
Comment Style Rules
- lowercase start for all sentences
- never use em-dashes (
—,–,--) between sentences, expressions, examples, or terms. Use commas, periods, or "or" instead - no complex sentences
- simple terms, concise
- no end-of-sentence punctuation if possible
- max 1 sentence or shorter per comment
- polite when responding to real people
- bot comments: single concise sentence, no pleasantries ("good catch", "nice find", "thanks"), just state the fact directly
Review Comment Rules
- Only create pending PR comments, never submit/confirm review automatically
- Leave all comments for human review before posting
- When creating review comments, follow the style rules above
Pending Review API Workflow
When posting review comments via gh api, use the two-step pending flow:
- Create pending review:
gh api repos/{owner}/{repo}/pulls/{number}/reviews -f event=PENDING -f body="" - Add comments to pending review:
gh api repos/{owner}/{repo}/pulls/{number}/reviews/{review_id}/comments -f body="..." -f path="..." -F line=N -f side=RIGHT - Never call the submit endpoint, leave for human to review and submit
- Output the review URL so user can review and submit manually
Reply Comment Posting
Reply comments (responses to existing threads) are posted directly, not as pending:
- Use
gh api repos/{owner}/{repo}/pulls/comments/{comment_id}/replies -f body="..." - Add a random 3-5 second delay between each reply:
sleep $((RANDOM % 3 + 3))
Resolving Review Feedback
- Fetch unresolved comments from PR
- For each comment, decide if valid concern or not
- If valid: fix the code AND search for same problem in other codebase locations, fix all occurrences
- If not valid: draft a concise response
- If automated bot comment: single concise sentence, no pleasantries, just state the fact
- Present all draft responses to user before posting
More from fcakyon/claude-codex-settings
paper-search-usage
This skill should be used when user asks to "search for papers", "find research papers", "search arXiv", "search PubMed", "find academic papers", "search IEEE", "search Scopus", or "look up scientific literature".
91gcloud-usage
This skill should be used when user asks about "GCloud logs", "Cloud Logging queries", "Google Cloud metrics", "GCP observability", "trace analysis", or "debugging production issues on GCP".
62setup
This skill should be used when the user asks "how to setup GitHub CLI", "configure gh", "gh auth not working", "GitHub CLI connection failed", "gh CLI error", or needs help with GitHub authentication.
53tavily-usage
This skill should be used when user asks to "search the web", "fetch content from URL", "extract page content", "use Tavily search", "scrape this website", "get information from this link", or "web search for X".
48azure-usage
This skill should be used when user asks to "query Azure resources", "list storage accounts", "manage Key Vault secrets", "work with Cosmos DB", "check AKS clusters", "use Azure MCP", or interact with any Azure service.
48pr-workflow
This skill should be used when user asks to "create a PR", "make a pull request", "open PR for this branch", "submit changes as PR", "push and create PR", or runs /create-pr or /pr-creator commands.
47