Cursor review

From Chachamaru127/claude-code-harness · View interactive version

Cursor review is an AI agent skill from the GitHub repository Chachamaru127/claude-code-harness. Run a Cursor Composer review as an advisory second opinion while keeping the primary review verdict on the host brain. Use when user invokes cursor:review, asks Cursor to review, or wants composer to sanity-check a diff. Cursor never owns APPROVE/REQUEST_CHANGES.

How to use this skill

Skill file

cursor:review - Advisory Cursor Review

Cursor Composer (composer-2.5-fast) を read-only second opinion として使う review skill。primary verdict は host brain (Opus / Claude role) が出す。

Quick Reference

cursor:review --base origin/main
cursor:review "Phase 88.5 command namespace diff"

Rules

```bash

bash scripts/resolve-impl-backend.sh --backend cursor --role reviewer

bash scripts/model-routing.sh --host cursor --role worker --field model

```

Flow

  1. Resolve the Harness helper root:

```bash

HARNESS_PLUGIN_ROOT="${HARNESS_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-}}"

if [ -z "$HARNESS_PLUGIN_ROOT" ] && [ -n "${CLAUDE_SKILL_DIR:-}" ]; then

probe="$(cd "${CLAUDE_SKILL_DIR}" && pwd)"

while [ "$probe" != "/" ] && [ ! -d "$probe/scripts" ]; do

probe="$(cd "$probe/.." && pwd)"

done

[ -d "$probe/scripts" ] && HARNESS_PLUGIN_ROOT="$probe"

fi

if [ -z "$HARNESS_PLUGIN_ROOT" ]; then

echo "ERROR: HARNESS_PLUGIN_ROOT is not set and could not be derived from CLAUDE_PLUGIN_ROOT or CLAUDE_SKILL_DIR" >&2

exit 2

fi

```

  1. Determine review scope:

```bash

BASE_REF="${TASK_BASE_REF:-origin/main}"

REVIEW_SCOPE="${ARGUMENTS:-}"

if [ -n "${REVIEW_SCOPE}" ]; then

set -- ${REVIEW_SCOPE}

while [ "$#" -gt 0 ]; do

case "$1" in

--base)

BASE_REF="${2:?--base requires a ref}"

shift 2

;;

--base=*)

BASE_REF="${1#--base=}"

shift

;;

*)

shift

;;

esac

done

fi

DIFF_STAT="$(git diff --stat "${BASE_REF}..HEAD")"

DIFF_TEXT="$(git diff "${BASE_REF}..HEAD")"

```

  1. Ask Cursor in read-only mode:

```bash

PROMPT="$(cat <<EOF

Review this diff as an advisory second opinion.

Base ref: ${BASE_REF}

Requested scope: ${ARGUMENTS:-full diff}

Requirement, purpose and DoD: <original request and completion criteria>

Spec and validation evidence: <relevant paths and observed results>

Focus on bugs, regressions, missing tests, and unsafe assumptions. Do not propose broad refactors.

Use the supplied requirement, DoD, spec and validation evidence to assess the requested scope; inspect missing context read-only.

For each finding, state its location, trigger, impact and checkable evidence. Separate hypotheses from observed defects; do not invent findings to fill a quota.

Return an assessment only. Do not implement changes or treat the implementation worker's self-report as verification.

Diff stat:

${DIFF_STAT}

Diff:

${DIFF_TEXT}

EOF

)"

bash "${HARNESS_PLUGIN_ROOT}/scripts/cursor-companion.sh" task "${PROMPT}"

```

  1. Host reads Cursor's output and performs the primary review:

Output

Use the standard review shape:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.