بنقرة واحدة
pull-requests
// Guide for creating, updating, and following up on pull requests in the Coder repository. Use when asked to open a PR, update a PR, rewrite a PR description, or follow up on CI/check failures.
// Guide for creating, updating, and following up on pull requests in the Coder repository. Use when asked to open a PR, update a PR, rewrite a PR description, or follow up on CI/check failures.
Run a Coder PR dogfood instance: inspect PR context, check out the right branch or stack, start Coder with scripts/develop.sh using agent-safe dev-instance practices, validate the changed functionality with UI evidence when needed, and report findings.
Use this skill when a repository already has an open pull request and you need to run the Coder Agents Review loop: request review with `/coder-agents-review` when needed, wait for feedback from the `coder-agents-review` GitHub app, fix issues, and repeat until the app comments `approved`.
Multi-reviewer code review. Spawns domain-specific reviewers in parallel, cross-checks findings, posts a single structured GitHub review.
Iteratively refine development plans using TDD methodology. Ensures plans are clear, actionable, and include red-green-refactor cycles with proper test coverage.
Reviews code changes for bugs, security issues, and quality problems
Checks if code changes require documentation updates
| name | pull-requests |
| description | Guide for creating, updating, and following up on pull requests in the Coder repository. Use when asked to open a PR, update a PR, rewrite a PR description, or follow up on CI/check failures. |
Use this skill when asked to:
Use the canonical docs for shared conventions and validation guidance:
.claude/docs/PR_STYLE_GUIDE.mdAGENTS.md (Essential Commands and
Git Hooks sections)GitHub renders the PR description as Markdown and soft-wraps paragraphs to the viewport. Do not hard-wrap prose at 72 or 80 columns. Insert manual line breaks only where Markdown needs them: between paragraphs, around headings, lists, tables, code blocks, and blockquotes.
The commit message body is not the PR body. Commit messages are typically
hard-wrapped; PR bodies are not. When deriving the PR body from a commit
message, unwrap each paragraph into a single line before passing it to
gh pr create --body or --body-file.
Check for an existing PR before creating a new one:
gh pr list --head "$(git branch --show-current)" --author @me --json number --jq '.[0].number // empty'
If that returns a number, update that PR. If it returns empty output, create a new one.
Check you are not on main. If the current branch is main or master,
create a feature branch before doing PR work.
Default to draft. Use gh pr create --draft unless the user explicitly
asks for ready-for-review.
Keep description aligned with the full diff. Re-read the diff against the base branch before writing or updating the title and body. Describe the entire PR diff, not just the last commit.
Never auto-merge. Do not merge or mark ready for review unless the user explicitly asks.
Never push to main or master.
Always watch CI checks after pushing. Do not push and walk away.
After pushing:
gh pr checks <PR_NUMBER> --watch.gh pr view <PR_NUMBER> --json statusCheckRollup for programmatic check
status.If checks fail:
gh pr checks output.gh run view <run-id> --log-failed.make pre-commit.origin/main or origin/master.