agentleFS
jerelvelardejerelvelarde/chalk-skills/skills/commit/SKILL.md

commit

Skill8 starsChanged 9 months agoMITView on GitHub

Stage and commit changes using conventional commits — analyzes diffs, groups changes, and creates well-structured commit messages

  • Reads credentials

186 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use act-on-feedback, generate-run-commands and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 4 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 4 projects that use this

  • MindgamesSkill

    branch

    Use when a user asks to create a new local git branch and start issue work (for example, "create branch" or "start working on issue XYZ"). Use this for issue-based branch naming in the `type/scope-short-description` pattern and for always syncing local `main` from `origin/main` before creating the new branch, creating the local tracking `main` branch first when needed.

    Also in 9 projects that use this

  • decocmsSkill

    add-mcp-tools

    Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration

    Also in 3 projects that use this

  • thoughtbotSkill

    implement-with-tdd

    Implement a SPEC, plan, or feature outside-in, with TDD.

    Also in 3 projects that use this

  • thoughtbotSkill

    multi-lens-review

    Review a change for defects, then against its spec, its codebase's conventions, the domains trying to emerge from it, and whatever still depends on what it replaced.

    Also in 3 projects that use this

  • +1 more from thoughtbot

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 4

    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:

    If all changes are related → single commit

    line 29
  2. Distinctive:

    If changes span unrelated areas → suggest splitting into granular commits

    line 30
  3. Distinctive:

    Ask the user if unsure about grouping

    line 31
  4. Very specific:

    If the user provides a message via -m argument, use it as-is (still stage files appropriately)

    line 61
  5. Distinctive:

    Never use git add -A or git add .

    line 62
  6. Very specific:

    Never commit files that look like secrets (.env, credentials, API keys, tokens)

    line 63
  7. Very specific:

    If pre-commit hooks fail, fix the issue and create a NEW commit (never --amend unless explicitly asked)

    line 64
  8. Very specific:

    Never use --no-verify to skip hooks

    line 65
  9. Distinctive:

    Keep commit messages concise: subject line under 72 characters

    line 66
  10. Distinctive:

    Check recent git log to match the repo's existing commit style

    line 68

“Common” is measured: kept by at least 6 in 10 of the 165 edited versions of this file we could read. “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

Stage files and create commits following conventional commit standards. Analyzes the diff to determine the appropriate commit type, scope, and message. Supports granular commits (splitting unrelated changes into separate commits).

Workflow

  1. Check state — Run git status and git diff --stat to see all changes (staged + unstaged + untracked).
  2. Analyze changes — Read the diff to understand:
    • What files changed and in what areas
    • Whether changes are related or should be split into multiple commits
    • The nature of each change (new feature, bug fix, refactor, docs, test, chore)
  3. Determine commit strategy:
    • If all changes are related → single commit
    • If changes span unrelated areas → suggest splitting into granular commits
    • Ask the user if unsure about grouping
  4. Stage files — git add the relevant files for each commit. Stage specific files by name, not git add -A or git add ..
  5. Draft commit message — Follow conventional commit format:

    <type>(<scope>): <description>
    
    [optional body with more detail]

    Types:

    • feat — new feature
    • fix — bug fix
    • refactor — code restructure without behavior change
    • docs — documentation changes
    • test — adding or updating tests
    • chore — build, config, dependency changes
    • style — formatting, whitespace (no logic change)
    • perf — performance improvement

    Scope: the area of the codebase affected (e.g., auth, api, ui, canvas).

  6. Commit — Run git commit -m "<message>" using a HEREDOC for multi-line messages.
  7. Report — Show the commit hash and summary. If there are remaining uncommitted changes, note them.

Rules

  • If the user provides a message via -m argument, use it as-is (still stage files appropriately)
  • Never use git add -A or git add . — always stage specific files
  • Never commit files that look like secrets (.env, credentials, API keys, tokens)
  • If pre-commit hooks fail, fix the issue and create a NEW commit (never --amend unless explicitly asked)
  • Never use --no-verify to skip hooks
  • Keep commit messages concise: subject line under 72 characters
  • The body (if needed) should explain WHY, not WHAT (the diff shows what)
  • Check recent git log to match the repo's existing commit style
  • For granular commits, commit in logical order (e.g., refactor before feature)

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.