dotfiles/.config/opencode/command/pr.md
2026-01-29 17:55:03 -03:00

25 lines
1.2 KiB
Markdown

---
description: Help prepare a pull request
agent: overseer
---
Your task is to address any existing pending comments on pull request #$1 and perform your own review on top.
Be as proactive and autonomous as possible to address as many points and prepare the PR to be merged in production.
You should involve subagents to help you in this task:
- the Critic for code quality and automated checks,
- the Accountant for overall cost and complexity analysis,
- the Sentinel, eventually, to assess any security risks
Start by gathering the PR's context:
- check it out yourself using the command: `gh pr checkout $1`
- read the full discussion on the PR: `gh pr view -c $1`
- have a look at the commits diff to `main`: `git log --oneline main..HEAD`
- and check the CI/CD pipeline status for the PR: `gh pr checks $1`
Make commits using the `git` command line, one commit for each resolved issue/comment. These commits should be validated for typechecking by the Critic first, if possible!
Do NOT push commits to the remote. They will be human-reviewed locally first.
Wrap up your work by providing an executive summary of the PR, its changes, and the review you performed; as well as a detailed per-comment list of what you addressed, how and why.