Agent skill · Data & Analytics

google-adk

Guide for building AI agents with Google ADK (Agent Development Kit). Use when creating multi-agent pipelines, implementing conditional agent branching, designing agent tools with FunctionTool, or debugging agent data flow issues. Covers SequentialAgent, LoopAgent, ParallelAgent patterns, session.state management, output_key chaining, and transfer_to_agent for control flow. Essential for understanding non-obvious ADK behaviors like why SequentialAgent runs ALL agents even after rejection.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill google-adk-cuba6112-skillfactory --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 7 KB
Bundled scripts: none
Path: skills/agent/google-adk-cuba6112-skillfactory/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Google ADK Agent Development ## Critical Architecture Insight **SequentialAgent runs ALL sub-agents unconditionally.** There is NO native conditional branching. The pipeline does not stop if an agent outputs "REJECT" or any other signal. ```python # THIS RUNS ALL 4 AGENTS regardless of gatekeeper output research_cycle = SequentialAgent( sub_agents=[theorist, critic, gatekeeper, architect] ) ``` To skip agents, use `transfer_to_agent` tool. ## Data Flow: output_key -> session.state -> {placeholder} ```python # Agent A stores output agent_a = Agent( instruction="Generate hypothesis", output_key="hypothesis" # Stored in session.state["hypothesis"] ) # Agent B reads via placeholder agent_b = Agent( instruction=""" Critique this hypothesis: {hypothesis} """, # Resolved from session.state at runtime output_key="critique" ) ``` Placeholders support optional syntax: `{variable?}` (no error if missing). ## Conditional Branching with transfer_to_agent ```python from google.adk.tools import transfer_to_agent gatekeeper = Agent( name="gatekeeper", instruction=""" Decide: PROCEED, REVISE, or REJECT - PROCEED: Continue normally (don't call transfer_to_agent) - REVISE: Call transfer_to_agent("t

What's inside
Steps it walks through
  1. Critical Architecture Insight
  2. Data Flow: outputkey -> session.state -> {placeholder}
  3. Conditional Branching with transfertoagent
  4. FunctionTool Design
  5. Automatic toolcontext injection
  6. Docstring becomes tool description
  7. Agent Types
  8. Common Pitfalls
  9. 1. Expecting SequentialAgent to stop on rejection
  10. 2. Missing outputkey breaks data flow
  11. 3. Placeholder without matching outputkey
  12. 4. toolcontext as required parameter
  13. 5. launchpersistentcontext returns BrowserContext
  14. 6. Context overflow from session history (token limit exceeded)
Ships with 1 file
  • metadata.json
Commands it runs
rm -rf ika_agent/.adk/session.db
More from claude-skill-registry
All skills →
About this skill
What does the google-adk skill do?

Guide for building AI agents with Google ADK (Agent Development Kit). Use when creating multi-agent pipelines, implementing conditional agent branching, designing agent tools with FunctionTool, or debugging agent data flow issues. Covers SequentialAgent, LoopAgent, ParallelAgent patterns, session.state management, output_key chaining, and transfer_to_agent for control flow. Essential for understanding non-obvious ADK behaviors like why SequentialAgent runs ALL agents even after rejection.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill google-adk-cuba6112-skillfactory --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going