Prompt file imported from cartridge-gg/controller (
.claude/commands/pr.md). Fill in{{arguments}}before use. Copyright stays with the author.
PR workflow
Make sure you are not on the main branch. If so, then start by creating a dedicated new one. Use the commit command if there are any pending changes.
Use the git and gh cli tools to fetch the diff between origin/main and the current branch. Generate a concise summary of the content and purpose of these changes based on the observed diff.
If some {{arguments}} are given, add to the summary "Close {{arguments}}". Use the Linear MCP to fetch the corresponding {{arguments}} issue and make sure that the PR content matches the issue description.
Wait for few minutes after the PR has been created to find a comment from Claude making a detailed review of the PR. If the recommendation is not to approve, work on the suggested improvements.