一键导入
mkdocs-changelog
Analyse doc changes since the last CHANGELOG.md update and draft a major-change entry if the changes qualify.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyse doc changes since the last CHANGELOG.md update and draft a major-change entry if the changes qualify.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | mkdocs-changelog |
| description | Analyse doc changes since the last CHANGELOG.md update and draft a major-change entry if the changes qualify. |
| version | 1.1.0 |
| tags | ["documentation","git","changelog","mkdocs","confluence"] |
| specificity | context-specific |
| tool_agnostic | true |
| authors | ["Anders Hybertz"] |
| tested_on | [] |
Analyse git changes to the docs directory since the last CHANGELOG.md commit. If any changes qualify as MAJOR, draft a dated changelog entry and prepend it to CHANGELOG.md. If not, explain why and exit without modifying any file.
mk2conf publishFind the baseline — run git log --follow -1 --format="%H" -- <docs_dir>/CHANGELOG.md to get the last commit that touched CHANGELOG.md. If no commit is found, use the root commit as the baseline.
Collect doc changes — run git diff <baseline>..HEAD -- <docs_dir>/ to see everything that changed in the docs directory since that baseline.
Read the existing changelog — read <docs_dir>/CHANGELOG.md for context on what was previously recorded.
Decide: is this MAJOR?
MAJOR criteria — any one of these qualifies:
NOT major — do not draft an entry for:
If NOT MAJOR — report what was found, explain in one sentence why it did not qualify, and stop. Do not modify any file.
If MAJOR — draft an entry using this format and prepend it to CHANGELOG.md:
## YYYY-MM-DD — Brief title describing the major change
### Added
- …
### Changed
- …
### Deprecated
- …
### Removed
- …
### Fixed
- …
### Security
- …
Rules for the entry:
YYYY-MM-DD formatAdded (new content), Changed (updated content), Deprecated (content being phased out), Removed (deleted content), Fixed (corrected errors or misleading information), Security (security-related documentation updates)Prepend the entry above any existing entries in CHANGELOG.md. Do not commit — the user reviews, edits if needed, and commits manually.
git add and git commit themselves before publishing.CHANGELOG.md does not exist yet, create it with this header before the first entry:# Changelog
All notable changes to this documentation are recorded here.
The format is inspired by [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
After drafting, show the user the proposed entry in the terminal and remind them to review CHANGELOG.md before committing and running mk2conf publish.