ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 turgid-tributary

review-queue

검토를 기다리는 오픈 PR 수를 상태 줄에 표시하고 gh로 GitHub의 review-requested:@me를 조회해 주기적으로 갱신하는 Claude Code 모드입니다.

turgid-tributary@turgid-tributary

turgid-tributary/claude-plugins/tree/main/plugins/review-queue

번역 완료

이 mod 소개

Claude Code의 이 모드(함수 hook 플러그인)는 검토를 기다리는 오픈 PR 수를 상태 줄에 "You're a slacker, McFly: 9 reviews" 형식으로 표시합니다. gh api search/issues를 사용해 is:pr is:open review-requested:@me archived:false를 조회하고 total_count를 읽습니다. session.start에서 가져온 뒤 $.clock.every를 통해 5분마다 갱신합니다. gh가 실패하면(로그인하지 않았거나 오프라인이면)상태 줄에 reviews: ?가 표시됩니다. gh 로그인(gh auth login)이 필요합니다. 문구와 갱신 주기는 hooks/register.ts의 PREFIX와 REFRESH_MS에서 바꿀 수 있으며 개발 중에는 claude plugin validate --strict, claude plugin test, claude --plugin-dir로 로드합니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add turgid-tributary/claude-plugins
claude plugin install review-queue
원문 / README

review-queue

Puts the number of open pull requests waiting on your review in the Claude Code status line:

You're a slacker, McFly: 9 reviews

It counts open PRs where you are a requested reviewer, skipping archived repositories, the same set as GitHub's review-requested:@me search. The count is fetched when the session starts and every five minutes after. If gh fails (not logged in, offline), the line reads You're a slacker, McFly: reviews: ?.

Requirements

  • gh, logged in (gh auth login)

How it works

This is a mod: a plugin of function hooks (hooks/register.ts) rather than commands or agents. On session.start it runs gh api search/issues for is:pr is:open review-requested:@me archived:false, reads total_count, and sets the line with $.ui.status. A $.clock.every timer repeats that every five minutes.

To change the wording, edit PREFIX in hooks/register.ts; to change how often it refreshes, edit REFRESH_MS.

Developing

claude plugin validate --strict plugins/review-queue
claude plugin test plugins/review-queue
claude --plugin-dir plugins/review-queue    # load it from disk; edits hot-reload

Once Claude Code has loaded the mod from disk, .claude-plugin/types/ holds the API typings and tsc -p plugins/review-queue type-checks it.

비슷한 프로젝트