Index of every page on this site: llms.txt
All skills
jd-solanki avatar

/automate-commit-based-gh-release-changelog

@372cfb1
by JD Solankijd-solanki/ai6 stars
2
Run it yourself

Automate GitHub release creation and changelog generation from Conventional Commits using changelogithub — includes GitHub release mechanics, tag-based triggers, required permissions, and fetch-depth gotcha. Use when setting up GitHub releases, generating changelogs from commits, using changelogithub, or configuring v* tag triggers and contents:write permissions.

Use this Skill: https://skilld.dev/gh/jd-solanki/ai/automate-commit-based-gh-release-changelog

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈103 tokens for metadata: the name and description. ≈364 when used: this file.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

This Skill turns off automatic use in Claude Code. Its description stays out of the automatic Skill list by default.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Automate Commit-Based GitHub Release Changelog

Uses changelogithub to read Conventional Commits between tags and create (or update) a GitHub release with a formatted changelog.

Workflow setup

Trigger and permissions

on:
  push:
    tags:
      - 'v*'

permissions:
  contents: write   # required — default contents:read cannot create releases

Changelog step

Run changelogithub as the last step — after npm publish (if any) — so a failed publish doesn't create a dangling GitHub release:

- uses: actions/checkout@v6
  with:
    fetch-depth: 0  # full tag history required; shallow clone produces empty changelog

- uses: pnpm/action-setup@v6

- name: Generate changelog
  run: pnpm dlx changelogithub
  env:
    GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

Conventional Commits

changelogithub groups entries by type and surfaces breaking changes at the top:

Commit prefix Changelog section
feat: Features
fix: Bug Fixes
chore: Chores
feat!: / chore!: Breaking Changes (top)

Commits that don't follow the convention are omitted from the changelog.

Preview before pushing a tag

pnpm dlx changelogithub --dry

Reference

  • For a complete end-to-end workflow combining npm publish + changelog generation, see automate-npm-release/EXAMPLE_WORKFLOW.yml if that skill is installed locally.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides standard instructions for automating GitHub releases and changelogs using well-known tools like actions/checkout and changelogithub. No security issues were detected.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 372cfb1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 2 months ago
disable-model-invocation
true

README badge

README badge for jd-solanki/ai/automate-commit-based-gh-release-changelog