docs: add critical auto-commit rule to AGENTS.md
Agent must automatically commit and push after completing work. User should NEVER have to ask about commit status. 💘 Generated with Crush Assisted-by: GLM-4.7 via Crush <crush@charm.land>
This commit is contained in:
12
AGENTS.md
12
AGENTS.md
@@ -316,7 +316,18 @@ git push origin main
|
|||||||
|
|
||||||
### Important Rules
|
### Important Rules
|
||||||
|
|
||||||
|
#### 🔴 CRITICAL: AUTO-COMMIT RULE
|
||||||
|
**After completing ANY work, you MUST:**
|
||||||
|
1. Check `git status` for uncommitted changes
|
||||||
|
2. Stage all relevant changes with `git add`
|
||||||
|
3. Commit with conventional message
|
||||||
|
4. Push to remote with `git push origin main`
|
||||||
|
5. NEVER wait for user to ask "is everything committed?"
|
||||||
|
|
||||||
|
**This is NOT optional.** The user should NEVER have to ask about commits.
|
||||||
|
|
||||||
#### ✅ DO
|
#### ✅ DO
|
||||||
|
- **AUTO-COMMIT AND PUSH** after completing work (see CRITICAL rule above)
|
||||||
- Read files before editing them
|
- Read files before editing them
|
||||||
- Use exact text matching (whitespace matters)
|
- Use exact text matching (whitespace matters)
|
||||||
- Test after every change
|
- Test after every change
|
||||||
@@ -334,6 +345,7 @@ git push origin main
|
|||||||
- Run lint checks
|
- Run lint checks
|
||||||
|
|
||||||
#### ❌ DO NOT
|
#### ❌ DO NOT
|
||||||
|
- **Wait for user to ask about commits** - AUTO-COMMIT ALWAYS
|
||||||
- Edit files you haven't read
|
- Edit files you haven't read
|
||||||
- Guess at text matches (be precise)
|
- Guess at text matches (be precise)
|
||||||
- Commit without testing
|
- Commit without testing
|
||||||
|
|||||||
Reference in New Issue
Block a user