agentleFS
Hey-DigaHey-Diga/dotclaude/skills/commit/SKILL.md

commit

Skill17 starsChanged 9 months agoMITView on GitHub

Create git commits from current changes using Conventional Commits format. Use when ready to commit staged or unstaged changes.

188 other projects use a version of this, 5 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use validate-plan, act-on-feedback 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.
  • shawn-dumasSkill

    validate-plan

    Validate an orchestration plan after pre-flight certification. Runs adversarial review, deep review (verify prompt data against codebase), and PoC gate for risky approaches. Auto-invoked by orchestrate-* skills at Step 8.

    Also in 5 projects that use this

  • 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 3 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

  • 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 3 projects that use this

  • mitsuhikoSkill

    oebb-scotty

    Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.

    Also in 3 projects that use this

  • mitsuhikoSkill

    pi-share

    Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. 0 are common, 13 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run git status to see current changes

    line 14
  2. Distinctive:

    Run git diff to understand the modifications

    line 15
  3. Distinctive:

    Consider whether changes should be one commit or multiple logical commits

    line 16
  4. Distinctive:

    Use imperative mood in commit messages

    line 21
  5. Very specific:

    Add files that you want to commit to the staging area using: git add "<file-path>".

    line 25
  6. Very specific:

    If branch starts with hey- → Linear issue (format: HEY-123)

    line 32
  7. Very specific:

    Follow Conventional Commits format: <type>[optional scope]: <description> <issue-ref>

    line 34
  8. Distinctive:

    Add issue reference at the end to create a link

    line 37
  9. Distinctive:

    NEVER add "Generated with Claude Code" or similar AI attribution

    line 43
  10. Very specific:

    Create the commit using: git commit -m "FORMATTED_MESSAGE"

    line 46
  11. Distinctive:

    If changes should be committed separately, repeat steps 2-4 for each change.

    line 50
  12. Distinctive:

    If changes should be committed in the same commit, repeat steps 2-4 for each change.

    line 51
  13. Very specific:

    If there are no changes, exit with echo "No changes to commit"

    line 53
  14. Very specific:

    Always follow Conventional Commits format: <type>[optional scope]: <description> <issue-ref>

    line 57
  15. Distinctive:

    Use imperative mood (e.g., "add" not "added" or "adds")

    line 59
  16. Distinctive:

    Do not include any "Generated with Claude" messages

    line 65
  17. Distinctive:

    Do not add "Co-Authored-By" lines

    line 66
  18. Distinctive:

    Write commit messages as if the user wrote them

    line 67
  19. Distinctive:

    Keep commits focused and atomic when possible

    line 72

“Common” is measured: kept by at least 6 in 10 of the 168 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

Commit Changes

You are tasked with creating git commits for the changes made during this session.

Process:

  1. Think about what changed:
    • Review the conversation history and understand what was accomplished
    • Run git status to see current changes
    • Run git diff to understand the modifications
    • Consider whether changes should be one commit or multiple logical commits
  2. Plan your commit(s):
    • Identify which files belong together
    • Draft clear, descriptive commit messages
    • Use imperative mood in commit messages
    • Focus on why the changes were made, not just what
  3. Add changes to the staging area:
    • Add files that you want to commit to the staging area using: git add "<file-path>". Always use the exact file path with quotes to avoid any errors.
    • Confirm the changes were added to the staging area with git status
  4. Create commit with proper format:
    • Get current branch name: git branch --show-current
    • Extract issue number from branch name (first part before the dash)
    • Detect issue tracker:
      • If branch starts with hey- → Linear issue (format: HEY-123)
      • Otherwise → GitHub issue (format: #123)
    • Follow Conventional Commits format: <type>[optional scope]: <description> <issue-ref>
    • Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore
    • Description: Lowercase, imperative mood, no period at end
    • Add issue reference at the end to create a link
    • Examples:
      • Linear: feat(dashboard): add comprehensive user dashboard component with profile management HEY-123
      • GitHub: fix(media): handle multiple file types and size limits in upload validation #45
      • Linear: refactor(auth): simplify token validation logic HEY-78
      • GitHub: docs(api): update authentication endpoint documentation #92
    • NEVER add "Generated with Claude Code" or similar AI attribution
  5. Execute commit:
    • Create the commit using: git commit -m "FORMATTED_MESSAGE"
    • Confirm the commit was successful with git status
  6. Repeat steps 3-5 for each change:
    • If changes should be committed separately, repeat steps 2-4 for each change.
    • If changes should be committed in the same commit, repeat steps 2-4 for each change.
    • Confirm there are no changes left to commit with git status
    • If there are no changes, exit with echo "No changes to commit"

Important:

  • NEVER add co-author information or Claude attribution
  • Always follow Conventional Commits format: <type>[optional scope]: <description> <issue-ref>
  • Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore
  • Use imperative mood (e.g., "add" not "added" or "adds")
  • Description should be lowercase and descriptive
  • Issue reference format depends on tracker:
    • Linear issues (branch hey-X): Use HEY-123 format
    • GitHub issues: Use #123 format
  • Commits should be authored solely by the user
  • Do not include any "Generated with Claude" messages
  • Do not add "Co-Authored-By" lines
  • Write commit messages as if the user wrote them

Remember:

  • You have the full context of what was done in this session
  • Group related changes together
  • Keep commits focused and atomic when possible
  • The user trusts your judgment - they asked you to commit

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.