changelog-writer by patricio0312rev/skills
npx skills add https://github.com/patricio0312rev/skills --skill changelog-writer根据版本控制历史生成专业的更新日志和发布说明。
feat(auth): add OAuth2 support
^ ^ ^
| | └─ 描述
| └─ 范围(可选)
└─ 类型
类型到类别的映射:
feat → 新增fix → 修复广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
docs → 文档style, refactor → 变更perf → 性能test → 测试chore, ci → 内部BREAKING CHANGE → 破坏性变更# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- New feature X
- Support for Y
### Changed
- Updated Z behavior
### Fixed
- Resolved issue #123
## [2.1.0] - 2024-01-15
### Added
- OAuth2 authentication support
- User profile management API
- Dark mode toggle
### Changed
- Improved error messages
- Updated dependencies to latest versions
### Deprecated
- Legacy authentication method (will be removed in 3.0.0)
### Fixed
- Memory leak in WebSocket connection
- Incorrect date formatting in reports
- Race condition in concurrent requests
### Security
- Patched XSS vulnerability in user input
## [2.0.0] - 2023-12-01
### Breaking Changes
- ⚠️ Removed support for Node.js 16
- ⚠️ Changed API response format for `/users` endpoint
- ⚠️ Renamed `config.yaml` to `config.yml`
### Added
- Complete API rewrite with improved performance
- WebSocket support for real-time updates
### Migration Guide
See [MIGRATION_v2.md](./docs/MIGRATION_v2.md) for upgrade instructions.
[unreleased]: https://github.com/user/project/compare/v2.1.0...HEAD
[2.1.0]: https://github.com/user/project/compare/v2.0.0...v2.1.0
[2.0.0]: https://github.com/user/project/releases/tag/v2.0.0
# Release v2.1.0 - "Feature Release Name"
Released: January 15, 2024
## 🎉 Highlights
This release brings major improvements to authentication and user experience:
- **OAuth2 Support**: Users can now sign in with Google, GitHub, and Microsoft
- **Dark Mode**: Toggle between light and dark themes
- **Performance**: 40% faster API response times
## ✨ New Features
- OAuth2 authentication with popular providers (#456)
- User profile management API (#478)
- Dark mode toggle in settings (#492)
- Export data in CSV format (#501)
## 🐛 Bug Fixes
- Fixed memory leak in WebSocket connections (#489)
- Resolved incorrect date formatting in reports (#495)
- Fixed race condition in concurrent API requests (#503)
## 🔄 Changes
- Improved error messages across the application
- Updated all dependencies to latest stable versions
- Refined UI animations for smoother experience
## 🔒 Security
- Patched XSS vulnerability in user input validation
- Updated JWT library to address CVE-2024-1234
## 📚 Documentation
- Added OAuth2 setup guide
- Updated API reference with new endpoints
- Improved troubleshooting section
## 🙏 Contributors
Thank you to all contributors who made this release possible:
- @alice - OAuth2 implementation
- @bob - Dark mode feature
- @charlie - Bug fixes and testing
## 📦 Installation
```bash
npm install project-name@2.1.0
# or
yarn add project-name@2.1.0
```
注意: 这是一个次要版本发布。没有破坏性变更。可以从 2.0.x 安全升级。
## 语义化版本规则
给定版本号 MAJOR.MINOR.PATCH(例如,2.1.0):
1. **主版本号** (2.x.x → 3.x.x)
- 破坏性变更
- 不兼容的 API 更改
- 移除的功能
2. **次版本号** (2.1.x → 2.2.x)
- 新功能
- 向后兼容的功能
- 已弃用的功能
3. **修订号** (2.1.0 → 2.1.1)
- 错误修复
- 安全补丁
- 性能改进
**特殊版本:**
- `0.x.x` - 初始开发(允许在次版本中进行破坏性变更)
- `x.y.0-alpha.1` - 预发布版本
- `x.y.0-beta.2` - Beta 版本
- `x.y.0-rc.1` - 候选发布版本
## 用于生成更新日志的 Git 命令
```bash
# 获取自上次标签以来的提交
git log $(git describe --tags --abbrev=0)..HEAD --oneline
# 获取两个标签之间的提交
git log v2.0.0..v2.1.0 --oneline
# 获取带有 PR 编号的提交
git log --merges --pretty=format:"%s" v2.0.0..HEAD
# 获取贡献者
git log v2.0.0..HEAD --format='%aN' | sort -u
# 按类型获取提交计数
git log v2.0.0..HEAD --oneline | grep -E '^[a-f0-9]+ (feat|fix|docs)' | cut -d' ' -f2 | sort | uniq -c
寻找以下指标:
BREAKING CHANGE:!(例如,feat!:)清晰记录:
### Breaking Changes
⚠️ **API 响应格式已更改**
`/api/users` 端点现在返回:
```json
// 之前
{ "data": [...] }
// 之后
{ "users": [...], "total": 100 }
```
迁移: 更新您的 API 客户端以访问 users 而不是 data。
## 自动化工具
### 使用 conventional-changelog
```bash
npm install -g conventional-changelog-cli
# 生成更新日志
conventional-changelog -p angular -i CHANGELOG.md -s
# 为特定版本生成
conventional-changelog -p angular -i CHANGELOG.md -s -r 0
# 安装 git-cliff
cargo install git-cliff
# 生成更新日志
git-cliff --tag v2.1.0 > CHANGELOG.md
# 生成发布说明
git-cliff --tag v2.1.0 --unreleased
#!/bin/bash
# scripts/release.sh
VERSION=$1
PREVIOUS_TAG=$(git describe --tags --abbrev=0)
# 生成发布说明
gh release create "$VERSION" \
--title "Release $VERSION" \
--notes "$(git log $PREVIOUS_TAG..HEAD --pretty=format:'- %s')"
关注:API 变更、破坏性变更、新方法
关注:新功能、错误修复、UI 改进
关注:新命令、标志变更、行为变更
关注:端点变更、性能、安全性
### Added
- OAuth2 authentication support (#456) - @alice
- Export data in CSV format with custom column selection (#501)
### Fixed
- Resolved memory leak in WebSocket connections affecting long-running sessions (#489)
- Fixed race condition in concurrent API requests that caused data inconsistency (#503)
### Added
- Added stuff
- New feature
### Fixed
- Fixed bug
- Updates
If breaking changes detected:
MAJOR++, MINOR=0, PATCH=0
Else if new features:
MINOR++, PATCH=0
Else if only fixes:
PATCH++
发布前:
每次生成更新日志应提供:
每周安装次数
278
代码仓库
GitHub 星标数
20
首次出现
2026年1月24日
安全审计
安装于
codex272
gemini-cli270
opencode270
github-copilot269
cursor264
amp264
Generate professional changelogs and release notes from version control history.
feat(auth): add OAuth2 support
^ ^ ^
| | └─ Description
| └─ Scope (optional)
└─ Type
Types to Categories:
feat → Addedfix → Fixeddocs → Documentationstyle, refactor → Changedperf → Performancetest → Testingchore, ci → InternalBREAKING CHANGE → Breaking Changes# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- New feature X
- Support for Y
### Changed
- Updated Z behavior
### Fixed
- Resolved issue #123
## [2.1.0] - 2024-01-15
### Added
- OAuth2 authentication support
- User profile management API
- Dark mode toggle
### Changed
- Improved error messages
- Updated dependencies to latest versions
### Deprecated
- Legacy authentication method (will be removed in 3.0.0)
### Fixed
- Memory leak in WebSocket connection
- Incorrect date formatting in reports
- Race condition in concurrent requests
### Security
- Patched XSS vulnerability in user input
## [2.0.0] - 2023-12-01
### Breaking Changes
- ⚠️ Removed support for Node.js 16
- ⚠️ Changed API response format for `/users` endpoint
- ⚠️ Renamed `config.yaml` to `config.yml`
### Added
- Complete API rewrite with improved performance
- WebSocket support for real-time updates
### Migration Guide
See [MIGRATION_v2.md](./docs/MIGRATION_v2.md) for upgrade instructions.
[unreleased]: https://github.com/user/project/compare/v2.1.0...HEAD
[2.1.0]: https://github.com/user/project/compare/v2.0.0...v2.1.0
[2.0.0]: https://github.com/user/project/releases/tag/v2.0.0
# Release v2.1.0 - "Feature Release Name"
Released: January 15, 2024
## 🎉 Highlights
This release brings major improvements to authentication and user experience:
- **OAuth2 Support**: Users can now sign in with Google, GitHub, and Microsoft
- **Dark Mode**: Toggle between light and dark themes
- **Performance**: 40% faster API response times
## ✨ New Features
- OAuth2 authentication with popular providers (#456)
- User profile management API (#478)
- Dark mode toggle in settings (#492)
- Export data in CSV format (#501)
## 🐛 Bug Fixes
- Fixed memory leak in WebSocket connections (#489)
- Resolved incorrect date formatting in reports (#495)
- Fixed race condition in concurrent API requests (#503)
## 🔄 Changes
- Improved error messages across the application
- Updated all dependencies to latest stable versions
- Refined UI animations for smoother experience
## 🔒 Security
- Patched XSS vulnerability in user input validation
- Updated JWT library to address CVE-2024-1234
## 📚 Documentation
- Added OAuth2 setup guide
- Updated API reference with new endpoints
- Improved troubleshooting section
## 🙏 Contributors
Thank you to all contributors who made this release possible:
- @alice - OAuth2 implementation
- @bob - Dark mode feature
- @charlie - Bug fixes and testing
## 📦 Installation
```bash
npm install project-name@2.1.0
# or
yarn add project-name@2.1.0
```
Note: This is a minor release. No breaking changes. Safe to upgrade from 2.0.x.
## Semantic Versioning Rules
Given a version number MAJOR.MINOR.PATCH (e.g., 2.1.0):
1. **MAJOR** (2.x.x → 3.x.x)
- Breaking changes
- Incompatible API changes
- Removed features
2. **MINOR** (2.1.x → 2.2.x)
- New features
- Backward-compatible functionality
- Deprecated features
3. **PATCH** (2.1.0 → 2.1.1)
- Bug fixes
- Security patches
- Performance improvements
**Special versions:**
- `0.x.x` - Initial development (breaking changes allowed in minor)
- `x.y.0-alpha.1` - Pre-release
- `x.y.0-beta.2` - Beta release
- `x.y.0-rc.1` - Release candidate
## Git Commands for Changelog Generation
```bash
# Get commits since last tag
git log $(git describe --tags --abbrev=0)..HEAD --oneline
# Get commits between two tags
git log v2.0.0..v2.1.0 --oneline
# Get commits with PR numbers
git log --merges --pretty=format:"%s" v2.0.0..HEAD
# Get contributors
git log v2.0.0..HEAD --format='%aN' | sort -u
# Get commit count by type
git log v2.0.0..HEAD --oneline | grep -E '^[a-f0-9]+ (feat|fix|docs)' | cut -d' ' -f2 | sort | uniq -c
Look for these indicators:
BREAKING CHANGE:! (e.g., feat!:)Document clearly:
### Breaking Changes
⚠️ **API Response Format Changed**
The `/api/users` endpoint now returns:
```json
// Before
{ "data": [...] }
// After
{ "users": [...], "total": 100 }
```
Migration: Update your API client to access users instead of data.
## Automation Tools
### Using conventional-changelog
```bash
npm install -g conventional-changelog-cli
# Generate changelog
conventional-changelog -p angular -i CHANGELOG.md -s
# Generate for specific version
conventional-changelog -p angular -i CHANGELOG.md -s -r 0
# Install git-cliff
cargo install git-cliff
# Generate changelog
git-cliff --tag v2.1.0 > CHANGELOG.md
# Generate release notes
git-cliff --tag v2.1.0 --unreleased
#!/bin/bash
# scripts/release.sh
VERSION=$1
PREVIOUS_TAG=$(git describe --tags --abbrev=0)
# Generate release notes
gh release create "$VERSION" \
--title "Release $VERSION" \
--notes "$(git log $PREVIOUS_TAG..HEAD --pretty=format:'- %s')"
Focus on: API changes, breaking changes, new methods
Focus on: New features, bug fixes, UI improvements
Focus on: New commands, flag changes, behavior changes
Focus on: Endpoint changes, performance, security
### Added
- OAuth2 authentication support (#456) - @alice
- Export data in CSV format with custom column selection (#501)
### Fixed
- Resolved memory leak in WebSocket connections affecting long-running sessions (#489)
- Fixed race condition in concurrent API requests that caused data inconsistency (#503)
### Added
- Added stuff
- New feature
### Fixed
- Fixed bug
- Updates
If breaking changes detected:
MAJOR++, MINOR=0, PATCH=0
Else if new features:
MINOR++, PATCH=0
Else if only fixes:
PATCH++
Before publishing release:
Every changelog generation should provide:
Weekly Installs
278
Repository
GitHub Stars
20
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex272
gemini-cli270
opencode270
github-copilot269
cursor264
amp264
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
140,500 周安装