wiki-changelog
microsoft/skills
分析 Git 提交历史记录,并生成按变更类型分类的结构化变更日志。
...展开全部
0
更新时间 2026-09-11
维基变更日志
根据 Git 历史记录生成结构化的变更日志。
源代码仓库解析(必须首先执行)
在生成任何变更日志之前,您必须确定源仓库的上下文:
- 检查 Git 远程仓库:运行
git remote get-url origin以检测是否存在远程仓库 - 询问用户:“这是一个仅限本地的仓库,还是您有源仓库的 URL(例如 GitHub、Azure DevOps)?”
- 若提供了远程 URL → 将其存储为
REPO_URL,并在提交哈希和文件引用中使用链接引用 - 仅本地仓库 → 使用纯提交哈希和文件引用
- 若提供了远程 URL → 将其存储为
- 在源仓库上下文未确定前,请勿继续
何时激活
- 用户询问“最近有哪些改动”、“生成变更日志”、“汇总提交”
- 用户希望了解最近的开发动态
操作步骤
- 检查 git log(提交、日期、作者、消息)
- 按时间段分组:每日(最近 7 天)、每周(更早)
- 对每个提交进行分类:功能(🆕)、修复(🐛)、重构(🔄)、文档(📝)、配置(🔧)、依赖项(📦)、破坏性变更(⚠️)
- 使用项目术语生成简洁的用户友好型描述
约束条件
- 侧重于面向用户的变更
- 将相关提交合并为连贯的描述
- 使用 README 中的项目术语
- 通过迁移说明醒目地突出显示破坏性变更
- 当
REPO_URL可用时,为提交哈希添加链接:[abc1234](REPO_URL/commit/abc1234),并为更改的文件添加链接:[file_path](REPO_URL/blob/BRANCH/file_path)
在 GitHub 上查看
---
name: wiki-changelog
description: Analyzes git commit history and generates structured changelogs categorized by change type.
license: MIT
---
# Wiki Changelog
Generate structured changelogs from git history.
## Source Repository Resolution (MUST DO FIRST)
Before generating any changelog, you MUST determine the source repository context:
1. **Check for git remote**: Run `git remote get-url origin` to detect if a remote exists
2. **Ask the user**: _"Is this a local-only repository, or do you have a source repository URL (e.g., GitHub, Azure DevOps)?"_
- Remote URL provided → store as `REPO_URL`, use **linked citations** for commit hashes and file references
- Local-only → use plain commit hashes and file references
3. **Do NOT proceed** until source repo context is resolved
## When to Activate
- User asks "what changed recently", "generate a changelog", "summarize commits"
- User wants to understand recent development activity
## Procedure
1. Examine git log (commits, dates, authors, messages)
2. Group by time period: daily (last 7 days), weekly (older)
3. Classify each commit: Features (🆕), Fixes (🐛), Refactoring (🔄), Docs (📝), Config (🔧), Dependencies (📦), Breaking (⚠️)
4. Generate concise user-facing descriptions using project terminology
## Constraints
- Focus on user-facing changes
- Merge related commits into coherent descriptions
- Use project terminology from README
- Highlight breaking changes prominently with migration notes
- When `REPO_URL` is available, link commit hashes: `[abc1234](REPO_URL/commit/abc1234)` and changed files: `[file_path](REPO_URL/blob/BRANCH/file_path)`
所有文件
0 个文件相关技能
golang-dependency-injection
更新时间 2026-06-29
nuxthub
更新时间 2026-08-23
tc-tracker
更新时间 2026-08-27
code-quality
更新时间 2026-08-22





首页
