Conversation
added 5 commits
April 9, 2026 09:10
- Clamp minutes to 1–20 (default 5), times to 1–3 (default 1) - Serve HTML as application/octet-stream to prevent browser JS execution - Sanitize Content-Disposition filename (strip control chars and quotes) - Re-read store before decrement to narrow concurrent-request race window
…xample, collapse double read
Adds a skill + script for polling GitHub repos for new comments on issues and PRs. Script (scripts/watch-comments.ts): - Takes <owner/repo> as the first arg - Flags: --interval, --pr, --issue, --once, --state-dir - Checks all three GitHub comment streams per PR: issue comments, inline review comments, submitted review bodies - Persists seen comment IDs to state/<owner>-<repo>.json so it never re-reports old comments across runs - Prints new comments to stdout - Sends Telegram notifications if TELEGRAM_BOT_TOKEN + TELEGRAM_CHAT_ID are set in the environment Skill (SKILL.md): - Quick start commands for all watch modes - Background execution pattern with PID tracking - Log tailing and watcher health check - Telegram setup - State file management (reset, custom dir) - Options reference table
- Rename skill watch-comments -> gh-comments - Rename script watch-comments.ts -> gh-comments.ts - Default mode: fetch new comments once and exit - --watch flag: poll continuously (previous behaviour) - --all flag: ignore state, show all comments - Update SKILL.md to match new interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a skill + Bun script for watching GitHub repos for new comments on issues and PRs.
Usage
What it does
state/<owner>-<repo>.json— no duplicate notifications across restartsTELEGRAM_BOT_TOKEN+TELEGRAM_CHAT_IDare in the environmentFiles
skills/watch-comments/scripts/watch-comments.ts— the poller (300 lines, Bun)skills/watch-comments/SKILL.md— usage docs, all flags, background pattern, state managementskills/watch-comments/state/.gitkeep— keeps the state dir in the repo;*.jsonfiles are gitignored