agentleFS
yagizdoyagizdo/quiver/skills/commit/SKILL.md

commit

Skill16 starsChanged 57 days agoMITView on GitHub

Generate a Conventional Commits message, commit, and optionally push to remote.

  • Commits and pushes

187 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

9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 5

    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
  1. Very specific:

    If any gather-context block above returned NO_GIT, this directory is not a git repository.

    line 32
  2. Distinctive:

    No changes: If git status is empty → tell the user and stop.

    line 40
  3. Very specific:

    Nothing staged: If git diff --cached is empty but git status shows changes → tell the user to stage files and run /quiver:commit again, …

    line 41
  4. Very specific:

    If $ARGUMENTS contains "push" (e.g., /quiver:commit --push), skip the AskUserQuestion step entirely.

    line 86
  5. Distinctive:

    Commit using a HEREDOC:

    line 118
  6. Distinctive:

    Verify: git log --oneline -1 and git status --short.

    line 125
  7. Distinctive:

    Verify push exit code is 0.

    line 131
  8. Distinctive:

    On edit: Ask what to change, revise, re-present, and ask again.

    line 139
  9. Very specific:

    If git commit fails, show the error verbatim and suggest the user fix the issue and re-run /quiver:commit.

    line 151

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

Gather Git Context

!`git rev-parse --is-inside-work-tree 2>/dev/null || echo "NO_GIT"`
!`git status --short 2>/dev/null || echo "NO_GIT"`
!`git diff --cached 2>/dev/null || echo "NO_GIT"`
!`git log --oneline -10 2>/dev/null || echo "NO_COMMITS"`

Instructions

Step 0 -- Git Availability

If any gather-context block above returned NO_GIT, this directory is not a git repository. Print: > No git repository detected. /commit requires a git repo. Stop here.


Silently determine which case applies — do not show the case label or decision logic to the user:

  • No changes: If git status is empty → tell the user and stop.
  • Nothing staged: If git diff --cached is empty but git status shows changes → tell the user to stage files and run /quiver:commit again, then stop.
  • Staged changes exist: Proceed silently to Commit Message Generation.

Commit Message Generation

Analyze git diff --cached and the recent log. Generate a Conventional Commits message following these rules:

Type — Select one based on primary intent:

TypeWhen to Use
featNew feature or capability visible to users
fixBug fix
docsDocumentation only (README, comments, JSDoc)
styleFormatting, whitespace, semicolons — no logic change
refactorCode restructuring with no behavior change
perfPerformance improvement
testAdding or fixing tests
buildBuild system or external dependencies (npm, Makefile)
ciCI/CD configuration (GitHub Actions, CircleCI)
choreMaintenance tasks (version bumps, tooling config)
revertReverting a previous commit

Scope — From file paths: single directory → its name, single file → domain name, cross-cutting → omit.

Breaking changes — If the change removes/renames public APIs, changes signatures, alters data formats, or removes CLI flags/commands, add ! after type/scope and a BREAKING CHANGE: footer.

Subject line — Imperative mood, lowercase after colon, no period, ≤72 chars total, describe what not how.

Body — Almost never. Only for breaking changes or when the subject alone would be misleading. Wrap at 72 chars. Never include file lists — git log --stat shows this.

Footers — BREAKING CHANGE: if applicable. Refs: #issue if relevant.

Include a body or footers only for breaking changes or multi-type changes where the subject alone is genuinely ambiguous. Default to subject-only. Don't add Co-authored-by or attribution footers unless explicitly requested.


Output

Important: The user must see the full commit message before answering the prompt. Print it to the chat stream and keep the AskUserQuestion question itself to one short line -- see Default (no flag) below.

Flag: --push

If $ARGUMENTS contains "push" (e.g., /quiver:commit --push), skip the AskUserQuestion step entirely. Instead, show the generated commit message, then immediately execute Commit & Push (commit + push to remote) without prompting.

Default (no flag)

Two steps, both mandatory: print the message, then ask. Do not paste the commit message into the AskUserQuestion question field -- that field is rendered as a single truncated line by some Claude Code surfaces, so a multi-line message is cut off or dropped entirely and the user is asked to approve something they cannot read.

Step 1 -- print the message as normal chat output, verbatim inside a fenced block, so the user sees exactly what git commit will receive:

{type}({scope}): {subject}

{body lines, if the message has a body}

Step 2 -- ask, and wait for the answer:

  • Question: "Commit this?" -- one short line. No newlines, no message text, no ANSI escape codes. AskUserQuestion renders the question in a TUI box that prints escape sequences literally instead of styling them.
  • Header: "Action"
  • Options:
    1. Commit — "Commit with this message"
    2. Commit & Push — "Commit and push to remote"
    3. Edit — "Revise the message"
    4. Cancel — "Abort without committing"

Printing the message is not approval. It is only the readable copy of what the prompt is about, and it exists because the prompt cannot display it. Never run git commit without an answer from this AskUserQuestion. The user asking for a commit in their message is not the answer either -- that is what put the skill on this step. --push is the only path that skips the prompt.


Commit Execution

On commit or commit & push:

  1. Commit using a HEREDOC:
    git commit -m "$(cat <<'EOF'
    {full commit message}
    EOF
    )"
  2. Verify: git log --oneline -1 and git status --short.

If commit & push, also:

  1. Detect branch: git branch --show-current
  2. Push: if git rev-parse --abbrev-ref @{upstream} 2>/dev/null succeeds → git push, otherwise → git push -u origin {branch}
  3. Verify push exit code is 0.

Output:

Committed: {short hash} {subject} Branch: {branch name} Pushed to: origin/{branch} (only if pushed)

On edit: Ask what to change, revise, re-present, and ask again.

On cancel:

Commit cancelled. Staged changes are intact.

Stop here.


Error Handling

If git commit fails, show the error verbatim and suggest the user fix the issue and re-run /quiver:commit. Never retry automatically or use --no-verify.

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.