.agents/skills/oat-project-review-receive-remote/SKILL.md
Use when processing GitHub PR review comments within project context. Fetches PR comments, creates plan tasks, and updates project artifacts.
npx skillsauth add tkstang/open-agent-toolkit oat-project-review-receive-remoteInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Fetch unresolved GitHub PR feedback and convert it into review-fix tasks inside the active OAT project.
plan.md and implementation.md.npx agent-reviews is available.GITHUB_TOKEN, .env.local, or gh auth).OAT MODE: Review Receive
Purpose: In project scope, ingest remote PR feedback, triage findings, create executable plan tasks, and update implementation state for resumable fix execution.
BLOCKED Activities:
ALLOWED Activities:
Self-Correction Protocol: If you catch yourself:
pNN-tNN -> STOP and recalculate the next available ID.Print this banner once at start:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ OAT ▸ PROJECT REMOTE REVIEW RECEIVE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Use step indicators:
[1/8] Resolving project...[2/8] Resolving PR...[3/8] Fetching comments...[4/8] Classifying findings...[5/8] Triaging findings...[6/8] Updating project artifacts...[7/8] Enforcing cycle limit...[8/8] Posting replies (optional)...Normalize findings as:
finding:
id: "C1" | "I1" | "M1" | "m1"
severity: critical | important | medium | minor
title: string
file: string | null
line: number | null
body: string
fix_guidance: string | null
source: github_pr
source_ref: string
comment_id: string | number
PROJECT_PATH=$(oat config get activeProject 2>/dev/null || true)
PROJECTS_ROOT="${OAT_PROJECTS_ROOT:-$(oat config get projects.root 2>/dev/null || echo ".oat/projects/shared")}"
PROJECTS_ROOT="${PROJECTS_ROOT%/}"
Validation:
PROJECT_PATH existsplan.md existsimplementation.md existsstate.md existsIf missing, ask user to choose/fix active project before continuing.
Resolution order:
--pr <N> from $ARGUMENTSagent-reviewsConfirm resolved PR number with user.
npx agent-reviews --json --unresolved --pr <N>
If no unresolved comments:
plan.md review row for scoped entry to passed when applicable.For each comment:
type, path, line, url, and comment body.CHANGES_REQUESTED) as a hint, not a hard override.C, I, M, m).Before prompting dispositions, print:
id, title, file:line, source_ref)Disposition options:
convert (default for critical/important/medium)defer (default for minor)dismissRequire rationale for defer/dismiss.
For each converted finding:
pNN-tNN IDs from current plan.### Task pNN-tNN: (review) <title>fix(pNN-tNN): <description>Update plan.md:
## Reviews row for remote scope:
fixes_added when tasks were addedpassed when no actionable findings remaingithub-pr #<N>## Implementation Complete totals.Update implementation.md:
oat_current_task_id to first new review-fix task ID when tasks were added.null if all work is complete.Update state.md:
oat_phase: implementoat_phase_status: in_progressoat_current_task: <first-new-task-id|null>oat_project_state_updated: "{ISO 8601 UTC timestamp}"CRITICAL — DO NOT SKIP. This skill modifies plan.md, implementation.md, and state.md when processing GitHub PR comments. When it runs in a separate agent session (subagent, fresh session, or different conversation), uncommitted bookkeeping updates cause state drift for the original agent. The commit below is the safety net.
Commit all modified OAT tracking files atomically:
git add "$PROJECT_PATH/plan.md" "$PROJECT_PATH/implementation.md" "$PROJECT_PATH/state.md"
git diff --cached --quiet || git commit -m "chore(oat): record remote review findings and add fix tasks (pr-#$PR_NUMBER)"
Do not use git add -A or glob patterns. Do not include unrelated implementation or code files. Do not defer this commit without explicit user approval.
Worktree handling: If the project was resolved via a worktree in Step 0, run the git commands scoped to the worktree (git -C "$WORKTREE_PATH" ...) so the commit lands on the worktree branch.
Track review cycles for the same scope.
Route next action:
oat-project-implementAsk user whether to reply to processed comments. If yes:
npx agent-reviews --reply <id> "Tracking as task pNN-tNN"npx agent-reviews --reply <id> "Deferred: <reason>"npx agent-reviews --reply <id> "Won't fix: <reason>"Never post replies without explicit user approval.
At completion, report:
plan.md, implementation.md, and state.md updated consistently.documentation
Use when OAT implementation changes and repository reference docs must be synchronized. Updates .oat/repo/reference to match current behavior.
business
Merge multiple analysis artifacts into a single coherent report with provenance tracking. Reads existing artifacts from /deep-research, /analyze, and /compare.
testing
Use when the user questions or suspects an agent claim is wrong. Adversarially gathers evidence to verify or refute the claim using the best sources available in the current environment.
tools
Use when prioritizing backlog work or evaluating a roadmap. Produces value-effort ratings, dependency mapping, and execution recommendations.