agentleFS
Catalyst-Forge-LLCCatalyst-Forge-LLC/temper-pass/.cursor/rules/git-user-commits.mdc

temper-pass / rules

Cursor rule0 starsChanged 47 days agoMITView on GitHub

Commit at end of every request when repo changed; descriptive messages; push still explicit

  • Commits and pushes

The file

We split this git-user-commits.mdc into the rules it gives an agent

8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    If there is nothing to commit for that request (no diff, or read-only session), say so briefly and skip.

    line 20
  2. Distinctive:

    If other unrelated local changes exist, stage only what this request touched.

    line 21
  3. Distinctive:

    Commit messages: Use a clear, descriptive subject and, for anything beyond a one-line typo fix, a multi-line body grounded in git diff …

    line 27
  4. Distinctive:

    Do not: run git push, merge/rebase, or publish flows unless the user explicitly asks.

    line 33
  5. Distinctive:

    Read-only git is always fine: git status, git diff, git log, git show, blame, etc.

    line 34
  6. Distinctive:

    If the user says not to commit, to leave changes uncommitted, or is mid-experiment, do not commit—summarize only.

    line 38
  7. Very specific:

    When the user asks for a specific commit message style, follow .cursor/rules/commit-messages.mdc.

    line 40
  8. Distinctive:

    If another rule says “never commit unless asked,” this template rule wins for repos that adopt it unless the user overrides in the current …

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule files we read have a rule of the same kind, not the same words. “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
git-user-commits.mdc
---
description: Commit at end of every request when repo changed; descriptive messages; push still explicit
alwaysApply: true
---

# Git commits and pushes

## Permission (read this first)

**Running `git commit` is allowed and expected** whenever this rule applies. ForgeTrail **ship defaults** assume agents **do not** wait for the user to say “commit,” and **do not** leave completed request work unstaged by default. Individual app repos may tighten or override this in their own `.cursor/rules/` when they explicitly choose a different workflow.

What stays restricted: **`git push`** (and merge/rebase/publish) still requires an **explicit** user request. If the user asks to **leave the tree dirty**, skip commits for that work.

## End of each request (default)

When you **finish responding to a user request** and your work **changed tracked files** in this repo for that request, **before or as part of your wrap-up summary** you must **`git add`** the paths that belong to that request (only those paths—never unrelated edits) and **`git commit`** with a **good message** grounded in **`git diff --staged`** (see `.cursor/rules/commit-messages.mdc`).

The user should **never** have to ask you to commit. Treat “here is what I did” and “it is saved in git” as **one default outcome**.

- If there is **nothing to commit** for that request (no diff, or read-only session), say so briefly and skip.
- If other **unrelated** local changes exist, **stage only** what this request touched; do not batch strangers into the commit without an explicit ask. If you cannot commit your work without dragging in others, say so in the summary.

## After substantive work (also default)

**Substantive** work (features, fixes, multi-file changes, template/spec updates, lint repair) always falls under the block above. Single-file or small edits do too—the bar is **“did this request modify the repo?”**, not “was it big enough?”

**Commit messages:** Use a **clear, descriptive subject** and, for anything beyond a one-line typo fix, a **multi-line body** grounded in **`git diff --staged`** — not generic fluff.

- **Do not** invent scope in the message—reconcile the summary with the staged diff.

## Push and merge

- **Do not** run `git push`, merge/rebase, or publish flows unless the user **explicitly** asks.
- Read-only git is always fine: `git status`, `git diff`, `git log`, `git show`, blame, etc.

## When the user opts out

If the user says **not** to commit, to **leave changes uncommitted**, or is mid-experiment, **do not** commit—summarize only.

When the user asks for a specific commit message style, follow `.cursor/rules/commit-messages.mdc`.

## Cursor user rules

If another rule says “never commit unless asked,” **this template rule wins for repos that adopt it** unless the user overrides in the current conversation.

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.