eliasoulkadi/shokunin/cross-review
Claude Code and agent skill by eliasoulkadi/shokunin
- community
Checking that the SKILL.md file is still in the repository.
Delegate code review to a subagent running a specific model. Use ONLY when user explicitly names a model to review changes ("review with opus", "use sonnet to review", "review with gemini"). The root agent reconstructs changes from conversation history and spawns a subagent with the code-review skill using the specified model. Do NOT use for general code review (use code-review skill instead), for reviewing PRs from git history, or when no model is specified by the user.
Install
npx vskill@latest install eliasoulkadi/shokunin/cross-reviewSKILL.md
Reconstruct what you changed during this conversation, then delegate the actual review to a single subagent running the code-review skill with a user-specified model.
IMPORTANT: Steps 1-2 run in the current agent (the master). Only Step 3 spawns a subagent.
Workflow
Step 1: Parse the user request
Extract:
- Model: The model ID from user's request. Validate against available models.
- Review instructions: Any text after "Review instructions:" — pass verbatim.
- Change scope: What should be reviewed. Default: all changes in this conversation.
Step 2: Gather context from your own changes
Reconstruct the diff from conversation history:
- Compose a unified diff of all changes (Edit, Write, Bash, etc.). Group by file.
- If no changes: Inform user and stop.
- Read final state of changed files for surrounding context.
- Check related context:
- Test files related to changed files (skip
node_modules,.git,dist,build) - Config changes that affect behavior
- Related type definitions or interfaces
Do NOT show gathered context to user. Use only for the subagent.
Step 3: Spawn the review subagent
Step 4: Relay the result — READ-ONLY, NO ACTIONS
CRITICAL: Output the subagent's review AS-IS. Do NOT:
- Summarize, rephrase, reorder, or filter
- Fix, improve, or refactor based on findings
- Add your own commentary or caveats
One-line model attribution is acceptable. You may offer to implement recommendations, but let the user decide.
Model Mapping
When user says "review with [model name]", map to a valid model ID:
| User says | Model ID | |
|---|---|---|
| opus, claude opus | claude-3-opus | |
| sonnet, claude sonnet | claude-3.5-sonnet | |
| gpt-4, gpt4 | gpt-4 | |
| gpt-4o | gpt-4o | |
| gemini | gemini-2.0-flash | |
| deepseek | deepseek-chat |
If the model name is unrecognized, ask for the exact model ID.
Error Handling
- Subagent fails or times out: Inform user. Suggest retry or different model.
- No changes in conversation: Inform user and stop.
- Incomplete review: Relay what was returned. Note it may be incomplete.
- Model not available: Offer alternative from the mapping table.
- User requests unknown model: Map fuzzy names to model IDs using the mapping table. If no match, ask user to provide the exact model ID string.
- Subagent returns malformed output: The review subagent may return text instead of structured findings. Relay what was returned and note the format deviation.
- Diff context exceeds subagent limits: For very large changesets, split the diff by file or module and run multiple sequential subagent reviews. Inform user you are splitting the review.
- Network or infrastructure failure during spawn: Retry once with the same configuration. If it fails again, offer to switch to a different model or perform the review inline.
- Subagent produces factually incorrect findings: Relay findings as-is but append a note that some claims could not be verified against the codebase. Do not filter or censor.
Anti-Patterns
| Pattern | Problem | Fix | |
|---|---|---|---|
| Using cross-review for general PR review | User did not name a model. cross-review is for explicit model-named delegation only. | Use the standard code-review skill instead. | |
| Summarizing or filtering subagent output | The user requested an independent review. Any distortion defeats the purpose. | Relay output verbatim. Add only a 1-line model attribution. | |
| Acting on findings without user approval | The master agent is read-only in this workflow. Fixing issues automatically breaks the delegation contract. | Offer to implement recommendations but wait for user to decide. | |
| Skipping context gathering (Step 2) | Sending only the diff without file context produces shallow reviews that miss type errors and behavioral changes. | Always read final file state and related test/config files before spawning the subagent. | |
| Delegating to the same model the user is already talking to | If user says "review with sonnet" and master agent IS sonnet, this is circular. | Use a different model than the one running the master agent. | |
| Requesting review of unchanged code | cross-review only works on changes made in the current conversation. | If the user wants PR review from git, use the code-review skill directly. |
Model Comparison Methodology
When to use which model
| Model | Strengths | Best for | |
|---|---|---|---|
| Claude Opus 4 | Deep reasoning, security analysis, architectural review | Complex refactors, auth code | |
| GPT-5 Codex | Code generation patterns, syntax accuracy | Implementation review, template checking | |
| Gemini 2.5 Pro | Multi-modal, context window size | Large PRs (200+ files), full-repo context | |
| DeepSeek V4 | Fast, cost-effective, strong at bug detection | Routine PRs, quick checks |
Confidence Scoring
Assign confidence (0.0-1.0) to each finding:
Findings with confidence < 0.5 should be:
- Marked as "suggestion" not "finding"
- Never block a merge
- Phrased as questions: "Did you consider...?"
Result Merging Strategy
- Group by file + line range (+-5 lines)
- If all 3 models agree: high confidence, use as primary finding
- If 2 of 3 agree: medium confidence, note the dissenting model's view in details
- If 1 of 3: low confidence, verify against code manually before including
- Merge descriptions: take the most specific one, append key insights from others
- Remove duplicates: same finding described differently -> keep clearest description
Handling Conflicts
When models disagree:
- Don't default to majority -- investigate the code yourself
- The dissenting model may have caught something the others missed
- Present both views: "Claude suggests X, Gemini suggests Y"
- Let the human reviewer decide
Checklist
- [ ] Valid model name passed (not an alias or unsupported ID)
- [ ] Diff or context reconstructed accurately from conversation history
- [ ] Subagent has the code-review skill loaded
- [ ] Review result captured from subagent output (not assumed)
- [ ] Fallback model specified if primary model is unavailable
Sources
- MCP Protocol specification (modelcontextprotocol.io) — subprocess agent spawning and message passing
- OpenAI API model list documentation (platform.openai.com/docs/models) — supported model IDs and capabilities
- Anthropic Claude model documentation (docs.anthropic.com/en/docs/about-claude/models) — model IDs and feature comparison
- Google Gemini API model documentation (ai.google.dev/models/gemini) — Gemini model identifiers and rate limits
- DeepSeek API documentation (platform.deepseek.com/api-docs) — model IDs and context window limits
- Conventional Comments specification (conventionalcomments.org) — structured review comment formatting
- "Software Engineering at Google" by Titus Winters, Tom Manshreck, Hyrum Wright (O'Reilly, 2020) — code review best practices at scale
Security
- Security scanPassed, 90 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 repositoryChecking.pack/skills/cross-review/SKILL.md
Popularity
- Repository stars
- 91
- Repository forks
- 10
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. 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/eliasoulkadi/shokunin/cross-review)