Git Commands
ACT provides four git commands that automate common git workflows with conventional commits.
/act:git:commit
Section titled “/act:git:commit”Create a conventional commit for staged changes only.
/act:git:commitACT analyzes your staged changes and generates a commit message in the format type(scope): subject:
- Types:
feat,fix,docs,style,refactor,perf,test,build,ci,chore,revert - Subject: imperative, present tense, no period, ~50 characters
- Body: optional, included when details are needed
Example output:
feat(auth): add JWT token refresh logic
Automatically refresh expired tokens before API calls.Handle refresh failures by redirecting to login./act:git:commit-all
Section titled “/act:git:commit-all”Create a conventional commit for all changes (staged and unstaged).
/act:git:commit-allSame behavior as /act:git:commit, but stages everything first. Useful when you want to commit all your work without manually staging files.
/act:git:push-make-pr
Section titled “/act:git:push-make-pr”Push the current branch to GitHub and create a pull request.
/act:git:push-make-prThis command:
- Checks for uncommitted changes — warns you if there are unstaged changes
- Pushes the branch —
git push -u origin <branch-name> - Checks for existing PR — warns if a PR already exists for this branch
- Finds a matching plan — looks for a plan file in
ai_specs/that matches the branch changes - Generates PR content:
- If a matching plan is found: uses the plan’s overview as title, includes the full plan as PR body
- If no plan found: generates title and summary from git history and diff
- Creates the PR — using
gh pr create
PR title rules: max 100 characters, action-oriented (Add/Fix/Update/Refactor).
/act:git:switch-main-pull
Section titled “/act:git:switch-main-pull”Switch to the main branch and pull the latest changes.
/act:git:switch-main-pullRuns:
git switch main && git pullUse this to get back to a clean main branch after finishing a feature.
Typical workflow
Section titled “Typical workflow”# 1. Work on your feature/act:workflow:work ai_specs/feature-plan.md
# 2. If the work command didn't create a PR, do it manually/act:git:push-make-pr
# 3. After PR is merged, get back to main/act:git:switch-main-pullRelated commands
Section titled “Related commands”/act:workflow:work— automatically commits and creates PRs during execution/git-worktree— manage parallel feature branches with worktrees