본문으로 건너뛰기
cccskills
무료GitHub에 공개

hanselman-code-review

Adversarial dual-model code review that runs two AI models in parallel, cross-references findings, and produces a consensus severity table with fix confidence ratings. Use when asked for a thorough code review, adversarial review, dual-model review, confidence-rated review, or 'Hanselman review'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구GitHub
설치 방법 보기

포함된 파일(3)

  • SKILL.md7.2 KB
  • LICENSE.md1.0 KB
  • README.md1.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Hanselman Adversarial Code Review Skill

Run a rigorous, adversarial code review using two AI models in parallel. Cross-reference their findings to separate signal from noise, producing a consensus severity table with fix confidence ratings.

When to Use

Invoke this skill when the user asks for:

  • A thorough or deep code review
  • An adversarial review
  • A dual-model review
  • A "Hanselman review"
  • A confidence-rated review
  • Cross-model validation of code changes

Philosophy

Single-model reviews have blind spots. Two models reviewing independently surface different classes of issues: security, correctness, and edge cases. Cross-reference their findings:

  • HIGH consensus (both models flag it): strong evidence; verify the issue.
  • LOW consensus (only one model flags it): may be noise; use judgment.
  • Disputed (a model flags it but evidence contradicts it): investigate before acting.

Review Workflow

Step 1: Identify the Scope

Determine what code to review:

  • If the user specifies files, use those.
  • If the user says "review my changes", use git diff or git diff --staged.
  • For a PR, use gh pr view and gh pr diff, pinning the exact head and base.
  • For a branch, diff against the base branch.

For a repeat review, compare the current head with the previously reviewed head. Review changed code, affected callers/tests, and unresolved or disputed findings rather than automatically repeating the full review. If the code is unchanged and only the models changed, focus both reviewers on those findings and high-risk decisions. State the delta scope and retain missing runtime-proof gates.

Step 2: Launch Two Parallel Reviews

Launch two rubber-duck agents via the app-native task tool in background mode with different models. No standalone model CLI is required.

Agent 1: Claude Opus 5.5

task({
  name: "opus-review",
  agent_type: "rubber-duck",
  mode: "background",
  model: "claude-opus-5.5",
  reasoning_effort: "high",
  prompt: "<full context + code + review instructions>"
})

Agent 2: GPT-6 Astra

task({
  name: "astra-review",
  agent_type: "rubber-duck",
  mode: "background",
  model: "gpt-6-astra",
  context_tier: "long_context",
  reasoning_effort: "high",
  prompt: "<same context + code + review instructions>"
})

Both agents receive the exact same prompt so findings are comparable. Include the full file contents or diff, project context, exact revisions, constraints, and the severity definitions below.

Step 3: Wait for Both to Complete

Use the background interval for independent work. Wait for each completion notification, then read its result with read_agent; do not poll. Reconcile both completed reviews before publishing a consensus.

Step 4: Cross-Reference and Build the Consensus Table

Create a SQL table to track findings:

CREATE TABLE IF NOT EXISTS review_findings (
    id TEXT PRIMARY KEY,
    issue TEXT NOT NULL,
    opus_severity TEXT,
    astra_severity TEXT,
    consensus TEXT NOT NULL,
    fix_confidence INTEGER NOT NULL
);

If the session already has a findings table, inspect and reuse or migrate its schema without discarding earlier findings. Record the actual model ID that produced each review; do not relabel earlier findings as results from a different model.

For each finding:

  1. Check whether the other model found the same or a similar issue.
  2. Assign consensus: both flagged it is HIGH; one flagged it is LOW; evidence contradicting a finding is LOW (disputed).
  3. Verify it against the actual code, dependency contract, and tests.
  4. Assign fix confidence:
    • 99%: trivial fix, such as a wrong flag or missing null check.
    • 90-95%: straightforward fix requiring some design thought.
    • 70-80%: complex fix requiring research or trade-offs.
    • Below 70%: hard problem, intentional behavior, or architecture change.

Step 5: Present the Results

Both Models Agree: HIGH consensus

IssueOpus 5.5GPT-6 AstraFix Confidence
Description of issueSEVERITYSEVERITYXX%

