pr-poll
Manages PR review polling daemon for automatic notifications and auto-respond.
- License 许可
- MIT
- 所属仓库
- goffity/dev-km
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pr-poll
- description
- Manages PR review polling daemon for automatic notifications and auto-respond.
- argument-hint
- [start|stop|auto|check|status]
- user-invocable
- true
02 资源文件 8
- 资产文件assets/template.html14.2 KB
- 参考文档example.html7.3 KB
- 参考文档references/checklist.md3.3 KB
- 参考文档references/layouts.md7.5 KB
- 脚本scripts/pr-review-poll-start.sh2.6 KB
- 脚本scripts/pr-review-poll-status.sh2.3 KB
- 脚本scripts/pr-review-poll-stop.sh1.0 KB
- 脚本scripts/pr-review-poll.sh19.0 KB
03 SKILL.md 正文
PR Poll - Automatic PR Review Notifications
จัดการ polling daemon ที่ตรวจสอบ PR reviews และส่ง notification อัตโนมัติ
Usage
/pr-poll # Show status
/pr-poll start # Start daemon (notification only)
/pr-poll auto # Start daemon with auto-respond (Claude handles reviews)
/pr-poll stop # Stop daemon
/pr-poll check # Check once (no daemon)
Instructions
Step 1: Parse Command
ถ้าไม่มี argument หรือ status:
→ แสดงสถานะ daemon
ถ้า start:
→ Start daemon (notification only)
ถ้า auto:
→ Start daemon with auto-respond (Claude handles reviews automatically)
ถ้า stop:
→ Stop daemon
ถ้า check:
→ Run once and exit
Step 2: Execute Action
Status (default)
./scripts/pr-review-poll-status.sh
Output:
- Daemon status (running/stopped)
- Tracked PRs
- Last log entries
Start Daemon (Notification Only)
./scripts/pr-review-poll-start.sh --interval 300
Options:
--interval N- Polling interval in seconds (default: 300 = 5 minutes)--repo OWNER/REPO- Specific repo to monitor
Output:
Daemon started (PID: 12345)
Log file: ~/.pr-review-poll.log
To view logs: tail -f ~/.pr-review-poll.log
To stop: ./pr-review-poll-stop.sh
Start Daemon with Auto-Respond
# Get current working directory
WORKING_DIR=$(pwd)
# Start with auto-respond enabled
./scripts/pr-review-poll-start.sh --interval 300 --auto-respond --working-dir "$WORKING_DIR"
Options:
--auto-respond- Enable automatic Claude CLI spawning--working-dir DIR- Working directory for Claude (required with --auto-respond)
Output:
Daemon started (PID: 12345)
Auto-respond: ENABLED
Working dir: /path/to/repo
Log file: ~/.pr-review-poll.log
To view logs: tail -f ~/.pr-review-poll.log
To stop: ./pr-review-poll-stop.sh
How Auto-Respond Works:
- Daemon detects new PR review
- Spawns Claude CLI with
/pr-reviewprompt - Claude analyzes and responds to review feedback
- Log file created:
~/.pr-review-claude-{pr}-{timestamp}.log
Important Notes:
- Requires
claudeCLI to be installed and in PATH - Uses
--dangerously-skip-permissionsfor non-interactive execution - Each Claude session runs in background with separate log file
Stop Daemon
./scripts/pr-review-poll-stop.sh
Output:
Daemon stopped
Check Once
./scripts/pr-review-poll.sh --once
Output:
- Lists checked PRs
- Sends notifications for new reviews
Step 3: Display Summary
## PR Poll Status
| Metric | Value |
|--------|-------|
| Status | Running / Stopped |
| PID | [pid] |
| Interval | [seconds]s |
| Tracked PRs | [count] |
### Recent Activity
[last 5 log lines]
### Commands
- Start: `/pr-poll start`
- Stop: `/pr-poll stop`
- Check now: `/pr-poll check`
How It Works
- Polling: Daemon checks GitHub every N seconds for user's open PRs
- Detection: Compares current reviews with stored state
- Notification: Sends macOS notification for new reviews
- Action: Notification suggests running
/pr-review
Notification Types
| Review State | Sound | Message |
|---|---|---|
| APPROVED | Glass | "Approved by @reviewer" |
| CHANGES_REQUESTED | Basso | "Changes requested by @reviewer" |
| COMMENTED | Ping | "@reviewer left a comment" |
Files
| File | Purpose |
|---|---|
~/.pr-review-poll.pid |
Daemon PID file |
~/.pr-review-poll.log |
Daemon log file |
~/.pr-review-state.json |
PR review state |
Examples
# Start daemon with 5-minute interval (default, notification only)
/pr-poll start
# Start with auto-respond - Claude handles reviews automatically
/pr-poll auto
# Start with 1-minute interval for active development
./scripts/pr-review-poll-start.sh --interval 60
# Auto-respond with 1-minute interval
./scripts/pr-review-poll-start.sh --interval 60 --auto-respond --working-dir "$(pwd)"
# Monitor specific repo with auto-respond
./scripts/pr-review-poll-start.sh --repo owner/repo --auto-respond --working-dir /path/to/repo
# Quick check without starting daemon
/pr-poll check
Troubleshooting
| Issue | Solution |
|---|---|
| Daemon not starting | Check gh auth status |
| No notifications | Check macOS notification settings |
| Too many notifications | Increase poll interval |
| Stale state | Delete ~/.pr-review-state.json |
Related Commands
| Command | Purpose |
|---|---|
/pr-review |
Handle PR review feedback |
/pr |
Create PR |
/focus |
Set current task |
04 同仓库更多 Skills
wait-what
Stop. That last message did not land: re-pitch it.
tdd
Test-driven development loop (red-green-refactor) with commit-based phase state and Jira traceability. Use when the user wants to build a feature or fix a bug test-first, mentions "tdd", "red-green-refactor", or "test-first". Replaces the tdg plugin — combines its commit/phase discipline with seam-based test quality rules from kb Testing Standards.
td
Creates post-task retrospectives with Before/After context and session documentation.
summary
Generates weekly or monthly session summaries from retrospectives and activity logs.
share
Shares knowledge across projects by copying to shared-knowledge directory with cross-project metadata.
session-analyzer
Analyzes git changes and creates retrospective drafts with Before/After context.