Skip to content
Back to skills

Mk Changelog

ASecurity

Use when generating or updating CHANGELOG.md entries and release notes from git commits, pull requests, or diffs.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 14, 2026
documentationpythongorefactoringgitsecurity

Works with

  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add anntnzrb/agents --skill mk-changelog --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mk Changelog?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mk Changelog
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anntnzrb-mk-changelog/badge)](https://www.skillsdirectory.com/skills/anntnzrb-mk-changelog)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mk-changelog
description: "Use when generating or updating CHANGELOG.md entries and release notes from git commits, pull requests, or diffs."
license: AGPL-3.0-or-later
metadata:
  author: anntnzrb
---

# Make Changelog

Generate structured, user-facing changelog entries and release notes from Git commit ranges, GitHub Pull Requests, or staged diffs. Use the bundled Python CLI to inspect repository state deterministically and patch target `CHANGELOG.md` files idempotently.

## Public entrypoints

The primary entrypoint for `mk-changelog` is the Python CLI at `scripts/cli.py`.

```text
uv run --script <skill-dir>/scripts/cli.py <command> [options]
```

## Required follow-up reads

| Need | Read | When |
| --- | --- | --- |
| Keep a Changelog standards & categories | `references/conventions.md` | Before drafting or categorizing entries |
| Semantic synthesis prompt templates | `references/prompts.md` | When generating changelog bullets from prepared context |

## Workflow

1. Resolve `<skill-dir>` to this skill directory.
2. Extract deterministic commit, PR, diff, and monorepo changelog boundary context:

   ```text
   # 1. From a local commit range (e.g. branch to main, or tag to HEAD)
   uv run --script <skill-dir>/scripts/cli.py prepare --range main..HEAD [--repo PATH]

   # 2. From a GitHub Pull Request URL or number
   uv run --script <skill-dir>/scripts/cli.py prepare --pr https://github.com/owner/repo/pull/123

   # 3. From local staged or working tree changes
   uv run --script <skill-dir>/scripts/cli.py prepare --staged [--repo PATH]

3. The command outputs a single structured JSON payload containing:
   - `commits`: normalized commit records (hash, subject, category, author, PR reference, revert status).
   - `boundaries`: mapped `CHANGELOG.md` paths with their respective modified files.
   - `existing_entries`: already documented items under `## [Unreleased]` to prevent duplicates.
   - `contributors`: external contributors attribution mapping.
   - `diff_stat`: file-level change statistics.

4. Distill and synthesize user-facing entries using the prompt guidance in `references/prompts.md`. Focus strictly on user-observable behavior; omit internal refactoring, tests, and CI churn.

5. Output the result depending on your goal:

   - **For PR Body / Release Notes (no file writes):**
     ```text
     uv run --script <skill-dir>/scripts/cli.py format --entries-file <temp-dir>/entries.json
     ```

   - **For CHANGELOG.md update (idempotent disk patch under ## [Unreleased]):**
     ```text
     uv run --script <skill-dir>/scripts/cli.py patch --target CHANGELOG.md --entries-file <temp-dir>/entries.json
     ```
## Invariants

- Group entries under a leading `Breaking Changes` section (a local extension), then the Keep a Changelog categories: `Added`, `Changed`, `Deprecated`, `Removed`, `Fixed`, `Security`.
- Start each entry with a past-tense verb (Added, Fixed, Changed, Updated) and omit trailing periods.
- Preserve deterministic community attribution format: `([#123](url) by @user)`.
- Never duplicate entries already present under `## [Unreleased]`.
- In monorepos, update the nearest package-level `CHANGELOG.md` unless instructed to target the root changelog.

Files in this skill

  • SKILL.md3.2 KB
  • lib/__init__.py33 B
  • lib/boundary_detector.py2 KB
  • lib/gh_resolver.py4.4 KB
  • lib/git_extractor.py5 KB
  • lib/models.py4.7 KB
  • lib/parser.py3.3 KB
  • lib/patcher.py4.9 KB
  • pyproject.toml1.4 KB
  • references/conventions.md1.8 KB
  • references/prompts.md1.7 KB
  • scripts/cli.py10.8 KB
  • tests/__init__.py30 B
  • tests/test_boundary_detector.py1.8 KB
  • tests/test_cli.py4.2 KB
  • tests/test_git_extractor.py3.3 KB
  • tests/test_models.py1.6 KB
  • tests/test_parser.py1.6 KB
  • tests/test_patcher.py2.3 KB
  • uv.lock52 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.