agentleFS
GoogleKnown publishergoogle/adk-kotlin/.agents/skills/adk-kotlin-agent-builder/SKILL.md

adk-kotlin-agent-builder

Skill307 starsChanged 53 days agoApache-2.0View on GitHub

Builds ADK Kotlin agents: LlmAgent with instructions and tools, @Tool function tools generated by KSP, hand-written tools, agent-as-tool and MCP, Sequential / Parallel / Loop agents and LLM transfer between sub-agents, callbacks and plugins, session state, artifacts, long-running and confirmation-gated tools, running with InMemoryRunner, and unit tests with a fake Model. Use when asked to create an agent, add or fix a tool, branch or loop between agents, run steps in parallel, pause for user approval, read or write session state, or test an agent. Don't use for build, dependency and CI questions (use adk-kotlin-setup).

The file

Files
SKILL.md

ADK Kotlin Agent Builder

Checked against main after release 1.1.0 (September 2026).

The references teach patterns and the rules behind most failures; they are not an API listing. The API is close to adk-python but not identical. If a symbol does not resolve, read core/src/*/kotlin/com/google/adk/kt/ (JVM- and Android-only APIs such as MCP and the persistent session services live outside commonMain) rather than guessing a neighbouring name. When a reference and the code disagree, the code is right.

References

TaskReference
First agent, running it, reading events, streaminggetting-started.md
The rules that cause most runtime failuresbest-practices.md
@Tool, hand-written tools, agent-as-tool, MCP, long-running and confirmation-gated toolstools.md
Sequential, parallel and loop agents, LLM transferworkflow-agents.md
Callbacks and pluginscallbacks-and-plugins.md
State, sessions, artifacts, memorystate-sessions-artifacts.md
Tests with a fake modeltesting.md

For Java callers, copy the patterns in examples/java/, a javac-only module that keeps the Java surface working.

Coming from adk-python

PythonKotlin
LlmAgent(instruction="...")LlmAgent(instruction = Instruction("..."))
FunctionTool(func)@Tool on the function (KSP generates the tool), or subclass FunctionTool
tool_context.state[k] = vcontext.updateState(k, v); read with context.state[k]
ToolContext, CallbackContextContext
BaseToolsetToolset
LongRunningFunctionToolisLongRunning = true, or @Tool(isLongRunning = true)
output_schema=MyModeloutputSchema = Schema(...), built by hand
runner.run_async(...)runner.runAsync(...), a Flow<Event>
event.is_final_response()event.isFinalResponse

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.