|
| 1 | +# BMad Expansion Pack: Google Cloud Vertex AI Agent System |
| 2 | + |
| 3 | +[](https://opensource.org/licenses/MIT) |
| 4 | +[](https://www.google.com/search?q=https://github.com/antmikinka/BMAD-METHOD) |
| 5 | +[](https://cloud.google.com/) |
| 6 | + |
| 7 | +This expansion pack provides a complete, deployable starter kit for building and hosting sophisticated AI agent systems on Google Cloud Platform (GCP). It bridges the gap between the BMad Method's natural language framework and a production-ready cloud environment, leveraging Google Vertex AI, Cloud Run, and the Google Agent Development Kit (ADK). |
| 8 | + |
| 9 | +## Features |
| 10 | + |
| 11 | + * **Automated GCP Setup**: `gcloud` scripts to configure your project, service accounts, and required APIs in minutes. |
| 12 | + * **Production-Ready Deployment**: Includes a `Dockerfile` and `cloudbuild.yaml` for easy, repeatable deployments to Google Cloud Run. |
| 13 | + * **Rich Template Library**: A comprehensive set of BMad-compatible templates for Teams, Agents, Tasks, Workflows, Documents, and Checklists. |
| 14 | + * **Pre-configured Agent Roles**: Includes powerful master templates for key agent archetypes like Orchestrators and Specialists. |
| 15 | + * **Highly Customizable**: Easily adapt the entire system with company-specific variables and industry-specific configurations. |
| 16 | + * **Powered by Google ADK**: Built on the official Google Agent Development Kit for robust and native integration with Vertex AI services. |
| 17 | + |
| 18 | +## Prerequisites |
| 19 | + |
| 20 | +Before you begin, ensure you have the following installed and configured: |
| 21 | + |
| 22 | + * A Google Cloud Platform (GCP) Account with an active billing account. |
| 23 | + * The [Google Cloud SDK (`gcloud` CLI)](https://www.google.com/search?q=%5Bhttps://cloud.google.com/sdk/docs/install%5D\(https://cloud.google.com/sdk/docs/install\)) installed and authenticated. |
| 24 | + * [Docker](https://www.docker.com/products/docker-desktop/) installed on your local machine. |
| 25 | + * Python 3.11+ |
| 26 | + |
| 27 | +## Quick Start Guide |
| 28 | + |
| 29 | +Follow these steps to get your own AI agent system running on Google Cloud. |
| 30 | + |
| 31 | +### 1\. Configure Setup Variables |
| 32 | + |
| 33 | +The setup scripts use placeholder variables. Before running them, open the files in the `/scripts` directory and replace the following placeholders with your own values: |
| 34 | + |
| 35 | + * `{{PROJECT_ID}}`: Your unique Google Cloud project ID. |
| 36 | + * `{{COMPANY_NAME}}`: Your company or project name (used for naming resources). |
| 37 | + * `{{LOCATION}}`: The GCP region you want to deploy to (e.g., `us-central1`). |
| 38 | + |
| 39 | +### 2\. Run the GCP Setup Scripts |
| 40 | + |
| 41 | +Execute the setup scripts to prepare your Google Cloud environment. |
| 42 | + |
| 43 | +```bash |
| 44 | +# Navigate to the scripts directory |
| 45 | +cd scripts/ |
| 46 | + |
| 47 | +# Run the project configuration script |
| 48 | +sh 1-initial-project-config.sh |
| 49 | + |
| 50 | +# Run the service account setup script |
| 51 | +sh 2-service-account-setup.sh |
| 52 | +``` |
| 53 | + |
| 54 | +These scripts will enable the necessary APIs, create a service account, assign permissions, and download a JSON key file required for authentication. |
| 55 | + |
| 56 | +### 3\. Install Python Dependencies |
| 57 | + |
| 58 | +Install the required Python packages for the application. |
| 59 | + |
| 60 | +```bash |
| 61 | +# From the root of the expansion pack |
| 62 | +pip install -r requirements.txt |
| 63 | +``` |
| 64 | + |
| 65 | +### 4\. Deploy to Cloud Run |
| 66 | + |
| 67 | +Deploy the entire agent system as a serverless application using Cloud Build. |
| 68 | + |
| 69 | +```bash |
| 70 | +# From the root of the expansion pack |
| 71 | +gcloud builds submit --config deployment/cloudbuild.yaml . |
| 72 | +``` |
| 73 | + |
| 74 | +This command will build the Docker container, push it to the Google Container Registry, and deploy it to Cloud Run. Your agent system is now live\! |
| 75 | + |
| 76 | +## How to Use |
| 77 | + |
| 78 | +Once deployed, the power of this system lies in its natural language templates. |
| 79 | + |
| 80 | +1. **Define Your Organization**: Go to `/templates/teams` and use the templates to define your agent teams (e.g., Product Development, Operations). |
| 81 | +2. **Customize Your Agents**: In `/templates/agents`, use the `Master-Agent-Template.yaml` to create new agents or customize the existing Orchestrator and Specialist templates. Define their personas, skills, and commands in plain English. |
| 82 | +3. **Build Your Workflows**: In `/templates/workflows`, link agents and tasks together to create complex, automated processes. |
| 83 | + |
| 84 | +The deployed application reads these YAML and Markdown files to dynamically construct and run your AI workforce. When you update a template, your live agents automatically adopt the new behaviors. |
| 85 | + |
| 86 | +## What's Included |
| 87 | + |
| 88 | +This expansion pack has a comprehensive structure to get you started: |
| 89 | + |
| 90 | +``` |
| 91 | +/ |
| 92 | +├── deployment/ # Dockerfile and cloudbuild.yaml for deployment |
| 93 | +├── scripts/ # GCP setup scripts (project config, service accounts) |
| 94 | +├── src/ # Python source code (main.py, settings.py) |
| 95 | +├── templates/ |
| 96 | +│ ├── agents/ # Master, Orchestrator, Specialist agent templates |
| 97 | +│ ├── teams/ # Team structure templates |
| 98 | +│ ├── tasks/ # Generic and specialized task templates |
| 99 | +│ ├── documents/ # Document and report templates |
| 100 | +│ ├── checklists/ # Quality validation checklists |
| 101 | +│ ├── workflows/ # Workflow definition templates |
| 102 | +│ └── ...and more |
| 103 | +├── config/ # Customization guides and variable files |
| 104 | +└── requirements.txt # Python package dependencies |
| 105 | +``` |
| 106 | + |
| 107 | +## Contributing |
| 108 | + |
| 109 | +Contributions are welcome\! Please follow the main project's `CONTRIBUTING.md` guidelines. For major changes or new features for this expansion pack, please open an issue or discussion first. |
0 commit comments