review-apply

review-apply is a command for Claude Code, Cursor from ohah/electron-mcp-server. It costs 0 tokens per session (1,039 once invoked), scanned A, original, MIT.

A command that finds suggestion blocks in review comments on the current GitHub pull request and applies selected suggestions to local files. A pull request is a proposed code change submitted for review.

In plain words
What is it for?
Use it to apply one, several, or all compatible code suggestions from the current pull request to the working tree.
Why use it?
It avoids copying GitHub review suggestions by hand and pauses when suggestions overlap or may not fit the current file.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

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 commands/ohah/electron-mcp-server/review-apply
Clone the repo
git clone --depth 1 https://github.com/ohah/electron-mcp-server

Made for: Claude Code, Cursor.

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-apply

README.md
[![agentmods](https://agentmods.dev/badge/commands/ohah/electron-mcp-server/review-apply.svg)](https://agentmods.dev/commands/ohah/electron-mcp-server/review-apply)
Your own site
<a href="https://agentmods.dev/commands/ohah/electron-mcp-server/review-apply"><img src="https://agentmods.dev/badge/commands/ohah/electron-mcp-server/review-apply.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,039 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.1 $0.00000 $0.01039
Opus 5 $0.00000 $0.00519
Sonnet 5 $0.00000 $0.00208
Haiku 4.5 $0.00000 $0.00104

Measured 6d ago against content hash 83650d759f57, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

review-apply 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 6d ago.

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.

.cursor/commands/review-apply.md · 68 lines

How it starts

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

PR 리뷰 제안 로컬 적용 (review-apply)

현재 브랜치의 PR에서 제안 블록이 있는 리뷰 코멘트를 가져와, 그 제안을 로컬 파일에 적용한다. GitHub "Commit suggestion"을 로컬에서 재현하는 것과 같다.

사용 시점

  • Cursor에서 이 커맨드를 실행할 때 (예: 명령 팔레트 → "review-apply" 또는 /review-apply).

작업 순서

  1. 현재 브랜치의 PR 찾기

    • PR이 없으면 "현재 브랜치에 해당하는 PR이 없습니다"라고 하고 중단.
    gh pr view --json number,headRefOid
    
    • 실패 시: gh pr list --head $(git branch --show-current)로 확인.
  2. 리뷰 코멘트 가져오기

    gh api repos/ohah/electron-mcp-server/pulls/<PR-number>/comments
    
    • path, line, start_line, body 사용.
  3. 제안 블록이 있는 코멘트만 남기기

    • body```suggestion 이 포함된 코멘트만 대상으로 한다.
    • /```suggestion\s*([\s\S]*?)```/ 같은 정규식으로 제안 코드를 블록에서 추출한다.
    • 그런 코멘트마다 path, line, start_line(없으면 한 줄로 간주), suggestedCode(추출한 텍스트; 줄바꿈 유지)를 기록한다.
  4. 애매하면 사용자에게 물어보기

    • 자동 적용하지 않고 상황을 짧게 설명한 뒤 "전부 적용? / 일부만? / 건너뛸까요?"라고 묻는다.
    • 다음일 때 묻는다:
      • 같은 파일·같은 라인(또는 겹치는 라인 범위)에 제안이 두 개 이상일 때.
      • 리뷰 이후 그 라인(또는 범위) 내용이 많이 바뀌어 제안을 그대로 붙이면 충돌하거나 어색할 때.
      • path파일이 로컬에 없을 때 (이동·삭제 등).
      • 제안이 여러 줄인데 start_line이 없거나 범위가 불명확할 때.
    • 사용자가 "전부 적용", "이것만 적용", "건너뛰기"라고 하면 그에 맞게 진행.
  5. 로컬 파일에 제안 적용

    • 선택한 제안마다:
      • path의 파일을 연다.
      • 한 줄: line 위치의 줄을 제안 줄(들)로 교체. 제안이 여러 줄이면 그 줄 수만큼 아래로 교체.
      • 여러 줄 (start_lineline이 있을 때): start_lineline 범위를 제안 코드로 교체. 제안 줄 수가 범위 길이와 다르면 제안 줄 수 기준으로 교체.
    • 제안에 있는 들여쓰기를 유지. 제안에 줄 끝 줄바꿈이 없으면 의도한 줄(들)만 교체.
  6. 적용 결과 요약

    • 어떤 파일·라인(또는 범위)이 수정됐는지 짧게 나열.
    • "변경 내용을 확인한 뒤 commit 커맨드로 커밋하세요"라고 안내.
  7. 선택: PR 본문 갱신

    • 하나 이상 제안을 적용했으면 PR 설명을 갱신해도 된다.
    • branch-summary.md설명 또는 추가 정보 아래에 "리뷰 제안 반영: (요약)." 한 줄 추가.
    • 그다음 PR 본문 PATCH:
      gh api repos/ohah/electron-mcp-server/pulls/<PR-number> -X PATCH -f [email protected]
      
    • PR 번호는 1단계 값 사용. branch-summary.md를 커밋할지는 작성자 결정.

참고

  • 레포 루트에서 gh 인증된 상태로 실행.
  • 인라인 리뷰 코멘트("Files changed"에 달린 것)만 사용; 일반 타임라인 코멘트는 무시.
  • ```suggestion``` 안의 텍스트만 적용; 코멘트의 나머지 글은 적용하지 않는다.
  • 코드가 바뀌어 라인 번호나 내용이 안 맞거나, 여러 제안이 같은 위치를 가리키면 적용 전에 사용자에게 묻는다.

Read the full file on GitHub · 68 lines

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. 6d ago First seen · 68 lines · 0 tokens per session scan A 83650d759f57

Subscribe to this mod's changes

review-apply is a command published in the GitHub repository ohah/electron-mcp-server (4 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,039 tokens. 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-08-31.