Index of every page on this site: llms.txt
All skills
Run it yourself

Create clean, atomic git commits with Conventional Commit messages, and write PR descriptions and release notes from the actual diff. Use whenever the user says commit, "commit-in", "bikin commit", push, prepare a PR, write a PR description, changelog, or release notes.

Use this Skill: https://skilld.dev/gh/kiln-skills/kiln/smart-commit

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈71 tokens for metadata: the name and description. ≈618 when used: this file.

Description uses 3.6% 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 ≈285 characters, or 3.6%.

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.

Smart Commit

Safety rules (always)

  • Never commit secrets. Before committing, scan the staged diff for things like API_KEY=, sk-, -----BEGIN, password =, .env files. If found, stop and tell the user.
  • Never git push --force, reset --hard, or rewrite history unless the user explicitly asks.
  • Never commit without showing the user the plan first if there are >1 commits or unrelated changes.

1. Look at what changed

git status --short
git diff --stat
git diff            # and git diff --staged

Read the actual diff — messages are written from the code, not from file names.

2. Split into atomic commits

If the changes mix concerns (a feature + an unrelated fix + formatting), propose a split:

1. fix(auth): handle expired refresh token   → src/auth/refresh.ts
2. feat(profile): add avatar upload           → src/profile/*, tests
3. chore: format with prettier                → (formatting only)

Stage per commit with git add <paths> (or git add -p for partial files). If everything is one concern, one commit is fine.

3. Write the message (Conventional Commits)

<type>(<scope>): <imperative summary, ≤ 72 chars, no period>

<body: WHY the change was needed and anything non-obvious about HOW.
Wrap at 72. Skip the body for trivial changes.>

<footer: BREAKING CHANGE: ..., Closes #123>

Types: feat, fix, refactor, perf, test, docs, build, ci, chore, style, revert. Scope = the module/area (api, auth, ui, deps). Check git log --oneline -20 and follow the repo's existing style if it differs (language, scope format, emoji usage).

Good: fix(cart): prevent negative quantity when removing last item Bad: update files, fix bug, WIP

4. PR description (when asked)

Base it on git log main..HEAD and git diff main...HEAD:

## What and why
<problem and solution in 2–4 sentences>

## Changes
- <grouped by area>

## How to test
- [ ] <concrete steps a reviewer can follow>

## Notes
<risks, migrations, env vars, screenshots for UI, follow-ups>

If gh is available and the user wants it, gh pr create --title ... --body-file ....

5. Release notes (when asked)

Group commits since the last tag (git describe --tags --abbrev=0) into ✨ Features, 🐛 Fixes, ⚡ Performance, ⚠️ Breaking changes — written for users, not developers.

Write messages in English unless the repo history is in another language or the user asks otherwise.

Source: SKILL.md on GitHub

No rule matched.

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 alerts15d3 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill provides a helper for git workflows and PR management, including explicit safety rules to prevent secret exfiltration and destructive actions. It carries a minor vulnerability to indirect prompt injection from processing external text data such as code diffs and commit history.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

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

Last checked against GitHub 2 weeks ago.

Activeupdated 2 weeks ago

README badge

README badge for kiln-skills/kiln/smart-commit