本文へ移動
cccskills
無料GitHub で公開

cross-review

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.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md8.5 KB

SKILL.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:

  1. Compose a unified diff of all changes (Edit, Write, Bash, etc.). Group by file.

    • If no changes: Inform user and stop.
  2. Read final state of changed files for surrounding context.

  3. 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

spawn_subagent:
  skill: "code-review"
  model: <model from user request>
  prompt: |
    Review the changes below using "code-review" skill.

    CONSTRAINTS:
    - Read-only review. Do NOT edit files.
    - All context is provided below. Read files only if clearly incomplete.
    - Review independently and objectively.

    ## Review Instructions
    {user's review instructions, verbatim}

    ## Changes
    {reconstructed diff, grouped by file}

    ## Additional Context
    {links to related files, tests, type definitions, requirements}

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 saysModel ID
opus, claude opusclaude-3-opus
sonnet, claude sonnetclaude-3.5-sonnet
gpt-4, gpt4gpt-4
gpt-4ogpt-4o
geminigemini-2.0-flash
deepseekdeepseek-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

PatternProblemFix
Using cross-review for general PR reviewUser 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 outputThe 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 approvalThe 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 toIf 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 codecross-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

ModelStrengthsBest for
Claude Opus 4Deep reasoning, security analysis, architectural reviewComplex refactors, auth code
GPT-5 CodexCode generation patterns, syntax accuracyImplementation review, template checking
Gemini 2.5 ProMulti-modal, context window sizeLarge PRs (200+ files), full-repo context
DeepSeek V4Fast, cost-effective, strong at bug detectionRoutine PRs, quick checks

Confidence Scoring

Assign confidence (0.0-1.0) to each finding:

confidence = (models_agreeing / total_models) * evidence_score

evidence_score:
  1.0 = exact line + code excerpt proves the bug
  0.7 = logic analysis suggests probable issue
  0.4 = speculative (pattern matching without code walk)
  0.1 = style preference

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

  1. Group by file + line range (+-5 lines)
  2. If all 3 models agree: high confidence, use as primary finding
  3. If 2 of 3 agree: medium confidence, note the dissenting model's view in details
  4. If 1 of 3: low confidence, verify against code manually before including
  5. Merge descriptions: take the most specific one, append key insights from others
  6. 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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Apply professional, premium UI/UX design standards when building or styling web interfaces. Use this skill when the user asks to create a website, landing page, web app, dashboard, UI component, or any visual interface — or when they ask to make something look better, more professional, or more beautiful. Covers visual hierarchy, typography, color systems, layout, spacing, motion, dark mode, responsive design, and conversion patterns. Activate even when the user doesn't say "design" — if they're building a web frontend, these standards apply.

日本語の概要は準備中です。原文の説明を表示しています。

EliasOulkadi/shokunin1142026年10月5日 更新

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

日本語の概要は準備中です。原文の説明を表示しています。

EliasOulkadi/shokunin1142026年10月5日 更新

Run 150+ AI apps via inference.sh CLI - image generation, video creation, LLMs, search, 3D, Twitter automation. Models: FLUX, Veo, Gemini, Grok, Claude, Seedance, OmniHuman, Tavily, Exa, OpenRouter, and many more. Use when running AI apps, generating images/videos, calling LLMs, web search, or automating Twitter. Triggers: inference.sh, infsh, ai model, run ai, serverless ai, ai api, flux, veo, claude api, image generation, video generation, openrouter, tavily, exa search, twitter api, grok

日本語の概要は準備中です。原文の説明を表示しています。

EliasOulkadi/shokunin1142026年10月5日 更新

api-forge

無料

Design REST/GraphQL APIs with OpenAPI 3.1, error handling, pagination, rate limiting, webhooks, and idempotency. Use when user asks to design an API, create endpoints, define REST/GraphQL schema, or generate OpenAPI spec. Do NOT use for database schema design, frontend API integration, or non-HTTP protocols (gRPC, WebSocket, MQTT).

日本語の概要は準備中です。原文の説明を表示しています。

EliasOulkadi/shokunin1142026年10月5日 更新

Implement authentication and authorization with OWASP Top 10 standards, OAuth 2.0 + OIDC, WebAuthn/Passkeys, session management, and RBAC/ABAC. Use when user asks to implement login, signup, authentication, authorization, JWT, OAuth, SSO, passkeys, MFA, or role-based access. Do NOT use for API key management (use api-forge), encryption at rest, or network-level security (firewalls, WAF).

日本語の概要は準備中です。原文の説明を表示しています。

EliasOulkadi/shokunin1142026年10月5日 更新

Generate brand guidelines, design systems with design tokens (W3C format), creative direction (SCAMPER, Design Thinking, TRIZ), and design briefs with scope and success criteria.

日本語の概要は準備中です。原文の説明を表示しています。

EliasOulkadi/shokunin1142026年10月5日 更新

EliasOulkadi のスキルをすべて見る

このスキルの問題を報告する