Langsung ke konten
Skillpedia
Pemrograman umum6.3k Β· #14373

google-agents-cli-scaffold

Fungsinya

Skill ini menyiapkan proyek agent baru dan menambahkan berkas penerapan ke proyek yang sudah ada dengan alat baris perintah agents. Skill ini ditujukan untuk pengembang yang menginginkan struktur proyek yang berfungsi sebelum menulis kode agent.

Kapan dipakai

  • βœ“Saat Anda ingin memulai proyek agent ADK dari awal.
  • βœ“Ketika Anda ingin menambahkan penerapan atau penyiapan CI dan CD ke proyek yang sudah ada.
  • βœ“Saat Anda ingin membuat agent prototipe tanpa penerapan.

Link skill

https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-scaffold/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-scaffold/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuat proyek agent ADK baru bernama support-bot yang bisa diterapkan ke Cloud Run, dan siapkan CI dan CD untuknya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini pertama-tama memperjelas apa yang harus dilakukan agent, lalu menjalankan perintah agents untuk membuat proyek atau meningkatkan proyek yang sudah ada. Ia bisa memilih kerangka kerja, target penerapan, dan apakah proyek dibuat sebagai prototipe.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Project Scaffolding Guide

Requires: agents-cli (uv tool install google-agents-cli) β€” install uv first if needed.

Use the agents-cli CLI to create new agent projects or enhance existing ones with deployment, CI/CD, and infrastructure scaffolding.


Prerequisite: Clarify Requirements (MANDATORY for new projects)

Before scaffolding a new project, load /google-agents-cli-workflow and complete Phase 0 β€” clarify the user's requirements before running any scaffold create command. Ask what the agent should do, what tools/APIs it needs, and whether they want a prototype or full deployment.


Step 1: Choose Architecture

Mapping user choices to CLI flags:

Choice CLI flag
Retrieval/RAG, sandboxed execution, cross-session memory, OAuth consent, guardrails, scheduled runs No flag β€” these come from clone-and-study recipes. ADK Python: see the topic index in /google-agents-cli-adk-code β†’ references/recipes.md; on other frameworks, see the agent catalog the framework template ships
A2A protocol built into the scaffolded app β€” scaffold normally (ADK Python: --agent adk_python, the default; ADK Go: --agent adk_go)
Prototype (no deployment) --prototype
Deployment target --deployment-target <agent_runtime|cloud_run|gke>
CI/CD runner --cicd-runner <github_actions|google_cloud_build>
Session storage --session-type <in_memory|cloud_sql|agent_platform_sessions>

Product name mapping

Current names (and older names users may say) β†’ CLI values (vertexai SDK package name unchanged):

  • Agent Runtime in Gemini platform (Agent Engine / Vertex AI Agent Engine / Agent Runtime) β†’ --deployment-target agent_runtime
  • Sessions in Gemini platform (Agent Engine sessions / Agent Platform Sessions) β†’ --session-type agent_platform_sessions
  • Search / Vector Search in Gemini platform (Vertex AI Search / Vertex AI Vector Search) / RAG β†’ clone-and-study recipe, not a flag

Removed flags. --datastore, the agentic_rag template, and agents-cli infra datastore / agents-cli data-ingestion no longer exist. If you reach for one, you want a recipe instead.


Step 2: Create or Enhance the Project

Create a New Project

agents-cli scaffold create <project-name> \
  --agent <template> \
  --deployment-target <target> \
  --region <region> \
  --prototype

Constraints:

  • Project name must be 26 characters or less, lowercase letters, numbers, and hyphens only.
  • Do NOT mkdir the project directory before running create β€” the CLI creates it automatically. If you mkdir first, create will fail or behave unexpectedly.
  • Pass --agent-guidance-filename for your IDE: GEMINI.md for Antigravity CLI, CLAUDE.md for Claude Code, AGENTS.md otherwise.
  • When enhancing an existing project, check where the agent code lives. If it's not in app/, pass --agent-directory <dir> (e.g. --agent-directory agent). Getting this wrong causes enhance to miss or misplace files.

Reference Files

File Contents
references/flags.md Full flag reference for create and enhance commands

Enhance an Existing Project

agents-cli scaffold enhance . --deployment-target <target>
agents-cli scaffold enhance . --cicd-runner <runner>

Run this from inside the project directory (or pass the path instead of .).

Upgrade a Project

Upgrade an existing project to a newer agents-cli version, intelligently applying updates while preserving your customizations:

agents-cli scaffold upgrade                # Upgrade current directory
agents-cli scaffold upgrade <project-path> # Upgrade specific project
agents-cli scaffold upgrade --dry-run      # Preview changes without applying
agents-cli scaffold upgrade --auto-approve  # Auto-apply non-conflicting changes
agents-cli scaffold upgrade --force        # Overwrite scaffolding files when smart-merge fails
agents-cli scaffold upgrade --force --dry-run  # List what --force would overwrite

--force is a fallback for when smart-merge fails. Smart-merge also stops when the agents-cli version that created the project is not on PyPI, because it needs that version's template; use --force then too. It overwrites scaffolding files with the new template and keeps agent code, config files, README.md, the agent guidance file an

Pertanyaan umum

Apakah saya perlu memasang sesuatu terlebih dahulu?

Ya, alat baris perintah agents diperlukan, dan skill ini menyarankan memasang uv terlebih dahulu jika diperlukan.

Bisakah saya membuat prototipe tanpa penerapan?

Bisa, tersedia opsi untuk prototipe tanpa penerapan.

Apakah ia bisa meningkatkan proyek yang sudah ada?

Bisa, deskripsinya mencakup perintah enhance dan upgrade untuk proyek yang sudah ada.

Detail

Deskripsi asli dari pembuat

This skill should be used when the user wants to "create an agent project", "start a new ADK project", "build me a new agent", "add CI/CD to my project", "add deployment", "enhance my project", or "upgrade my project". Part of the agents-cli skills suite. Covers `agents-cli scaffold create`, `scaffold enhance`, and `scaffold upgrade` commands, template options, deployment targets, and the prototype-first workflow. Do NOT use for writing agent code (ADK projects: use google-agents-cli-adk-code) or deployment operations (use google-agents-cli-deploy).

repo: google/agents-cli

Popularitas

Bintang GitHub
6.3k
Peringkat
#14373
Lisensi
Apache-2.0
Diperbarui
27/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa