agentleFS
badrusiddiquebadrusiddique/enggenie-skill/skills/dev-commit/SKILL.md

dev-commit

Skill0 starsChanged 6 months agoMITView on GitHub

Use when creating commit messages - analyzes git diffs, proposes conventional commit messages with appropriate type, and waits for user approval before committing

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. codeaholicguy/ai-devkit★ 1.6ksame name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository14 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 16 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    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:

    Run these commands to understand what is being committed:

    line 18
  2. Distinctive:

    Read the full diff output.

    line 25
  3. Distinctive:

    If nothing is staged, tell the user: "No changes are staged.

    line 30
  4. Distinctive:

    Only use the following types:

    line 38
  5. Distinctive:

    One logical change per commit: If staged changes cover multiple unrelated things, suggest splitting them.

    line 64
  6. Distinctive:

    No AI attribution: Do not add any mention of AI assistance.

    line 66
  7. Distinctive:

    NEVER auto-commit: Wait for explicit user approval.

    line 78
  8. Distinctive:

    If the user wants to edit, incorporate their changes and re-present.

    line 80
  9. Distinctive:

    Only after user confirms:

    line 86
  10. Distinctive:

    Never commit unstaged changes: Only commit what is in the staging area.

    line 100
  11. Distinctive:

    Never commit secrets: Check staged files for .env, credentials, API keys, tokens.

    line 101
  12. Distinctive:

    When the user's request matches a shortcut pattern from this table, show them the relevant row and explain the cost before proposing a …

    line 107
  13. Distinctive:

    Why: Commit message generation is a lightweight task.

    line 132
  14. Distinctive:

    If no Jira ticket is referenced in the current conversation and the commit is for feature work (not a quick fix or chore), ask:

    line 142
  15. Distinctive:

    If the user provides one, read the ticket using MCP tools to get the ticket title, and use it to write a better "why" in the commit body.

    line 146
  16. Distinctive:

    Commit created (or cancelled).

    line 158

≈ “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

enggenie:dev-commit

Announce: "I'm using enggenie:dev-commit to create a commit message."

Overview

Analyze staged changes and propose a well-crafted commit message. The message explains WHY something changed, not just what changed. Every commit gets user approval before it lands.


Step 1: Analyze Staged Changes

Run these commands to understand what is being committed:

git status
git diff --staged

Read the full diff output. Understand:

  • Which files changed and why
  • Whether the changes are a new feature, bug fix, refactoring, documentation, test, or performance improvement
  • The relationship between changed files (are they part of one logical change?)

If nothing is staged, tell the user: "No changes are staged. Stage your changes with git add first."


Step 2: Propose Commit Message

Commit Types

Only use the following types:

TypeWhen to use
feat:New feature or capability
fix:Bug fix
refactor:Code restructuring without behavior change
docs:Documentation only
style:Formatting, whitespace, linting (no logic change)
test:Adding or updating tests
perf:Performance improvement
chore:Build, config, tooling, dependencies

Format

<type>: <concise_description>

<optional_body_explaining_why>

Rules

  • Present tense. "add feature" not "added feature"
  • Explain why, not what. The diff shows what changed. The message explains the motivation.
  • Subject line under 72 characters.
  • One logical change per commit. If staged changes cover multiple unrelated things, suggest splitting them.
  • No co-authored-by tags. The commit should look human.
  • No AI attribution. Do not add any mention of AI assistance.

Step 3: Present and Confirm

Show the user:

  1. Summary of staged changes - brief overview of what is staged
  2. Proposed commit message - the full message with type and body
  3. Ask for confirmation - "Commit with this message? (yes/edit/cancel)"

NEVER auto-commit. Wait for explicit user approval.

If the user wants to edit, incorporate their changes and re-present. If they cancel, do nothing.


Step 4: Commit

Only after user confirms:

git commit -m "<approved message>"

Report the result: commit hash, branch, and files committed.


Hard Rules

  1. Never commit without user approval. Present the message, wait for "yes."
  2. Never add co-authored-by or AI attribution. Commits must look human-written.
  3. Never commit unstaged changes. Only commit what is in the staging area.
  4. Never commit secrets. Check staged files for .env, credentials, API keys, tokens. Warn the user if detected.

Shortcut Tax

When the user's request matches a shortcut pattern from this table, show them the relevant row and explain the cost before proposing a proper alternative. Do not silently ignore shortcuts -- surface the cost explicitly.

ShortcutWhat it costs you
"Just commit it, I'll fix the message later"You won't. Commit history becomes unreadable. Future you wastes time deciphering cryptic messages.
"One big commit is fine"Can't bisect, can't revert cleanly, can't understand changes in review. Split by logical unit.
"The diff speaks for itself"Diffs show WHAT changed. Only messages explain WHY. Future debuggers need the why.
"I'll add the body later"Later never comes. Write the why now while context is fresh.
"Generic message is fine""fix stuff" tells nobody anything. 10 seconds to write a good message saves 10 minutes reading diffs.

Gut Check

  • Are you about to auto-commit? Stop. Show the message first.
  • Does the subject line exceed 72 characters? Shorten it.
  • Does the message say "what" but not "why"? Add the motivation.
  • Are there .env files or credentials staged? Warn immediately.
  • Are the staged changes one logical unit? If not, suggest splitting.

Recommended Model

Primary: haiku Why: Commit message generation is a lightweight task. Haiku is fast and sufficient.

Override: Use sonnet for complex commits spanning many files where understanding relationships matters.

This is a recommendation. Ask the user: "Confirm model selection or override?" Do not proceed until the user responds.


Jira Fallback

If no Jira ticket is referenced in the current conversation and the commit is for feature work (not a quick fix or chore), ask:

"Is there a Jira ticket for this work? I can include the ticket ID in the commit message."

If the user provides one, read the ticket using MCP tools to get the ticket title, and use it to write a better "why" in the commit body. If Jira MCP is not available, just use the ticket ID the user provides.

This is a soft fallback, not a blocking gate. If the user says no or skips it, proceed with the commit.


Entry Condition

None - can be invoked anytime there are staged changes.

Exit Action

Commit created (or cancelled). Resume previous workflow.

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.