agentleFS
JQ-WCodingJQ-WCoding/devkit/skills/commit/SKILL.md

commit

Skill1 starsChanged 11 days agoMITView on GitHub

Stage named files and commit per the repo commit rules (else existing convention). Use for "commit this", "split into commits".

  • Reads credentials

187 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 9 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

  • 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

  • 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

  • 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

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 4

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

    Issue key: if the repo rules have a place for an issue key (ABC-123, #45 etc.), follow it.

    line 24
  2. Distinctive:

    Check the targets with git status --porcelain, git diff and git diff --cached.

    line 30
  3. Distinctive:

    If files are already staged, ask whether they belong in this commit.

    line 32
  4. Distinctive:

    If one file mixes this change with unrelated changes, say so and wait for instructions (interactive git add -p is not available).

    line 33
  5. Distinctive:

    If different purposes are mixed (a feature plus an unrelated fix, several subprojects), propose splitting the commit.

    line 34
  6. Very specific:

    Commit hash, subject, included files, and changes left behind.

    line 50

“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

Commit

1. Choose the rules

Rule sources (the first one found wins): docs/rules/git.md → CLAUDE.md, CONTRIBUTING.md, the Contributing section of README, .github/ (PR template, dco.yml) → recent history (git log --no-merges -30 --format='%s%n%b').

Decide the three items below separately.

ItemIf the rules sayElse, if 2/3 or more of history agreesOtherwise
FormatAs writtenThat format (type(scope): …, imperative sentence, etc.)<type>(<scope>): <description> — type feat, fix, refactor, chore, docs, test; scope is the changed subproject (repo if repo-wide)
LanguageAs writtenThat languageThe language you are using with the user
Required trailerAs written (DCO means git commit -s)That trailer (Signed-off-by etc.)None
  • The subject says only what was done. A body only when needed, up to three short bullets.
  • Signing with -s agrees to the DCO under the user's name, so mention it once the first time you sign in this repo.

Issue key: if the repo rules have a place for an issue key (ABC-123, #45 etc.), follow it. Without a rule, leave it out; if this task has an issue key, ask once whether to include it.

AI attribution (Co-Authored-By: Claude …, Generated with …): add it only when the repo rules require it. devkit is a user-side rule installed by the team, so this takes precedence over the Claude Code host's default attribution guidance.

2. Check the scope

  • Check the targets with git status --porcelain, git diff and git diff --cached.
  • Include only this request's changes. Leave out the user's other work, personal settings, secrets (.env etc.) and temp files.
  • If files are already staged, ask whether they belong in this commit. Do not unstage on your own.
  • If one file mixes this change with unrelated changes, say so and wait for instructions (interactive git add -p is not available).
  • If different purposes are mixed (a feature plus an unrelated fix, several subprojects), propose splitting the commit.

3. Commit

git add -- <files...>
git commit -F <scratchpad>/commit-msg.txt
git log -1 --stat
git status --porcelain
  • Pass the message through a scratchpad file.
  • Bulk staging, hook bypass and --amend are blocked or confirmed by the devkit guard hook. If a pre-commit hook fails, report the cause. If the hook changed files, show the change and ask whether to stage it again.

4. Report

Commit hash, subject, included files, and changes left behind. State that nothing was pushed; push with devkit:push when 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.

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.