agentleFS
JonatanRocha2JonatanRocha2/vegapunk/skills/en/semantic-commit/SKILL.md

semantic-commit

Skill0 starsChanged 3 months agoMITView on GitHub

Creates and validates semantic Git commit messages using Conventional Commits, based on the actual staged diff and repository history. Use for commit messages, semantic commits, conventional commits, changelog-friendly history, or preparing a requested commit. Do not commit or push unless the user explicitly asks.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Read repository instructions and inspect git status, the staged diff, the unstaged diff, and recent commit subjects.

    line 17
  2. Distinctive:

    If a commit was requested, verify which files are intended.

    line 18
  3. Distinctive:

    Write an imperative, concise subject with no trailing period.

    line 21
  4. Distinctive:

    Add a body only when the reason, behavior, migration, risk, or non-obvious trade-off needs explanation.

    line 22
  5. Distinctive:

    Add footers for breaking changes, issue references, co-authors, or repository-required metadata only when supported by evidence.

    line 23
  6. Very specific:

    Use ! and a BREAKING CHANGE: footer only for an incompatible public behavior, API, schema, protocol, configuration, or operational contract.

    line 49
  7. Very specific:

    Do not use feat for every code addition or fix for speculative cleanup.

    line 53
  8. Distinctive:

    Do not bundle generated files, formatting, or dependency changes unless they belong to the same atomic change.

    line 54
  9. Distinctive:

    Never bypass hooks, amend, force-push, or rewrite history without explicit instruction.

    line 55
  10. Distinctive:

    Never expose secrets from diffs in the commit message.

    line 56
  11. Distinctive:

    Run repository-required checks before committing when feasible, and report checks that were not run.

    line 57
  12. Distinctive:

    When only a message is requested, return the proposed message in a text block plus a one-line rationale if needed.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Semantic Commit

Describe the actual change precisely. Never invent scope, motivation, issue IDs, tests, or breaking changes.

Workflow

  1. Read repository instructions and inspect git status, the staged diff, the unstaged diff, and recent commit subjects.
  2. If a commit was requested, verify which files are intended. Do not stage unrelated changes or modifications made by someone else.
  3. Derive the primary user-visible or engineering intent from the staged diff, not from filenames alone.
  4. Select the narrowest valid type and an optional scope consistent with repository history.
  5. Write an imperative, concise subject with no trailing period. Keep it independently understandable.
  6. Add a body only when the reason, behavior, migration, risk, or non-obvious trade-off needs explanation.
  7. Add footers for breaking changes, issue references, co-authors, or repository-required metadata only when supported by evidence.
  8. Validate that the message describes all staged changes. Split unrelated changes into separate commits when explicitly authorized.

Conventional Commit Format

<type>[optional scope][!]: <description>

[optional body]

[optional footer(s)]

Common types:

  • feat: new user-facing capability.
  • fix: defect correction.
  • refactor: internal change without intended behavior change.
  • perf: measurable performance improvement.
  • test: test-only change.
  • docs: documentation-only change.
  • build: build system or dependency change.
  • ci: CI/CD configuration or workflow change.
  • chore: maintenance that fits no more specific type.
  • revert: reverts an earlier commit.

Use ! and a BREAKING CHANGE: footer only for an incompatible public behavior, API, schema, protocol, configuration, or operational contract.

Guardrails

  • Do not use feat for every code addition or fix for speculative cleanup.
  • Do not bundle generated files, formatting, or dependency changes unless they belong to the same atomic change.
  • Never bypass hooks, amend, force-push, or rewrite history without explicit instruction.
  • Never expose secrets from diffs in the commit message.
  • Run repository-required checks before committing when feasible, and report checks that were not run.

Output

When only a message is requested, return the proposed message in a text block plus a one-line rationale if needed. When a commit is explicitly requested, show the selected files, checks run, resulting commit hash and subject, and confirm that no push occurred unless requested.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.