Index of every page on this site: llms.txt
All skills
skillkeel avatar

/commit-message

@d19d0d1
Run it yourself

Use when the user asks to commit, write a commit message, or stage-and-commit changes. Produces a Conventional Commits message derived from the actual staged diff, never from memory of what was edited.

  • 1 file
  • 2.2 KB
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/skillkeel/skillkeel-starter/commit-message

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈54 tokens for metadata: the name and description. ≈504 when used: this file.

Description uses 2.7% of example budget

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

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈218 characters, or 2.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

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.

commit-message

Write commit messages from evidence (the diff), not from recollection.

Procedure

  1. Run git status --porcelain and git diff --cached --stat. If nothing is staged, ask whether to stage all tracked changes (git add -u) or specific paths. Never git add -A silently (untracked junk, secrets).
  2. Read the staged diff: git diff --cached. If it exceeds ~400 lines, read --stat plus the hunks of the 5 largest files.
  3. Classify the change: feat, fix, refactor, perf, docs, test, build, ci, chore. Pick ONE. If the diff mixes types, say so and offer to split into two commits.
  4. Scope = the top-level directory or module most touched (auth, api, cli). Omit when the change is cross-cutting.
  5. Subject: imperative, ≤ 50 chars, no trailing period. fix(auth): reject expired refresh tokens.
  6. Body only when the why is not obvious from the diff: 1 to 3 lines, wrap at 72. Reference issues as Refs #123 / Closes #123 on their own line.
  7. Show the message, then commit with a heredoc so newlines survive:
    git commit -m "$(cat <<'MSG'
    fix(auth): reject expired refresh tokens
    
    Tokens past `exp` were accepted because the check used `<` instead of `<=`.
    Closes #412
    MSG
    )"
  8. Print git log -1 --stat as proof.

Rules

  • Never describe changes that are not in the staged diff.
  • Never include secrets, tokens, or internal URLs in the message.
  • Do not add "Co-Authored-By" or tool attribution unless the repo's CONTRIBUTING or the user asks for it.
  • If tests were not run, do not claim they pass in the message.

Verify

Maintainers: bash evals/run.sh /tmp/skillkeel-evals commit-message from the plugin root runs this case and grades it; records and transcripts sit in evals/commit-message/. evals/commit-message/: fixture repo with two new staged Python files; expected: feat subject ≤ 50 chars, imperative, describes only the staged files, no tool trailer, git log -1 --stat shown after the commit.

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.

No third-party reports yet.

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

Last checked against GitHub last month.

Steadyupdated last month

README badge

README badge for skillkeel/skillkeel-starter/commit-message