GitHub 功能合并审查
github-functional-merge-review
审查 GitHub 仓库在指定时间窗口内有意义的功能性合并,排除部署、文档、网站等噪音。用于生成每日仓库变更报告。
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 5
- Forks
- 4
01 前言 Front Matter
- name
- github-functional-merge-review
- author
- Hermes Agent
- license
- MIT
- version
- 1.0.0
- metadata
- { "hermes": { "tags": [ "github", "pull-requests", "release-notes", "changelog", "reporting" ] } }
- description
- Review a GitHub repository for meaningful functional merges in a time window while excluding deploy/docs/site noise. Use for daily repo change reports.
03 SKILL.md 正文
GitHub functional merge review
Use this skill when asked to produce a daily/periodic report of meaningful functional code changes merged into a GitHub repo, especially when deploy noise, GitHub Pages commits, docs-site artifacts, or generated output must be excluded.
Core workflow
- Establish the exact window in UTC.
date -u '+%Y-%m-%dT%H:%M:%SZ'
Compute the start timestamp from the requested interval (for example, minus 24 hours).
- Prefer
gh pr listfor merged PR discovery.
gh pr list --repo OWNER/REPO --state merged --limit 200 \
--json number,title,mergedAt,url,author,mergeCommit \
--jq '.[] | select(.mergedAt >= "START_ISO" and .mergedAt <= "END_ISO") | [.mergedAt, ("#"+(.number|tostring)), .title, .author.login] | @tsv'
Notes:
- Use a high enough
--limitfor busy repositories; increase or paginate if the window is not fully covered. gh api repos/OWNER/REPO/pulls -f state=closed ...can accidentally become a POST and fail with"base", "head" weren't supplied; if usinggh api, force GET with-X GET.
- Check commits too, to catch direct commits and understand squashed/merged details.
gh api -X GET repos/OWNER/REPO/commits \
-f since=START_ISO -f until=END_ISO -f per_page=100 \
--jq '.[] | [.commit.committer.date, .sha[0:7], .commit.message|split("\n")[0]] | @tsv'
For busy repos, fetch page 2/3 as needed:
gh api -X GET repos/OWNER/REPO/commits \
-f since=START_ISO -f until=END_ISO -f per_page=100 -f page=2 \
--jq '.[] | [.commit.committer.date, .sha[0:7], .commit.message|split("\n")[0]] | @tsv'
- Inspect likely-functional PRs before summarizing.
gh pr view PR_NUMBER --repo OWNER/REPO \
--json number,title,body,files,commits \
--jq '{number,title,body:(.body[0:700]), files:[.files[].path][0:25], commits:[.commits[].messageHeadline][0:12]}'
Why: PR titles alone can be misleading; bodies and file lists reveal whether the change was runtime behavior, tests demonstrating behavior, docs-only, deploy-only, or generated output.
If JSON output is very large or tool output is capped, use --jq to pre-trim body/files/commits instead of loading the full JSON into Python. Large raw gh JSON captured through terminal wrappers can become truncated or contain control characters that break json.loads.
Filtering guidance
Report functional changes, including:
- Runtime behavior changes
- User-facing features
- Bug fixes
- Tool/integration/platform changes
- Workflow or developer functionality changes
- Reliability/security/data-integrity fixes
- Tests that document or protect shipped behavior
Exclude unless mixed with real code changes:
- GitHub Pages deployments
- Website/docs-site publish artifacts
- Generated static site output
- Pure docs-only changes
- Formatting-only changes
- Version bumps without functional impact
- Release author-map/chore metadata
- CI-only or metadata-only churn unless it materially affects developer/release behavior
- Features merged and reverted within the same window; mention only if the net effect matters
When a PR contains both noise and functional changes, report only the functional part.
Grouping and report style
- Group related PRs into coherent bullets: update/backup, gateway/platforms, Slack, TUI/CLI, security/provider, skills, file/session integrity, etc.
- Include PR numbers only if the prompt or user asks for traceability; otherwise omit specific PR numbers and commit hashes.
- Summarize material functional changes and why they matter; avoid listing every commit or every individual PR/change.
- Keep daily reports concise but not so terse that functional impact is lost.
- End with an explicit ignored/noise line if the prompt asks for it.
Common pitfalls
- Do not answer from memory; use live
gh/GitHub data. - Do not treat docs-site deploy commits as product changes.
- Do not include generated site output just because it has many changed files.
- Beware
gh apidefaulting to POST when-ffields are used; add-X GETfor list endpoints. - If the repository is extremely active,
gh pr list --limit 50may miss older merges in the window; use 200+ or paginate.
04 同仓库更多 Skills
网页抓取受阻恢复
blocked-page-recovery
当抓取失败时使用:403/429 状态码、付费墙(paywall)、WAF、机器人验证墙(bot wall)。
软件实施计划编写
writing-plans
在创建或更新可执行的软件计划时使用。除非用户明确要求将计划注册到 Doct,否则请将计划保留为本地文件。
测试驱动开发
test-driven-development
TDD:强制执行「红-绿-重构」(RED-GREEN-REFACTOR)循环,先写测试再写代码。
系统化根因调试
systematic-debugging
四阶段根因调试:先理解缺陷,再着手修复。
技术预研验证
spike
在正式构建前,通过一次性(可丢弃的)实验来验证某个想法。
代码变更并行清理精简
simplify-code
并行使用 3 个智能体(agent)对近期代码变更进行清理精简。