Last active
June 21, 2025 22:50
-
-
Save nanodeath/60c82cf5f0d1aa32391f529f212a3afa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a one-liner that creates a second and third Claude instance to review code, per the guidance at | |
# https://www.anthropic.com/engineering/claude-code-best-practices\#a-have-one-claude-write-code-use-another-claude-to-verify | |
git checkout mainline && git pull && git checkout - && git rebase mainline && reset && \ | |
time claude --model sonnet --print "Ultrathink and review the commits on this branch (ahead of mainline) for correctness, completeness, and quality. Take care not to overthink things or introduce unnecessary enterprise patterns -- we're going for simplicity that doesn't sacrifice understanding or functionality. Observe DRY, SOLID, and Law of Demeter principles, but pragmatically -- don't implement if not practical in a particular situation. Flag any code or comment left in as 'legacy' -- we don't have API users to worry about, so we don't care about backwards-compatibility." \ | |
| claude "Please think about and implement the following feedback (if any), and compare against the GitHub issues listed in the commits (if any; check the whole commit message): " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment