English | 繁體中文
An Antigravity plugin for Google Antigravity (AGY), providing a streamlined, agile, and automated GitHub Flow pipeline.
Comprehensive support across the three core platforms of Google Antigravity: Antigravity Command-Line Interface (CLI) (agy), Antigravity Integrated Development Environment (IDE), and Antigravity 2.0 Desktop Application.
This plugin automatically produces precise Git commits following the Conventional Commits v1.0.0 specification, centered around a single main branch, orchestrating branch creation, Pull Request (PR) publication, bilingual GitHub Release notes, and automated bilingual documentation generation.
Install the plugin globally using the Antigravity Command-Line Interface (CLI):
agy plugin install https://github.com/AndyAWD/antigravity-github-flow- Seamless Cross-Platform Compatibility: Fully compatible with Antigravity CLI terminal, IDE sidebar chat, and Antigravity 2.0 Chat Canvas.
- Auto Navigation & Flow Progression: Designed for developers of all skill levels, AI automatically analyzes project state and advances to the next logical GitHub Flow step.
- Strict Conventional Commits & Auto Splitting: Built-in rules ensure consistent
<type>[scope]: <description>structure, automatically split unrelated changes into discrete commits, and attach Google Antigravity co-author attribution. - Streamlined Single-Trunk Model: Centered around
main; feature and bugfix branches branch offmainand merge back cleanly via PR or safe local merge. - Standardized Bilingual Docs & Release Pipeline: Integrated multi-language PR templates, bilingual GitHub Release changelogs, and automated bilingual README synchronization.
- Safe Global Synchronization: Built-in multi-branch background fast-forwarding and diagnostic decision trees balance operational efficiency with workspace safety.
• List installed plugins:
agy plugin list• Enable this plugin:
agy plugin enable antigravity-github-flow• Disable this plugin:
agy plugin disable antigravity-github-flow• Uninstall this plugin:
agy plugin uninstall antigravity-github-flowantigravity-github-flow/
├── .github/
│ └── PULL_REQUEST_TEMPLATE.md
├── plugin.json
├── package.json
├── LICENSE
├── README.md
├── README.zh-TW.md
├── templates/
│ ├── README.template.md
│ ├── README.zh-TW.template.md
│ ├── RELEASE.template.md
│ ├── PULL_REQUEST_TEMPLATE.md
│ ├── PULL_REQUEST_TEMPLATE.en.md
│ └── PULL_REQUEST_TEMPLATE.bilingual.md
└── skills/
├── auto-next/
├── commit/
├── fetch/
├── github-pr/
├── github-release/
├── init/
├── merge/
├── pull/
├── push/
├── release/
├── sync-readme/
└── tag/
Once installed, trigger capabilities using natural language prompts or dedicated slash commands:
/agy-github-flow:auto-next
- When to Use: When unsure of the next step, or wishing to automate the GitHub Flow progression.
- How It Works:
- Executes background remote fetch and safely fast-forwards non-current local branches.
- Verifies VCS initialization and
mainbranch presence. - Checks working tree changes and automatically commits and pushes.
- Automatically advances PR creation, merge, or release based on current working branch context.
/agy-github-flow:commit
- When to Use: When changes are ready to be committed to version history.
- How It Works:
- Stages changes and performs safety checks.
- Splits multi-task changes into discrete logical commits.
- Guides switching off
mainif on trunk, or commits directly if intended. - Generates Conventional Commit messages with Google Antigravity co-author trailer.
/agy-github-flow:merge
- When to Use: When feature or bugfix branch is complete and ready to merge into
main. - How It Works:
- Asks user preference between opening a GitHub PR or merging locally.
- For local merge, checks out
main, syncs remote, and executes--no-ffmerge. - Prompts whether to delete the original working branch upon completion.
/agy-github-flow:github-pr
- When to Use: When submitting a pull request to
mainfor code review. - How It Works:
- Verifies current branch is not
mainand is pushed to remote. - Interactively asks for preferred PR language via
ask_question(Traditional Chinese, English, or Bilingual). - Analyzes commit diffs to extract purpose, summary, change type, and affected components (no emojis).
- Reviews PR and publishes via GitHub CLI (
gh pr create).
- Verifies current branch is not
/agy-github-flow:push
- When to Use: When pushing local commits and tags to remote repository.
- How It Works:
- Runs fetch first to inspect remote state.
- Executes
git push -u origin HEAD --follow-tagsafter confirming branch is up to date.
/agy-github-flow:fetch
- When to Use: When fetching latest remote refs and fast-forwarding non-current local branches.
- How It Works:
- Runs
git fetch --all --prune --tagsto download remote objects. - Safely fast-forwards all non-current local branches.
- Skips diverged branches without affecting current workspace.
- Runs
/agy-github-flow:pull
- When to Use: When synchronizing remote commits into current working branch.
- How It Works:
- Mandates preliminary fetch for global state synchronization.
- Performs safe fast-forward pull (
git pull --ff-only). - Provides
ask_questioninteractive troubleshooting menu if dirty or diverged.
/agy-github-flow:release
- When to Use: When preparing a new release and bumping version numbers.
- How It Works:
- Calculates SemVer version bump from commit history.
- Creates and checks out
release/<version>branch frommain. - Updates version strings across project manifests (
package.json, etc.) and commits.
- Parameters / Examples (optional):
/agy-github-flow:release [vX.Y.Z]
/agy-github-flow:tag
- When to Use: When tagging a released commit on
main. - How It Works:
- Restricts execution strictly to
mainormaster. - Determines next version tag according to SemVer rules.
- Tags commit with
vX.Y.Zand assists in remote push.
- Restricts execution strictly to
- Parameters / Examples (optional):
/agy-github-flow:tag [vX.Y.Z]
/agy-github-flow:github-release
- When to Use: When creating an official release on GitHub.
- How It Works:
- Confirms version tag and retrieves commits since previous tag.
- Categorizes changes by commit type and produces bilingual changelog (no emojis) with compare link.
- Reviews and publishes via GitHub CLI (
gh release create).
/agy-github-flow:init
- When to Use: When scaffolding GitHub Flow single-trunk structure for a new repository.
- How It Works:
- Initializes git repository if needed.
- Creates initial commit.
- Ensures branch is named
mainand stays checked out.
/agy-github-flow:sync-readme
- When to Use: When creating, updating, or refactoring bilingual README files.
- How It Works:
- Inspects workspace structure, manifests, and
skills/directory. - Automatically identifies execution mode (Create, Update, or Refactor).
- Synchronizes symmetric
README.md(English) andREADME.zh-TW.md(Traditional Chinese) adhering to standard specifications.
- Inspects workspace structure, manifests, and
This project is licensed under the MIT License. See the LICENSE file for details.