copilot-review

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

A command for reviewing GitHub Copilot feedback on a branch or pull request, which is a proposed set of code changes for review. It applies suitable suggestions to the code and checks the result.

In plain words
What is it for?
Finding the relevant pull request, understanding comments about code quality or tests, applying valid suggestions, and running formatting and lint checks.
Why use it?
It gathers review comments and turns useful ones into code changes, avoiding the need to find and handle each Copilot comment manually.

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/copilot-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 copilot-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/ohah/electron-mcp-server/copilot-review.svg)](https://agentmods.dev/commands/ohah/electron-mcp-server/copilot-review)
Your own site
<a href="https://agentmods.dev/commands/ohah/electron-mcp-server/copilot-review"><img src="https://agentmods.dev/badge/commands/ohah/electron-mcp-server/copilot-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,197 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.01197
Opus 5 $0.00000 $0.00598
Sonnet 5 $0.00000 $0.00239
Haiku 4.5 $0.00000 $0.00120

Measured 5d ago against content hash 0e891e57dfc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

copilot-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 5d 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/copilot-review.md · 56 lines

How it starts

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

GitHub Copilot 리뷰 피드백 반영

브랜치/PR에 대한 Copilot 피드백을 확인하고, 제안된 변경을 코드에 반영한다.

입력

  • 브랜치/PR 링크 (선택): 사용자가 링크를 줄 수 있음 (예: https://github.com/owner/repo/pull/123). 없으면 현재 브랜치의 PR을 GitHub CLI로 찾는다:

    gh pr view --json number,url  # 레포 루트에서; 현재 브랜치에 PR 없으면 실패
    # 또는
    gh pr list --head $(git branch --show-current) --state open --json number,url
    
    • 현재 브랜치에 PR이 정확히 하나 있으면 그 PR 사용. 없거나 여러 개면 PR 링크(또는 붙여넣은 리뷰 텍스트)를 요청한다.
  • 리뷰 텍스트: 사용자가 Copilot 리뷰 텍스트를 직접 붙여넣을 수 있음; 그걸 피드백 소스로 쓴다.

단계

  1. 리뷰 확보:

    • 사용자가 PR 링크를 붙여넣었으면: 그 PR을 열어 GitHub Copilot 리뷰(요약·파일 코멘트)를 찾는다.
    • 링크를 주지 않았으면: 레포 루트에서 gh pr view (또는 gh pr list --head $(git branch --show-current) --state open) 실행. 현재 브랜치에 PR이 하나 있으면 그걸 쓴다; 없으면 "현재 브랜치에 PR이 없습니다" 또는 "PR이 여러 개입니다"라고 하고 링크를 요청한다.
    • 리뷰 텍스트를 직접 붙여넣었으면: 그걸 피드백 소스로 쓴다.
    • PR이 있으면: gh pr view <number> 또는 웹 URL로 PR 대화에서 Copilot 리뷰를 확인한다.
  2. 피드백 파악:

    • Copilot이 뭘 제안했는지 요약 (스타일, 보안, 로직, 테스트 등).
    • 각 코멘트가 어떤 파일·라인을 가리키는지 파악한다.
  3. 변경 반영:

    • 제안이 타당한 부분만 코드에 반영한다.
    • 정확성·보안·유지보수성을 높이는 제안은 받아들이고, 프로젝트 규칙·의도와 어긋나는 건 건너뛰거나 수정해 반영한다.
    • 수정 후 포맷·린트 실행 (TS/JS: bun run format, bun run lint).
  4. 사용자에게 답변:

    • 무엇을 바꿨고 무엇을 건너뛰었는지 (이유가 있으면) 나열.
    • PR 링크(또는 붙여넣은 리뷰 텍스트)는 gh pr view / gh pr list로 현재 브랜치 PR을 찾지 못했을 때, 또는 사용자가 다른 PR을 지정해야 할 때만 요청한다.
  5. PR 내용 갱신 (Copilot 리뷰 반영 후):

    • branch-summary.md(또는 PR 설명 소스)에 Copilot이 뭘 제안했고 뭘 반영했는지 짧게 적는다 (예: "Copilot 리뷰: AGENTS.MD 대소문자, MCP 도구 네이밍, 트랜스포트 정리 반영").
    • 브랜치가 이미 push됐고 PR이 있으면 gh pr edit --body-file branch-summary.md를 제안하거나 실행해 PR 설명을 갱신한다. branch-summary.md는 커밋하지 않는다; PR 본문용으로만 쓴다.
  6. 리뷰 스레드 해결 (피드백 반영 후):

    • 반영한 Copilot 코멘트 스레드는 GitHub에서 resolved로 표시해 PR에 미해결 스레드가 남지 않게 한다.
    • : PR → "Files changed" → 각 코멘트 열기 → "Resolve conversation".
    • CLI: gh에는 resolve 명령이 없으므로 GraphQL 사용: gh api graphql -f query='mutation { resolveReviewThread(input: { threadId: "PRRT_xxx" }) { thread { isResolved } } }' (PR에서 thread ID 확인, 예: pull-requests/pr-N/comments.json 또는 리뷰 코멘트 페이로드). 미해결 스레드마다 한 번씩 실행.

Read the full file on GitHub · 56 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. 5d ago First seen · 56 lines · 0 tokens per session scan A 0e891e57dfc1

Subscribe to this mod's changes

copilot-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,197 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.