agentleFS
cyberkaidacyberkaida/reverse-engineering-assistant/.claude/skills/commit/SKILL.md

commit

Skill981 starsChanged 13 months agoApache-2.0View on GitHub

Use when writing a git commit message in ReVa, committing staged changes, squashing or rewording commits during a rebase, or cleaning up a branch's history before it lands on main.

186 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

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

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Every commit compiles so bisect works.

    line 96
  2. Very specific:

    Read the whole branch diff (git diff origin/main HEAD --stat, then per file) and list the features it adds.

    line 107
  3. Very specific:

    Write a todo where each group is one pick followed by fixups, in order of the group's first commit, and an exec git commit --amend -F …

    line 112
  4. Very specific:

    Check the result: git diff <backup> HEAD shows only the upstream changes plus any deliberate cleanups, every commit compiles (git rebase -x …

    line 116
  5. Distinctive:

    Never force-push main without the maintainer saying so.

    line 120

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

Committing in ReVa

ReVa commit messages follow the maintainer's own style, taken from the hand-written history (git log --until=2025-05-01 --author=カイダ). Commits read like short notes from a person, not like a changelog generator.

The message

A message is a subject line, and for anything not obvious from the subject, a blank line and a short prose body.

Subject

  • Imperative, sentence case, no trailing period: Add cross reference tool
  • Starts with a plain verb: Add, Fix, Remove, Refactor, Move, Allow, Make, Clean, Update, Switch, Improve, Bump, Rewrite, Let, Handle, Ignore
  • Says what changed for the user of ReVa or the code, in everyday words
  • Usually 30 to 60 characters; never over 72
  • One idea. Two closely related changes may share a subject with a comma (Refactor options, add auto analysis); three or more means split the commit

Body (optional)

  • One to four sentences of plain prose, wrapped at about 70 columns
  • Explains why, or what was wrong before, or what now works: "We returned updated addresses when we should not have." "Now you can just run Ghidra, then open a terminal and run reva-chat"
  • Speaks as "we" about the code and "now" for the new behaviour
  • An issue reference goes on its own line: Fixes #80

Examples from the history

Fix bug where comments are always at the top of functions

We returned updated addresses when we should not have.
Move the connection files to the home directory

The tempfile in java and python was different.
Remove BinaryNinja support

BinaryNinja support will be rewritten. Remove it for now as it is
broken.
Add CI for Windows and macOS

Fixes #80

Subjects with no body: Add data type tool, Ignore .worktrees directory, Fix template for 12.1.3 support, Pin langgraph to version 0.2.3.

Rewriting generated-style messages

Generated styleReVa style
feat(decompiler): decompilation cache keyed on program modification numberCache decompilations per program modification number
fix: retain programs after checkinKeep programs open after check-in
tools: a missing programPath means the only open program; check-in with no changes succeedssplit into Make programPath optional when one program is open and Allow check-in with no changes
fix: roll back missing bookmark removal transactionsFix bookmark removal leaving a transaction open
20 fix(decompiler):/test(decompiler): commits on one feature branchone Cache decompilations ... commit

The left column's habits, each replaced by the right column's:

  • type(scope): prefixes become a leading verb
  • Semicolon-joined change lists become separate commits
  • Present-tense descriptions ("cache put is state-checked") become imperatives
  • Internal work names (trial3, plan5, workflow-skills, superpowers, "the contract", "ruling") become what the change does
  • Bullet-point bodies become a sentence or two of prose

Commit content

  • One commit is one feature or one fix a reviewer would read on its own. A branch of dozens of small commits lands as a handful. A test, doc, review fix or follow-up for code in the same unpushed series is squashed into the commit that introduced that code.
  • Docs say how the code works now. Notes about earlier designs, review rulings, dates or "no longer" wording are rewritten or dropped.
  • A feature that went through several designs on a branch lands as its final design. Intermediate designs that were later replaced are folded away, not kept as history.
  • Every commit compiles so bisect works.
  • Planning notes, scratch files, and local IDE files (.classpath, .project, .settings/, docs/superpowers/) are not committed.
  • Binary fixtures under tests/fixtures/ go through git-lfs (see the root CLAUDE.md).
  • No Co-Authored-By or "Generated with" trailers.

Cleaning up a branch before it lands

  1. Back up first: git branch backup/<name>-$(date +%Y%m%d).
  2. Rebase onto the latest origin/main, flattening merges.
  3. Read the whole branch diff (git diff origin/main HEAD --stat, then per file) and list the features it adds. Assign every commit to one feature; split a commit that serves two (edit, git reset HEAD^, stage each half). When one feature's later fixes build on another feature's code, merge the two groups rather than fight the conflicts.
  4. Write a todo where each group is one pick followed by fixups, in order of the group's first commit, and an exec git commit --amend -F <message file> after each group. Set GIT_SEQUENCE_EDITOR to a command that writes it, since -i prompts are not available to agents.
  5. Check the result: git diff <backup> HEAD shows only the upstream changes plus any deliberate cleanups, every commit compiles (git rebase -x 'gradle -q compileJava compileTestJava compileIntegrationTestJava' origin/main), and the full test suite passes at the tip.
  6. Never force-push main without the maintainer saying so.

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.