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

local-clawsweeper-review

Run local ClawSweeper exact-item or committed-range reviews without GitHub mutation.

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

연동 도구GitHubOpenAI
설치 방법 보기

포함된 파일(2)

  • SKILL.md6.2 KB
  • agents/openai.yaml216 B

SKILL.md(원문)

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

Local ClawSweeper Review

Use this skill when someone wants read-only local ClawSweeper output before submitting, updating, or re-reviewing an issue or PR.

Safety Boundary

  • Run only pnpm run review -- --local-only for an existing GitHub item, or pnpm run review -- --local-range for a pre-submission committed range.
  • Do not run apply-artifacts, apply-decisions, GitHub comment posting, or merge/autofix commands unless the user explicitly asks for that mutation.
  • Do not print OPENAI_API_KEY, CODEX_API_KEY, CODEX_ACCESS_TOKEN, GitHub tokens, or Codex auth material.
  • Treat generated review artifacts as local proof. Do not claim ClawSweeper posted or synced anything unless a separate explicit mutation command did it.

Locate ClawSweeper

Prefer the current repository when its package.json name is @openclaw/clawsweeper. Otherwise use a known clean local checkout:

  • Windows: C:\oc-work\clawsweeper-source
  • POSIX fallback: ~/Projects/clawsweeper

Inspect git status --short before making changes. If another ClawSweeper clone is dirty or ambiguous, do not use it for the local review runner.

First-Time Setup

From the ClawSweeper checkout:

corepack enable
pnpm install
pnpm run build:all
pnpm run codex:local:check -- --diagnostics

The diagnostics mode checks the selected Codex binary and login status without a model request. It does not prove model access or review readiness. Omit --diagnostics for the existing model smoke test, which consumes model usage.

If the Codex check says the CLI is not logged in, have the operator authenticate their own Codex CLI. Device auth is the simplest shareable setup:

codex login --device-auth -c 'service_tier="fast"'

For API-key setup, pass the key through the shell only for the login command and then clear it from the environment. Do not put the key in docs, scripts, shell history, or committed files.

PowerShell:

$env:OPENAI_API_KEY = Read-Host "OpenAI API key"
$env:OPENAI_API_KEY | codex login --with-api-key -c 'service_tier="fast"'
Remove-Item Env:OPENAI_API_KEY

POSIX shell:

printf '%s' "$OPENAI_API_KEY" | codex login --with-api-key -c 'service_tier="fast"'
unset OPENAI_API_KEY

If the wrong Codex binary is used, set CODEX_BIN in the local shell for that run. Otherwise, --local-only uses the first spawnable codex command on PATH, including on Windows. If no Windows PATH command is spawnable, it falls back to the installed Codex Desktop binary.

Target Checkout Modes

By default, an exact local PR review manages its own target checkout under artifacts/local-review-<pr-number>/target.

By default, --local-range reviews the clean checkout where the command was invoked. It does not manage or switch that checkout. Pass --target-dir when the branch to review is elsewhere.

In a built source checkout, node dist/clawsweeper-local.js review is the local-only entrypoint for the same full committed-range engine. Its --help and --version paths do not load the review engine or invoke Codex. It does not provide diagnostics yet; codex:local:check remains the existing model smoke test. This entrypoint does not publish hosted action-ledger or cache metadata.

Pass --target-dir when the operator wants to review an existing checkout or an issue.

Use a clean target checkout of the repository being reviewed. Prefer a dedicated review checkout if the normal worktree is dirty:

  • Windows: C:\oc-work\clawsweeper-local-target-openclaw
  • POSIX fallback: ../openclaw

Before reviewing against main, update the target checkout only when it is clean:

git -C <target-dir> status --short
git -C <target-dir> fetch origin main
git -C <target-dir> switch main
git -C <target-dir> pull --ff-only origin main

Do not switch branches, pull, or overwrite files in a dirty target checkout.

Run A Local Review

Use the exact issue or PR number. If the number is not provided and the current branch has an open PR, use gh pr view --json number,url,headRefOid to identify it.

From the ClawSweeper checkout:

pnpm run review -- --local-only --item-number <pr-number>

To use a supplied checkout or review an issue:

pnpm run review -- --local-only \
  --item-number <issue-or-pr-number> \
  --target-dir <target-dir>

To review committed branch work before a PR exists:

pnpm run review -- --local-range \
  --target-repo <owner/repo> \
  --base origin/main

The range is merge-base(<base>, HEAD)..HEAD. It must be clean and contain at least one commit beyond the base. This path withholds GitHub credentials, isolates cached gh auth, disables web search, and skips host-side URL/media preprocessing. It still calls the configured Codex model service; do not call it air-gapped or fully network-offline.

The exact local command prints a human-readable progress summary by default. Add --verbose only when debugging checkout, selection, or Codex process details.

For quick smoke tests, lower --batch-size, --shard-count, --max-pages, and --codex-timeout-ms, but label the result as a smoke run rather than a full local review.

Read The Artifact

The default OpenClaw report is written to:

<artifact-dir>/<issue-or-pr-number>.md

Read the artifact and summarize:

  • review_status
  • main_sha
  • pull_head_sha for PRs
  • decision/confidence/action fields when present
  • findings or blockers
  • exact Codex/auth/runtime failure if the run failed

If the failure is Codex auth, stop after providing the local setup command. If the failure is runner/runtime behavior, include the artifact path and a concise stderr or log summary.

Closeout

Before reporting success:

  • Confirm the command used review --local-only or review --local-range.
  • Confirm no GitHub comments, labels, merges, or apply commands were run.
  • Confirm the target checkout is still clean.
  • If findings exist, list the actionable items and the next local fix/test step.
  • If no blockers exist, say the local ClawSweeper artifact found no blockers and include the reviewed main_sha and PR head SHA when available.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

crabbox

무료

Use the Crabbox wrapper for validation across Linux, macOS, Windows, and WSL2, including delegated Blacksmith Testbox proof. Report the actual provider and id.

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

openclaw/clawsweeper2천2026년 10월 19일 업데이트

openclaw의 스킬 모두 보기

이 스킬의 문제 신고