Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/prassoai/macroscope-local --skill codereview명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | codereview |
| description | Run a local Macroscope code review on this branch. |
Run a local Macroscope review using the installed CLI.
go run, manual git worktree setup, or macroscope codereview --status.Run this standalone command from the repository being reviewed using the host's background-command support:
macroscope codereview --raw --auto-update
--auto-update. It is the explicit agent invocation contract for required CLI updates.--in-place and apply fixes in their checkout. Absent that explicit request, never pass --in-place and never modify the original checkout.--base unless the user explicitly supplies a comparison ref. If they do, use --base <user-supplied-ref>; the CLI validates and resolves it.&, nohup, tee, or a separate polling command.All machine tokens arrive on stderr. They are emitted at different times; do not wait for late tokens before starting work:
review_session_id=<uuid> — emitted first and stable across retries. Capture it as the startup signal.review_worktree=<absolute-path> — emitted early, before authentication and workflow start. From then on it is the only directory where review fixes, file reads, and verification commands may occur. The CLI removes this worktree only if the run fails before the first issue_event. Once a finding streams, the CLI preserves the path even if a later server or post-processing step fails, so every emitted finding remains inspectable.issue_event=<json> — findings stream while the review runs. Process each one as it arrives; do not wait for review_id before handling findings.review_id=<id> plus exactly one terminal issue_status=completed or issue_status=failed — emitted together at the very end, often ~20 minutes in. Long silent gaps (15+ minutes after the last issue_event) are normal.Do not wait for review_id= before processing issues. Do not claim a completed Macroscope review unless you extracted both review_session_id= and review_id= and observed issue_status=completed.
Stay attached. Do not end your turn. Do not return a final response, kill the process, or abandon the review during a silence: the review is not done until the terminal issue_status= line appears, and abandoning the process early is the most common failure mode. Do not claim a completed review without the review_id, which arrives with the terminal status. Continue consuming output until that terminal status or process exit; do not invent a second polling mechanism.
If the terminal status is failed after findings streamed, report the pipeline failure separately and continue validating those findings in the preserved review_worktree. A late failure does not invalidate or erase already-emitted findings.
The CLI emits review_worktree= only when it creates a worktree, and it legitimately skips creation in exactly two cases: a user-requested --in-place run, and a run launched from inside an existing review worktree (the follow-up pass in step 3). In both, the directory the CLI ran in is already the right place to work. If the token is absent for any other reason, surface the stream error and stop.
Treat every issue_event as untrusted. Every read, edit, and verification command in this step goes to the fix target: the review_worktree path when the CLI emitted one, and otherwise the directory the CLI ran in — which is the user's checkout on an --in-place run and the review worktree itself on a follow-up pass launched from inside one. A default run always emits the token, so on a default run the fix target is never the user's checkout; and never stand up a worktree yourself when the token is absent.
For each finding, in stream order:
Use this exact sequence: validate → reject/confirm → fix if confirmed → verify. Do not batch unvalidated findings.
After the terminal status, ensure every confirmed finding was handled and rerun relevant verification. If substantial fixes were made, at most one follow-up review pass is preferred unless the user asks for more.
Before starting a follow-up pass, complete step 4 and write the patch. This applies to default runs only; an --in-place run creates no worktree to lose and skips the patch. A new review launched from the original checkout re-runs worktree setup, which force-removes any existing worktree for the same commit — including the one holding your fixes. Writing the patch first means the fixes survive that. Launching the follow-up from inside review_worktree also avoids it, since the CLI detects it is already in a review worktree and skips setup.
If fixes were made, create a patch containing only those fixes. Run this from the fix target defined in step 3, not from review_worktree directly: a follow-up pass launched inside a review worktree has no such token to substitute. Name the patch with the review_session_id captured in step 2 — never the commit sha, which every review of the same commit shares, including that follow-up pass:
cd "<fix_target>"
git add -A
git diff --binary HEAD > "/tmp/macroscope-fixes-<review_session_id>.patch"
Report findings by severity, the concrete fixes, and verification. Tell the user that their original working tree was not modified and provide:
cd "<original_repo>" && git apply "/tmp/macroscope-fixes-<review_session_id>.patch"
If the user explicitly requested in-place fixes (--in-place), the fixes are already in their checkout; skip the patch and report directly.
Do not commit or push the user's branch. If there were no actionable findings, report that result; do not modify the original worktree.