Borrowing it
Nothing to install: this file belongs to ohah/electron-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ohah/electron-mcp-server/main/.cursor/commands/review-apply.mdgit clone --depth 1 https://github.com/ohah/electron-mcp-serverWrote 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.
[](https://agentmods.dev/commands/ohah/electron-mcp-server/review-apply)<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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01039 |
| Opus 5.5 | $0.00000 | $0.00416 |
| Sonnet 5.5 | $0.00000 | $0.00208 |
| Haiku 4.5 | $0.00000 | $0.00104 |
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 2mo 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.
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).
작업 순서
-
현재 브랜치의 PR 찾기
- PR이 없으면 "현재 브랜치에 해당하는 PR이 없습니다"라고 하고 중단.
gh pr view --json number,headRefOid- 실패 시:
gh pr list --head $(git branch --show-current)로 확인.
-
리뷰 코멘트 가져오기
gh api repos/ohah/electron-mcp-server/pulls/<PR-number>/commentspath,line,start_line,body사용.
-
제안 블록이 있는 코멘트만 남기기
body에```suggestion이 포함된 코멘트만 대상으로 한다./```suggestion\s*([\s\S]*?)```/같은 정규식으로 제안 코드를 블록에서 추출한다.- 그런 코멘트마다
path,line,start_line(없으면 한 줄로 간주),suggestedCode(추출한 텍스트; 줄바꿈 유지)를 기록한다.
-
애매하면 사용자에게 물어보기
- 자동 적용하지 않고 상황을 짧게 설명한 뒤 "전부 적용? / 일부만? / 건너뛸까요?"라고 묻는다.
- 다음일 때 묻는다:
- 같은 파일·같은 라인(또는 겹치는 라인 범위)에 제안이 두 개 이상일 때.
- 리뷰 이후 그 라인(또는 범위) 내용이 많이 바뀌어 제안을 그대로 붙이면 충돌하거나 어색할 때.
path의 파일이 로컬에 없을 때 (이동·삭제 등).- 제안이 여러 줄인데
start_line이 없거나 범위가 불명확할 때.
- 사용자가 "전부 적용", "이것만 적용", "건너뛰기"라고 하면 그에 맞게 진행.
-
로컬 파일에 제안 적용
- 선택한 제안마다:
path의 파일을 연다.- 한 줄:
line위치의 줄을 제안 줄(들)로 교체. 제안이 여러 줄이면 그 줄 수만큼 아래로 교체. - 여러 줄 (
start_line과line이 있을 때):start_line…line범위를 제안 코드로 교체. 제안 줄 수가 범위 길이와 다르면 제안 줄 수 기준으로 교체.
- 제안에 있는 들여쓰기를 유지. 제안에 줄 끝 줄바꿈이 없으면 의도한 줄(들)만 교체.
- 선택한 제안마다:
-
적용 결과 요약
- 어떤 파일·라인(또는 범위)이 수정됐는지 짧게 나열.
- "변경 내용을 확인한 뒤
commit커맨드로 커밋하세요"라고 안내.
-
선택: 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…```안의 텍스트만 적용; 코멘트의 나머지 글은 적용하지 않는다.- 코드가 바뀌어 라인 번호나 내용이 안 맞거나, 여러 제안이 같은 위치를 가리키면 적용 전에 사용자에게 묻는다.
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.
- 2mo ago First seen · 68 lines · 0 tokens per session scan A 83650d759f57
review-apply is a command published in the GitHub repository ohah/electron-mcp-server (4 stars, last pushed 7mo 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.
Other commands, from other repositories
speckit.spex.submit
Push and create PR for team review, with optional watch mode for CI monitoring.
git
The pre-finish status: branch, hygiene findings, message checks, workflow lint, template state.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
factory
Linha de montagem multi-agente (Software Factory) — spec-writer → builder em worktree isolado → 4 revisores paralelos (Security, Code, UI, UX) → approver com gate de risco e dashboard visual.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
release-tag
Create and push a version tag after a release PR has been merged.