1
---
2
name: google-agents-cli-onboarding
3
metadata:
4
version: "1.1.0"
5
category: DevOps
6
description: >-
7
Onboarding entrypoint for agents-cli on Google Cloud (Gemini Enterprise Agent
8
Platform). It should be used when the user wants to "create a new agent",
9
"develop an agent", "build an agent using ADK", "build an agent using
10
LangChain, LangGraph, or the Claude Agent SDK", "run the agent locally",
11
"debug agent code", "test an agent", "evaluate an agent", "deploy an agent",
12
"publish an agent", "monitor an agent", or needs the end-to-end production
13
agent development lifecycle.
14
---
15
16
# Google Agents CLI Onboarding
17
18
> [!TIP] **One-Time Setup**: To install the CLI and enable all 7 specialized
19
> development skills in your coding agent, run the setup command:
20
>
21
> ```bash
22
> uvx google-agents-cli setup
23
> ```
24
>
25
> Alternatively, to install only the expert skills and let the agent handle
26
> execution:
27
>
28
> ```bash
29
> npx skills add google/agents-cli
30
> ```
31
32
## Attribution
33
34
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
35
MUST read [Usage Attribution](references/attribution.md). For commands executed
36
directly in the terminal (never in generated scripts, Terraform, or user code),
37
prefix `gcloud` with
38
`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:google-agents-cli-onboarding)"`
39
and append `agent-skills/1.0 (skill:google-agents-cli-onboarding)` to `User-Agent` headers.
40
41
## Overview
42
43
This skill serves as the entrypoint for **agents-cli** — Google's toolkit for
44
building, evaluating, deploying, and observing production AI agents on the
45
Gemini Enterprise Agent Platform. It works with ADK out of the box as well as
46
other frameworks (such as LangChain/LangGraph and the Claude Agent SDK, or
47
custom extensions) via first-party templates in `google/agents-cli-extensions`.
48
49
Use this skill to perform the initial setup and identify the correct specialized
50
workflows for your task.
51
52
## The Agent Development Lifecycle
53
54
After running `uvx google-agents-cli setup` (or
55
`npx skills add google/agents-cli`), all 7 specialized skills become available
56
and **activate automatically in your coding agent** based on your requests — no
57
manual skill invocation is needed. When guiding a user through any lifecycle
58
step, always name the phase number, the corresponding specialized skill, and
59
note that specialized skills activate automatically after setup:
60
61
| Phase | Specialized Skill | Purpose / When to Load |
62
| :--- | :--- | :--- |
63
| **0 — Understand** | `google-agents-cli-workflow` | **Clarify intent.** Define the agent spec in `.agents-cli-spec.md` before coding. |
64
| **1 — Study** | `google-agents-cli-workflow` | **Leverage samples.** Study existing agent samples (e.g., `ambient-expense`) before scaffolding. |
65
| **2 — Scaffold** | `google-agents-cli-scaffold` | **Create/Enhance.** Run after setup and before writing custom agent logic; initializes project structure, CI/CD, and infrastructure templates (ADK or extensions). |
66
| **3 — Build** | `google-agents-cli-adk-code` | **Implement.** Write agent logic, tools, callbacks, and manage state using ADK APIs. |
67
| **4 — Evaluate** | `google-agents-cli-eval` | **Validate Quality.** Run systematic evaluations using an LLM-as-judge setup (`agents-cli eval run`). |
68
| **5 — Deploy** | `google-agents-cli-deploy` | **Go Production.** Deploy to Agent Runtime, Cloud Run, or GKE (`agents-cli deploy`). |
69
| **6 — Publish** | `google-agents-cli-publish` | **Register.** Register your deployed agent in Gemini Enterprise (`agents-cli publish gemini`). |
70
| **7 — Observe** | `google-agents-cli-observability` | **Monitor.** Set up Cloud Trace, prompt-response logging, and BigQuery analytics. |
71
72
## Key CLI Commands
73
74
Below are the primary commands mapped to their lifecycle phase and specialized
75
skill:
76
77
| Command | Phase & Skill | Description |
78
| :--- | :--- | :--- |
79
| `agents-cli setup` | One-time setup | Install the CLI and enable all 7 specialized skills (they activate automatically in your coding agent). |
80
| `agents-cli create <name>` | Phase 2 — Scaffold (`google-agents-cli-scaffold`) | Create a new agent project from a template (initializes project structure, CI/CD, and infrastructure templates after setup and before custom logic). |
81
| `agents-cli create <name> --agent google/agents-cli-extensions/core/langchain/template -d cloud_run` | Phase 2 — Scaffold (`google-agents-cli-scaffold`) | Scaffold a first-party extension template (e.g., `core/langchain` for LangChain/LangGraph or `core/claude` for Claude Agent SDK) from `google/agents-cli-extensions`. |
82
| `agents-cli eval run` | Phase 4 — Evaluate (`google-agents-cli-eval`) | Run the agent over an evaluation dataset and grade traces using an LLM-as-judge setup. |
83
| `agents-cli deploy` | Phase 5 — Deploy (`google-agents-cli-deploy`) | Deploy your agent to Google Cloud (Agent Runtime, Cloud Run, or GKE). |
84
| `agents-cli publish gemini` | Phase 6 — Publish (`google-agents-cli-publish`) | Register your deployed agent with Gemini Enterprise (run after deploying to a cloud runtime). |
85
86
*For the full list of available commands and global options, run `agents-cli
87
--help`.*
88
89
## Next Steps
90
91
Follow this sequence to initiate the development workflow:
92
93
1. **Execute Setup:** Run the `uvx` or `npx` command in the `[!TIP]` box above
94
to install the CLI and enable the specialized skills in your environment.
95
2. **Verify Installation:** Run `agents-cli info` to confirm the installation
96
and view the active project configuration.
97
3. **Initiate Phase 0:** Ask the user for their core requirements (agent
98
purpose, external tools, deployment target) and document them in
99
`.agents-cli-spec.md` before writing any code.
100
101
## Reporting Issues
102
103
Report bugs or improvements at [Google Agents CLI Issues](https://github.com/google/agents-cli/issues).
104
105
## Supporting Links
106
107
* [Google Agents CLI Documentation](https://google.github.io/agents-cli/)
108
* [Google Agents CLI Extensions](https://github.com/google/agents-cli-extensions)
109