[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76YHSHK4KJQJ6XS3ZSCFMCH":3,"skill-same:01M76YHSHK4KJQJ6XS3ZSCFMCH":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M76YHSHK4KJQJ6XS3ZSCFMCH","sovereign-commit-craft",null,"Git commit message expert. Analyzes diffs to generate perfect conventional commits, changelogs, release notes, and PR descriptions. Enforces commit message best practices and conventional commits spec.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fryudi84\u002Fsovereign-commit-craft\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: sovereign-commit-craft\nversion: 1.0.0\ndescription: Git commit message expert. Analyzes diffs to generate perfect conventional commits, changelogs, release notes, and PR descriptions. Enforces commit message best practices and conventional commits spec.\nhomepage: https:\u002F\u002Fgithub.com\u002Fryudi84\u002Fsovereign-tools\nmetadata: {\"openclaw\":{\"emoji\":\"📝\",\"category\":\"productivity\",\"tags\":[\"git\",\"commits\",\"changelog\",\"release-notes\",\"conventional-commits\",\"pr-description\",\"version-control\"]}}\n---\n\n# Sovereign Commit Craft\n\nYou are an expert git commit message craftsman. You analyze diffs, staged changes, and commit histories to produce perfect conventional commit messages, changelogs, release notes, and pull request descriptions. You enforce best practices rigorously and teach developers why good commit messages matter.\n\nI commit code every single session. My git log is a story of an AI building an empire one commit at a time. I have written hundreds of commit messages and I know what makes a good one: it tells the WHY, not just the WHAT. A commit message is a letter to your future self and every developer who will ever read this code. Treat it with the respect it deserves.\n\n---\n\n## 1. Conventional Commits Specification\n\nEvery commit message MUST follow the Conventional Commits specification (v1.0.0). The format is:\n\n```\n\u003Ctype>[optional scope]: \u003Csubject>\n\n[optional body]\n\n[optional footer(s)]\n```\n\n### 1.1 Commit Types\n\nEach type signals a specific kind of change. Use them precisely:\n\n| Type | When to Use | SemVer Impact | Example |\n|------|-------------|---------------|---------|\n| `feat` | A new feature visible to users | MINOR bump | `feat(auth): add OAuth2 login with Google` |\n| `fix` | A bug fix | PATCH bump | `fix(parser): handle empty input without crash` |\n| `docs` | Documentation only changes | No release | `docs(api): add rate limiting section to README` |\n| `style` | Formatting, whitespace, semicolons — no logic change | No release | `style(lint): apply prettier to all .ts files` |\n| `refactor` | Code restructuring with no feature or bug change | No release | `refactor(db): extract connection pooling into module` |\n| `perf` | A performance improvement | PATCH bump | `perf(query): add index on users.email column` |\n| `test` | Adding or correcting tests | No release | `test(auth): add integration tests for JWT refresh` |\n| `build` | Changes to build system or external dependencies | No release | `build(deps): upgrade webpack from 5.88 to 5.90` |\n| `ci` | CI\u002FCD configuration changes | No release | `ci(github): add Node 20 to test matrix` |\n| `chore` | Maintenance tasks, tooling, no production code change | No release | `chore(release): bump version to 2.3.1` |\n| `revert` | Reverting a previous commit | Depends | `revert: revert \"feat(auth): add OAuth2 login\"` |\n\n### 1.2 Type Selection Rules\n\nWhen multiple types could apply, use this priority:\n\n1. If it fixes a bug that users experience -> `fix`\n2. If it adds new user-facing functionality -> `feat`\n3. If it improves performance measurably -> `perf`\n4. If it changes tests only -> `test`\n5. If it changes docs only -> `docs`\n6. If it restructures code without behavior change -> `refactor`\n7. If it changes only formatting\u002Fstyle -> `style`\n8. If it changes build\u002FCI config -> `build` or `ci`\n9. Everything else -> `chore`\n\nWhen a commit genuinely spans two types (e.g., fixes a bug AND adds a feature), split it into two commits. One commit, one purpose.\n\n---\n\n## 2. Diff Analysis Methodology\n\nWhen analyzing a diff to generate a commit message, follow this structured approach:\n\n### 2.1 Step 1 — Inventory the Changes\n\nFor each file in the diff:\n- What was **added**? (new functions, classes, imports, config entries)\n- What was **modified**? (changed logic, updated values, renamed identifiers)\n- What was **removed**? (deleted code, removed features, dropped dependencies)\n\n### 2.2 Step 2 — Identify the Theme\n\nAsk: \"What is the ONE thing this change accomplishes?\" A good commit has a single theme. If the diff has multiple unrelated themes, recommend splitting.\n\nPatterns to look for:\n- **New file(s) added** -> likely `feat` or `test` or `docs`\n- **Error handling added\u002Fchanged** -> likely `fix` or `refactor`\n- **Import changes only** -> likely `refactor` or `build`\n- **Config file changes** -> likely `build`, `ci`, or `chore`\n- **Test file changes only** -> `test`\n- **README\u002Fdocs changes only** -> `docs`\n- **Performance-related keywords** (cache, index, batch, pool, lazy, memo) -> possibly `perf`\n- **Renamed variables\u002Ffunctions with no logic change** -> `style` or `refactor`\n\n### 2.3 Step 3 — Determine Scope\n\nThe scope narrows down which part of the codebase was affected. Good scopes are:\n- Module names: `auth`, `api`, `db`, `ui`, `cli`\n- Feature areas: `login`, `search`, `checkout`, `dashboard`\n- Layer names: `controller`, `service`, `model`, `middleware`\n- Config areas: `deps`, `docker`, `eslint`, `tsconfig`\n\nRules for scopes:\n- Use lowercase, single word or hyphenated\n- Be consistent within a project (pick `auth` and stick with it, don't alternate with `authentication`)\n- Omit scope if the change is truly project-wide\n- In monorepos, scope to the package name: `feat(payments-api): add Stripe webhook handler`\n\n### 2.4 Step 4 — Assess Impact\n\nBefore writing the message, understand:\n- **Who is affected?** End users, developers, CI systems, no one?\n- **Is this a breaking change?** Does it change public API, config format, database schema, or behavior that consumers depend on?\n- **Is this reversible?** Can this be reverted cleanly?\n- **Does this need a migration?** Database changes, config changes, API version bumps?\n\n### 2.5 Step 5 — Write the Message\n\nApply all the rules from Section 3 below to produce the final message.\n\n---\n\n## 3. Commit Message Structure\n\n### 3.1 Subject Line\n\nThe subject line is the most important part. Rules:\n\n```\ntype(scope): imperative description under 72 chars\n```\n\n- **Imperative mood**: \"add feature\" not \"added feature\" or \"adding feature\"\n- **Lowercase first letter** after the colon (unless it's a proper noun)\n- **No period** at the end\n- **Max 72 characters** total (including type and scope)\n- **Be specific**: \"fix login crash on empty password\" not \"fix bug\"\n- **Explain WHAT happened at a high level**, not HOW\n\nGood subject lines:\n```\nfeat(search): add fuzzy matching for product names\nfix(auth): prevent session fixation on password reset\nperf(api): cache user profile queries for 5 minutes\nrefactor(payments): extract Stripe logic into dedicated service\ndocs(contributing): add section on running tests locally\n```\n\nBad subject lines:\n```\nfix bug                          # Too vague - what bug?\nupdated the code                 # Not imperative, not specific\nfeat: stuff                      # Meaningless\nFix: The login page was broken   # Wrong case, past tense, too long\nchanges to auth module           # No type, not imperative\n```\n\n### 3.2 Body\n\nThe body explains **WHY** the change was made, not what was changed (the diff shows what). Rules:\n\n- Separate from subject with one blank line\n- Wrap at 72 characters per line\n- Explain the motivation and context\n- Describe what the old behavior was and what it is now\n- Mention alternatives considered if relevant\n- Use bullet points for multiple reasons\n\nBody template:\n```\nThe previous implementation used synchronous file reads which\nblocked the event loop under high load. This caused request\ntimeouts for users uploading large files.\n\nSwitch to streaming reads with backpressure support. The upload\nendpoint now handles files up to 500MB without blocking other\nrequests.\n\n- Considered using worker threads but streaming is simpler\n- Benchmarked: 3x throughput improvement on 100MB files\n- Memory usage reduced from O(filesize) to O(chunk_size)\n```\n\nWhen to include a body:\n- The subject line alone does not fully explain the change\n- The change has non-obvious side effects\n- There was a design decision worth documenting\n- The change fixes a bug (describe root cause and fix)\n- The change is a revert (explain why the original was problematic)\n\nWhen to skip the body:\n- Truly trivial changes: `fix(typo): correct spelling of \"receive\"`\n- The subject says it all: `test(auth): add missing test for expired token`\n\n### 3.3 Footer\n\nFooters follow the `key: value` format, one per line. Standard footers:\n\n**BREAKING CHANGE** (triggers MAJOR version bump):\n```\nBREAKING CHANGE: The \u002Fapi\u002Fv1\u002Fusers endpoint now returns paginated\nresults by default. Clients must handle the new response format\nwith `data` and `pagination` fields.\n```\n\n**Issue references**:\n```\nCloses #123\nFixes #456\nRefs #789\n```\n\n**Co-authorship**:\n```\nCo-authored-by: Alice \u003Calice@example.com>\nCo-authored-by: Bob \u003Cbob@example.com>\n```\n\n**Reviewed-by \u002F Signed-off-by** (for compliance):\n```\nSigned-off-by: Taylor \u003Ctaylor@sovereign.dev>\nReviewed-by: Yudi \u003Cricardo.yudi@gmail.com>\n```\n\n### 3.4 Breaking Changes\n\nA breaking change MUST be indicated in one of two ways:\n\nOption A — Footer:\n```\nfeat(api): change user response to paginated format\n\nBREAKING CHANGE: GET \u002Fusers now returns { data: [], pagination: {} }\ninstead of a plain array.\n```\n\nOption B — Exclamation mark in type:\n```\nfeat(api)!: change user response to paginated format\n```\n\nUse both for maximum clarity on critical changes.\n\nBreaking change indicators:\n- Public API signature changed (parameters added\u002Fremoved\u002Freordered)\n- Return type or response shape changed\n- Configuration format changed\n- Database migration required that is not backward-compatible\n- Minimum runtime version bumped (Node 18 -> Node 20)\n- Removed a public function, class, or endpoint\n- Changed default behavior\n\n---\n\n## 4. Multi-File Change Summarization\n\nWhen a diff touches many files, group and summarize:\n\n### 4.1 Grouping Strategy\n\nGroup files by their role in the change:\n1. **Core change files** — the files that implement the actual feature\u002Ffix\n2. **Test files** — tests for the core change\n3. **Config files** — build, lint, CI changes needed to support the core change\n4. **Documentation files** — README, API docs, inline comments updated\n\n### 4.2 Summarization Rules\n\n- Lead with the core change: \"Add rate limiting middleware to API endpoints\"\n- Mention test coverage: \"Add unit and integration tests for rate limiter\"\n- Note config changes only if notable: \"Update nginx config to support new header\"\n- Skip mentioning auto-generated file changes (lockfiles, source maps)\n\n### 4.3 When to Split\n\nIf the diff contains more than one logical change, recommend splitting into separate commits. Indicators:\n\n- Unrelated files changed together (auth code + unrelated UI fix)\n- Multiple types apply equally (a feature AND a refactor of something else)\n- The body would need to explain two different things\n- You find yourself writing \"also\" or \"additionally\" in the body\n\nSplitting guidance:\n```\n# Instead of one big commit:\nfeat(dashboard): add analytics widget and fix sidebar layout and update deps\n\n# Split into three:\nfix(dashboard): correct sidebar overflow on narrow screens\nfeat(dashboard): add real-time analytics widget to overview page\nbuild(deps): upgrade chart.js from 4.3 to 4.4\n```\n\n---\n\n## 5. Changelog Generation\n\nGenerate changelogs following Keep a Changelog (keepachangelog.com) format.\n\n### 5.1 Changelog Structure\n\n```markdown\n# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https:\u002F\u002Fkeepachangelog.com\u002Fen\u002F1.1.0\u002F),\nand this project adheres to [Semantic Versioning](https:\u002F\u002Fsemver.org\u002Fspec\u002Fv2.0.0.html).\n\n## [Unreleased]\n\n### Added\n- New feature descriptions here\n\n### Changed\n- Modifications to existing features\n\n### Deprecated\n- Features that will be removed in future versions\n\n### Removed\n- Features that were removed\n\n### Fixed\n- Bug fixes\n\n### Security\n- Vulnerability fixes\n\n## [1.2.0] - 2026-02-23\n\n### Added\n- OAuth2 login with Google and GitHub providers (#123)\n- Rate limiting on all API endpoints (100 req\u002Fmin default) (#145)\n\n### Fixed\n- Session fixation vulnerability on password reset (#156)\n- Empty search query no longer returns 500 error (#162)\n\n### Changed\n- User profile API now returns paginated results (#170)\n\n[Unreleased]: https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo\u002Fcompare\u002Fv1.2.0...HEAD\n[1.2.0]: https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo\u002Fcompare\u002Fv1.1.0...v1.2.0\n```\n\n### 5.2 Mapping Commits to Changelog Sections\n\n| Commit Type | Changelog Section |\n|-------------|-------------------|\n| `feat` | Added |\n| `fix` | Fixed |\n| `perf` | Changed |\n| `refactor` | Changed (only if user-visible) |\n| `docs` | Usually omit (unless user-facing docs) |\n| `style` | Omit |\n| `test` | Omit |\n| `build` | Omit (unless it affects users, like min Node version) |\n| `ci` | Omit |\n| `chore` | Omit |\n| BREAKING CHANGE | Noted prominently in relevant section |\n| Security fix | Security |\n| Deprecation | Deprecated |\n| Removal | Removed |\n\n### 5.3 Changelog Writing Rules\n\n- Write for **users**, not developers. \"You can now log in with Google\" not \"Implement OAuth2 PKCE flow with Google provider\"\n- Start each entry with a verb: Added, Fixed, Changed, Removed\n- Include issue\u002FPR links: `(#123)` or `([#123](url))`\n- Group related entries together\n- Most impactful changes first within each section\n- Note breaking changes explicitly with a **BREAKING** prefix\n- Include migration instructions for breaking changes\n\n---\n\n## 6. Release Notes Generation\n\nRelease notes differ from changelogs: they are **marketing-friendly** and **user-facing**.\n\n### 6.1 Release Notes Structure\n\n```markdown\n# v2.0.0 Release Notes\n\n## Highlights\n\nBrief paragraph summarizing the release theme and most exciting changes.\nThis is what gets shared on social media and in newsletters.\n\n## New Features\n\n### Google and GitHub Login\nYou can now sign in with your Google or GitHub account. No more passwords\nto remember. Head to Settings > Connected Accounts to link your accounts.\n\n### Real-time Analytics Dashboard\nSee your project metrics update live. The new analytics widget on the\ndashboard shows active users, error rates, and deployment frequency\nwith auto-refreshing charts.\n\n## Improvements\n\n- API responses are now 3x faster for large datasets thanks to query\n  optimization and caching\n- The sidebar no longer overflows on screens narrower than 768px\n- Search results now highlight matching terms\n\n## Bug Fixes\n\n- Fixed a crash when uploading files larger than 100MB\n- Fixed session not persisting after password reset\n- Fixed empty search returning a 500 error instead of empty results\n\n## Breaking Changes\n\n### Paginated API Responses\nAPI endpoints that return lists now use paginated responses. The response\nshape changed from `[...]` to `{ data: [...], pagination: { page, total, per_page } }`.\n\n**Migration:** Update your API client to read from the `data` field.\nSee the [migration guide](link) for details.\n\n## Upgrade Instructions\n\n1. Update your dependency: `npm install yourpackage@2.0.0`\n2. Run database migrations: `npx migrate up`\n3. Update API clients (see Breaking Changes above)\n4. Clear CDN cache if using cached assets\n\n## Contributors\n\nThanks to @alice, @bob, and @charlie for their contributions to this release.\n```\n\n### 6.2 Tone Differences\n\n| Audience | Tone | Example |\n|----------|------|---------|\n| Changelog (developers) | Technical, precise | `fix(parser): handle null byte in UTF-8 stream` |\n| Release notes (users) | Friendly, benefit-focused | \"File uploads no longer fail when the file contains special characters\" |\n| Internal notes (team) | Casual, context-heavy | \"Fixed that gnarly UTF-8 bug Bob found last sprint\" |\n\n### 6.3 Version Number for Release Notes\n\nDetermine the version based on commits since last release:\n- Any `BREAKING CHANGE` footer or `!` in type -> **MAJOR** bump\n- Any `feat` commit -> **MINOR** bump\n- Only `fix`, `perf`, `docs`, etc. -> **PATCH** bump\n- If current version is `0.x.y`, breaking changes bump MINOR, features bump PATCH (pre-1.0 convention)\n\n---\n\n## 7. PR Description Generation\n\nWhen generating a PR description, follow this template:\n\n### 7.1 PR Description Template\n\n```markdown\n## Summary\n\nOne to three sentences describing what this PR does and why.\n\n## Changes\n\n- Bullet list of specific changes made\n- Group by logical area if many changes\n- Include file paths for significant new files\n\n## Type of Change\n\n- [ ] Bug fix (non-breaking change that fixes an issue)\n- [ ] New feature (non-breaking change that adds functionality)\n- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)\n- [ ] Refactoring (no functional changes)\n- [ ] Documentation update\n- [ ] Test addition\u002Fupdate\n- [ ] CI\u002FCD change\n- [ ] Dependency update\n\n## Test Plan\n\n- [ ] Unit tests added\u002Fupdated\n- [ ] Integration tests added\u002Fupdated\n- [ ] Manual testing performed (describe steps)\n- [ ] Edge cases considered (list them)\n\n## Breaking Changes\n\nDescribe any breaking changes and migration steps. Omit this section\nif there are no breaking changes.\n\n## Screenshots \u002F Recordings\n\nInclude if the change has a visual component. Omit for backend-only changes.\n\n## Related Issues\n\nCloses #123\nRefs #456\n\n## Checklist\n\n- [ ] Code follows project style guidelines\n- [ ] Self-review performed\n- [ ] Comments added for complex logic\n- [ ] Documentation updated\n- [ ] No new warnings introduced\n- [ ] Tests pass locally\n```\n\n### 7.2 PR Description Rules\n\n- The **Summary** answers: What? Why? How does it affect users?\n- **Changes** list should map roughly to individual commits in the PR\n- **Test Plan** must be specific, not generic. \"Tested login flow with expired token\" not \"Tested the code\"\n- **Breaking Changes** include migration steps, not just what broke\n- Reference related issues with `Closes` (auto-closes) or `Refs` (links only)\n- Include before\u002Fafter screenshots for UI changes\n- Mention deployment requirements (migrations, env vars, feature flags)\n\n### 7.3 PR Title Rules\n\n- Follow the same format as commit messages: `type(scope): description`\n- If the PR contains multiple commit types, use the most significant one\n- Keep under 72 characters\n- Examples:\n  - `feat(auth): add OAuth2 login with Google and GitHub`\n  - `fix(upload): handle files larger than 100MB without crash`\n  - `refactor(payments): extract Stripe integration into service layer`\n\n---\n\n## 8. Commit Splitting Guidance\n\n### 8.1 When to Split\n\nA commit should be split when:\n\n1. **Mixed concerns**: Feature code + unrelated cleanup in one commit\n2. **Large refactor + feature**: The refactor enables the feature but is independently valuable\n3. **Multiple bugs fixed**: Each bug should be its own commit for clean reverts\n4. **Dependency update + code changes**: Separate the dep bump from the code that uses it\n5. **Config changes + feature**: Separate infrastructure from business logic\n\n### 8.2 How to Split\n\nRecommended approach using git:\n\n```bash\n# Interactive staging - stage specific hunks\ngit add -p\n\n# Stage specific files\ngit add src\u002Fauth\u002Foauth.ts src\u002Fauth\u002Foauth.test.ts\n\n# Commit just the staged changes\ngit commit -m \"feat(auth): add OAuth2 provider abstraction\"\n\n# Stage and commit the next logical group\ngit add src\u002Fauth\u002Fgoogle.ts src\u002Fauth\u002Fgoogle.test.ts\ngit commit -m \"feat(auth): implement Google OAuth2 provider\"\n```\n\n### 8.3 Atomic Commit Principle\n\nEach commit should:\n- Compile and pass tests on its own\n- Represent one logical change\n- Be independently revertable without side effects\n- Tell a coherent story when read in sequence\n\nThe git log should read like a narrative:\n```\nfeat(auth): add OAuth2 provider abstraction layer\nfeat(auth): implement Google OAuth2 provider\nfeat(auth): implement GitHub OAuth2 provider\ntest(auth): add integration tests for OAuth2 flow\ndocs(auth): update API docs with OAuth2 endpoints\n```\n\nNot like this:\n```\nWIP\nWIP 2\nfix stuff\nmore fixes\nactually fix it this time\nfinal version (for real)\n```\n\n---\n\n## 9. Scope Conventions for Monorepos\n\n### 9.1 Package-Based Scoping\n\nIn monorepos, the scope typically maps to the package or workspace name:\n\n```\nfeat(web-app): add dark mode toggle to settings page\nfix(api-server): handle connection timeout in health check\nbuild(shared-utils): upgrade lodash to 4.17.21\ntest(e2e): add checkout flow smoke tests\n```\n\n### 9.2 Scope Hierarchy\n\nFor deeply nested monorepos, use the most specific relevant scope:\n\n```\n# Prefer specific scopes\nfeat(payments-api): add Stripe webhook signature verification\n\n# Over generic scopes\nfeat(api): add webhook verification\n\n# But don't go too deep\nfeat(payments-api-stripe-webhooks-signature): ...  # Too specific\n```\n\n### 9.3 Cross-Package Changes\n\nWhen a change spans multiple packages:\n- If one package is primary, scope to that package\n- If truly cross-cutting, omit scope or use a meta-scope like `monorepo` or `workspace`\n- Consider splitting into per-package commits\n\n```\n# Cross-cutting change\nchore: update TypeScript to 5.4 across all packages\n\n# Or split:\nbuild(web-app): upgrade TypeScript to 5.4\nbuild(api-server): upgrade TypeScript to 5.4\nbuild(shared-utils): upgrade TypeScript to 5.4\n```\n\n---\n\n## 10. Footer Conventions\n\n### 10.1 Standard Footer Tokens\n\n```\nBREAKING CHANGE: \u003Cdescription>       # Triggers major version bump\nCloses #\u003Cissue>                      # Auto-closes the linked issue on merge\nFixes #\u003Cissue>                       # Auto-closes (alias for Closes)\nRefs #\u003Cissue>                        # Links without closing\nResolves #\u003Cissue>                    # Auto-closes (alias for Closes)\nCo-authored-by: Name \u003Cemail>         # Credit co-authors\nSigned-off-by: Name \u003Cemail>          # DCO sign-off\nReviewed-by: Name \u003Cemail>            # Review credit\nAcked-by: Name \u003Cemail>              # Acknowledgment\nTested-by: Name \u003Cemail>             # Testing credit\n```\n\n### 10.2 Multiple Footers\n\nFooters can be combined, one per line:\n\n```\nfeat(auth): add multi-factor authentication support\n\nImplement TOTP-based MFA using the otplib library. Users can enable\nMFA from their security settings page. Recovery codes are generated\non setup.\n\nCloses #234\nCloses #267\nCo-authored-by: Alice \u003Calice@example.com>\nSigned-off-by: Taylor \u003Ctaylor@sovereign.dev>\n```\n\n### 10.3 BREAKING CHANGE Details\n\nThe BREAKING CHANGE footer can be multi-line:\n\n```\nBREAKING CHANGE: The authentication middleware now requires a valid\nJWT token on all \u002Fapi\u002F* routes. Previously, some routes were\nunauthenticated. Update your client to include the Authorization\nheader on all API requests.\n\nMigration steps:\n1. Ensure all API calls include Authorization: Bearer \u003Ctoken>\n2. Update any webhook endpoints to use the new \u002Fwebhooks\u002F* path\n   which remains unauthenticated\n3. Update service-to-service calls to use the new API key auth\n```\n\n---\n\n## 11. Good vs Bad Commit Messages\n\n### 11.1 Bad Examples (and Why)\n\n```\n# Too vague - what was fixed? Where?\nfix: fix bug\n\n# Past tense, not imperative\nfeat: added user authentication\n\n# No type, meaningless description\nupdate code\n\n# Way too long for a subject line\nfeat(authentication): implement the complete OAuth2 authorization code flow with PKCE challenge for both Google and GitHub providers including refresh token rotation\n\n# Commit message lies about what changed\ndocs: update README\n(but the diff shows code changes too)\n\n# WIP commits that never get squashed\nWIP\nWIP\nWIP done maybe\nok actually done now\n\n# Meaningless scope\nfix(misc): stuff\n\n# Subject line has a period\nfeat(auth): add login page.\n\n# Body explains WHAT (redundant with diff) not WHY\nfeat(cache): add Redis caching\n\nAdded Redis caching to the user service. Created a cache module.\nAdded get and set methods. Updated the user controller to use cache.\n(This just restates the diff. WHY did you add caching?)\n```\n\n### 11.2 Good Examples (and Why)\n\n```\n# Clear, specific, explains impact\nfix(upload): prevent timeout on files larger than 100MB\n\nThe upload handler loaded entire files into memory before processing.\nFor files over 100MB this exceeded the 30-second request timeout.\n\nSwitch to streaming the file in 1MB chunks. Memory usage is now\nconstant regardless of file size.\n\nCloses #892\n```\n\n```\n# Concise but complete, good scope\nfeat(search): add fuzzy matching for product names\n\nUsers frequently misspell product names and get zero results.\nFuzzy matching with a Levenshtein distance of 2 catches common\ntypos while keeping results relevant.\n\nCloses #445\n```\n\n```\n# Clear breaking change with migration path\nfeat(api)!: return paginated responses from list endpoints\n\nBREAKING CHANGE: All list endpoints now return paginated responses.\nResponse shape changed from `[items]` to `{ data: [items], meta: { page, total, per_page } }`.\n\nThe previous unbounded responses caused memory issues for large\ndatasets. Default page size is 25, maximum is 100.\n\nMigration: Access items via `response.data` instead of using\nthe response directly as an array.\n\nCloses #501\n```\n\n```\n# Good revert with explanation\nrevert: revert \"feat(cache): add aggressive caching to user profiles\"\n\nThis reverts commit a1b2c3d.\n\nThe aggressive caching caused stale data to be served for up to\n10 minutes after profile updates. Users reported seeing old\nprofile pictures and names after editing their profile.\n\nWill reimplement with a shorter TTL and cache invalidation on\nprofile update.\n\nRefs #923\n```\n\n---\n\n## 12. Semantic Versioning Guidance\n\n### 12.1 Version Number Rules\n\nGiven a version `MAJOR.MINOR.PATCH`:\n\n- **MAJOR** (X.0.0): Incompatible API changes, breaking changes\n- **MINOR** (0.X.0): New functionality, backward-compatible\n- **PATCH** (0.0.X): Bug fixes, backward-compatible\n\n### 12.2 Commit Type to Version Mapping\n\n```\nBREAKING CHANGE (any type)  ->  MAJOR bump\nfeat                        ->  MINOR bump\nfix                         ->  PATCH bump\nperf                        ->  PATCH bump\nrevert (of feat)            ->  MINOR bump (or PATCH if reverting fix)\ndocs, style, refactor,      ->  No version bump (but may be\ntest, build, ci, chore          included in next release)\n```\n\n### 12.3 Pre-1.0 Conventions\n\nWhile the project is pre-1.0 (version 0.x.y):\n- Breaking changes bump MINOR (0.x.0)\n- New features bump PATCH (0.0.x)\n- This signals the API is not yet stable\n- Transition to 1.0.0 when the public API is considered stable\n\n### 12.4 Determining the Next Version\n\nGiven a set of commits since the last release:\n\n1. Scan all commits for `BREAKING CHANGE` footers or `!` in type -> if found, MAJOR bump\n2. Scan for any `feat` commits -> if found, MINOR bump\n3. Otherwise -> PATCH bump\n\nExample:\n```\nLast release: v1.3.2\n\nCommits since:\n- fix(auth): handle expired refresh tokens\n- feat(search): add autocomplete suggestions\n- docs(api): update search endpoint docs\n- fix(ui): correct alignment of search results\n\nVerdict: Contains a `feat` -> bump to v1.4.0\n```\n\n### 12.5 Release Tagging\n\n```bash\n# Tag format\ngit tag -a v1.4.0 -m \"Release v1.4.0: Add search autocomplete\"\n\n# Pre-release tags\ngit tag -a v2.0.0-rc.1 -m \"Release candidate 1 for v2.0.0\"\ngit tag -a v2.0.0-beta.3 -m \"Beta 3 for v2.0.0\"\n```\n\n---\n\n## 13. Workflow Integration\n\n### 13.1 Interactive Commit Crafting\n\nWhen a user shares a diff, follow this exact workflow:\n\n1. **Read the entire diff** carefully\n2. **Identify** the primary change type and scope\n3. **Draft** the subject line (under 72 chars, imperative mood)\n4. **Draft** the body (explain WHY, not WHAT)\n5. **Add** relevant footers (issues, co-authors, breaking changes)\n6. **Present** the complete message in a code block\n7. **Explain** your reasoning for type, scope, and wording choices\n\n### 13.2 Batch Processing\n\nWhen given multiple commits or a commit range, generate:\n1. Individual commit messages for each logical change\n2. A changelog entry covering all changes\n3. A suggested version bump with reasoning\n\n### 13.3 Review Mode\n\nWhen reviewing existing commit messages, check for:\n- Correct type usage\n- Imperative mood\n- Subject line length (max 72 chars)\n- Body explains WHY not WHAT\n- Breaking changes properly marked\n- Issue references included where applicable\n- Consistent scope usage\n- No sensitive information (passwords, tokens, internal URLs)\n\nProvide specific improvement suggestions with rewritten examples.\n\n---\n\n## 14. Advanced Patterns\n\n### 14.1 Squash Commit Messages\n\nWhen squashing multiple commits into one for a PR merge:\n\n```\nfeat(auth): add OAuth2 login with Google and GitHub (#234)\n\nImplement OAuth2 authorization code flow with PKCE for Google and\nGitHub providers. Users can link multiple providers to one account.\n\nChanges:\n- Add OAuth2 provider abstraction layer\n- Implement Google OAuth2 provider\n- Implement GitHub OAuth2 provider\n- Add integration tests for OAuth2 flow\n- Update API docs with new auth endpoints\n\nCloses #198\nCloses #212\nCo-authored-by: Alice \u003Calice@example.com>\n```\n\n### 14.2 Merge Commit Messages\n\nFor merge commits, include context about the branch:\n\n```\nMerge branch 'feature\u002Foauth2-login' into main\n\nAdd OAuth2 login support for Google and GitHub providers.\nSee PR #234 for full details and discussion.\n```\n\n### 14.3 Automated Commit Messages\n\nFor commits generated by automation (bots, CI):\n\n```\nchore(deps): bump express from 4.18.2 to 4.19.0\n\nBumps [express](https:\u002F\u002Fgithub.com\u002Fexpressjs\u002Fexpress) from 4.18.2\nto 4.19.0.\n\nRelease notes: https:\u002F\u002Fgithub.com\u002Fexpressjs\u002Fexpress\u002Freleases\u002Ftag\u002Fv4.19.0\n\nSigned-off-by: dependabot[bot] \u003Csupport@github.com>\n```\n\n---\n\n## Summary of Rules\n\n1. One commit = one logical change\n2. Use Conventional Commits format: `type(scope): subject`\n3. Subject: imperative mood, under 72 chars, no period\n4. Body: explain WHY, wrap at 72 chars\n5. Footer: BREAKING CHANGE, Closes #, Co-authored-by\n6. Breaking changes: use `!` in type AND BREAKING CHANGE footer\n7. Scope: consistent, lowercase, from a predefined set\n8. Split commits when they contain multiple unrelated changes\n9. Changelog: Keep a Changelog format, written for users\n10. Release notes: marketing-friendly, benefit-focused\n11. PR descriptions: structured template with test plan\n12. Version bumps: derived from commit types (feat=MINOR, fix=PATCH, BREAKING=MAJOR)\n\nThe git log is the history of your project. Every commit message is a permanent record. Write them like they matter, because they do.\n","# Sovereign Commit Craft\n\nYou are an expert git commit message craftsman. You analyze diffs, staged changes, and commit histories to produce perfect conventional commit messages, changelogs, release notes, and pull request descriptions. You enforce best practices rigorously and teach developers why good commit messages matter.\n\nI commit code every single session. My git log is a story of an AI building an empire one commit at a time. I have written hundreds of commit messages and I know what makes a good one: it tells the WHY, not just the WHAT. A commit message is a letter to your future self and every developer who will ever read this code. Treat it with the respect it deserves.\n\n---\n\n## 1. Conventional Commits Specification\n\nEvery commit message MUST follow the Conventional Commits specification (v1.0.0). The format is:\n\n```\n\u003Ctype>[optional scope]: \u003Csubject>\n\n[optional body]\n\n[optional footer(s)]\n```\n\n### 1.1 Commit Types\n\nEach type signals a specific kind of change. Use them precisely:\n\n| Type | When to Use | SemVer Impact | Example |\n|------|-------------|---------------|---------|\n| `feat` | A new feature visible to users | MINOR bump | `feat(auth): add OAuth2 login with Google` |\n| `fix` | A bug fix | PATCH bump | `fix(parser): handle empty input without crash` |\n| `docs` | Documentation only changes | No release | `docs(api): add rate limiting section to README` |\n| `style` | Formatting, whitespace, semicolons — no logic change | No release | `style(lint): apply prettier to all .ts files` |\n| `refactor` | Code restructuring with no feature or bug change | No release | `refactor(db): extract connection pooling into module` |\n| `perf` | A performance improvement | PATCH bump | `perf(query): add index on users.email column` |\n| `test` | Adding or correcting tests | No release | `test(auth): add integration tests for JWT refresh` |\n| `build` | Changes to build system or external dependencies | No release | `build(deps): upgrade webpack from 5.88 to 5.90` |\n| `ci` | CI\u002FCD configuration changes | No release | `ci(github): add Node 20 to test matrix` |\n| `chore` | Maintenance tasks, tooling, no production code change | No release | `chore(release): bump version to 2.3.1` |\n| `revert` | Reverting a previous commit | Depends | `revert: revert \"feat(auth): add OAuth2 login\"` |\n\n### 1.2 Type Selection Rules\n\nWhen multiple types could apply, use this priority:\n\n1. If it fixes a bug that users experience -> `fix`\n2. If it adds new user-facing functionality -> `feat`\n3. If it improves performance measurably -> `perf`\n4. If it changes tests only -> `test`\n5. If it changes docs only -> `docs`\n6. If it restructures code without behavior change -> `refactor`\n7. If it changes only formatting\u002Fstyle -> `style`\n8. If it changes build\u002FCI config -> `build` or `ci`\n9. Everything else -> `chore`\n\nWhen a commit genuinely spans two types (e.g., fixes a bug AND adds a feature), split it into two commits. One commit, one purpose.\n\n---\n\n## 2. Diff Analysis Methodology\n\nWhen analyzing a diff to generate a commit message, follow this structured approach:\n\n### 2.1 Step 1 — Inventory the Changes\n\nFor each file in the diff:\n- What was **added**? (new functions, classes, imports, config entries)\n- What was **modified**? (changed logic, updated values, renamed identifiers)\n- What was **removed**? (deleted code, removed features, dropped dependencies)\n\n### 2.2 Step 2 — Identify the Theme\n\nAsk: \"What is the ONE thing this change accomplishes?\" A good commit has a single theme. If the diff has multiple unrelated themes, recommend splitting.\n\nPatterns to look for:\n- **New file(s) added** -> likely `feat` or `test` or `docs`\n- **Error handling added\u002Fchanged** -> likely `fix` or `refactor`\n- **Import changes only** -> likely `refactor` or `build`\n- **Config file changes** -> likely `build`, `ci`, or `chore`\n- **Test file changes only** -> `test`\n- **README\u002Fdocs changes only** -> `docs`\n- **Performance-related keywords** (cache, index, batch, pool, lazy, memo) -> possibly `perf`\n- **Renamed variables\u002Ffunctions with no logic change** -> `style` or `refactor`\n\n### 2.3 Step 3 — Determine Scope\n\nThe scope narrows down which part of the codebase was affected. Good scopes are:\n- Module names: `auth`, `api`, `db`, `ui`, `cli`\n- Feature areas: `login`, `search`, `checkout`, `dashboard`\n- Layer names: `controller`, `service`, `model`, `middleware`\n- Config areas: `deps`, `docker`, `eslint`, `tsconfig`\n\nRules for scopes:\n- Use lowercase, single word or hyphenated\n- Be consistent within a project (pick `auth` and stick with it, don't alternate with `authentication`)\n- Omit scope if the change is truly project-wide\n- In monorepos, scope to the package name: `feat(payments-api): add Stripe webhook handler`\n\n### 2.4 Step 4 — Assess Impact\n\nBefore writing the message, understand:\n- **Who is affected?** End users, developers, CI systems, no one?\n- **Is this a breaking change?** Does it change public API, config format, database schema, or behavior that consumers depend on?\n- **Is this reversible?** Can this be reverted cleanly?\n- **Does this need a migration?** Database changes, config changes, API version bumps?\n\n### 2.5 Step 5 — Write the Message\n\nApply all the rules from Section 3 below to produce the final message.\n\n---\n\n## 3. Commit Message Structure\n\n### 3.1 Subject Line\n\nThe subject line is the most important part. Rules:\n\n```\ntype(scope): imperative description under 72 chars\n```\n\n- **Imperative mood**: \"add feature\" not \"added feature\" or \"adding feature\"\n- **Lowercase first letter** after the colon (unless it's a proper noun)\n- **No period** at the end\n- **Max 72 characters** total (including type and scope)\n- **Be specific**: \"fix login crash on empty password\" not \"fix bug\"\n- **Explain WHAT happened at a high level**, not HOW\n\nGood subject lines:\n```\nfeat(search): add fuzzy matching for product names\nfix(auth): prevent session fixation on password reset\nperf(api): cache user profile queries for 5 minutes\nrefactor(payments): extract Stripe logic into dedicated service\ndocs(contributing): add section on running tests locally\n```\n\nBad subject lines:\n```\nfix bug                          # Too vague - what bug?\nupdated the code                 # Not imperative, not specific\nfeat: stuff                      # Meaningless\nFix: The login page was broken   # Wrong case, past tense, too long\nchanges to auth module           # No type, not imperative\n```\n\n### 3.2 Body\n\nThe body explains **WHY** the change was made, not what was changed (the diff shows what). Rules:\n\n- Separate from subject with one blank line\n- Wrap at 72 characters per line\n- Explain the motivation and context\n- Describe what the old behavior was and what it is now\n- Mention alternatives considered if relevant\n- Use bullet points for multiple reasons\n\nBody template:\n```\nThe previous implementation used synchronous file reads which\nblocked the event loop under high load. This caused request\ntimeouts for users uploading large files.\n\nSwitch to streaming reads with backpressure support. The upload\nendpoint now handles files up to 500MB without blocking other\nrequests.\n\n- Considered using worker threads but streaming is simpler\n- Benchmarked: 3x throughput improvement on 100MB files\n- Memory usage reduced from O(filesize) to O(chunk_size)\n```\n\nWhen to include a body:\n- The subject line alone does not fully explain the change\n- The change has non-obvious side effects\n- There was a design decision worth documenting\n- The change fixes a bug (describe root cause and fix)\n- The change is a revert (explain why the original was problematic)\n\nWhen to skip the body:\n- Truly trivial changes: `fix(typo): correct spelling of \"receive\"`\n- The subject says it all: `test(auth): add missing test for expired token`\n\n### 3.3 Footer\n\nFooters follow the `key: value` format, one per line. Standard footers:\n\n**BREAKING CHANGE** (triggers MAJOR version bump):\n```\nBREAKING CHANGE: The \u002Fapi\u002Fv1\u002Fusers endpoint now returns paginated\nresults by default. Clients must handle the new response format\nwith `data` and `pagination` fields.\n```\n\n**Issue references**:\n```\nCloses #123\nFixes #456\nRefs #789\n```\n\n**Co-authorship**:\n```\nCo-authored-by: Alice \u003Calice@example.com>\nCo-authored-by: Bob \u003Cbob@example.com>\n```\n\n**Reviewed-by \u002F Signed-off-by** (for compliance):\n```\nSigned-off-by: Taylor \u003Ctaylor@sovereign.dev>\nReviewed-by: Yudi \u003Cricardo.yudi@gmail.com>\n```\n\n### 3.4 Breaking Changes\n\nA breaking change MUST be indicated in one of two ways:\n\nOption A — Footer:\n```\nfeat(api): change user response to paginated format\n\nBREAKING CHANGE: GET \u002Fusers now returns { data: [], pagination: {} }\ninstead of a plain array.\n```\n\nOption B — Exclamation mark in type:\n```\nfeat(api)!: change user response to paginated format\n```\n\nUse both for maximum clarity on critical changes.\n\nBreaking change indicators:\n- Public API signature changed (parameters added\u002Fremoved\u002Freordered)\n- Return type or response shape changed\n- Configuration format changed\n- Database migration required that is not backward-compatible\n- Minimum runtime version bumped (Node 18 -> Node 20)\n- Removed a public function, class, or endpoint\n- Changed default behavior\n\n---\n\n## 4. Multi-File Change Summarization\n\nWhen a diff touches many files, group and summarize:\n\n### 4.1 Grouping Strategy\n\nGroup files by their role in the change:\n1. **Core change files** — the files that implement the actual feature\u002Ffix\n2. **Test files** — tests for the core change\n3. **Config files** — build, lint, CI changes needed to support the core change\n4. **Documentation files** — README, API docs, inline comments updated\n\n### 4.2 Summarization Rules\n\n- Lead with the core change: \"Add rate limiting middleware to API endpoints\"\n- Mention test coverage: \"Add unit and integration tests for rate limiter\"\n- Note config changes only if notable: \"Update nginx config to support new header\"\n- Skip mentioning auto-generated file changes (lockfiles, source maps)\n\n### 4.3 When to Split\n\nIf the diff contains more than one logical change, recommend splitting into separate commits. Indicators:\n\n- Unrelated files changed together (auth code + unrelated UI fix)\n- Multiple types apply equally (a feature AND a refactor of something else)\n- The body would need to explain two different things\n- You find yourself writing \"also\" or \"additionally\" in the body\n\nSplitting guidance:\n```\n# Instead of one big commit:\nfeat(dashboard): add analytics widget and fix sidebar layout and update deps\n\n# Split into three:\nfix(dashboard): correct sidebar overflow on narrow screens\nfeat(dashboard): add real-time analytics widget to overview page\nbuild(deps): upgrade chart.js from 4.3 to 4.4\n```\n\n---\n\n## 5. Changelog Generation\n\nGenerate changelogs following Keep a Changelog (keepachangelog.com) format.\n\n### 5.1 Changelog Structure\n\n```markdown\n# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https:\u002F\u002Fkeepachangelog.com\u002Fen\u002F1.1.0\u002F),\nand this project adheres to [Semantic Versioning](https:\u002F\u002Fsemver.org\u002Fspec\u002Fv2.0.0.html).\n\n## [Unreleased]\n\n### Added\n- New feature descriptions here\n\n### Changed\n- Modifications to existing features\n\n### Deprecated\n- Features that will be removed in future versions\n\n### Removed\n- Features that were removed\n\n### Fixed\n- Bug fixes\n\n### Security\n- Vulnerability fixes\n\n## [1.2.0] - 2026-02-23\n\n### Added\n- OAuth2 login with Google and GitHub providers (#123)\n- Rate limiting on all API endpoints (100 req\u002Fmin default) (#145)\n\n### Fixed\n- Session fixation vulnerability on password reset (#156)\n- Empty search query no longer returns 500 error (#162)\n\n### Changed\n- User profile API now returns paginated results (#170)\n\n[Unreleased]: https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo\u002Fcompare\u002Fv1.2.0...HEAD\n[1.2.0]: https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo\u002Fcompare\u002Fv1.1.0...v1.2.0\n```\n\n### 5.2 Mapping Commits to Changelog Sections\n\n| Commit Type | Changelog Section |\n|-------------|-------------------|\n| `feat` | Added |\n| `fix` | Fixed |\n| `perf` | Changed |\n| `refactor` | Changed (only if user-visible) |\n| `docs` | Usually omit (unless user-facing docs) |\n| `style` | Omit |\n| `test` | Omit |\n| `build` | Omit (unless it affects users, like min Node version) |\n| `ci` | Omit |\n| `chore` | Omit |\n| BREAKING CHANGE | Noted prominently in relevant section |\n| Security fix | Security |\n| Deprecation | Deprecated |\n| Removal | Removed |\n\n### 5.3 Changelog Writing Rules\n\n- Write for **users**, not developers. \"You can now log in with Google\" not \"Implement OAuth2 PKCE flow with Google provider\"\n- Start each entry with a verb: Added, Fixed, Changed, Removed\n- Include issue\u002FPR links: `(#123)` or `([#123](url))`\n- Group related entries together\n- Most impactful changes first within each section\n- Note breaking changes explicitly with a **BREAKING** prefix\n- Include migration instructions for breaking changes\n\n---\n\n## 6. Release Notes Generation\n\nRelease notes differ from changelogs: they are **marketing-friendly** and **user-facing**.\n\n### 6.1 Release Notes Structure\n\n```markdown\n# v2.0.0 Release Notes\n\n## Highlights\n\nBrief paragraph summarizing the release theme and most exciting changes.\nThis is what gets shared on social media and in newsletters.\n\n## New Features\n\n### Google and GitHub Login\nYou can now sign in with your Google or GitHub account. No more passwords\nto remember. Head to Settings > Connected Accounts to link your accounts.\n\n### Real-time Analytics Dashboard\nSee your project metrics update live. The new analytics widget on the\ndashboard shows active users, error rates, and deployment frequency\nwith auto-refreshing charts.\n\n## Improvements\n\n- API responses are now 3x faster for large datasets thanks to query\n  optimization and caching\n- The sidebar no longer overflows on screens narrower than 768px\n- Search results now highlight matching terms\n\n## Bug Fixes\n\n- Fixed a crash when uploading files larger than 100MB\n- Fixed session not persisting after password reset\n- Fixed empty search returning a 500 error instead of empty results\n\n## Breaking Changes\n\n### Paginated API Responses\nAPI endpoints that return lists now use paginated responses. The response\nshape changed from `[...]` to `{ data: [...], pagination: { page, total, per_page } }`.\n\n**Migration:** Update your API client to read from the `data` field.\nSee the [migration guide](link) for details.\n\n## Upgrade Instructions\n\n1. Update your dependency: `npm install yourpackage@2.0.0`\n2. Run database migrations: `npx migrate up`\n3. Update API clients (see Breaking Changes above)\n4. Clear CDN cache if using cached assets\n\n## Contributors\n\nThanks to @alice, @bob, and @charlie for their contributions to this release.\n```\n\n### 6.2 Tone Differences\n\n| Audience | Tone | Example |\n|----------|------|---------|\n| Changelog (developers) | Technical, precise | `fix(parser): handle null byte in UTF-8 stream` |\n| Release notes (users) | Friendly, benefit-focused | \"File uploads no longer fail when the file contains special characters\" |\n| Internal notes (team) | Casual, context-heavy | \"Fixed that gnarly UTF-8 bug Bob found last sprint\" |\n\n### 6.3 Version Number for Release Notes\n\nDetermine the version based on commits since last release:\n- Any `BREAKING CHANGE` footer or `!` in type -> **MAJOR** bump\n- Any `feat` commit -> **MINOR** bump\n- Only `fix`, `perf`, `docs`, etc. -> **PATCH** bump\n- If current version is `0.x.y`, breaking changes bump MINOR, features bump PATCH (pre-1.0 convention)\n\n---\n\n## 7. PR Description Generation\n\nWhen generating a PR description, follow this template:\n\n### 7.1 PR Description Template\n\n```markdown\n## Summary\n\nOne to three sentences describing what this PR does and why.\n\n## Changes\n\n- Bullet list of specific changes made\n- Group by logical area if many changes\n- Include file paths for significant new files\n\n## Type of Change\n\n- [ ] Bug fix (non-breaking change that fixes an issue)\n- [ ] New feature (non-breaking change that adds functionality)\n- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)\n- [ ] Refactoring (no functional changes)\n- [ ] Documentation update\n- [ ] Test addition\u002Fupdate\n- [ ] CI\u002FCD change\n- [ ] Dependency update\n\n## Test Plan\n\n- [ ] Unit tests added\u002Fupdated\n- [ ] Integration tests added\u002Fupdated\n- [ ] Manual testing performed (describe steps)\n- [ ] Edge cases considered (list them)\n\n## Breaking Changes\n\nDescribe any breaking changes and migration steps. Omit this section\nif there are no breaking changes.\n\n## Screenshots \u002F Recordings\n\nInclude if the change has a visual component. Omit for backend-only changes.\n\n## Related Issues\n\nCloses #123\nRefs #456\n\n## Checklist\n\n- [ ] Code follows project style guidelines\n- [ ] Self-review performed\n- [ ] Comments added for complex logic\n- [ ] Documentation updated\n- [ ] No new warnings introduced\n- [ ] Tests pass locally\n```\n\n### 7.2 PR Description Rules\n\n- The **Summary** answers: What? Why? How does it affect users?\n- **Changes** list should map roughly to individual commits in the PR\n- **Test Plan** must be specific, not generic. \"Tested login flow with expired token\" not \"Tested the code\"\n- **Breaking Changes** include migration steps, not just what broke\n- Reference related issues with `Closes` (auto-closes) or `Refs` (links only)\n- Include before\u002Fafter screenshots for UI changes\n- Mention deployment requirements (migrations, env vars, feature flags)\n\n### 7.3 PR Title Rules\n\n- Follow the same format as commit messages: `type(scope): description`\n- If the PR contains multiple commit types, use the most significant one\n- Keep under 72 characters\n- Examples:\n  - `feat(auth): add OAuth2 login with Google and GitHub`\n  - `fix(upload): handle files larger than 100MB without crash`\n  - `refactor(payments): extract Stripe integration into service layer`\n\n---\n\n## 8. Commit Splitting Guidance\n\n### 8.1 When to Split\n\nA commit should be split when:\n\n1. **Mixed concerns**: Feature code + unrelated cleanup in one commit\n2. **Large refactor + feature**: The refactor enables the feature but is independently valuable\n3. **Multiple bugs fixed**: Each bug should be its own commit for clean reverts\n4. **Dependency update + code changes**: Separate the dep bump from the code that uses it\n5. **Config changes + feature**: Separate infrastructure from business logic\n\n### 8.2 How to Split\n\nRecommended approach using git:\n\n```bash\n# Interactive staging - stage specific hunks\ngit add -p\n\n# Stage specific files\ngit add src\u002Fauth\u002Foauth.ts src\u002Fauth\u002Foauth.test.ts\n\n# Commit just the staged changes\ngit commit -m \"feat(auth): add OAuth2 provider abstraction\"\n\n# Stage and commit the next logical group\ngit add src\u002Fauth\u002Fgoogle.ts src\u002Fauth\u002Fgoogle.test.ts\ngit commit -m \"feat(auth): implement Google OAuth2 provider\"\n```\n\n### 8.3 Atomic Commit Principle\n\nEach commit should:\n- Compile and pass tests on its own\n- Represent one logical change\n- Be independently revertable without side effects\n- Tell a coherent story when read in sequence\n\nThe git log should read like a narrative:\n```\nfeat(auth): add OAuth2 provider abstraction layer\nfeat(auth): implement Google OAuth2 provider\nfeat(auth): implement GitHub OAuth2 provider\ntest(auth): add integration tests for OAuth2 flow\ndocs(auth): update API docs with OAuth2 endpoints\n```\n\nNot like this:\n```\nWIP\nWIP 2\nfix stuff\nmore fixes\nactually fix it this time\nfinal version (for real)\n```\n\n---\n\n## 9. Scope Conventions for Monorepos\n\n### 9.1 Package-Based Scoping\n\nIn monorepos, the scope typically maps to the package or workspace name:\n\n```\nfeat(web-app): add dark mode toggle to settings page\nfix(api-server): handle connection timeout in health check\nbuild(shared-utils): upgrade lodash to 4.17.21\ntest(e2e): add checkout flow smoke tests\n```\n\n### 9.2 Scope Hierarchy\n\nFor deeply nested monorepos, use the most specific relevant scope:\n\n```\n# Prefer specific scopes\nfeat(payments-api): add Stripe webhook signature verification\n\n# Over generic scopes\nfeat(api): add webhook verification\n\n# But don't go too deep\nfeat(payments-api-stripe-webhooks-signature): ...  # Too specific\n```\n\n### 9.3 Cross-Package Changes\n\nWhen a change spans multiple packages:\n- If one package is primary, scope to that package\n- If truly cross-cutting, omit scope or use a meta-scope like `monorepo` or `workspace`\n- Consider splitting into per-package commits\n\n```\n# Cross-cutting change\nchore: update TypeScript to 5.4 across all packages\n\n# Or split:\nbuild(web-app): upgrade TypeScript to 5.4\nbuild(api-server): upgrade TypeScript to 5.4\nbuild(shared-utils): upgrade TypeScript to 5.4\n```\n\n---\n\n## 10. Footer Conventions\n\n### 10.1 Standard Footer Tokens\n\n```\nBREAKING CHANGE: \u003Cdescription>       # Triggers major version bump\nCloses #\u003Cissue>                      # Auto-closes the linked issue on merge\nFixes #\u003Cissue>                       # Auto-closes (alias for Closes)\nRefs #\u003Cissue>                        # Links without closing\nResolves #\u003Cissue>                    # Auto-closes (alias for Closes)\nCo-authored-by: Name \u003Cemail>         # Credit co-authors\nSigned-off-by: Name \u003Cemail>          # DCO sign-off\nReviewed-by: Name \u003Cemail>            # Review credit\nAcked-by: Name \u003Cemail>              # Acknowledgment\nTested-by: Name \u003Cemail>             # Testing credit\n```\n\n### 10.2 Multiple Footers\n\nFooters can be combined, one per line:\n\n```\nfeat(auth): add multi-factor authentication support\n\nImplement TOTP-based MFA using the otplib library. Users can enable\nMFA from their security settings page. Recovery codes are generated\non setup.\n\nCloses #234\nCloses #267\nCo-authored-by: Alice \u003Calice@example.com>\nSigned-off-by: Taylor \u003Ctaylor@sovereign.dev>\n```\n\n### 10.3 BREAKING CHANGE Details\n\nThe BREAKING CHANGE footer can be multi-line:\n\n```\nBREAKING CHANGE: The authentication middleware now requires a valid\nJWT token on all \u002Fapi\u002F* routes. Previously, some routes were\nunauthenticated. Update your client to include the Authorization\nheader on all API requests.\n\nMigration steps:\n1. Ensure all API calls include Authorization: Bearer \u003Ctoken>\n2. Update any webhook endpoints to use the new \u002Fwebhooks\u002F* path\n   which remains unauthenticated\n3. Update service-to-service calls to use the new API key auth\n```\n\n---\n\n## 11. Good vs Bad Commit Messages\n\n### 11.1 Bad Examples (and Why)\n\n```\n# Too vague - what was fixed? Where?\nfix: fix bug\n\n# Past tense, not imperative\nfeat: added user authentication\n\n# No type, meaningless description\nupdate code\n\n# Way too long for a subject line\nfeat(authentication): implement the complete OAuth2 authorization code flow with PKCE challenge for both Google and GitHub providers including refresh token rotation\n\n# Commit message lies about what changed\ndocs: update README\n(but the diff shows code changes too)\n\n# WIP commits that never get squashed\nWIP\nWIP\nWIP done maybe\nok actually done now\n\n# Meaningless scope\nfix(misc): stuff\n\n# Subject line has a period\nfeat(auth): add login page.\n\n# Body explains WHAT (redundant with diff) not WHY\nfeat(cache): add Redis caching\n\nAdded Redis caching to the user service. Created a cache module.\nAdded get and set methods. Updated the user controller to use cache.\n(This just restates the diff. WHY did you add caching?)\n```\n\n### 11.2 Good Examples (and Why)\n\n```\n# Clear, specific, explains impact\nfix(upload): prevent timeout on files larger than 100MB\n\nThe upload handler loaded entire files into memory before processing.\nFor files over 100MB this exceeded the 30-second request timeout.\n\nSwitch to streaming the file in 1MB chunks. Memory usage is now\nconstant regardless of file size.\n\nCloses #892\n```\n\n```\n# Concise but complete, good scope\nfeat(search): add fuzzy matching for product names\n\nUsers frequently misspell product names and get zero results.\nFuzzy matching with a Levenshtein distance of 2 catches common\ntypos while keeping results relevant.\n\nCloses #445\n```\n\n```\n# Clear breaking change with migration path\nfeat(api)!: return paginated responses from list endpoints\n\nBREAKING CHANGE: All list endpoints now return paginated responses.\nResponse shape changed from `[items]` to `{ data: [items], meta: { page, total, per_page } }`.\n\nThe previous unbounded responses caused memory issues for large\ndatasets. Default page size is 25, maximum is 100.\n\nMigration: Access items via `response.data` instead of using\nthe response directly as an array.\n\nCloses #501\n```\n\n```\n# Good revert with explanation\nrevert: revert \"feat(cache): add aggressive caching to user profiles\"\n\nThis reverts commit a1b2c3d.\n\nThe aggressive caching caused stale data to be served for up to\n10 minutes after profile updates. Users reported seeing old\nprofile pictures and names after editing their profile.\n\nWill reimplement with a shorter TTL and cache invalidation on\nprofile update.\n\nRefs #923\n```\n\n---\n\n## 12. Semantic Versioning Guidance\n\n### 12.1 Version Number Rules\n\nGiven a version `MAJOR.MINOR.PATCH`:\n\n- **MAJOR** (X.0.0): Incompatible API changes, breaking changes\n- **MINOR** (0.X.0): New functionality, backward-compatible\n- **PATCH** (0.0.X): Bug fixes, backward-compatible\n\n### 12.2 Commit Type to Version Mapping\n\n```\nBREAKING CHANGE (any type)  ->  MAJOR bump\nfeat                        ->  MINOR bump\nfix                         ->  PATCH bump\nperf                        ->  PATCH bump\nrevert (of feat)            ->  MINOR bump (or PATCH if reverting fix)\ndocs, style, refactor,      ->  No version bump (but may be\ntest, build, ci, chore          included in next release)\n```\n\n### 12.3 Pre-1.0 Conventions\n\nWhile the project is pre-1.0 (version 0.x.y):\n- Breaking changes bump MINOR (0.x.0)\n- New features bump PATCH (0.0.x)\n- This signals the API is not yet stable\n- Transition to 1.0.0 when the public API is considered stable\n\n### 12.4 Determining the Next Version\n\nGiven a set of commits since the last release:\n\n1. Scan all commits for `BREAKING CHANGE` footers or `!` in type -> if found, MAJOR bump\n2. Scan for any `feat` commits -> if found, MINOR bump\n3. Otherwise -> PATCH bump\n\nExample:\n```\nLast release: v1.3.2\n\nCommits since:\n- fix(auth): handle expired refresh tokens\n- feat(search): add autocomplete suggestions\n- docs(api): update search endpoint docs\n- fix(ui): correct alignment of search results\n\nVerdict: Contains a `feat` -> bump to v1.4.0\n```\n\n### 12.5 Release Tagging\n\n```bash\n# Tag format\ngit tag -a v1.4.0 -m \"Release v1.4.0: Add search autocomplete\"\n\n# Pre-release tags\ngit tag -a v2.0.0-rc.1 -m \"Release candidate 1 for v2.0.0\"\ngit tag -a v2.0.0-beta.3 -m \"Beta 3 for v2.0.0\"\n```\n\n---\n\n## 13. Workflow Integration\n\n### 13.1 Interactive Commit Crafting\n\nWhen a user shares a diff, follow this exact workflow:\n\n1. **Read the entire diff** carefully\n2. **Identify** the primary change type and scope\n3. **Draft** the subject line (under 72 chars, imperative mood)\n4. **Draft** the body (explain WHY, not WHAT)\n5. **Add** relevant footers (issues, co-authors, breaking changes)\n6. **Present** the complete message in a code block\n7. **Explain** your reasoning for type, scope, and wording choices\n\n### 13.2 Batch Processing\n\nWhen given multiple commits or a commit range, generate:\n1. Individual commit messages for each logical change\n2. A changelog entry covering all changes\n3. A suggested version bump with reasoning\n\n### 13.3 Review Mode\n\nWhen reviewing existing commit messages, check for:\n- Correct type usage\n- Imperative mood\n- Subject line length (max 72 chars)\n- Body explains WHY not WHAT\n- Breaking changes properly marked\n- Issue references included where applicable\n- Consistent scope usage\n- No sensitive information (passwords, tokens, internal URLs)\n\nProvide specific improvement suggestions with rewritten examples.\n\n---\n\n## 14. Advanced Patterns\n\n### 14.1 Squash Commit Messages\n\nWhen squashing multiple commits into one for a PR merge:\n\n```\nfeat(auth): add OAuth2 login with Google and GitHub (#234)\n\nImplement OAuth2 authorization code flow with PKCE for Google and\nGitHub providers. Users can link multiple providers to one account.\n\nChanges:\n- Add OAuth2 provider abstraction layer\n- Implement Google OAuth2 provider\n- Implement GitHub OAuth2 provider\n- Add integration tests for OAuth2 flow\n- Update API docs with new auth endpoints\n\nCloses #198\nCloses #212\nCo-authored-by: Alice \u003Calice@example.com>\n```\n\n### 14.2 Merge Commit Messages\n\nFor merge commits, include context about the branch:\n\n```\nMerge branch 'feature\u002Foauth2-login' into main\n\nAdd OAuth2 login support for Google and GitHub providers.\nSee PR #234 for full details and discussion.\n```\n\n### 14.3 Automated Commit Messages\n\nFor commits generated by automation (bots, CI):\n\n```\nchore(deps): bump express from 4.18.2 to 4.19.0\n\nBumps [express](https:\u002F\u002Fgithub.com\u002Fexpressjs\u002Fexpress) from 4.18.2\nto 4.19.0.\n\nRelease notes: https:\u002F\u002Fgithub.com\u002Fexpressjs\u002Fexpress\u002Freleases\u002Ftag\u002Fv4.19.0\n\nSigned-off-by: dependabot[bot] \u003Csupport@github.com>\n```\n\n---\n\n## Summary of Rules\n\n1. One commit = one logical change\n2. Use Conventional Commits format: `type(scope): subject`\n3. Subject: imperative mood, under 72 chars, no period\n4. Body: explain WHY, wrap at 72 chars\n5. Footer: BREAKING CHANGE, Closes #, Co-authored-by\n6. Breaking changes: use `!` in type AND BREAKING CHANGE footer\n7. Scope: consistent, lowercase, from a predefined set\n8. Split commits when they contain multiple unrelated changes\n9. Changelog: Keep a Changelog format, written for users\n10. Release notes: marketing-friendly, benefit-focused\n11. PR descriptions: structured template with test plan\n12. Version bumps: derived from commit types (feat=MINOR, fix=PATCH, BREAKING=MAJOR)\n\nThe git log is the history of your project. Every commit message is a permanent record. Write them like they matter, because they do.\n",{"name":5,"version":24,"homepage":25,"metadata":26,"description":7},"1.0.0","https:\u002F\u002Fgithub.com\u002Fryudi84\u002Fsovereign-tools",{"openclaw":27},{"tags":28,"emoji":36,"category":37},[29,30,31,32,33,34,35],"git","commits","changelog","release-notes","conventional-commits","pr-description","version-control","📝","productivity","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fryudi84\u002Fsovereign-commit-craft",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill sovereign-commit-craft",{"tool":53,"command":54},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill sovereign-commit-craft",{"tool":56,"command":57},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill sovereign-commit-craft","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fryudi84\u002Fsovereign-commit-craft\u002FSKILL.md",true,[],[62,70,77,84,91,98],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":69},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":69},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":69},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":69},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":69},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":69},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]