wiki-changelog
microsoft/skills
分析 Git 提交記錄,並根據變更類型生成結構化的變更日誌。
...展開全部維基變更記錄
從 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)
---
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 個檔案安裝 wiki-changelog
請下載並將技能檔案解壓縮至您的 .claude/skills/ 目錄中。
下載 ZIP複製儲存庫並將技能檔案複製到您的專案中。
git clone https://github.com/microsoft/skills/tree/main/.github/plugins/deep-wiki/skills/wiki-changelog # Copy SKILL.md to your .claude/skills/ directory
複製





首頁
