--- name: git-workflow description: Git discipline for plugin development - branch, commit after logical blocks, no main push without approval. tags: ['operations', 'git'] --- # Git Workflow ## Purpose Enforce git discipline: branch, commit after logical blocks, no push to main without explicit user approval. ## When to Use After each implementation block or when project state files are updated. ## When Not to Use When git is not available or the project is not yet a git repository. ## Procedure 1. Check git availability (`which git`) 2. Ensure working on feature branch (`git branch --show-current`) 3. Stage changed files (`git add `) 4. Write descriptive commit message (docs:, feat:, test:, deploy:) 5. Commit changes (`git commit -m "..."`) 6. Do NOT push to main without explicit user approval 7. Update .a0/worklog.md with commit reference ## Quality Gates Commit after logical blocks, no main push without approval, descriptive messages. ## See Also - Tool: `git` (core Agent Zero tool) - Skill: `git-workflow` (global)