Compatibility Note: The slash commands below (/branch, /m, /merge, /pr) are optimized for Claude Code and Antigravity.
- Trigger with
/branch. - Check the current branch and git status.
- Use an LLM to suggest feature branch names based on the task.
- Create and checkout new feature branches using the suggested names.
- Push new branches to the remote repository; instructions can be provided by the LLM.
- Trigger with
/m. - Use the LLM to draft commit messages encompassing recent changes.
- Run
git addfor all modified files. - Follow with a
git commitusing the LLM-generated message. - Push changes to the remote repository.
- Trigger with
/merge. - Verify with the LLM for any active PRs related to the current branch.
- Merge PRs using best practices, potentially suggested by the LLM.
- Employ GitHub CLI or manual steps to complete and confirm the merge.
- Remove feature branches post-merge both locally and remotely.
- Trigger with
/pr. - LLM can determine if the current branch is ready for a PR.
- If changes are approved, create and checkout feature branches.
- Add and commit changes; draft PRs with detailed descriptions.
- Push changes and use GitHub CLI to facilitate pull requests to the main branch.
If you are using an AI editor that does not support these slash commands (e.g., Cursor, Windsurf), use the >> syntax as a trigger:
>>branch→ Read.agent/workflows/branch.mdand execute steps.>>m→ Read.agent/workflows/m.mdand execute steps.>>merge→ Read.agent/workflows/merge.mdand execute steps.>>pr→ Read.agent/workflows/pr.mdand execute steps.
Instruction for AI: When the user types >>[command], you MUST read the corresponding workflow file and strictly follow its instructions.
NEVER commit or push changes unless explicitly instructed by the user.
- Do NOT use git commands (
git add,git commit,git push) unless the user specifically asks - Do NOT use slash commands like
/m,/pr,/branch,/mergeunless the user invokes them - When making code changes, stop after the changes are complete and wait for user confirmation
- If the user wants to commit, they will use
/mor explicitly ask you to commit - ALWAYS ask the user if they want to commit changes before doing so
You MAY commit/push ONLY when:
- User explicitly says "commit", "push", "git add", etc.
- User invokes a command (
/m,/pr,/branch,/merge) - User asks "save these changes" or similar clear intent
- Make code changes as requested
- Inform the user what was changed
- STOP and wait for user instruction
- Only proceed with git operations if explicitly told to do so
Remember: The user controls when code is committed, not you.