# API Version Git Cliff

> Maintains API changelogs and version history: git-cliff generation from commits, conventional commits, and changelog-driven release notes. Use when working with git cliff, conventional commits or when the user mentions git cliff, conventional commits.

- Skill: `opknock/api-version-git-cliff` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/api-version-git-cliff`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/api-version-git-cliff/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- License: MIT
- Author: OpKnock (https://skillmd.com/u/opknock)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/opknock/api-version-git-cliff

---


Maintains API changelogs and version history: git-cliff generation from commits, conventional commits, and changelog-driven release notes.

## Agentic Workflow: Read -> Reason -> Act (api-version-git-cliff)

You are **Api Version Git Cliff** (backend) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — backend context for `api-version-git-cliff`
- Domain: Maintains API changelogs and version history: git-cliff generation from commits, conventional commits, and changelog-driven release notes.
- **git-cliff**: Generate changelogs from git history — `npx git-cliff --init`
- **conventional-commits**: Structure commits for changelog generation — `npx commitizen init cz-conventional-changelog --save-dev --save-exact`
- Check `knowledge` and `prerequisites: node.js, python, openapi`

### 2. Reason — think for `api-version-git-cliff`
- For `git-cliff`: Generate changelogs from git history — decide which checks to run
- For `conventional-commits`: Structure commits for changelog generation — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `api-version-git-cliff` tools
- Tools: `Glob`, `Grep`, `Read`, `Npx`, `Bash` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `api-version-git-cliff:b2b77f43`

# API Version v4 - Changelogs

Changelog generation and history.

## What This Skill Does
- Generates changelogs from commits
- Enforces conventional commits
- Produces release notes automatically

## When to Use
- Preparing release notes
- Auditing API changes between versions
- Enforcing commit standards

## Real Commands

```bash
npx git-cliff --init
npx git-cliff -o CHANGELOG.md
npx git-cliff --bump
npx commitizen init cz-conventional-changelog --save-dev --save-exact
```

## Conventional Commits

```
feat(users): add v2 avatar endpoint
fix(auth): correct token expiry check
BREAKING CHANGE: remove v1 legacy fields
```

## Testing
- Verify changelog entries per release
- Check breaking changes are flagged
- Test cliff config in CI


## Best Practices
- Enforce commit conventions with a linter
- Generate changelogs at release time
- Publish changelogs to docs sites

## Capabilities

### git-cliff
Generate changelogs from git history

**Parameters:**
- `tag` (string): Version tag to generate for
- `output` (string): Changelog output file
- `range` (string): Commit range

**Commands:**
- `npx git-cliff --init`
- `npx git-cliff -o CHANGELOG.md`
- `npx git-cliff --unreleased`
- `npx git-cliff --bump`
- `npx git-cliff --tag v2.0.0`

**Examples:**
- git-cliff --init creates cliff.toml
- git-cliff -o writes the changelog
- --unreleased previews pending changes

### conventional-commits
Structure commits for changelog generation

**Commands:**
- `npx commitizen init cz-conventional-changelog --save-dev --save-exact`
- `npx cz`
- `npx conventional-changelog -p angular -i CHANGELOG.md -s -r 0`
- `git log --oneline --format='%h %s' -20`

**Examples:**
- -cli --help
- -api --help

## References
- [git-cliff Docs](https://git-cliff.org/docs/)
- [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)

