AGENT SKILL

automate-commit-based-gh-release-changelog

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.

License 许可
MIT
所属仓库
jd-solanki/airig
最近更新
2026-07-11
Stars
★ 2
Forks
0

01 前言 Front Matter

name
automate-commit-based-gh-release-changelog
description
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.
disable-model-invocation
true

03 SKILL.md 正文

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

- name: Generate changelog
  run: npx 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

npx 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.

04 同仓库更多 Skills

jd-solanki
jd-solanki/airig

writing-great-skills

Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.

★ 2
jd-solanki
jd-solanki/airig

to-prd

Turn the current conversation context into a PRD and publish it to the project issue tracker. Use when user wants to create a PRD from the current context.

★ 2
jd-solanki
jd-solanki/airig

to-issues

Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices. Use when user wants to convert a plan into issues, create implementation tickets, or break down work into issues.

★ 2
jd-solanki
jd-solanki/airig

tdd

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

★ 2
jd-solanki
jd-solanki/airig

review

Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/PRD asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".

★ 2
jd-solanki
jd-solanki/airig

nostics

Structured diagnostic code library for JavaScript/TypeScript. Turns errors and other conditions into typed, machine-readable `Diagnostic` instances with stable codes, docs URLs, and actionable fields. Use this skill whenever the project imports `nostics`, or works with `defineDiagnostics`/`defineProdDiagnostics`, the `Diagnostic` class, diagnostic code registries, or structured error handling. Also covers reporters (`createConsoleReporter`, `createFetchReporter` from nostics/reporters/fetch, `createFileReporter` from nostics/reporters/node, `createDevReporter` from nostics/reporters/dev), formatters (`formatDiagnostic`, `ansiFormatter`, `jsonFormatter`), and Vite plugins (`nosticsStrip` from @nostics/unplugin/strip-transform, `nosticsCollector` from @nostics/unplugin/dev-server-collector). Also use when migrating a library's existing `console.warn`/`console.error`/`warn()` helpers or thrown `Error`s to diagnostics: follow `references/migration.md`.

★ 2