22 lines
1.3 KiB
Markdown
22 lines
1.3 KiB
Markdown
---
|
||
description: Never git commit without explicit user instruction; user reviews before any commit
|
||
alwaysApply: true
|
||
---
|
||
|
||
# Commits and review (Neon Sprawl)
|
||
|
||
## No commits without explicit instruction
|
||
|
||
- Do **not** run **`git commit`** (or equivalent, e.g. committing via tools) unless the user **explicitly** asks—clear wording such as “commit this”, “make a commit”, or “commit with message …”.
|
||
- Phrases like “implement X”, “begin work”, or “open a PR” are **not** implicit permission to commit.
|
||
- **Default after edits:** leave changes **uncommitted** (working tree or staged only if the user asked to stage). Summarize what changed and where so the user can review in the Git / diff UI, then wait for commit instructions.
|
||
|
||
## Review before commit
|
||
|
||
- The user should **review** the diff before anything is committed. The agent’s job is to make the changes visible (uncommitted) and explain them; the user decides when to commit.
|
||
- If the user asks to commit, use a message that matches repo conventions; still follow [git workflow](git-workflow.md) (branch vs `main`, doc-only vs code).
|
||
|
||
## Scope
|
||
|
||
- Applies to **all** commits the agent might make, including **documentation-only** changes (e.g. `docs/plans/`, README), not only application source.
|