github-fetch-release-notes

Use when the user asks for GitHub 仓库更新、Release Notes、CHANGELOG 摘要、版本对比、更新日报周报,或要把 GitHub 更新接进脚本、自动化、定时任务,并且希望拿到稳定结构化 JSON。Do not use for general repository reading, code review, issue triage, or architecture analysis just because a GitHub URL is present.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "github-fetch-release-notes" with this command: npx skills add crper/agent-skills/crper-agent-skills-github-fetch-release-notes

📦 GitHub Fetch Release Notes

这个技能只负责稳定取数,不负责替用户决定最终排版。

适用场景

  • 看某个 GitHub 仓库最近更新了什么
  • 比较最新版本和上一版的差异
  • 给多个仓库做更新订阅、日报或周报
  • 把 GitHub 更新接进 cron、workflow、bot 或其他自动化流程

不要用于

  • 只是贴了 GitHub 仓库 URL,但用户并没有明确表达“看更新 / 版本 / Release / CHANGELOG / 订阅”的意图
  • 代码审查、Issue 排查、仓库结构阅读、架构分析
  • 需要抓 README、源码、PR、Issue 内容本身,而不是版本更新摘要

定位

  • 只面向小批量查询
  • 建议一次最多 10 个仓库
  • 超过 10 个仓库请分批执行
  • 不在这个技能里继续叠加缓存、批处理编排、临时文件恢复之类的复杂机制

这个技能会做什么

  • 优先读取 CHANGELOG
  • CHANGELOG 取到内容后,会用最近的 Releases 轻量确认发布时间
  • 如果 CHANGELOG 可读,但其最新正式版本明显落后于更新的已发布 Release(优先参考可比较的稳定版),会自动回退到 Releases
  • 如果 CHANGELOG 不可用,就回退到 Releases
  • 自动处理 owner/repo、GitHub URL、SSH 仓库地址
  • 默认输出固定 schema 的 JSON
  • 复用用户本机 gh auth login 的登录态
  • error.code 明确标记错误类型,方便脚本分支处理

运行前提

gh auth login

需要安装 GitHub CLI(gh),并且当前环境能访问 github.com

调用方式

python3 ./skills/github-fetch-release-notes/scripts/fetch_updates.py owner/repo
python3 ./skills/github-fetch-release-notes/scripts/fetch_updates.py owner/repo --details
python3 ./skills/github-fetch-release-notes/scripts/fetch_updates.py owner/repo --json

输出约定

默认输出顶层固定包含:

  • schema_version
  • generated_at
  • query
  • stats
  • results

每个 results[] 现在采用更适合脚本和大模型消费的嵌套结构,固定包含:

  • input
  • status
  • selection
  • versions
  • signals
  • warnings
  • notes
  • error

其中:

  • selection.decision_code 是稳定的机器可读决策原因
  • versions.latest / versions.previous 统一承载版本、发布时间、亮点和详情
  • signals 放补充判断信号,例如 unreleased_presentchangelog_stalestable_release_preferred
  • warnings[].code 提供稳定的结构化告警标签
  • error 仅在 status = error 时出现

如果带 --details,会把详细条目放进 versions.latest.detailsversions.previous.details

如果需要按字段严格消费结果,请查看 references/output-schema.md

常见 error.code

  • invalid_repo
  • gh_not_installed
  • gh_auth_unavailable:当前环境没有可用的 gh 登录态,常见于 cron 或隔离环境
  • gh_not_logged_in:交互式本地环境里没有完成 gh 登录
  • gh_auth_invalid:能读取 gh 登录态,但 token 无效或已过期
  • repo_not_found_or_no_access
  • rate_limited
  • permission_denied
  • request_timeout
  • gh_api_failed
  • runtime_error

交互原则

  • 只有在“更新意图”明确时才触发;单独出现 GitHub URL 不构成触发条件
  • 默认先拿结构化 JSON,再由上层决定翻译、总结和排版
  • 用户明确要自动化接入、脚本消费,或者要把结果喂给别的模型时,直接使用默认 JSON
  • 用户要更多上下文时,再加 --details
  • 不要把 CHANGELOG 标题里的日期或版本号直接当成正式发布时间;正式发布时间以 GitHub Release 确认为准
  • 如果最新 release note 过于简短,就明确返回空亮点或提示说明,不要为了“看起来完整”而脑补内容
  • 如果最近 Releases 同时混有预发布和正式版,默认优先正式版;只有最近没有正式版时,才返回预发布
  • 技能内部使用轻量有界并发、错误退避和一次重试;release 查询会优先走 gh api graphql 批量预取,失败时再回退到 REST,但不把复杂参数暴露给用户

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Planning with files

Implements Manus-style file-based planning to organize and track progress on complex tasks. Creates task_plan.md, findings.md, and progress.md. Use when aske...

Registry SourceRecently Updated
8.4K22Profile unavailable
Coding

Nutrient Document Processing (Universal Agent Skill)

Universal (non-OpenClaw) Nutrient DWS document-processing skill for Agent Skills-compatible products. Best for Claude Code, Codex CLI, Gemini CLI, Cursor, Wi...

Registry SourceRecently Updated
2740Profile unavailable
Coding

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

Repository Source
214.5K23Kvercel
Coding

svelte5-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
github-fetch-release-notes | V50.AI