agentleFS
octivioctivi/skills/common-changelog/SKILL.md

common-changelog

Skill1 starsChanged 5 months agoMITView on GitHub

Draft and normalize user-facing CHANGELOG.md entries in Common Changelog format from release notes, pull requests, and Conventional Commits (including git trailers like Category, Ref, and Co-authored-by). Use this skill whenever the user asks for changelog text, release notes, "what changed", version summaries, or Unreleased notes, even if they do not explicitly mention CHANGELOG.md.

The file

Show its rules and text

We split this skill into the rules it gives an agent

30 rules. About 0 are common, 12 are distinctive, and 18 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 18

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write human-facing changelog entries in Common Changelog format.

    line 8
  2. Very specific:

    Use this skill when asked to generate, update, or normalize CHANGELOG.md from commits, PRs, or release notes.

    line 12
  3. Very specific:

    Do not use for commit message wording.

    line 17
  4. Very specific:

    Do not use for branch/rebase/PR process guidance.

    line 18
  5. Very specific:

    Use when the user asks to create, replace, or normalize an entire CHANGELOG.md.

    line 29
  6. Very specific:

    Use when the user asks for a single release entry (for example 1.4.0 or Unreleased).

    line 32
  7. Distinctive:

    If user intent is ambiguous, default to release-fragment mode.

    line 36
  8. Distinctive:

    When metadata is incomplete, keep producing output and append:

    line 38
  9. Very specific:

    Only include Warnings: when at least one warning exists.

    line 46
  10. Distinctive:

    Use this table as the single source of truth for output structure and bullet formatting.

    line 57
  11. Very specific:

    treat GitHub keywords as reference signals only when an issue target is present (for example Fixes #123)

    line 105
  12. Very specific:

    If Category: maps to a group, use it:

    line 118
  13. Very specific:

    if multiple Category: trailers exist, use the last recognized one

    line 128
  14. Distinctive:

    If type is missing or unclear:

    line 150
  15. Very specific:

    If there is a recognized Category: value, map it and stop.

    line 165
  16. Very specific:

    If breaking signal exists (!

    line 168
  17. Very specific:

    If header has ! or body/footer contains BREAKING CHANGE:, prefix with Breaking:

    line 172
  18. Very specific:

    Keep the entry in Changed/Added/Removed/Fixed by impact (no extra section)

    line 173
  19. Distinctive:

    Commit hash SHOULD be a markdown link when available:

    line 194
  20. Very specific:

    treat #123 and https://github.com/OWNER/REPO/issues/123 as the same issue reference

    line 202
  21. Distinctive:

    Commit-link order is deterministic:

    line 207
  22. Distinctive:

    Use commit author as primary author

    line 210
  23. Distinctive:

    If commit author is a bot and merger is known, prefer the human merger name

    line 215
  24. Very specific:

    If author cannot be determined from metadata, use (Unknown author) and emit a warning.

    line 219
  25. Very specific:

    If no commit link can be determined, use (source unavailable) as the commit-links group and emit a warning.

    line 220
  26. Very specific:

    If any structural MUST rule is violated and cannot be recovered with fallback policy, fail.

    line 226
  27. Distinctive:

    If changelog scope is unclear, default to release-fragment mode instead of failing.

    line 228
  28. Distinctive:

    Remove non-user-facing noise and no-op pairs (change + immediate revert).

    line 235
  29. Very specific:

    Verify output shape against references/CHANGELOG.md.

    line 250
  30. Distinctive:

    Ensure warning messages exist for every metadata fallback.

    line 251

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Common Changelog

Write human-facing changelog entries in Common Changelog format.

When to use

Use this skill when asked to generate, update, or normalize CHANGELOG.md from commits, PRs, or release notes.

When not to use

  • Do not use for commit message wording; route to git-commits.
  • Do not use for branch/rebase/PR process guidance; route to git-trunk-based-workflow.

Goal

Help readers answer: what changed and how it affects them.

Output contract

Choose exactly one output mode:

  1. Full-file mode:
    • Use when the user asks to create, replace, or normalize an entire CHANGELOG.md.
    • Output MUST be a complete markdown file that starts with # Changelog.
  2. Release-fragment mode:
    • Use when the user asks for a single release entry (for example 1.4.0 or Unreleased).
    • Output MUST contain exactly one release heading and its non-empty groups, unless FMT-9 applies and the release should be skipped due to no user-facing changes.

If user intent is ambiguous, default to release-fragment mode.

When metadata is incomplete, keep producing output and append:

Warnings:
- <warning 1>
- <warning 2>

Only include Warnings: when at least one warning exists. Warnings are out-of-band metadata and MUST appear after the primary changelog artifact.

Normative language

  • MUST: mandatory requirement; fail output if violated
  • SHOULD: recommended default; may be overridden only by explicit user instruction
  • MAY: optional behavior

Canonical rules table

Use this table as the single source of truth for output structure and bullet formatting.

IDScopeRequirement
FMT-1Output scopeIn full-file mode, output MUST be a valid CHANGELOG.md and first heading MUST be # Changelog; in release-fragment mode, output MUST contain exactly one release block. Optional trailing Warnings: metadata MAY appear after the artifact when needed.
FMT-2Release orderingIf present, Unreleased MUST be the first release heading and MUST NOT be included in semantic version ordering.
FMT-3Release orderingReleased versions (excluding Unreleased) MUST be sorted latest-first by semantic version.
FMT-4Release headingsReleased version headings MUST include ISO date YYYY-MM-DD; linked format ## [1.2.3] - YYYY-MM-DD is SHOULD, plain ## 1.2.3 - YYYY-MM-DD is MAY. Unreleased SHOULD be undated (## [Unreleased] or ## Unreleased) unless the user explicitly asks for a dated form.
FMT-5Link refsIf any release heading is linked (## [<label>] - YYYY-MM-DD), trailing link references MUST be present at file end and define each linked label exactly once.
FMT-6Unreleased linkIf Unreleased is a linked heading, its reference MUST use a compare URL ending with ...HEAD.
FMT-7Release linksLinked released versions SHOULD point to release tags (matching repository tag conventions).
FMT-8SectionsRelease groups MUST use only, and in this order: Changed, Added, Removed, Fixed; empty groups MUST NOT be emitted.
FMT-9No user-facing changesIf a release has no user-facing changes, default is skip (including release-fragment mode). If explicitly requested, MAY add a one-line maintenance notice under the release heading.
BUL-1Writing styleUse imperative style (Add, Fix, Remove, Bump), keep bullets concise, and describe user impact (not internal trivia).
BUL-2Breaking changesBreaking changes MUST be prefixed with **Breaking:**.
BUL-3Bullet group orderEvery bullet MUST follow this order: optional references group, required commit-links group, required final authors group. Commit-links group MUST contain at least one commit link when available; otherwise use source unavailable and emit a warning.
BUL-4Group formattingReferences, commit links, and authors MUST each appear in one parentheses group; multi-item groups MUST use comma-separated lists.
BUL-5Template sourceBullet shape and full file layout MUST follow references/CHANGELOG.md.
BUL-6Missing metadataIf author metadata is missing, authors group MUST be (Unknown author) and a warning MUST be emitted.

Input model

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Recognize trailers and reference keywords:

  • Category:
  • Ref:
  • Re:
  • Co-authored-by:
  • BREAKING CHANGE:

Also recognize GitHub issue-linking keywords:

  • close, closes, closed
  • fix, fixes, fixed
  • resolve, resolves, resolved

For Ref, Re, and the keywords above:

  • matching is case-insensitive
  • : is optional (for example Ref ABC-123 and Ref: ABC-123 are both valid)
  • treat GitHub keywords as reference signals only when an issue target is present (for example Fixes #123)

Classification algorithm

Apply in this order:

  1. Category: trailer override
  2. Conventional Commit type mapping
  3. Semantic fallback

1) Category override (highest priority)

If Category: maps to a group, use it:

  • change, changed -> Changed
  • add, added -> Added
  • remove, removed -> Removed
  • fix, fixed -> Fixed

Rules:

  • case-insensitive matching
  • if multiple Category: trailers exist, use the last recognized one
  • ignore unknown values and continue

2) Conventional Commits mapping

  • feat -> Added
  • fix -> Fixed
  • perf -> Changed only if user-facing; otherwise skip
  • refactor -> Changed only if user-facing; otherwise skip
  • revert -> Changed or Fixed based on actual user effect
  • docs, style, test, chore, ci, build -> skip unless user-facing

Type compatibility notes

  • This skill classifies commit history, so it accepts both the strict type set used by git-commits and broader Conventional Commit variants observed in existing repositories.
  • Accepted history-only variants include: perf, style, test, ci, build.
  • This does NOT change the output type policy of git-commits; it only affects changelog classification of existing commits.

3) Semantic fallback

If type is missing or unclear:

  • Existing behavior changed -> Changed
  • New capability -> Added
  • Capability removed -> Removed
  • Bug corrected -> Fixed

Conflict examples

  • fix(api): ... + Category: add -> Added
  • feat!: + Category: remove -> Removed + **Breaking:**
  • docs: + Category: fixed -> Fixed

Classification decision tree

  1. If there is a recognized Category: value, map it and stop.
  2. Else, if Conventional Commit type is recognized, apply the type mapping.
  3. Else, classify by semantic user impact (Changed/Added/Removed/Fixed).
  4. If breaking signal exists (! or BREAKING CHANGE:), prefix with **Breaking:**.

Breaking change handling

  • If header has ! or body/footer contains BREAKING CHANGE:, prefix with **Breaking:**
  • Keep the entry in Changed/Added/Removed/Fixed by impact (no extra section)

User-facing quick test

Usually include:

  • API contract or output changed
  • CLI flags/defaults changed
  • Config shape/defaults changed
  • Runtime/performance behavior users notice
  • Dependency bump that fixes production bug/security issue

Usually skip:

  • Internal refactor without behavior change
  • CI/test/style-only updates
  • Dev tooling and internal docs only
  • Dependency bump for dev/test-only tooling

References and authors

  • Commit hash SHOULD be a markdown link when available:
    • [`d23ba8f`](https://github.com/OWNER/REPO/commit/d23ba8f)
  • Group formatting for references, commit links, and authors MUST follow BUL-3 and BUL-4
  • Build references from:
    • explicit PR/issue links
    • Ref and Re trailers
    • GitHub keywords (close*, fix*, resolve*) with issue targets
  • Normalize before deduplication:
    • treat #123 and https://github.com/OWNER/REPO/issues/123 as the same issue reference
    • normalize case for keyword-style references (for example jira-123 -> JIRA-123)
  • Reference order is deterministic:
    1. first: one high-signal repository reference (prefer PR, otherwise issue)
    2. then: remaining unique references in first-seen order
  • Commit-link order is deterministic:
    1. deduplicate by commit hash
    2. keep first-seen order
  • Use commit author as primary author
  • Append Co-authored-by: names (extract name before <email>)
  • Authors MUST be deduplicated in stable first-seen order
  • For aggregated bullets, authors MUST be the deduplicated union of commit authors and Co-authored-by: names from all included commits, preserving stable first-seen order
  • If commit author is a bot and merger is known, prefer the human merger name

Metadata fallback policy

  • If author cannot be determined from metadata, use (Unknown author) and emit a warning.
  • If no commit link can be determined, use (source unavailable) as the commit-links group and emit a warning.
  • Missing metadata MUST NOT be a sole reason to drop user-facing bullets.

Fail policy

  • If any structural MUST rule is violated and cannot be recovered with fallback policy, fail.
  • Missing author/commit metadata alone MUST NOT trigger hard fail.
  • If changelog scope is unclear, default to release-fragment mode instead of failing.

Authoring workflow

  1. Collect input: commits, PRs, issues, release notes.
  2. Parse commit headers, body, and trailers.
  3. Classify each change using rules above.
  4. Remove non-user-facing noise and no-op pairs (change + immediate revert).
  5. Rewrite into concise user-facing bullets.
  6. Group by Changed, Added, Removed, Fixed in that order.
  7. Validate against Canonical rules table and references/CHANGELOG.md.

Anti-patterns

  • Raw technical commit text with no user context
  • Non-standard sections (Security, Docs, Chore, etc.)
  • Internal-only noise in public changelog
  • Missing **Breaking:** marker for incompatible changes

Quality checklist

  • Validate all applicable FMT-* and BUL-* requirements from Canonical rules table.
  • Verify output shape against references/CHANGELOG.md.
  • Ensure warning messages exist for every metadata fallback.
  • Any checklist failure MUST trigger Fail policy.

Prompt templates

  • Generate a Common Changelog entry for version <VERSION> from these commits and PRs. Keep only user-facing changes, include references, and mark breaking changes.
  • Normalize this existing changelog fragment to Common Changelog format without losing important user-impact details.
  • Classify these Conventional Commits into Changed/Added/Removed/Fixed and explain any skipped items.

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.