Lately, I’ve had a lot of GitHub PRs and Issues to handle, so I’ve worked out an AI workflow:

1. First, analyze what problem the PR or Issue is trying to solve.

2. Is this problem worth solving? If not, reject it outright.

3. If it is worth solving, or worth solving in part, how would you (the AI) approach it?

4. Compare your approach with the changes in the PR, and evaluate both the PR and the proposed approach.

A) Merge directly: The quality is excellent, and the PR works better than or about as well as the approach suggested by the AI, so it can be merged directly.

B) Merge first, then follow up: The PR itself has no major issues, but some details could be improved. In this case, first merge the PR in a WorkTree, then make the follow-up changes, and finally merge into main.

C) Don’t use the PR; implement it yourself, but add a co-author: The problem is real, but the PR takes a different approach or has other issues, so it’s better to implement it yourself. In this case, close the PR and implement it yourself, but add the author as a co-author to respect their work.

5. Verify locally and provide evidence.

Before merging, verify it locally and provide screenshots or a report comparing the state before and after the PR is merged.