agentleFS
edjchapmanedjchapman/claude-code-config/skills/commit/SKILL.md

commit

Skill8 starsChanged 19 days agoMITView on GitHub

Analyze staged changes and write a conventional commit message. Use when staged changes are ready to commit or a message needs wording.

188 other projects use a version of this.

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

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 5

    Distinctive

    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
  1. Distinctive:

    If provided, use as a hint for the commit message or scope

    line 13
  2. Very specific:

    Read Jira config from the project's CLAUDE.md if present (look for a ## Jira section with Base URL and Ticket Pattern).

    line 19
  3. Distinctive:

    Keep first line under 72 characters

    line 82
  4. Very specific:

    Ticket reference: If ticket found and not --no-ticket, add on separate line:

    line 85
  5. Distinctive:

    Ask if they want to proceed with the commit

    line 92
  6. Distinctive:

    Use one of the suggestions

    line 98
  7. Distinctive:

    Do NOT actually run git commit unless explicitly asked.

    line 102

“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

Analyze my staged changes and help me write a good commit message.

Arguments

$ARGUMENTS

  • If provided, use as a hint for the commit message or scope
  • --no-ticket: Skip Jira ticket extraction and linking
  • Examples: /commit auth changes, /commit fix typo, /commit --no-ticket

Jira Configuration

Read Jira config from the project's CLAUDE.md if present (look for a ## Jira section with Base URL and Ticket Pattern). If absent, skip linking and use a bare ticket reference.

  • Common ticket patterns: [A-Z]+-\d+ (e.g. ABC-123, PROJ-456)

Steps

  1. Check staged changes:

    git diff --cached --stat
    git diff --cached
  2. Analyze the changes:

    • What files were modified?
    • What is the nature of the change? (feature, fix, refactor, docs, test, chore)
    • What is the scope/impact?
  3. Review recent commit style:

    git log --oneline -10
  4. Extract Jira ticket from branch name (skip if --no-ticket):

    git branch --show-current

    Extract ticket ID from branch name patterns:

    • feature/BIL-123-description → BIL-123
    • fix/BIL-456-bug-fix → BIL-456
    • BIL-789/some-feature → BIL-789
    • Common patterns: [A-Z]+-[0-9]+ (e.g., ABC-123, PROJ-456)

    If a ticket ID is found:

    • Include ticket reference in commit message
  5. Generate commit message following conventional commits format:

    <type>(<scope>): <description>
    
    - bullet point explaining a change
    - another bullet point if needed
    
    Refs: BIL-123

    Types: feat, fix, docs, style, refactor, test, chore, ci, perf

    Guidelines:

    • First line: type(scope): description
    • Type should be lowercase
    • Scope is the area/module affected (e.g., auth, api, ui)
    • Description should be concise, imperative mood, no period
    • Keep first line under 72 characters
    • Blank line after the first line
    • Bullet points describe specific changes made
    • Ticket reference: If ticket found and not --no-ticket, add on separate line:
      • Format: Refs: TICKET-ID or Fixes: TICKET-ID (for bug fixes)
      • Include the full URL only if a project CLAUDE.md Jira section provides a base URL: Refs: TICKET-ID (<base_url>/TICKET-ID)
  6. Present options:
    • Provide 2-3 commit message options if the changes are ambiguous
    • Ask if they want to proceed with the commit

Output

Present the suggested commit message(s) and ask if the user wants to:

  • Use one of the suggestions
  • Modify a suggestion
  • Provide their own message

Do NOT actually run git commit unless explicitly asked.

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.

Reviews can't be read right now.

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.