get-commits

Extract and parse local git commit history into structured JSON format with custom tags ([Why], [What], [Impact]). Use when generating changelogs, creating PR summaries, updating CHANGELOG.md files, or analyzing recent code changes. Parses conventional commits, extracts technical details and business impact, and returns flat JSON to save context tokens and reduce hallucinations during documentation generation.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "get-commits" with this command: npx skills add aroldolanderos/skills/aroldolanderos-skills-get-commits

Git Changelog Parser

Parse local git commit history into clean, structured JSON. Extracts conventional commit metadata, custom tags ([Why], [What], [Impact]), and returns a token-efficient flat structure ready for documentation workflows.

Quick Start

python3 scripts/get_commits.py 20

Returns JSON with last 20 commits:

[
  {
    "hash": "abc1234",
    "date": "2026-02-09",
    "type": "feat",
    "scope": "auth",
    "title": "Add JWT authentication",
    "what": "Implemented JWT tokens with refresh mechanism",
    "impact": "Breaking change: auth endpoints require tokens"
  }
]

Use in your workflow

  1. Changelog: Run script, extract [What] fields, format as Markdown
  2. PR Summary: Run script, extract [Impact] fields, create executive summary
  3. Change Analysis: Run script, filter by type/scope, generate reports

Commit Message Format

The script expects commits following this structure:

feat(scope): Brief description

[Why] Reason for this change
[What] Technical implementation details
[Impact] Business impact or breaking changes
  • First line: type(scope): title or type: title
  • Tags on separate lines: [Why]: ..., [What]: ..., [Impact]: ...
  • All tags are optional; missing tags return empty strings
  • Merge commits are filtered out automatically

Script Parameters

python3 scripts/get_commits.py [limit]
  • limit (optional): Number of commits to retrieve (default: 50)

JSON Output Structure

Flat, token-efficient structure (no nesting):

FieldDescription
hashShort commit hash (7 chars)
dateISO date formatted as YYYY-MM-DD
typeConventional commit type (feat, fix, etc.)
scopeComponent/area affected (empty if missing)
titleDescription with type/scope prefix removed
whatTechnical details from [What] tag
impactBusiness impact from [Impact] tag

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

make-commits

No summary provided by upstream source.

Repository SourceNeeds Review
General

user-story-creator

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

Repository SourceNeeds Review
94.2K160.3K
anthropics