agentleFS
epamepam/ketcher/.github/skills/commit/SKILL.md

commit

Skill951 starsChanged 6 days agoApache-2.0View on GitHub

Stage task changes for user review, then commit them in Ketcher using the canonical issue-derived title after approval. Use when the user invokes /commit or asks to stage and commit current work.

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

  • 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

  • thoughtbotSkill

    implement-with-tdd

    Implement a SPEC, plan, or feature outside-in, with TDD.

    Also in 3 projects that use this

  • thoughtbotSkill

    multi-lens-review

    Review a change for defects, then against its spec, its codebase's conventions, the domains trying to emerge from it, and whatever still depends on what it replaced.

    Also in 3 projects that use this

  • +1 more from thoughtbot

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 166 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this exact format for both the commit subject and PR title:

    line 15
  2. Distinctive:

    Run git status --short --branch and inspect both staged and unstaged diffs, including untracked files relevant to the task.

    line 23
  3. Distinctive:

    If the staged index contains unrelated changes, or file-level staging would include unrelated edits within a mixed file, pause and ask the …

    line 25
  4. Distinctive:

    Wait for explicit user approval.

    line 29
  5. Very specific:

    After approval, create the local commit with the exact title as its subject: git commit -m "#<task number> – <canonical issue title>".

    line 30
  6. Distinctive:

    Do not push, amend, or rewrite history.

    line 31

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

Stage, Review, and Commit Task Changes

Stage only the changes for the current task, ask the user to review the staged diff, and commit only after they explicitly approve. The commit subject must also be the exact PR title format used by this repository.

Title Rule

Use this exact format for both the commit subject and PR title:

#<task number> – <canonical issue title>

Get the task number and canonical title from the issue URL or number supplied by the user or current conversation. If only a number is available and GitHub CLI is installed and authenticated, retrieve the title with gh issue view <number> --json title --jq .title. Do not guess or paraphrase the issue title. If the issue number or canonical title cannot be determined, ask the user before staging or committing.

Procedure

  1. Run git status --short --branch and inspect both staged and unstaged diffs, including untracked files relevant to the task.
  2. Identify which changed files and hunks belong to the current task. Preserve all pre-existing user changes. Do not stage unrelated files or use git add -A as a shortcut.
  3. If the staged index contains unrelated changes, or file-level staging would include unrelated edits within a mixed file, pause and ask the user what to include. Do not reset or discard any changes.
  4. Resolve the issue number and canonical issue title, then construct the exact title #<task number> – <canonical issue title>.
  5. Stage the task-related paths with git add -- <paths>. Review git diff --cached and confirm it contains only the intended changes.
  6. Show the user the staged paths and a concise summary of git diff --cached, and ask them to review the staged changes. Do not commit yet.
  7. Wait for explicit user approval. If the user requests changes, make only the requested changes, stage them, review the updated cached diff, and ask for approval again. Do not commit while approval is pending or ambiguous.
  8. After approval, create the local commit with the exact title as its subject: git commit -m "#<task number> – <canonical issue title>". Do not add a body unless the user asks for one.
  9. Do not push, amend, or rewrite history. If a hook blocks the commit, report the failure and do not bypass the hook.
  10. Report the commit hash, exact subject, and committed paths. State that the same subject is the PR title to use.

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.