--- name: changelog-update description: "Update CHANGELOG.md with a new entry under the correct section. Parses existing structure, adds entries under [Unreleased], and assesses semver impact. Triggers on: after resource changes, bug fixes, documentation updates, or any notable project change." --- # Changelog Update ## Procedure ### 1. Read current CHANGELOG ```bash head -80 CHANGELOG.md ``` Identify the `## [Unreleased]` section and its subsections (`### Added`, `### Changed`, `### Fixed`, `### Removed`, `### Deprecated`). ### 2. Determine section | Change type | Section | Semver impact | |-------------|---------|---------------| | New resource type added | `### Added` | Minor | | New feature or capability | `### Added` | Minor | | Updated resource constraints (slug, regex, length) | `### Changed` | Patch | | Bug fix | `### Fixed` | Patch | | Removed resource or feature | `### Removed` | Major | | Deprecated resource or feature | `### Deprecated` | Minor | ### 3. Format entry Use these templates based on change type: **New resource:** ```markdown - **RESOURCE**: Added `` () -- slug: ``, length: -, scope: , dashes , - Impact: -- ``` **Updated resource:** ```markdown - **RESOURCE**: Updated `` -- - Impact: -- ``` **Bug fix:** ```markdown - ****: - - Impact: -- ``` **Multiple resources (batch):** ```markdown - **RESOURCE**: Added support for resource types - Added `` with slug `` - Added `` with slug `` - - Impact: -- ``` ### 4. Insert entry Insert the new entry under the appropriate subsection within `## [Unreleased]`. - If the subsection (e.g., `### Added`) does not exist, create it under `## [Unreleased]`. - Maintain the conventional order: Added, Changed, Deprecated, Removed, Fixed. - Add a blank line between entries for readability. ### 5. Assess overall impact After inserting, summarize the semver impact: - **Patch** (x.y.Z): Only fixes or constraint updates, no new features - **Minor** (x.Y.0): New resources or features added, no breaking changes - **Major** (X.0.0): Removed resources, changed slugs, or other breaking changes