[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-232c1388-26ca-4474-876a-46c6dbae5ea8":3,"$fpEGTtjGoR6k7Cj3yKmpx4DCktHG7vquxthJmqqWb7wE":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"232c1388-26ca-4474-876a-46c6dbae5ea8","changelog-generator","从常规提交生成一致、可审计的发布说明。分离提交解析、语义版本升级逻辑和变更日志渲染，以实现具有编辑控制的自动化发布。在发布版本、从git历史生成CHANGELOG.md或自动化CI中的发布说明时使用。","cat_life_career","mod_other","alirezarezvani,other","---\nname: \"changelog-generator\"\ndescription: \"Produce consistent, auditable release notes from Conventional Commits. Separates commit parsing, semantic-bump logic, and changelog rendering for automated releases with editorial control. Use when cutting a release, generating CHANGELOG.md from git history, or automating release notes in CI.\"\n---\n\n# Changelog Generator\n\n**Tier:** POWERFUL  \n**Category:** Engineering  \n**Domain:** Release Management \u002F Documentation\n\n## Overview\n\nUse this skill to produce consistent, auditable release notes from Conventional Commits. It separates commit parsing, semantic bump logic, and changelog rendering so teams can automate releases without losing editorial control.\n\n## Core Capabilities\n\n- Parse commit messages using Conventional Commit rules\n- Detect semantic bump (`major`, `minor`, `patch`) from commit stream\n- Render Keep a Changelog sections (`Added`, `Changed`, `Fixed`, etc.)\n- Generate release entries from git ranges or provided commit input\n- Enforce commit format with a dedicated linter script\n- Support CI integration via machine-readable JSON output\n\n## When to Use\n\n- Before publishing a release tag\n- During CI to generate release notes automatically\n- During PR checks to block invalid commit message formats\n- In monorepos where package changelogs require scoped filtering\n- When converting raw git history into user-facing notes\n\n## Key Workflows\n\n### 1. Generate Changelog Entry From Git\n\n```bash\npython3 scripts\u002Fgenerate_changelog.py \\\n  --from-tag v1.3.0 \\\n  --to-tag v1.4.0 \\\n  --next-version v1.4.0 \\\n  --format markdown\n```\n\n### 2. Generate Entry From stdin\u002FFile Input\n\n```bash\ngit log v1.3.0..v1.4.0 --pretty=format:'%s' | \\\n  python3 scripts\u002Fgenerate_changelog.py --next-version v1.4.0 --format markdown\n\npython3 scripts\u002Fgenerate_changelog.py --input commits.txt --next-version v1.4.0 --format json\n```\n\n### 3. Update `CHANGELOG.md`\n\n```bash\npython3 scripts\u002Fgenerate_changelog.py \\\n  --from-tag v1.3.0 \\\n  --to-tag HEAD \\\n  --next-version v1.4.0 \\\n  --write CHANGELOG.md\n```\n\n### 4. Lint Commits Before Merge\n\n```bash\npython3 scripts\u002Fcommit_linter.py --from-ref origin\u002Fmain --to-ref HEAD --strict --format text\n```\n\nOr file\u002Fstdin:\n\n```bash\npython3 scripts\u002Fcommit_linter.py --input commits.txt --strict\ncat commits.txt | python3 scripts\u002Fcommit_linter.py --format json\n```\n\n## Conventional Commit Rules\n\nSupported types:\n\n- `feat`, `fix`, `perf`, `refactor`, `docs`, `test`, `build`, `ci`, `chore`\n- `security`, `deprecated`, `remove`\n\nBreaking changes:\n\n- `type(scope)!: summary`\n- Footer\u002Fbody includes `BREAKING CHANGE:`\n\nSemVer mapping:\n\n- breaking -> `major`\n- non-breaking `feat` -> `minor`\n- all others -> `patch`\n\n## Script Interfaces\n\n- `python3 scripts\u002Fgenerate_changelog.py --help`\n  - Reads commits from git or stdin\u002F`--input`\n  - Renders markdown or JSON\n  - Optional in-place changelog prepend\n- `python3 scripts\u002Fcommit_linter.py --help`\n  - Validates commit format\n  - Returns non-zero in `--strict` mode on violations\n\n## Common Pitfalls\n\n1. Mixing merge commit messages with release commit parsing\n2. Using vague commit summaries that cannot become release notes\n3. Failing to include migration guidance for breaking changes\n4. Treating docs\u002Fchore changes as user-facing features\n5. Overwriting historical changelog sections instead of prepending\n\n## Best Practices\n\n1. Keep commits small and intent-driven.\n2. Scope commit messages (`feat(api): ...`) in multi-package repos.\n3. Enforce linter checks in PR pipelines.\n4. Review generated markdown before publishing.\n5. Tag releases only after changelog generation succeeds.\n6. Keep an `[Unreleased]` section for manual curation when needed.\n\n## References\n\n- [references\u002Fci-integration.md](references\u002Fci-integration.md)\n- [references\u002Fchangelog-formatting-guide.md](references\u002Fchangelog-formatting-guide.md)\n- [references\u002Fmonorepo-strategy.md](references\u002Fmonorepo-strategy.md)\n- [README.md](README.md)\n\n## Release Governance\n\nUse this release flow for predictability:\n\n1. Lint commit history for target release range.\n2. Generate changelog draft from commits.\n3. Manually adjust wording for customer clarity.\n4. Validate semver bump recommendation.\n5. Tag release only after changelog is approved.\n\n## Output Quality Checks\n\n- Each bullet is user-meaningful, not implementation noise.\n- Breaking changes include migration action.\n- Security fixes are isolated in `Security` section.\n- Sections with no entries are omitted.\n- Duplicate bullets across sections are removed.\n\n## CI Policy\n\n- Run `commit_linter.py --strict` on all PRs.\n- Block merge on invalid conventional commits.\n- Auto-generate draft release notes on tag push.\n- Require human approval before writing into `CHANGELOG.md` on main branch.\n\n## Monorepo Guidance\n\n- Prefer commit scopes aligned to package names.\n- Filter commit stream by scope for package-specific releases.\n- Keep infra-wide changes in root changelog.\n- Store package changelogs near package roots for ownership clarity.\n\n## Failure Handling\n\n- If no valid conventional commits found: fail early, do not generate misleading empty notes.\n- If git range invalid: surface explicit range in error output.\n- If write target missing: create safe changelog header scaffolding.\n","","imported","https:\u002F\u002Fgithub.com\u002Falirezarezvani\u002Fclaude-skills","user_system_seed","SkillOPIC",true,165,1746,"2026-05-16 13:53:14",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"其他","other","mdi-page-next-outline","其他类型Skill",5,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"职场发展","career","mdi-briefcase-outline","面试准备、简历优化、职业规划",4,575,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"09df0648-24cf-4296-8477-40910f969b98","1.0.0","changelog-generator.zip",8922,"uploads\u002Fskills\u002F232c1388-26ca-4474-876a-46c6dbae5ea8\u002Fchangelog-generator.zip","5221fd5d0912bedae5c773056e393fb5d19e0ee130f1b09f1b3075a848d678c1","[{\"path\":\"README.md\",\"isDirectory\":false,\"size\":1163},{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":5237},{\"path\":\"references\u002Fchangelog-formatting-guide.md\",\"isDirectory\":false,\"size\":316},{\"path\":\"references\u002Fci-integration.md\",\"isDirectory\":false,\"size\":509},{\"path\":\"references\u002Fmonorepo-strategy.md\",\"isDirectory\":false,\"size\":1356},{\"path\":\"scripts\u002Fcommit_linter.py\",\"isDirectory\":false,\"size\":4013},{\"path\":\"scripts\u002Fgenerate_changelog.py\",\"isDirectory\":false,\"size\":7911}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]