Loading...
Loading...
Execute git and GitHub operations through Grove Wrap (gw) with safety-tiered commands, Conventional Commits, and agent-safe defaults. Use when making commits, managing branches, working with PRs/issues, or performing any version control operations.
npx skill4agent add autumnsgrove/groveengine git-workflowsgwgitgh| Tier | Flag Required | Examples |
|---|---|---|
| READ | None | |
| WRITE | | |
| DANGEROUS | | |
mainmasterproductionstaging--force--dry-run<type>(<optional scope>): <brief description>
<optional body>
<optional footer>| Type | Purpose | Example |
|---|---|---|
| New feature | |
| Bug fix | |
| Documentation | |
| Code formatting | |
| Code restructure | |
| Add/modify tests | |
| Maintenance | |
| Performance | |
| CI/CD changes | |
gw git status # Enhanced git status
gw git log # Formatted commit history
gw git log --limit 20 # Last 20 commits
gw git diff # Show changes
gw git diff --staged # Show staged changes
gw git blame file.ts # Blame with context
gw git show abc123 # Show commit details--writegw git add --write . # Stage files
gw git add --write src/lib/thing.ts # Stage specific file
gw git commit --write -m "feat: add new feature" # Commit (validates conventional commits!)
gw git push --write # Push to remote
gw git pull --write # Pull from remote
gw git pull --write --rebase # Pull with rebase strategy
gw git branch --write feature/new-thing # Create branch
gw git switch --write feature/new-thing # Switch branches
gw git stash --write # Stash changes
gw git stash --write pop # Pop stash
gw git unstage --write file.ts # Unstage files--write --forcegw git push --write --force # Force push (blocked to protected branches!)
gw git reset --write --force HEAD~1 # Hard reset
gw git rebase --write --force main # Rebase onto main
gw git merge --write --force feature # Merge branches# Quick save: stage all + WIP commit
gw git save --write
# Quick sync: fetch + rebase + push
gw git sync --write
# WIP commit that skips hooks
gw git wip --write
# Undo last commit (keeps changes staged)
gw git undo --write
# Amend last commit message
gw git amend --write -m "better message"
# FAST MODE: skip ALL hooks, commit + push in one shot
gw git fast --write -m "fix: emergency hotfix"feature/feature-name # New features
fix/bug-description # Bug fixes
experiment/new-idea # Experiments
release/v1.0.0 # Releases# Create and switch to feature branch
gw git branch --write feature/user-auth
gw git switch --write feature/user-auth
# Work and commit
gw git add --write .
gw git commit --write -m "feat: add JWT authentication"
# Push and create PR
gw git push --write
gw gh pr create --write --title "feat: add JWT authentication"# Reading (always safe)
gw gh pr list # List open PRs
gw gh pr view 123 # View PR details
gw gh pr status # PR status (CI, reviews, etc.)
# Writing (needs --write)
gw gh pr create --write --title "feat: new thing" --body "Description"
gw gh pr comment --write 123 "LGTM!"
gw gh pr merge --write 123 # Merge PR (prompts for confirmation)# Reading (always safe)
gw gh issue list # List open issues
gw gh issue view 456 # View issue details
# Writing (needs --write)
gw gh issue create --write --title "Bug: thing broke"
gw gh issue close --write 456# Reading (always safe)
gw gh run list # List recent runs
gw gh run view 12345678 # View run details
gw gh run watch 12345678 # Watch a running workflow
# Writing (needs --write)
gw gh run rerun --write 12345678 --failed # Rerun failed jobs
gw gh run cancel --write 12345678 # Cancel a run# GET requests (always safe)
gw gh api repos/AutumnsGrove/Lattice
# POST/PATCH (needs --write)
gw gh api --write repos/{owner}/{repo}/labels -X POST -f name="bug"
# DELETE (needs --write --force)
gw gh api --write --force repos/{owner}/{repo}/labels/old -X DELETE
# Check rate limit status
gw gh rate-limitgw gh project list # List project boards
gw gh project view # View current projectgw git commit --write -m "feat: add dark mode toggle
- Implement theme switching logic
- Add localStorage persistence
- Update CSS variables"gw git commit --write -m "fix: correct timezone handling bug
Fixes off-by-one error in date calculations.
Closes #123"gw git commit --write -m "feat!: replace XML config with YAML
BREAKING CHANGE: XML configuration no longer supported.
See docs/migration.md for upgrade instructions."gw context # One-shot session snapshot (rich output)
gw --json context # JSON snapshot (branch, changes, packages, issues)# Stage all + format + check + commit + push in ONE command
gw git ship --write -a -m "feat: implement feature"
# Equivalent to: gw git add --write . && gw git ship --write -m "..."gw git pr-prep # Full PR readiness report
gw --json git pr-prep # JSON: commits, files, packages, suggested titlegw ci --affected # Only check packages with changes
gw ci --affected --fail-fast # Fast feedback: stop on first failure
gw ci --diagnose # Structured error output when steps fail
gw --json ci --affected # JSON with parsed error details# Create multiple issues from JSON
gw gh issue batch --write --from-json issues.json
echo '[{"title":"Bug: thing","labels":["bug"]}]' | gw gh issue batch --write --from-json -gf impact src/lib/auth.ts # Who imports this? What tests? Which routes?
gf test-for src/lib/auth.ts # Find tests covering this file
gf diff-summary # Structured diff with per-file stats
gf --json impact src/lib/auth.ts # All of the above as parseable JSONgw context # Orient: what branch, what's changed?
gw git branch --write feature/my-feature
gw git switch --write feature/my-feature
# ... make changes ...
gw git ship --write -a -m "feat: implement my feature"
gw git pr-prep # Check readiness
gw gh pr create --write --title "feat: implement my feature"gw git fast --write -m "fix: correct typo in header"gw git ship --write -a -m "feat: add auth refresh"
# This does: auto-stage all → format → type-check → commit → pushgw ci --affected --fail-fast # Quick: only changed packages
gw gh pr status # See CI status on current PR
gw gh run list # See recent workflow runs
gw gh run watch 12345678 # Watch the current rungw git pull --write # Pull from remote (merge strategy)
gw git pull --write --rebase # Pull with rebase (cleaner history)
gw git pull --write origin main # Pull specific remote/branchgw git sync --write # Fetch + rebase + pushgw git save --write # Stage all + WIP commit
# or
gw git stash --write # Stash without committinggw git status # See conflicted files
# Edit files to resolve conflicts:
# <<<<<<< HEAD
# Your changes
# =======
# Incoming changes
# >>>>>>> feature-branch
# After resolving:
gw git add --write resolved-file.ts
gw git commit --write -m "fix: resolve merge conflicts"gw git worktree add --write ../grove-hotfix fix/urgent
gw git worktree list
gw git worktree remove --write ../grove-hotfixgw contextgw --json contextgwgitghgfgreprggw git ship --write -a -m "..."gw ci --affectedgw git pr-prepgf impact--dry-rungitgh--writemaingw gh pr create --write --title "My changes"gw gh rate-limit # Check when it resetsgw git log --limit 1 # Note the commit hash
gw git switch --write correct-branch
# Cherry-pick the commit, then remove from wrong branchgw git undo --write # Keeps changes stagedtools/grove-wrap-go/docs/specs/gw-cli-spec.mdAgentUsage/git_guide.mdgw mcp serve