Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

1.4 KB
Raw Blame
---
description: Never commit or push without explicit user approval
alwaysApply: true
---

# Git Safety: Ask Before Commit or Push

Never run `git commit`, `git push`, or any command that creates or publishes
commits (e.g. `git commit --amend`, `git push --force`, `gh pr merge`) unless
the user has explicitly asked for that action in the current turn.

## Rules

- Do NOT commit or push proactively, even after finishing a task or fixing tests.
- Making local file edits is fine. Staging (`git add`) for inspection is fine.
- Before committing or pushing, ask the user to confirm and wait for approval.
- Never use `--no-verify` or bypass pre-commit / pre-push hooks.
- If the user says something ambiguous like "fix the tests", "fix 1 and 2",
  "address the PR comments", or "update the defaults", stop after the code
  change and ask whether they want it committed/pushed — do not assume.
- Working on an open PR branch does **not** imply permission to commit or push.

## Example

```
// ❌ BAD: user asked to fix a failing test
<fix the test>
git commit -m "fix test" && git push   // committed without being asked

// ❌ BAD: user asked to fix review findings
<Fix 1 - cap radius. Fix 2 - update defaults.>
git commit && git push   // still not an explicit commit request

// ✅ GOOD
<fix the test>
"The fix is ready. Want me to commit and push it to the PR branch?"
```