review

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

A command that reviews the current branch's GitHub pull request with AI and posts a summary plus line-specific comments. A pull request is a proposed code change submitted for review.

In plain words
What is it for?
Use it to check whether the changes match their stated purpose, identify bugs or edge cases, consider performance and tests, and suggest specific code edits.
Why use it?
It gathers the pull request details and records findings directly in GitHub instead of leaving the review as local notes.

Command for Cursor

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

Made for: 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

README.md
[![agentmods](https://agentmods.dev/badge/commands/ohah/electron-mcp-server/review.svg)](https://agentmods.dev/commands/ohah/electron-mcp-server/review)
Your own site
<a href="https://agentmods.dev/commands/ohah/electron-mcp-server/review"><img src="https://agentmods.dev/badge/commands/ohah/electron-mcp-server/review.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,606 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.00000 $0.01606
Opus 5 $0.00000 $0.00803
Sonnet 5 $0.00000 $0.00321
Haiku 4.5 $0.00000 $0.00161

Measured 4d ago against content hash 75a20a297bc8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

review 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 4d 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.md · 99 lines

How it starts

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

Pull Request 리뷰 (AI 리뷰 + 요약·인라인 제안)

현재 브랜치의 PR을 가져와 AI가 코드·설명을 리뷰한 뒤, 요약 리뷰(본문)라인별 제안(인라인 코멘트) 를 PR에 올린다.

  • 요약 리뷰: PR 목적·설명과 변경 일치 여부, 잘된 점, 개선 제안(버그·엣지케이스·성능·테스트), 테스트 관점을 담은 리뷰 본문을 한글로 작성한다.
  • 라인별 제안: 구체적인 코드 수정이 필요한 곳에는 해당 파일·라인에 인라인 코멘트를 달고, 가능하면 ```suggestion ``` 블록을 넣어 작성자가 GitHub에서 "Commit suggestion"으로 적용할 수 있게 한다.

이 레포의 gh 계정 (ohah 전용)

이 레포(ohah/electron-mcp-server)는 리뷰 제출에 ohah GitHub 계정을 쓴다.

  • 제출 전: gh api user -q .login으로 현재 사용자 확인. 결과가 ohah가 아니면 gh auth switch --hostname github.com --user ohah 실행하고 이전 로그인을 기억한다 (예: PREV_GH_USER=<그 값>).
  • 제출 후: ohah로 바꿨다면 gh auth switch --hostname github.com --user <PREV_GH_USER>로 이전 계정을 복원해 전역 gh 설정이 바뀌지 않게 한다.

작업 순서

  1. 브랜치·gh 계정 (이 레포 / ohah 전용)

    • 레포 루트에서 실행. 리뷰 대상은 현재 브랜치의 PR이다.
    • 현재 gh 사용자 확인: gh api user -q .login. ohah가 아니면 gh auth switch --hostname github.com --user ohah 실행하고 이전 로그인을 저장해 나중에 복원.
  2. 현재 브랜치의 PR 찾기

    • PR이 없으면 "현재 브랜치에 해당하는 PR이 없습니다"라고 하고 중단.
    gh pr view --json number,title,body,url,additions,deletions,changedFiles
    
    • 실패 시(PR 없음): gh pr list --head $(git branch --show-current)로 확인.
  3. PR 상세·diff 수집

    • PR 메타·본문: gh pr view
    • 변경 파일: gh pr diff --name-only
    • 전체 diff: gh pr diff
    • 위 내용으로 리뷰용 맥락을 만든다.
  4. AI 리뷰 작성 (요약 + 라인 제안)

    • 요약 본문 (한글):
      • 목적·설명: PR 목적·설명이 실제 변경과 맞는가?
      • 잘된 점: 구조, 네이밍, 컨벤션, 일관성.
      • 개선 제안: 버그·엣지케이스·성능·테스트 등.
    • 라인별 제안: 수정이 필요한 곳마다 인라인 코멘트 준비:
      • path: 레포 루트 기준 상대 경로 (예: src/mcp-server.ts)
      • line: diff 새 버전(우측) 기준 라인 번호.
      • side: "RIGHT"
      • body: 짧은 설명; 구체적인 코드 수정이면 ```suggestion ``` 블록을 넣어 GitHub "Commit suggestion"이 되게 한다.
  5. 리뷰 제출 (인라인 제안이 있으면 요약+인라인을 한 번에)

    • 5-a. 인라인 제안이 하나 이상 있을 때 bodycomments 배열을 모두 포함한 한 번의 리뷰로 제출.
      • body: 4단계에서 쓴 요약 (잘된 점, 개선 요약, 테스트 관점).
      • comments: 제안마다 하나씩, 예:
        • path: 레포 루트 기준 경로
        • line: 새(우측) 버전 기준 라인 번호. 실제 파일과 맞는지 확인.
        • side: "RIGHT"
        • body: 짧은 설명 + (해당 시) ```suggestion``` 블록.
      • 예시 페이로드 파일 (review-payload.json):
        {
          "commit_id": "<headRefOid>",
          "event": "COMMENT",
          "body": "## AI 리뷰\n\n### 잘된 점\n- ...\n\n### 개선 제안\n- ...\n\n### 테스트\n- ...",
          "comments": [
            {
              "path": "src/mcp-server.ts",
              "line": 42,
              "side": "RIGHT",
              "body": "연결 해제 시 트랜스포트 정리를 권장합니다.\n\n```suggestion\n  transport.close();\n```"
            }
          ]
        }
        
      • 명령:
        gh pr view --json headRefOid -q .headRefOid   # commit_id로 사용
        gh api repos/ohah/electron-mcp-server/pulls/$(gh pr view --json number -q .number)/reviews --input review-payload.json
        
      • 제출 후 review-payload.json은 삭제해도 됨.

Read the full file on GitHub · 99 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. 4d ago First seen · 99 lines · 0 tokens per session scan A 75a20a297bc8

Subscribe to this mod's changes

review 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,606 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.