generate-commit-message

A procedure that creates one signed Git commit message following the Conventional Commits format from changes already staged in Git. Staged changes are the edits selected for the next commit.

In plain words
What is it for?
Use it after explicitly asking to commit, when the intended changes are already staged and the current branch is permitted.
Why use it?
It gives the staged work a consistent message and prevents accidental staging, unrelated edits, or history changes.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/anchildress1/awesome-github-copilot/generate-commit-message
Any agent
npx skills add anchildress1/awesome-github-copilot --skill generate-commit-message
Clone the repo
git clone --depth 1 https://github.com/anchildress1/awesome-github-copilot

Made for: Claude Code, Codex.

Per session 158 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,940 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00158 $0.01940
Opus 5 $0.00079 $0.00970
Sonnet 5 $0.00032 $0.00388
Haiku 4.5 $0.00016 $0.00194

Measured 2d ago against content hash 4cfed2f942c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

generate-commit-message scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/generate-commit-message/SKILL.md · 201 lines

How it starts

The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Produce exactly one Conventional Commits v1.0.0 message from the diff, then commit it signed. The commit is the deliverable — no draft file, no staging, no push.

Boundaries

The only repo-mutating command permitted is git commit -S. Everything else is off-limits:

Never Why
git add / stage anything Commit scope is the user's decision, already expressed by what's staged
git push, rebase, reset, commit --amend History mutation isn't this skill's job
--no-verify, --no-gpg-sign Hooks and signing must run
Edit source, docs, or config No formatters, lint fixes, refactors, or test runs
Commit on main/master Unless the user directed it this turn
Omit the AI-attribution trailer A message without it is a failed message

Abort conditions

Stop and report; do not work around:

  • No staged diff → nothing staged. Do not stage on the user's behalf.
  • On main/master without explicit authorization this turn.
  • Diff changed between derivation and commit (see step 5).

1. Resolve scope

Precedence, first match wins. Jira key regex [A-Z][A-Z0-9]+-\d+, matched case-insensitively, emitted uppercase:

  1. User-provided key (request or argument-hint)
  2. Branch name — git --no-pager rev-parse --abbrev-ref HEAD
  3. None — omit the scope

Never invent a keyword scope (core, api, docs) when no issue key exists. An absent scope is correct; a made-up one is noise. The diff informs type and subject, never scope.

2. Acquire diff

git --no-pager diff --cached

Empty → abort. There is no working-tree fallback: git commit records the index, so a message derived from unstaged edits would describe changes the commit doesn't contain — and the commit would fail anyway with nothing staged.

Derive everything from hunks only: chat history, prior commits, and memory are not evidence of what this diff changes.

3. Pick type

First match wins:

Signal Type
Public API removed, signature changed, config key dropped breaking — add ! and/or BREAKING CHANGE:
New user-visible capability feat
Defect repair, no new surface fix
Faster, same behavior perf
Restructure, same behavior refactor
Whitespace, formatting, semicolons style
Tests only test
Docs, comments, JSDoc/KDoc only docs
.github/workflows, .circleci, CI config ci
Build system, deps, packaging build
Reverts a prior commit revert
Maintenance, no production impact chore

Read the full file on GitHub · 201 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 201 lines · 158 tokens per session scan A 4cfed2f942c0

Subscribe to this mod's changes

generate-commit-message is a skill published in the GitHub repository anchildress1/awesome-github-copilot (65 stars, last pushed 24d ago), licensed MIT. It adds 158 tokens to every session and 1,940 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

mcp-server-dev

Use when the user asks to build an MCP server, create an MCP integration, wrap an API for AI agents, or expose tools via the Model Context Protocol. Guides through deployment model selection (remote HTTP, MCPB, local stdio), tool-design patterns, and framework choice before scaffolding code.

euxx/claude-skills-for-copilot · 65 tokens

conventions-improver

Audit and improve project conventions files (AGENTS.md, CLAUDE.md, GEMINI.md). Scans for all conventions files, evaluates quality against a scoring rubric, outputs a quality report, then makes targeted improvements with user approval. Use when asked to check, audit, update, or improve AGENTS.md or similar files.

euxx/claude-skills-for-copilot · 72 tokens

security-threat-model

Repository-grounded threat modeling that enumerates trust boundaries, assets, attacker capabilities, abuse paths, and mitigations, and writes a concise Markdown threat model. Trigger only when the user explicitly asks to threat model a codebase or path, enumerate threats/abuse paths, or perform AppSec threat modeling.…

euxx/claude-skills-for-copilot · 82 tokens

code-review

Multi-agent code review for local changes, files, or directories. Detects bugs, security issues, and conventions-file violations (AGENTS.md/CLAUDE.md/GEMINI.md).

euxx/claude-skills-for-copilot · 41 tokens

gh-address-comments

Fetch all review comments and threads on the current branch's open GitHub PR using the gh CLI, present a numbered summary, and address the ones the user selects.

euxx/claude-skills-for-copilot · 37 tokens

gh-fix-ci

Debug failing GitHub Actions CI checks on the current branch's PR using the gh CLI — inspect logs, summarize root cause, and propose a focused fix plan before implementing.

euxx/claude-skills-for-copilot · 39 tokens