Managing recipes

From jchavezar/vertex-ai-samples · View interactive version

Managing recipes is an AI agent skill from the GitHub repository jchavezar/vertex-ai-samples. Enforces strict guidelines for creating, modifying, and refactoring reproducible recipes under the `agy-recipes/` folder. Use when developing setup/teardown scripts, IAM configurations, API enablement, or workflows for replicating deployments.

How to use this skill

Skill file

Managing Recipes (agy-recipes)

This skill provides a set of strict guidelines and workflows to ensure that all recipes in agy-recipes/ are highly reproducible, self-contained, and clean up after themselves, while integrating seamlessly with the Antigravity agent's workspace structure.

When to use this skill

Unified Recipe Structure

Every recipe developed in agy-recipes/ must have a corresponding presence in the .agent/ folder:

├── .agent/
│   ├── skills/
│   │   └── replicating-<recipe_name>/
│   │       └── SKILL.md                 # Guides the agent through manual or diagnostic tasks for this recipe
│   └── workflows/
│       ├── deploy-<recipe_name>.md      # Workflow with // turbo blocks to automate recipe setup
│       └── destroy-<recipe_name>.md     # Workflow with // turbo blocks to automate recipe teardown
├── agy-recipes/
│   └── <recipe_name>/
│       ├── README.md                    # Local documentation of the recipe, APIs, and IAM requirements
│       └── scripts/
│           ├── setup.py                 # Idempotent setup/provisioning script
│           ├── teardown.py              # Cleanup/destruction script
│           └── test_recipe.py           # Verification/testing script (optional but recommended)

Core Principles

  1. Replicability & Automation:
  1. Clean Teardown:
  1. No Leftovers (Git and GCP Cleanliness):
  1. Code Quality & Best Practices:

Step-by-Step Recipe Creation Workflow

Use this checklist when developing a recipe:

[ ] Step 1: Scaffold Code

[ ] Step 2: Implement Setup & Teardown Code

[ ] Step 3: Register Antigravity Skill

```yaml

name: replicating-<recipe_name>

description: Orchestrates setup, testing, and teardown of <recipe_name>. Use when the user requests deployment, replication, or testing of <recipe_name>.

```

[ ] Step 4: Register Antigravity Workflows

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.