SKILL.md

 1---
 2name: fallback-code-review
 3description: Fallback only for agents with no native code-review capability. Do NOT use this skill if the environment provides a `code_review` tool, built-in `code-review` skill, or any first-party review mechanism; use that instead. After confirming no other review mechanism exists, use this skill to get an external review of code changes, commits, PRs, patches, or diffs via CLI tools.
 4user-invocable: true
 5license: LicenseRef-MutuaL-1.2
 6metadata:
 7  author: Amolith <amolith@secluded.site>
 8---
 9
10Get an external review of your code/changes using the appropriate CLI without setting a timeout.
11
12## Selection
13
14Prefer the following in this order.
15
16```
17command -v amp; command -v coderabbit; command -v kodus
18```
19
20If CodeRabbit is rate-limited, use another. If none are usable, tell the user and stop.
21
22## CLI usage
23
24```bash
25kodus review --prompt-only --staged
26kodus review --prompt-only --branch main # Compare changes against branch
27kodus review --prompt-only --commit abc123
28kodus review --prompt-only src/auth.ts
29
30coderabbit review --prompt-only # all changes
31coderabbit review --prompt-only --type committed
32coderabbit review --prompt-only --type uncommitted
33coderabbit review --prompt-only --base main
34
35amp review  # uncommitted changes
36amp review "HEAD~1"
37amp review "main...HEAD"
38amp review -f src/auth.ts
39amp review "068d2222..1800e595" -i "explicit, detailed instructions to focus on something(s) in particular" -f src/auth.ts
40```
41
42NEVER set a timeout when running these commands. A reviewer timing out is a disastrous waste of your time and the reviewer's!
43
44Some of them require running in git repos. Some of them don't understand jujutsu refs and require colocation in a git repo along with "ref..ref" ranges using the commit IDs instead of jujutsu changes. Most, I believe, are able to review unstaged changes in a colocated/git repo.
45
46## Output
47
48Display issues as a numbered list:
49
50```
511. category (severity) - [file-basename](file-path#range): verbatim finding from the code review tool
52```
53
54For example:
55
56```
571. style (nit) - [auth.ts](src/auth.ts#L3-L5): Imports are unsorted and mix standard library, external, and internal packages in a single block without grouping or deterministic ordering
58```
59
60Then ask:
61
62- If other code review tools are available: "Would you like me to fix any of these issues, rerun that, run it differently, or check with [Kodus, CodeRabbit, or Amp] as well?", only listing the available options
63- If only the one is: "Would you like me to fix any of these issues, rerun that, or run it differently?"
64
65If told to fix anything, do so, then go through the same review flow again and stop to present the follow-up review.