review-implement-phase

review-implement-phase is a skill for Claude Code, Codex from prisma/orm. It costs 38 tokens per session (1,644 once invoked), scanned A, original, Apache-2.0.

A review workflow step that applies approved actions from a pull request review. It makes focused code changes, commits them, updates GitHub, and resolves completed review discussions.

In plain words
What is it for?
It helps maintainers implement selected review fixes for a GitHub pull request, run relevant checks, create logical commits, and mark review actions complete.
Why use it?
It turns a reviewed action list into tracked implementation work while checking that the required tools and GitHub permissions are available first.

Skill for Claude CodeCodex

About the project

Prisma ORM is a Node.js and TypeScript database toolkit that lets applications work with databases through a programming interface instead of writing every query directly in SQL. Developers use it with databases including PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB, and CockroachDB. The catalogue add-ons provide agent rules, skills, hooks, agents, and other workflows for using Prisma.

prisma/orm · 47,601 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/prisma/orm/review-implement-phase
Any agent
npx skills add prisma/orm --skill review-implement-phase
Clone the repo
git clone --depth 1 https://github.com/prisma/orm

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for review-implement-phase

README.md
[![agentmods](https://agentmods.dev/badge/skills/prisma/orm/review-implement-phase.svg)](https://agentmods.dev/skills/prisma/orm/review-implement-phase)
Your own site
<a href="https://agentmods.dev/skills/prisma/orm/review-implement-phase"><img src="https://agentmods.dev/badge/skills/prisma/orm/review-implement-phase.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,644 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00038 $0.01644
Opus 5 $0.00019 $0.00822
Sonnet 5 $0.00008 $0.00329
Haiku 4.5 $0.00004 $0.00164

Measured yesterday against content hash 15de7b0878f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

review-implement-phase scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/check-github-admin-ready.mjs, scripts/post-review-thread-reply.mjs, scripts/resolve-review-thread.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills-contrib/review-implement-phase/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

  • node (Node.js)
  • gh (GitHub CLI)

If either is missing, halt immediately and ask the user to install it. The implement-phase scripts require only node and gh.

GitHub admin capability must be available before starting implementation:

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: gh api graphql -f query='query($owner:String!,$repo:String!,$pr:Int!,$before:String){viewer{login} repository(owner:$owner,name:$repo){pullRequest(number:$pr){reviews(last:100,states:PENDING,before:$before){pageInfo{hasPreviousPage startCursor} nodes{id author{login}}}}}}' -F owner=<owner> -F repo=<repo> -F pr=<number> --jq '.data as $d | $d.repository.pullRequest.reviews | {mine: [.nodes[] | select(.author.login == $d.viewer.login)], pageInfo}'
      • The author.login filter matters: another user's pending review is not yours to submit or dismiss, and must not block this workflow. --jq is gh's built-in filter and needs no jq binary.
      • The filter keeps pageInfo beside the matches, because an empty mine alone cannot tell "no pending review" from "the match is on an earlier page". Read both: while mine is empty and pageInfo.hasPreviousPage is true, re-run the query with -f before=<pageInfo.startCursor>. Conclude there is no pending review only when mine is empty and hasPreviousPage is false.
      • GitHub allows one pending review per user per PR, so mine holds at most one node across all pages.
      • If one exists, halt and clean it up (submit or dismiss) before continuing.
    • After posting any "On it" / "Done" comment:
      • Re-check for a pending review authored by the acting user, with the same filtered query and the same paging rule: keep reading pageInfo until mine is non-empty or hasPreviousPage is false.
      • If one exists, the workflow is blocked until it is 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
  1. 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
  2. Render latest action markdown:

Read the full file on GitHub · 119 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 119 lines · 38 tokens per session scan A 15de7b0878f7

Subscribe to this mod's changes

review-implement-phase is a skill published in the GitHub repository prisma/orm (47,601 stars, last pushed 2d ago), licensed Apache-2.0. It adds 38 tokens to every session and 1,644 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.