Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计提醒

summarize-changes总结变化

Agent Skill

summarize-changes 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

285

周安装

12

GitHub Stars

公开资料未说明

下载量

94
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:summarize-changes(总结变化)
来源仓库:https://github.com/dolesshq/self-obsolescence
仓库路径:skills/summarize-changes
安装命令:
npx skills add https://github.com/dolesshq/self-obsolescence --skill summarize-changes
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dolesshq/self-obsolescence --skill summarize-changes

简介

summarize-changes 生成指定范围内代码变更的精准摘要,适配不同受众视角。

  • 适用于总结 PR、分支或未提交变更,可按工程师或产品经理视角输出。
  • 支持按作用域(如 staged、branch、PR)和作者类型定制摘要内容。
  • 调用时指定 author-type 与 scope 参数,无参调用也可自动识别上下文。
  • 建议核对实际变更后再使用,避免依赖自动生成结果做关键决策。

SKILL.md

Summarize Changes

Goal

Produce accurate, audience-specific summaries of code changes from a selected scope.

When to use

Use this skill when the user asks for change summaries such as:

  • "summarize what changed"
  • "summarize staged/unstaged changes"
  • "summarize all uncommitted work"
  • "summarize this branch/PR"
  • "write this summary as an engineer/PM"

Invocation syntax

Preferred invocation:

$summarize-changes <author-type> <scope>

No-args invocation is allowed:

$summarize-changes

Examples:

$Summarize Changes engineer PR
$summarize-changes engineer branch
$summarize-changes product-manager all-uncommitted
$summarize-changes

Normalization rules:

  • Treat skill trigger as case-insensitive ($Summarize Changes and $summarize-changes are both valid).
  • Normalize author aliases before execution:

- product -> product-manager - pm -> product-manager

  • Normalize scope aliases before execution:

- PR, pr, pr-wide -> pr-wide - branch, branch-wide -> branch-wide - unstaged -> unstaged - staged -> staged - all-uncommitted, uncommitted -> all-uncommitted - last-message, last -> last-message

  • If scope token is unknown, ask one short clarification question.
  • If author and/or scope is missing, ask one short clarification question with choices; if unanswered, default to product + PR.

Scope modes

Choose exactly one scope mode unless the user asks for multiple.

  1. last-message
  • Summarize only changes referenced in the latest user/assistant implementation message.
  • Validate references against actual git diff before reporting.
  1. unstaged
  • Use: git diff
  • Include untracked files separately via git status --porcelain.
  1. staged
  • Use: git diff --cached
  1. all-uncommitted
  • Combine:

- unstaged diff (git diff) - staged diff (git diff --cached) - untracked files (git status --porcelain)

  1. branch-wide
  • Use: git diff <base>...HEAD
  • If base is not provided, infer from upstream (for example origin/main) and state assumption.
  • Alias support: branch, branch-wide
  1. pr-wide
  • Prefer GitHub CLI when available:

- gh pr view --json baseRefName,headRefName,number,title - gh pr diff

  • If PR metadata is unavailable, fall back to branch-wide and state fallback.
  • Alias support: PR, pr, pr-wide

Author personas

Pick one primary persona. Optional secondary persona is allowed if user asks.

  1. engineer
  • Focus: technical implementation details, files, APIs, data model, migrations, tests, risk.
  • Include concrete file-level notes and verification commands/results when available.
  1. product-manager
  • Focus: user-visible features, UX changes, workflow impact, release notes framing.
  • Avoid low-value internal details unless they change behavior or risk.
  1. designer
  • Focus: UI/UX behavior, interaction flow, visual hierarchy, accessibility-relevant changes.
  1. qa
  • Focus: test impact, risk areas, regression vectors, what to test manually and automatically.
  1. security
  • Focus: authn/authz changes, data access boundaries, secrets/config, attack surface delta.
  1. executive
  • Focus: concise impact summary, delivery status, risks, and next steps.

Workflow

  1. Resolve scope and persona
  • If user did not specify, default to:

- scope: PR (normalized to pr-wide) - persona: product (normalized to product-manager)

  • Normalize aliases first (PR -> pr-wide, branch -> branch-wide, product -> product-manager).
  • Ask at most one question only if required to avoid wrong scope.
  1. Collect evidence
  • Run scope-appropriate git/PR commands.
  • Build file list grouped by area (backend, frontend, db, tests, docs, infra).
  1. Classify changes
  • Identify:

- added/changed/removed files - behavioral vs refactor-only changes - data/model/API/test/documentation deltas

  1. Draft persona-specific summary
  • Apply persona focus rules.
  • Keep statements evidence-based (from diff/logs/PR metadata).
  1. Add risks and unknowns
  • List material risks, assumptions, and missing validation.

Required sections

Every summary must include:

  • Scope: explicit mode and command basis
  • Audience: selected persona
  • What changed: concise bullets
  • Files touched: grouped list or highlights
  • Risks / follow-ups: only material items

Output templates

Template: Engineer

Scope: `<scope-mode>`
Audience: `engineer`

What changed:
- <technical change>
- <technical change>

Files touched:
- `<path>`: <what changed and why>
- `<path>`: <what changed and why>

Verification status:
- `<command>` -> `<result>`
- `<command>` -> `<result>`

Risks / follow-ups:
- <risk or gap>
- <next action>

Template: Product Manager

Scope: `<scope-mode>`
Audience: `product-manager`

Feature/UX impact:
- <user-visible capability or behavior change>
- <user-visible capability or behavior change>

Experience changes by area:
- `<route/page/feature>`: <what changed for users>
- `<route/page/feature>`: <what changed for users>

Release notes draft:
- <customer-facing summary line>
- <customer-facing summary line>

Risks / rollout notes:
- <known risk, edge case, or migration note>
- <recommended mitigation or follow-up>

Template: QA

Scope: `<scope-mode>`
Audience: `qa`

Change inventory:
- <high-risk code path changed>
- <high-risk code path changed>

Regression focus:
- <what can break and where>
- <what can break and where>

Test plan updates:
- Automated: <tests to add/update/run>
- Manual: <critical user flows to verify>

Known gaps / blockers:
- <missing test coverage or environment blocker>

Guardrails

  • Do not invent behavior that is not present in diffs/PR evidence.
  • Do not mix scopes unless explicitly requested.
  • Call out assumptions (for example inferred base branch).
  • Prefer concrete file references over vague statements.
  • If no changes are found for the selected scope, state that explicitly.

Useful commands

# unstaged
git diff

# staged
git diff --cached

# all uncommitted
git diff && git diff --cached && git status --porcelain

# branch-wide
git diff origin/main...HEAD

# PR-wide (if gh is available)
gh pr view --json baseRefName,headRefName,number,title
gh pr diff

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.68%
按下载量换算33

Claude

28.87%
按下载量换算27

Cursor

18.72%
按下载量换算18

Gemini CLI

8.93%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills