Skip to content

balamuru/antigravity-dev-skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Antigravity Developer Skills

This repository provides specialized Orchestrator Skills for Google Antigravity. It enforces an Artifact-Driven, Incremental Development Loop inspired by Kiro-Orchestrator and Claude Code. These skills prevent codebase corruption by compelling the AI agent to plan, execute, and verify atomic changes using persistent Markdown artifacts.

Part 1: The General Orchestrator Framework

The Ideology: Skills as Roles

Antigravity operates as a single, highly capable agent. We define Skills (.agents/skills/) to constrain the agent to specific personas instead of spawning disjointed sub-agents.

  • Persistent Context: Goals are defined in requirements.md and tracked in task.md. The agent perfectly restores context after a system crash by reading these files.
  • Atomic Loops: The agent cannot edit 10 files at once. It must Execute, Verify, Commit, and Repeat.

βš™οΈ How to Start (Choose Your Path)

There are three ways to integrate these skills into your workflow:

Path 1: Greenfield (Fresh Start)

Best for: Starting a new project from scratch.

  1. Download as ZIP: Download this repository as a ZIP and extract it.
  2. Initialize: Run git init in the folder.
  3. Outcome: You get a clean git history and the full persona framework ready to go.

Path 2: Retrofit (Existing Project)

Best for: Adding agentic personas to an existing codebase.

  1. Copy Folder: Copy the .agents/ folder directly into the root of your existing project.
  2. Verification: Run ls .agents/skills to ensure they are visible.
  3. Outcome: Your existing repo is now "Agentic-Ready" without polluting your commit history with framework code.

Path 3: The Sandbox (Scaffolding)

Best for: Building a sub-module or experiment in an isolated directory.

  1. Equip Scaffolder: Prompt Antigravity: "Adopt the project-scaffolder skill and initialize a new project in ./my-new-app."
  2. Outcome: It creates a partitioned directory with baseline artifacts ready for the PM.

πŸ“¦ Manual vs. skild Package Manager

While you can manually copy folders, the Antigravity ecosystem supports the Skild package manager for managing community skills.

  • Manual: Low overhead. Just move the .agents folder.
  • Skild: Enables searching and installing specialized skills (e.g., skild install python-expert) directly from the CLI.

Comparison: Kiro vs. Claude Code vs. Antigravity

Feature / Concept Kiro CLI Claude Code Antigravity (This Repo)
State Management Markdown Specs (requirements.md) Variable Conversation History Persistent Artifacts (task.md)
Sub-task Tracking Internal spec files GitHub Issues Artifact Checklists OR GitHub Issues
Agent Architecture Multiple specialized sub-agents Single versatile agent Single base agent with modular "Skills"
Execution Flow Builder β†’ Validator Handoffs Iterative conversation Strict incremental-orchestrator loop
Code Review Dedicated Validator Agents Manual Developer-in-the-loop "Verify" step strictly enforced within loop
Time Efficiency Slow (Heavy multi-agent handoffs) Fast (For initial rapid prototyping) Moderate (Incremental loops take time but save debugging)
Token Usage High (Spinning up multiple agents) Medium-High (Context window fills linearly) Medium (Artifacts consolidate context without history bloat)
Context Loss Risk Low (Spec-driven) High (If context window is exceeded) Zero (Disk-based Artifacts survive restarts)

Strengths, Weaknesses, and Ideal Use Cases

Kiro CLI

  • Strengths: Excellent separation of concerns. Nearly impossible to drift from the specification.
  • Weaknesses: Over-engineered for simple tasks. Extremely slow execution and expensive token usage due to constant API calls for handoffs.
  • Ideal Use Case: Massive, enterprise-level greenfield projects with strict compliance needs.

Claude Code

  • Strengths: Incredible developer experience. Extremely fast for iterative prototyping and getting off the ground quickly.
  • Weaknesses: Prone to the "Big-Bang Commit." The context window fills up fast, and recovering the exact train of thought is difficult if the agent fails mid-task.
  • Ideal Use Case: Rapid prototyping, bug fixing, exploring undocumented codebases, and simple 1-2 file features.

Antigravity (This Repo's Approach)

  • Strengths: The optimal balance. Artifacts provide the ironclad memory safety of Kiro without the overhead of massive multi-agent networks. The granular loop prevents giant Pull Requests (PRs).
  • Weaknesses: Requires discipline. The initial artifact generation phase is slower than issuing direct commands to Claude.
  • Ideal Use Case: Building full-stack features incrementally, tracking progress formally, and prioritizing context retention over unstructured speed.

πŸͺ Advanced: Pre- and Post-Execution Hooks

Because this framework relies entirely on persistent Markdown artifacts and native file-system access, you can easily define automated hooks to run before or after the Orchestrator executes a task.

1. Automated Model Routing & Fallback (.agents/hooks/pre_task.sh) We provide a pre-task hook as a baseline to handle model routing automatically in the background. It parses the YAML frontmatter from SKILL.md files (looking for ideal-model: '...') and seamlessly swaps the active agent to the optimal model (e.g., heavily reasoning with Claude Opus, or quickly formatting with Gemini Flash).

Fallback Safety: If you use a community skill that demands an expensive model you haven’t put the API key for in your .env file, the hook will warn you and gracefully fallback to a cheap, general-purpose model (gemini-3.5-flash) so you aren’t blocked from execution.

2. Custom Validation (.agents/hooks/post_task.sh) Use the post-task template to enforce quality gates. For example, you can tell the agent to run npm run test or npm run lint automatically after every task, ensuring that broken code is never snapshot or committed.


πŸ” Sensitive Data & Security

This framework operates using environment variables for API keys.

  1. Credential Setup: Copy the .env.example file to .env.
    cp .env.example .env
  2. Configure Keys: Open .env and add your GOOGLE_API_KEY, ANTHROPIC_API_KEY, etc.
  3. Safety First: The .gitignore in this repository is already configured to ignore .env files. Never remove this entry or commit your API keys to version control.

For a full list of supported models and their required keys, see MODELS.md.

πŸ”„ Workflows (Automated SOPs)

Beyond standalone skills, Antigravity supports automated Workflows. Workflows are predefined lists of instructions (SOPs) that tell the AI exactly how to execute a specific, standardized process.

Defining Workflows

Workflows are defined as .md files located in the [.agents, .agent, _agents, _agent]/workflows/ directory. They require a simple YAML frontmatter block for the description, followed by the specific execution steps.

Example (.agents/workflows/status-check.md):

---
description: Run a comprehensive status check on the project workspace
---
1. List all skills available in the `.agents/skills` directory.
2. Read the `README.md` to understand the project's current state.
// turbo
3. Run `git status` to see if there are any uncommitted changes.
4. Report the findings concisely.

Executing Workflows

You can execute a workflow by either:

  1. Slash Commands: Typing the workflow name directly in the chat (e.g., /status-check).
  2. Natural Language: Asking the agent to "run the status check workflow".

The // turbo Annotations

When executing workflows, the agent will normally pause to ask for your permission before running any terminal commands. To bypass this for safe, repetitive commands, you can add a // turbo annotation on the line directly above the step. This grants the agent permission to auto-execute that specific command. To auto-execute all commands in a workflow, place // turbo-all anywhere in the file.

Part 2: Antigravity-Specific Implementations

πŸš€ Quickstart: Test Drive the Framework

Want to see the framework in action immediately without any setup? We've created a pre-configured, sandboxed environment in the app/ directory.

  1. Review the Goal: Open app/requirements.md. You will see a strict constraint demanding the agent build an Express.js server only within that folder.
  2. Review the Tasks: Open app/task.md to view the step-by-step checklist.
  3. Unleash the Builder: Prompt your Antigravity agent:

    "Adopt the incremental-orchestrator skill and execute the tasks in app/task.md."

  4. Watch the Loop: The agent will read the artifacts, execute the first step, verify its work against the requirements, make an atomic Git commit, and pause for your approval before continuing.

Available Orchestrators

Product Manager

Path: .agents/skills/product-manager/SKILL.md Role: The Interactive Interviewer / Planner. Usage: Equip this skill when you have a vague idea. It asks you sequential questions to define your MVP features and stack, and outputs a highly detailed requirements.md file.

Team Lead Orchestrator

Path: .agents/skills/team-lead-orchestrator/SKILL.md Role: The Architect / Project Manager. Usage: Instruct Antigravity to adopt this skill when you have raw requirements. It outputs an implementation_plan.md and a granular task.md. It does not write implementation code.

Incremental Orchestrator

Path: .agents/skills/incremental-orchestrator/SKILL.md Role: The Builder / Code Reviewer. Usage: Adopt this skill to execute the checklist after tasks are planned. It guarantees the agent verifies its own code against the specifications before creating an atomic Git commit and moving to the next task.

Issue Creator

Path: .agents/skills/issue-creator/SKILL.md Role: The Kanban Administrator. Usage: Adopts Claude Code's methodology. It translates the internal task.md checklist into formal GitHub Issues using the gh CLI for external visibility and tracking.

Doc Reviewer

Path: .agents/skills/doc-reviewer/SKILL.md Role: The Senior Technical Writer. Usage: Use this skill to restructure, edit, and clarify Markdown documentation. It focuses entirely on tone and narrative flow without touching the underlying source code.

Markdown Formatter

Path: .agents/skills/markdown-formatter/SKILL.md Role: The Documentation Linter. Usage: Use this skill to strictly enforce formatting rules (spacing, headers, backticks) across your Markdown files to keep them clean and easily readable.

Project Auditor

Path: .agents/skills/project-auditor/SKILL.md Role: The Final Gatekeeper / QA. Usage: Equip this skill before merging PRs or marking tasks as complete. It will cross-reference your actual file system against the README.md and task.md to spot undocumented code or missed requirements.

Project Scaffolder

Path: .agents/skills/project-scaffolder/SKILL.md Role: The Environment Initializer. Usage: Equip this skill when starting a new project. It safely sandboxes future work by generating an isolated boundary directory (e.g., /app) and pre-populating baseline requirements.md and task.md specs before handoff.

Prerequisites Checker

Path: .agents/skills/prerequisites-checker/SKILL.md Role: The Environment Validator. Usage: Verifies that all required external toolings and CLI dependencies are installed and authenticated before starting a project.

Project Board Manager

Path: .agents/skills/project-board-manager/SKILL.md Role: The Kanban Board Maintainer. Usage: Creates and manages GitHub Projects (Kanban boards) to track issues and orchestrate project states.

πŸ“š Usage Documentation

For a comprehensive guide on how to apply these personas to build a complete software project (from discovery and planning to atomic code execution and QA), please read the full Usage Guide.

About

dev skills based agentic team for the AntiGravity IDE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages