review-implement-phase
Implements code fixes for triaged review actions on a GitHub pull request.
Identity proven by GitHub's verified organisation badge (prisma)
- Agents
- Claude Code
- License
- Apache-2.0 (permissive)
- Pin
- 55458c4pinned Oct 9, 2026
- Context cost
- about 1,300 tokenswhen the skill loads
- GitHub stars
- 415on prisma/prisma-next
- Scripts
- 4 scripts
What it does
“Implements triaged review actions, commits focused fixes, and posts Done plus resolves threads. Use when the user wants only the implementation phase of the review-framework workflow.”
Generated summary from the skill's own text
Implements code fixes for triaged review actions on a GitHub pull request. The skill reads a review-actions.json file, makes targeted code changes, commits them logically, posts completion status as standalone comments, and resolves review threads. It requires GitHub CLI and validates admin capabilities before proceeding.
When to use it
- Executing fixes after review triage phase is complete
- Posting Done status and resolving review threads on PRs
- Running only implementation without fetch or triage steps
- Handling multiple triaged will_address actions in one batch
When not to
- GitHub CLI is not installed or not on PATH
- No review-actions.json file exists in output directory
- Implementing pull request review targets requiring inline comments
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add prisma/prisma-next --skill review-implement-phaseInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install prisma/prisma-next review-implement-phase@55458c441d2cf452028c22eed21370447720840aInstalls the commit we checked (55458c4).
Copy by hand
Download the folder at 55458c4 and put it in .claude/skills/review-implement-phase for Claude Code and in .agents/skills/review-implement-phase for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "review-implement-phase" by Prisma. Source, pinned to commit 55458c441d2cf452028c22eed21370447720840a: https://github.com/prisma/prisma-next/tree/55458c441d2cf452028c22eed21370447720840a/skills-contrib/review-implement-phase 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/review-implement-phase/ for Claude Code and .agents/skills/review-implement-phase/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/prisma/review-implement-phase
SKILL.md at the pin
---
name: review-implement-phase
description: Implements triaged review actions, commits focused fixes, and posts Done plus resolves threads. Use when the user wants only the implementation phase of the review-framework workflow.
argument-hint: "[pr-url] [output-dir]"
---
# Review Implement Phase
Run only the implementation phase of the review-framework loop:
take triaged `will_address` actions, make code changes, commit in logical steps, post GitHub status updates, and update action status.
Run commands from this skill directory. All script paths below are relative to it.
## Inputs
- Required:
- PR URL
- existing `review-actions.json` in output dir
- Optional:
- output directory
- scope constraints (specific action IDs or files)
If output directory is omitted, derive:
`wip/reviews/<owner>_<repo>_pr-<number>/`
## Preconditions
`<output-dir>/review-actions.json` must exist and be valid v2.
System dependencies required on PATH:
- `gh` (GitHub CLI)
If `gh` is missing, halt immediately and ask the user to install it. The implement-phase scripts no longer depend on `jq`.
GitHub admin capability must be available before starting implementation:
```bash
node ./scripts/check-github-admin-ready.mjs --pr <PR_URL>
```
If missing, instruct user to run:
- `/review-fetch-phase <PR_URL> [output-dir]`
- `/review-triage-phase <PR_URL> [output-dir]`
## Behavior
1. Read actions JSON and select actionable rows:
- `decision: will_address`
- `status: pending | in_progress`
2. Preflight GitHub admin capability:
- run `check-github-admin-ready.mjs` and fail fast if unavailable
3. Always post standalone comments (**never pending PR reviews**):
- When posting progress updates, do **not** create a PR review (draft/pending or otherwise).
- Forbidden flows:
- `gh pr review --comment ...`
- GraphQL `addPullRequestReview`, `addPullRequestReviewComment`, `addPullRequestReviewThread` (this workflow never uses pending reviews)
- Allowed flows:
- thread replies via `addPullRequestReviewThreadReply` (or wrapper script)
- issue comments via `addComment` (or wrapper script)
- Before starting implementation:
- **Detect pending reviews authored by the acting user** on this PR.
- If any exist, **halt** and clean them up (submit or dismiss) before continuing.
- After posting any "On it" / "Done" comment:
- **Re-check for pending reviews authored by the acting user**.
- If any exist, the workflow is **blocked** until they are cleaned up.
- Implementation requirement:
- For `review_thread` targets, always reply using **thread replies** (never inline PR review comments).
- If you only have the thread node id, first fetch the thread’s primary comment node id, then call `addPullRequestReviewThreadReply`.
- For `pull_request_review` targets (review-body findings, `PRR_…` node ids), inline replies are not possible. `post-review-thread-reply.mjs` auto-detects this and posts a top-level PR issue comment instead (response `kind: "issue_comment"`); there is no thread to resolve, so the implementer skips `resolve-review-thread.mjs` for these and records the issue-comment id in the action's `done` record.
4. Delegate implementation to:
- `./agents/review-implementer.md`
5. Require implementer responsibilities:
- make code changes
- run relevant checks
- create focused commits
- post "On it" when starting each action
- post "Done" when finished (universal); resolve the thread **only when `target.kind === "review_thread"`** and a `threadNodeId` is available. `pull_request_review` targets have no inline thread, so the implementer skips the resolve step for them and records the issue-comment id in the action's `done` record (per behavior step 3).
- use encoded helper scripts for thread admin operations:
- `node ./scripts/post-review-thread-reply.mjs --repo <owner>/<repo> --pr <number> --comment-node-id <primaryCommentNodeId> --body "<text>"` (works for both `review_thread` and `pull_request_review` — auto-detects node kind)
- `node ./scripts/resolve-review-thread.mjs --thread-node-id <threadNodeId>` (only for `review_thread` targets)
- comments must be posted as individual standalone comments/replies, never as part of a pending review
- after each action completion (Done + resolve when applicable), verify no new pending review was created by the acting user
- never use inline parser snippets (for example: `python -c`, `node -e`, `ruby -e`, ad-hoc awk/sed JSON parsing)
- only set `status: done` after Done (and, for `review_thread` targets, resolve) succeeds
- update `review-actions.json` (`status`, `done.doneAt`, `done.summary`, `done.commits`) in the same completion step
6. Render latest action markdown:
```bash
node ../review-triage-phase/scripts/render-review-actions.mjs --in <output-dir>/review-actions.json --out <output-dir>/review-actions.md
```
## Ownership
- This phase owns actual fixes plus posting Done and resolving completed threads.
- If GitHub thread reply/resolve cannot be performed, the phase is blocked and must not report completion.
- If comments were accidentally posted as a pending review, the phase is blocked until the pending review is explicitly submitted or dismissed and the action comments are re-posted as standalone comments.
## Output to user
Return:
- commits created
- actions transitioned to done
- written artifacts (`review-actions.json`, `review-actions.md`)
Suggest next steps:
- `/review-fetch-phase <PR_URL> [output-dir]`
- `/review-triage-phase <PR_URL> [output-dir]`
From prisma/prisma-next at 55458c4, shown as plain text under its license: Apache-2.0 (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at 55458c4Files
- SKILL.md5.6 KB · 176c0b966b8c
- agents/
- review-implementer.md4.3 KB · 1590135c1c84
- package.json434 B · aa76e9ce1743
- scripts/
- check-github-admin-ready.mjs4.7 KB · 4b9c640efb9b
- post-review-thread-reply.mjs10 KB · c99cd48bf680
- resolve-review-thread.mjs5.0 KB · 99d35202cd07
- resolve-review-thread.test.mjs3.1 KB · 711115c36a29
7 files, 34 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 55458c4More from Prisma
prisma-8
This skill helps agents work with Prisma 8, a contract-first data layer for TypeScript projects.
Contains scripts
Claude Code, Codex, Cursor +3 · about 3.5K tokens · pinned 6 days ago
adr-review
This skill reviews Architecture Decision Records (ADRs) from a fresh perspective, identifying clarity and structural issues, then rewrites them for future…
Claude Code, Codex, Cursor +4 · about 590 tokens · pinned 6 days ago
ast-visitor-pattern
This skill teaches agents to use the visitor pattern with frozen subclasses for discriminated unions that need multiple dispatch sites.
Claude Code, Codex, Cursor +4 · about 710 tokens · pinned 6 days ago
bumping-biome
Updates the biome code formatter package to a specified version using pnpm, renames configuration files to biome.jsonc format, updates schema references, and…
Claude Code, Codex, Cursor +4 · about 290 tokens · pinned 6 days ago
contrib-pr
This skill guides external contributors through opening a pull request against prisma-next by following the project's contribution guidelines.
Claude Code, Codex, Cursor +4 · about 2.2K tokens · pinned 6 days ago
create-pr
This skill creates a GitHub pull request with a Linear-ticket-prefixed title and a decision-led narrative description for the prisma-next repository.
Claude Code, Codex, Cursor +4 · about 4.3K tokens · pinned 6 days ago
Related in Coding workflow
planning
This skill orchestrates multi-workflow projects with dependencies and shared data tables by creating a task graph in the orchestrator via the create-tasks tool.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 2.4K tokens · pinned 6 days ago
progressive-building
This skill implements incremental workflow development for agents building or extending workflows.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 1.4K tokens · pinned 6 days ago
workflow-builder
Builds and edits n8n workflows using the TypeScript SDK.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 14.2K tokens · pinned 6 days ago
remotion-upgrade
This skill upgrades Remotion and its related packages to the latest stable version.
by RemotionOfficial publisher
Claude Code, Codex, Cursor +3 · about 460 tokens · pinned 6 days ago
remotion-upgrade
This skill upgrades Remotion and related packages across a project, automatically detecting the package manager and workspaces.
by RemotionOfficial publisher
Claude Code, Codex, Cursor +3 · about 460 tokens · pinned 6 days ago
final-release-review
Audits Python SDK release candidates or plans against the previous release, comparing diffs for regressions, API changes, and version compatibility.
by OpenAIOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 5.4K tokens · pinned 6 days ago