用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/openclaw/clawsweeper --skill local-clawsweeper-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | local-clawsweeper-review |
| description | Run local ClawSweeper exact-item or committed-range reviews without GitHub mutation. |
Use this skill when someone wants read-only local ClawSweeper output before submitting, updating, or re-reviewing an issue or PR.
pnpm run review -- --local-only for an existing GitHub item, or
pnpm run review -- --local-range for a pre-submission committed range.apply-artifacts, apply-decisions, GitHub comment posting, or
merge/autofix commands unless the user explicitly asks for that mutation.OPENAI_API_KEY, CODEX_API_KEY, CODEX_ACCESS_TOKEN, GitHub
tokens, or Codex auth material.Prefer the current repository when its package.json name is
@openclaw/clawsweeper. Otherwise use a known clean local checkout:
C:\oc-work\clawsweeper-source~/Projects/clawsweeperInspect git status --short before making changes. If another ClawSweeper clone
is dirty or ambiguous, do not use it for the local review runner.
From the ClawSweeper checkout:
corepack enable
pnpm install
pnpm run build:all
pnpm run codex:local:check
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.
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.
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:
C:\oc-work\clawsweeper-local-target-openclaw../openclawBefore 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.
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.
The default OpenClaw report is written to:
<artifact-dir>/<issue-or-pr-number>.md
Read the artifact and summarize:
review_statusmain_shapull_head_sha for PRsIf 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.
Before reporting success:
review --local-only or review --local-range.main_sha and PR head SHA when available.基于 SOC 职业分类