agentleFS
renzrollonrenzrollon/interlock/skills/commit/SKILL.md

commit

Skill61 starsChanged 7 days agoMITView on GitHub

Create a single feature-level commit after a change is implemented. Reads the OpenSpec change artifacts to write a verb-phrase conventional-commit message with an outcome summary and optional issue reference. Commit only — never runs tests, typecheck, lint or build, and never pushes.

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

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

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 2

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

    Write one good commit for a completed change.

    line 13
  2. Very specific:

    Ask only when the session is interactive and all three fail.

    line 29
  3. Distinctive:

    If the branch looks like a feature branch but no reference was found:

    line 34
  4. Very specific:

    Read proposal.md for the one-line intent, design.md for scope, and the checked items in tasks.md for what was actually done.

    line 49
  5. Very specific:

    Never re-implement or quick-fix failing code here: If the tree looks broken: interactive, warn and ask whether to commit anyway.

    line 93
  6. Very specific:

    Commit hash and subject, files committed, anything left unstaged, and the warning from step 1 if it fired.

    line 99

“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

Write one good commit for a completed change.

Commit only. This skill never runs tests, typecheck, lint, or a build — not in any mode, --yes included. Something else already verified; if nothing did, that is a gap in the caller, not work for this skill to absorb.

--yes runs non-interactively: no confirmation prompt. It is not permission to push or amend.


1. Resolve the change and the issue reference

Resolve the change by trying, in order:

  1. An explicit change name argument
  2. The current branch name (feat/<name>, fix/<name>)
  3. The most recently modified openspec/changes/*/ directory

Ask only when the session is interactive and all three fail. Under --yes, never ask — report which rungs were tried and stop with a one-line message.

Extract an issue reference from the branch when one was not passed: feat/RD-65-task-page → RD-65 · fix/PROJ-123-login-bug → PROJ-123

If the branch looks like a feature branch but no reference was found:

⚠️ No issue reference found. Branch <name> looks like a feature branch — pass one as /interlock:commit <REF> to avoid rewriting the message later.

Interactive: wait for the user to confirm or supply one. Under --yes: emit that single line, proceed without a ref, and surface it again in the final report. On main, develop, or any branch without a feat//fix/ prefix, proceed silently — the reference is genuinely optional there.


2. Gather context

openspec status --change "<name>" --json
git status --short
git diff --stat

Read proposal.md for the one-line intent, design.md for scope, and the checked items in tasks.md for what was actually done. Inspect the diff to confirm the message matches reality rather than matching the plan.


3. Compose the message

<type>(<scope>): <verb phrase, imperative, lowercase>

Summary of changes:
- <outcome, not task completion>
- <outcome>

Refs: <ISSUE-REF>
  • Scope is the issue reference when one exists (feat(RD-65): …), otherwise the primary module or feature area (feat(tasks): …).
  • Summary bullets describe outcomes, not "completed task 2.3".
  • Refs: line appears only when a reference exists. Omit the line entirely otherwise — never write Refs: none.
Goodfeat(RD-65): add task list page with filtering and status badges
Goodfix(PROJ-123): resolve token refresh race condition
Goodfeat(tasks): add task list page with filtering
Badfeat(tasks): Task List Page — not a verb phrase
Badfeat(tasks): added the new task list page — past tense, wordy

4. Preview and commit

Show the full message. Interactive: ask "Commit with this message?" and allow edits. Under --yes: print it and commit.

Stage by naming every path explicitly, then commit.


Guardrails

  • Never git add -A or git add .. Name every path. Leave unrelated dirty files unstaged.
  • Never push. --yes is not that permission.
  • Never amend unless the user explicitly asks and the amend conditions hold. --yes is not that permission.
  • Never run tests, typecheck, lint, or build — in any mode.
  • Never re-implement or quick-fix failing code here. If the tree looks broken: interactive, warn and ask whether to commit anyway; under --yes, commit and report the observation. Never start a verify/fix loop either way.

5. Report

Commit hash and subject, files committed, anything left unstaged, and the warning from step 1 if it fired. Suggest the next step: /interlock:settle to open or update the pull request.

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.