Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

git-cliff

$ git-cliff Community Low Risk
Orhun Parmaksiz · Code & DevOps · MIT / Apache-2.0 · macos / linux / windows

Highly configurable Rust changelog generator driven by Conventional Commits and Tera templates. Emits release notes to stdout by default without modifying files, and exports structured commit context as JSON via --context.

FCRS-1.0 Score
90 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install git-cliff
CLI vs MCP Decision CLI Only

Reads local Git history and renders changelogs/JSON context locally in milliseconds; no MCP server needed.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Outputs to stdout by default, supports --context JSON export, --unreleased, --bumped-version, and fully flag-driven non-interactive execution.

  • --context exports parsed commit groups and metadata as JSON
  • Default stdout mode prevents unintended disk writes
Trust & Safety 23 / 25

Strictly read-only unless -o / --output is explicitly specified; never creates git tags or commits.

  • Requires explicit -o flag to write files
Setup & Portability 15 / 15

Single Rust binary available via Homebrew, Cargo, npm wrapper, and GitHub Releases across macOS, Linux, and Windows.

  • Cross-platform prebuilt static binaries
Utility & Efficiency 13 / 15

Eliminates manual commit grouping and semver bump guesswork in release automation.

  • --bump + --unreleased automates release note generation
Maintenance & Lineage 8 / 10

Well-maintained community Rust project (orhun/git-cliff) under MIT/Apache-2.0.

  • Active open-source project with consistent releases
Docs & Verifiability 9 / 10

Comprehensive documentation site at git-cliff.org/docs/ covering templates, config, and CLI flags.

  • Detailed CLI and Tera template docs at git-cliff.org/docs/

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

Purely local Git history reading by default; optional remote GitHub/GitLab contributor metadata uses GITHUB_TOKEN / GITLAB_TOKEN.

Side Effects
Read-Only Local Write
Cost & Quotas

Dual MIT / Apache-2.0 open-source Rust binary; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# git-cliff Agent Rules
- Omit `-o` / `--output` to preview changelogs safely to stdout before writing `CHANGELOG.md`.
- Use `--context` when structured JSON commit data is needed instead of parsing rendered Markdown.

Agent-Ready Command Recipes

Safe Read-Only Queries

Export unreleased commits as structured JSON context
git-cliff --unreleased --context

Prints the parsed Conventional Commits context as JSON to stdout without writing any files.

Preview next version bump and release notes
git-cliff --unreleased --bump

Calculates the semantic version bump from commit types and prints release notes to stdout.

Controlled Writes & Previews

Update CHANGELOG.md for a specific release tag
git-cliff --tag v1.2.0 -o CHANGELOG.md

Writes or prepends the rendered changelog for v1.2.0 to CHANGELOG.md.

Strengths for Agents

  • + --context outputs structured JSON commit/release data while omitting -o keeps runs strictly read-only.
  • + --bump and --unreleased let release agents compute next semver tags deterministically.

Caveats & Pitfalls

  • ! Repositories without Conventional Commits require custom regex parsers in cliff.toml.
  • ! Optional GitHub/GitLab API enrichment requires GITHUB_TOKEN or --offline to avoid network calls.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI