aarontzeng/dev-lead/cursor-adversarial-review
Claude Code and agent skill by aarontzeng/dev-lead
- community
Checking that the SKILL.md file is still in the repository.
Run a read-only challenge review through Cursor's CLI (cursor-agent) in ask mode. Use when the user asks for a review via Cursor, or when the cross-family rule needs a reviewer family the standalone CLIs cannot field — one paid adapter serving GPT, Claude, Grok, Kimi, Gemini, Meta, GLM, Composer, and auto.
Install
npx vskill@latest install aarontzeng/dev-lead/cursor-adversarial-reviewSKILL.md
The same SKILL.md was published earlier as aarontzeng/dev-lead/cursor-adversarial-review.
Adversarial review via cursor-agent (ask mode)
The value of this leg is family width through one adapter: pin the model per round and the same CLI can be a GPT, Claude, Grok, Kimi, Gemini, Meta or GLM reviewer — whichever family the cross-family accounting still allows. Three of those are other adapters' families (Gemini is agy's, Meta and GLM are opencode's): a swap to cursor keeps the family (runtime file). The model flag IS the accounting decision; auto and every composer-* except composer-2.5 / composer-2.5-fast never satisfy the rule, and those two count as Kimi by the owner's ruling of 2026-10-07 (runtime file, accounting rules).
Before the first run of a session
Read [`references/cursor-runtime.md`](references/cursor-runtime.md) (same directory). The three measured postures matter more than anything else in it: bare -p writes files without asking, --mode plan headless returns empty output every time, and --mode ask is the one posture that both refuses writes and delivers a report. The skill below assumes those three facts; do not re-derive them at dispatch time.
Establish an immutable review target
One frozen directory per reviewer, at the exact commit, that nothing else touches — no lead activity inside it. Not "whenever possible": a reviewer reads the WORKING TREE, not your commit. Measured — a round ran mutation testing in the same worktree mid-review and the reviewer opened a CRITICAL on a mutated, non-compiling file it was never meant to see.
Freeze it with the suite's tested helpers instead of hand-rolling the shell; every bug ever found in this step was in a hand-rolled copy. The suite-root resolver and both calls — freeze-target.sh to create it, verify-target.sh before AND after the run — are in dev-lead Phase 2, and the reasoning is in methodology.md §7. Everything below assumes $REVIEW_TARGET_DIR is that frozen directory and $REVIEW_HEAD is the SHA it was frozen at. A cursor leg can leave the memory plugin's .remember/ in that directory (it runs the lead's plugin hooks): after the leg returns and before the closing verify-target.sh, run clear-host-residue.sh "$REVIEW_TARGET_DIR" (same helper directory); the reason and what it will and will not remove are in the dev-lead Phase 2 note.
Launch one ask-mode review run
Pre-launch guard:
The suite's framing is OPTIONAL on this leg. The codex frame, copied as `references/adversarial-framing.md`, works here because ask mode can run read-only git. Measured on three frozen targets with known answers, three runs per arm (grok-4.7-medium): the plain brief 11, the frame 12, and slower -- inside the noise, so it is not wired into leg-cmd.sh. To use it, put the FRAMED prompt where the launch reads the brief:
Launch under the host's background mechanism. Keep stdout as the JSON audit record and stderr separate; mixing them makes a failed launch look like a malformed successful response.
Running this leg as a subagent? You are a leaf — block, do not "wait". Nothing will wake you when cursor-agent exits; ending your turn on "still running" abandons the review. Poll to exit inside a single tool call, and issue another immediately if it times out (dev-lead Phase 2). Budget for it: a measured -xhigh code review took 48 minutes against ~9 for a -high document review the same day. Launched through leg-cmd.sh (the mandated path) the leg is capped from `launch.json`: the # timeout: line on stderr names the number, and a stop at the cap exits 124 and is not a verdict that the leg hung -- --output-format json prints nothing until the end, so rerun with a larger --timeout <minutes>. The raw command above has no cap at all; if you run it by hand, put `with-timeout.py` in front of it.
Role-specific choices:
- `--mode ask` is load-bearing (measured: refuses writes, still
reports). Never --mode plan here — measured twice returning empty stdout on exit 0, which reads as a completed run that found nothing.
- `--model` is the accounting decision. Pin an explicit family-bearing
model (gpt-…, claude-…, cursor-grok-…, kimi-…, gemini-…, muse-spark-…, glm-…) chosen for the round's cross-family needs; record adapter, flag, and the request_id returned in $RUN_DIR/review.json in the run log. auto and the other composer-* ids are extra eyes only; composer-2.5(-fast) is booked as Kimi.
- JSON audit output is mandatory. On success, preserve the whole
review.json: result is the review text, while session_id and request_id make the run traceable. Do not reconstruct an identifier from prose or stderr.
- Never
-f,--yolo, or--approve-mcpson a review run. - A non-zero exit, or an empty/malformed
review.jsonwith noresult, is a
FAILED run, not an empty verdict; inspect review.err before re-running. A response without request_id is not sufficiently auditable to serve as the accounting gate — retain it as an extra eye only and report the gap.
Verify the target again after the run (plain git status hides an ignored .remember/ or any other ignored write, so the closing check is the suite's):
- Materializing evidence the frozen tree does not contain — another
revision's copy, a merge-base baseline — has cross-family rules on where it goes and what guarantees it carries: `docs/materializing-evidence.md`. Never write scratch files into the frozen target; a leg that genuinely cannot keep them elsewhere declares those exact paths to verify-target.sh instead.
Writing the focus prompt
Same red-team discipline as every family — first-party pre-merge framing, numbered claimed properties with boundaries, falsify-don't-confirm, trigger + observable consequence + severity + file:line per finding, state fixes already made, ask what the tests do not enumerate, forbid praise. Include the evidence gate with unguessable anchors — per file: line count + verbatim last line; per claim: quoted code; NOT REACHED acceptable, HOLDS-without-quote not. Ask mode can satisfy it: a line count and a last line are READ, not executed. Adapter specifics: state that the review is read-only -- no edits, no tests or builds -- so evidence is quoted file content or read-only git output (ask mode does run shell commands, measured; whether it would refuse a writing one is unverified, so the post-run bracket stays), and any confirmation needing execution must be named as an exact command for the lead to run; forbid MCP and web tools — the tree, the embedded diff, and the prompt are the complete context.
Verify and report
Treat output as hypotheses; verify every finding against the frozen tree before relaying it, and separate host-verified evidence from the reviewer's claims. Pairing rule across the suite: the reviewer must come from a different model family than whatever implemented the change. It reads the served model's family, not this adapter: a cursor-served Claude model must not review Claude-implemented work, a cursor-served Grok model must not review the grok adapter's work, and so on — cross-family accounting follows the model you pinned. Append each run's verified hit rate to the runtime file's calibration journal. This skill is review-only: do not apply fixes unless the user asks.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cursor-adversarial-review/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aarontzeng/dev-lead/cursor-adversarial-review)