Only One Model Flagged: LOW consensus

IssueOpus 5.5GPT-6 AstraFix Confidence
Description of issueSEVERITY or not flaggedSEVERITY or not flaggedXX%

Use not flagged when a model did not identify the issue.

Step 6: Act on Findings

  • Ask which findings to fix unless the user has already authorized the fixes.
  • Prioritize verified HIGH consensus issues.
  • Explain one-model and disputed findings before acting.
  • Do not broaden the task to satisfy a reviewer. Preserve the repository's scope and proof requirements.
  • Fix confidence is the coordinator's assessment, not a model vote or a replacement for runtime proof.

Review Instructions Template

Give both reviewers the same adapted prompt:

Review the following code changes for [PROJECT NAME].
This is a [LANGUAGE/FRAMEWORK] project with these constraints: [CONSTRAINTS].
Exact head: [HEAD]. Base or previously reviewed head: [BASE].

Focus on bugs, security issues, race conditions, and correctness problems.
Ignore style and formatting.
Write every review comment in simplified technical English. Use short sentences
and common words, explain necessary technical terms, and avoid jargon or
unnecessary detail.

[FULL CODE OR DIFF HERE]

For each issue found, classify severity as:
- CRITICAL: will crash, corrupt data, or create a security vulnerability
- HIGH: likely bug that will manifest in real use
- MEDIUM: edge case that could bite in specific scenarios
- LOW: minor improvement, theoretical concern, or robustness enhancement

For each issue, include:
1. What the issue is
2. Where it is (file and line/region)
3. Why it matters (impact and reachability)
4. Suggested fix

Model Selection

The default pairing is Claude Opus 5.5 (claude-opus-5.5) and GPT-6 Astra (gpt-6-astra, context_tier: "long_context"), both with reasoning_effort: "high". Different model families provide independent perspectives on the same evidence.

Use the tool's supported long_context value, not an invented model name or model-name suffix. Do not assume a numeric context-window size. Preserve the high reasoning default unless the user requests a different effort.

If a preferred model or context tier is unavailable, report the limitation and use an available alternative only with the user's approval. Record the actual model IDs and context tiers used; do not silently fall back to an older generation.

Important Notes

  • Never skip cross-referencing. The value is in the comparison, not individual reviews.
  • Log disputed findings and the reasoning for accepting or rejecting them.
  • Do not fix LOW consensus issues without user authorization.
  • A clean source review does not satisfy a missing Windows proof pool, current-head UI proof, or required CI check.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Structured code review through the shared OpenClaw agent-skills installation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openclaw/openclaw-windows-node2.2천2026년 10월 18일 업데이트

crabbox

무료

Use Crabbox from macOS, Linux, or native Windows controllers to run OpenClaw Windows node builds, tests, and targeted proof on remote native Windows or WSL2 hosts, including Azure or brokered AWS leases and static SSH hosts. Use when remote Windows validation is needed or the user asks for Crabbox validation. Always report the actual provider, lease id, run URL, command, and result.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openclaw/openclaw-windows-node2.2천2026년 10월 18일 업데이트

Run complete OpenClaw Windows Node issue and PR triage, including landing queues, proof pools, ownership audits, and release planning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openclaw/openclaw-windows-node2.2천2026년 10월 18일 업데이트

Build the native MSIX isolated-session Gateway from npm latest, a published packaging release with -GatewayChannel Packaged, or explicit openclaw sources. Register it beside the Store Gateway and run Companion with OPENCLAW_NATIVE_GATEWAY_DEV_PATCH. Use for native Gateway development, release-channel compatibility, unreleased source changes, or removing a development Gateway.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openclaw/openclaw-windows-node2.2천2026년 10월 18일 업데이트

Plan and collect OpenClaw Windows validation/proof: tests, rubber-duck review, UI evidence, MCP output, and gateway runtime proof.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openclaw/openclaw-windows-node2.2천2026년 10월 18일 업데이트

Write, review, or restructure Windows node documentation and agent instructions using current source, task-focused explanations, and explicit fact preservation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openclaw/openclaw-windows-node2.2천2026년 10월 18일 업데이트

openclaw의 스킬 모두 보기

이 스킬의 문제 신고