智能体
skills.sh ·
Google agents-cli ADK 代码技能
Google agents-cli 的 adk-code 技能,用于生成 ADK 代码,安装量 9,684。
AI推荐理由 涉及 ADK 代码生成,对开发有实际用途,但摘要信息有限。
60
安装 355
榜单名次 1
正文
google-agents-cli-adk-code
安装
命令提示符
$ npx skills add https://github.com/google/agents-cli --skill google-agents-cli-adk-code
摘要
ADK Python 模式的快速参考:代理、工具、回调和状态管理。
涵盖通过模型和指令配置创建代理,通过 FunctionTool 定义基本工具,以及用于状态初始化和生命周期钩子的回调模式。
包括内置工具导入、代理编排(SequentialAgent、ParallelAgent、LoopAgent)以及通过 CallbackContext 进行状态管理。
ADK 2.0 工作流 API 作为可选的实验性功能提供,用于基于图的条件路由和并行处理管道;需要 Python 3.11+ 并在使用前获得用户明确同意。
需要现有的脚手架项目;在编写代理代码之前,请使用 agents-cli scaffold create 或 scaffold enhance。
SKILL.md
ADK 代码参考
首先激活 /google-agents-cli-workflow 以完成所需的开发阶段和脚手架步骤。
1. 研究示例(无需项目)
在回答“我如何构建 X”之前,请阅读 references/samples.md 中的主题索引。已有可用的实现示例,涵盖:沙箱化/按用户代码执行、代理可加载的 SKILL.md 技能、跨会话记忆、危险操作前的审批门、工具护栏、按用户凭据以及计划/事件驱动的运行。
索引只给你一个名称;示例才是代码。在实现索引中涵盖的任何内容之前,请克隆它并阅读其 AGENTS.md。对于索引中列出的能力,手写 Docker 或 E2B 沙箱包装器、技能加载器、审核回调或记忆存储——意味着你只停留在名称层面。
2. 编写代码的先决条件
在项目脚手架搭建完成之前,不要编写代理代码。
验证项目:运行 agents-cli info(如果存在配置则继续)。
新项目:运行 agents-cli scaffold create .
现有代码:运行 agents-cli scaffold enhance .
语言支持:本参考涵盖 Python ADK SDK。其他语言的支持即将推出。
显示更多
安装量
155.5K
仓库
google/agents-cli
GitHub 星标
5.8K
首次出现
2026年4月21日
安全审计
Gen Agent Trust Hub通过
Socket通过
Snyk警告
查看原文(中文正文为 AI 翻译)
google-agents-cli-adk-code
Installation
CommandPrompt
$ npx skills add https://github.com/google/agents-cli --skill google-agents-cli-adk-code
Summary
Quick reference for ADK Python patterns: agents, tools, callbacks, and state management.
Covers agent creation with model and instruction configuration, basic tool definition via FunctionTool, and callback patterns for state initialization and lifecycle hooks
Includes built-in tool imports, agent orchestration (SequentialAgent, ParallelAgent, LoopAgent), and state management through CallbackContext
ADK 2.0 Workflow API available as opt-in experimental feature for graph-based pipelines with conditional routing and parallel processing; requires Python 3.11+ and explicit user consent before use
Requires an existing scaffolded project; use agents-cli scaffold create or scaffold enhance before writing agent code
SKILL.md
ADK Code Reference
Activate /google-agents-cli-workflow first for required development phases and scaffolding steps.
1. Study Recipes (No Project Needed)
Read the topic index in references/samples.md before answering "how do I build X". Worked implementations exist for: sandboxed/per-user code execution, agent-loadable SKILL.md skills, cross-session memory, approval gates before risky actions, tool guardrails, per-user credentials, and scheduled/event-driven runs.
The index only gives you a name; the recipe is the code. Clone it and read its AGENTS.md before you implement anything it covers. Hand-writing a Docker or E2B sandbox wrapper, a skill loader, a moderation callback or a memory store — for a capability the index lists — means you stopped at the name.
2. Prerequisites for Writing Code
Do NOT write agent code until a project is scaffolded.
Verify project: run agents-cli info (proceed if config exists).
New project: run agents-cli scaffold create .
Existing code: run agents-cli scaffold enhance ..
Language Support: This reference covers the Python ADK SDK. Support for other languages coming soon.
Show more
Installs
155.5K
Repository
google/agents-cli
GitHub Stars
5.8K
First Seen
Apr 21, 2026
Security Audits
Gen Agent Trust HubPass
SocketPass
SnykWarn