marxbiotech/pr-review-toolkit/agy-fix-worker

Claude Code and agent skill by marxbiotech/pr-review-toolkit

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use only when pr-review-resolver asks Antigravity (AGY) to fix one selected PR review issue with bounded owned files. This resolver-managed worker edits code and reports validation results, but never updates PR review comments or .pr-review-cache state.

Install

npx vskill@latest install marxbiotech/pr-review-toolkit/agy-fix-worker

SKILL.md

The same SKILL.md was published earlier as marxbiotech/pr-review-toolkit/agy-fix-worker.

Antigravity (AGY) Fix Worker

Fix exactly one selected PR review issue for pr-review-resolver.

Contract

This worker is always resolver-managed. It must edit only the owned files provided by pr-review-resolver, run targeted validation, and report results back to the resolver.

Do not read or write .pr-review-cache, update PR review comments, create PR comments, call cache-read-comment.sh, call cache-write-comment.sh, call gh api, commit, push, or merge. pr-review-resolver owns all review status updates, metadata changes, CAS handling, and comment publication.

Find the toolkit root in this order:

  1. Use AGY_PLUGIN_ROOT when set by the Antigravity plugin runtime.
  2. Use GROK_PLUGIN_ROOT when set by the Grok plugin runtime.
  3. Use PR_REVIEW_TOOLKIT_ROOT when set in the environment.
  4. If none is set, derive the packaged plugin root from the skill path. This SKILL.md lives at <root>/skills/<skill-name>/SKILL.md, so <root> is two levels up. Ensure SKILL_PATH is set to the absolute path of this SKILL.md before running the snippet:

``bash if [ -n "${AGY_PLUGIN_ROOT:-}" ]; then PR_REVIEW_TOOLKIT_ROOT="$AGY_PLUGIN_ROOT" elif [ -n "${GROK_PLUGIN_ROOT:-}" ]; then PR_REVIEW_TOOLKIT_ROOT="$GROK_PLUGIN_ROOT" elif [ -z "${PR_REVIEW_TOOLKIT_ROOT:-}" ]; then : "${SKILL_PATH:?SKILL_PATH must be set to the absolute path of this SKILL.md}" PR_REVIEW_TOOLKIT_ROOT="$(cd "$(dirname "$SKILL_PATH")/../.." && pwd)" fi ``

Verify at least one of <root>/.antigravity-plugin/plugin.json or <root>/.grok-plugin/plugin.json exists. If missing, treat derivation as failed and proceed to step 5.

  1. Stop and ask the dev agent for PR_REVIEW_TOOLKIT_ROOT.

Canonicalize the root if it is needed for package-relative context:

bash
PR_REVIEW_TOOLKIT_ROOT="$(cd "$PR_REVIEW_TOOLKIT_ROOT" && pwd)"

This worker does not use review-state scripts. PR_REVIEW_TOOLKIT_ROOT exists only to make packaged plugin context explicit.

Resolver-managed state flow:

text
pr-review-resolver asks the user for a decision
-> pr-review-resolver invokes agy-fix-worker (via invoke_subagent) with owned files
-> agy-fix-worker edits code and validates
-> agy-fix-worker reports result
-> pr-review-resolver updates review comment/cache

Required Input

pr-review-resolver must provide:

text
PR number: 123
Issue source: Claude / Gemini / Codex / Grok / AGY
Issue title: ...
Issue file references:
- path/to/file.ts:42
Decision:
Fix using approach X.
Owned files:
- path/to/file.ts
Resolver context:
This issue was selected by the user in pr-review-resolver.

If owned files or the user decision are missing, stop and ask the resolver for them. Do not decide Deferred, N/A, Duplicate, or Skip yourself.

Workflow

  1. Confirm the target issue, user-selected fix approach, and owned files are present.
  2. Inspect the referenced code and directly related context.
  3. Edit only the owned files. If another file must change, stop and report the required expansion to pr-review-resolver.
  4. Run targeted validation such as tests, lint, git diff --check, script syntax checks, or framework-specific checks relevant to the changed files. Capture each validation command and its exit code. If no validation is possible for this change (e.g. pure documentation edit, no covering test exists), say so explicitly under Validation: — never leave it empty.
  5. Compute the Status: field per the contract below and report files changed, validation results, fix summary, status, and remaining risk to pr-review-resolver.

Do not update metadata. Do not mark the review issue as fixed. Do not write the canonical review comment. The resolver will update status after it reviews this worker's result.

Output Contract

End with:

text
Files changed:
- path/to/file.ts
Validation:
- <command> -- exit <N>
- <command> -- exit <N>
- (or) none possible: <reason>
Status: success | partial | failed
Fix summary:
- ...
Review comment update:
- None. pr-review-resolver must update the canonical review comment.
Commit message draft:
fix(scope): address issue title
Remaining risk:
- ...

Validation: entry shape — each entry is exactly one of:

  • <command> -- exit <N> — a real validation command and its captured exit code. The separator is the ASCII double-dash -- (space + two hyphens + space) to keep encoding-stable and easy to regex (/^- (.*) -- exit (-?\d+)$/); do not use Unicode em-dash.
  • none possible: <reason> — an explicit statement that no validation applies, with <reason> explaining why (e.g. "comment-only edit" or "no covering test exists in the repo").

The grammar is unit-tested by tests/parse-validation-entry-test.sh and parsed at the consumer side by ${PR_REVIEW_TOOLKIT_ROOT}/scripts/parse-validation-entry.sh. Workers must follow the grammar exactly; the resolver invokes the parser to decide success-eligibility.

Status semantics — the resolver parses this line and uses it to decide whether to mark ✅ Fixed:

  • success: the change addresses the issue and every Validation: entry is either -- exit 0 or none possible: <reason>.
  • partial: the change addresses the issue but at least one validation entry has exit code != 0, was skipped/aborted partway, failed to start, or completed with only partial coverage. Explain the gap in Remaining risk.
  • failed: the change does not address the issue (e.g. could not be applied within owned files, attempted fix introduced a regression).

Safety net — never report `Status: success` when:

  • any Validation: entry has a non-zero exit code, OR
  • a validation command was attempted but its true exit code could not be captured. Use partial and explain the rc-capture gap in Remaining risk.

The resolver, dev agent, or human is responsible for committing and pushing. Do not start another review pass before the code changes are committed or intentionally left uncommitted by the dev agent.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/marxbiotech/pr-review-toolkit/agy-fix-worker/badge)](https://verified-skill.com/skills/marxbiotech/pr-review-toolkit/agy-fix-worker)

Something wrong with this skill or its page? Tell us.