/agentic-engineering:optimise-adk-on-google-cloudfrom Agentic Engineering Skills
Diagnoses and optimizes Python Google ADK agents on Cloud Run, Agent Runtime, and GKE. Covers model/tool work, in-session history trimming/summarizing, streaming, session handling, startup, concurrency, and workload scaling.
Ships in Agentic Engineering Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Reduce avoidable work while preserving correct, authorised and complete results. This one skill covers all three parts of Chapter 4: application optimisation, Cloud Run, Agent Runtime and GKE. The book and companion repository are optional provenance, never runtime dependencies.
baseline_gate_passed: false on a newer pin means "not the
recorded baseline", so read the dated 2.12 notes in the references rather
than treating it as a project failure) accepts --project, --mode
(auto, application, cloud-run, agent-runtime, gke) and --require-baseline. It reads bounded
dependency manifests and reports configuration presence; it does not import
application code, read .env contents or execute cloud commands. Manually
inspect its uncovered files and lock resolution. Read
compatibility.md before using an ADK recipe.
Compare installed distribution metadata with declared Python and ADK pins.
A mismatch requires contract verification or a specific blocked path, never
an automatic upgrade or downgrade.App or bare agent,
model requests, tools, child handoffs, result storage and client consumption.
Record model/backend and configuration keys without exposing secret values.
Nested environment files can override root configuration. Inspect the image's
actual source package and entrypoint, not just a similarly named example.Inspection ends with the current architecture, version status, selected mode, acceptance criteria and missing prerequisites. Missing cloud credentials still permit local inspection, implementation and offline validation.
| Observed work or requested decision | Read when entering this mode | Evidence needed |
|---|---|---|
| Remote adapter overhead, repeated schema, oversized results, unnecessary child history/output or serial independent I/O | Application path | Same authorised result, bounded handoff, complete answer and relevant request-boundary observations |
| Large repeated instructions or uncertain prefix-cache benefit | Skills and cache | Actual instruction loading or outgoing request/usage metadata, with correctness and separate cache lifecycle |
| Long sessions, token growth per turn, cache misses, oversized tool results or sub-agent context isolation | Context window | Captured request composition, cached-token counts, bounded tool results and preserved correctness |
| Cloud Run startup, concurrency, CPU allocation, session locality or revision comparison | Cloud Run | Effective revision configuration, external/platform/application measurements and state/security checks |
| Agent Runtime session reuse, App/compaction propagation, model or hosting work | Agent Runtime | Actual execution location, retained session events, selected model input and observed capacity |
| Agent Runtime streaming, buffered persistence, optional memory writes or deferred jobs | State and streams | Complete outputs, bounded admission, immutable batches and correctly correlated recovery |
| GKE startup, resources, rollout capacity, scaling or identity delays | GKE workload | Actual manifest generator/build inputs, admitted Pods, scheduling events and pressure measurements |
| GKE session continuity, HTTP/draining, tracing privacy or streaming | GKE serving path | Wired session backend, trusted caller, complete responses and final exported telemetry |
| Optimisation review or greenfield design without measurements | Read only the relevant references above | Prioritised hypotheses, concrete implementation seams and a validation plan; no claimed speedup |
Combine modes only when the request needs them. A general deployment, SQL security overhaul or UI rewrite is not an implied optimisation task.
Inspection is read-only, and code generation authorises no deployment, paid call or live test. Before any consequential operation (an API, billing or quota change, a billable resource, a secret, IAM, a data migration, a deployment, a deletion, or a paid or destructive test), read consequential operations, present the exact scope and limits, obtain explicit approval and end the turn to wait for it. Cleanup is a separate confirmed operation on resources this workflow created.
Billing linkage and quota increases require their own approval. Verify owned cleanup of caches separately from sessions.
Read validation.md for mode-specific tests, the offline saved-event checker and the offline context budget helper, which estimates request composition, tool-result sizes and compaction coverage from a saved session export. Run relevant local tests and static/build checks first, after inspecting their side effects. Check the actual boundary: tool results and correlation, outgoing child input, complete outputs, result durability or revision configuration. Mocked execution proves only the exercised local contract. Historical companion PASS results do not verify this target.
For an approved live experiment, retain failed observations, compare equivalent workloads and report sample counts, cold/warm/cache state and errors. Verify owned cleanup, including caches separately from sessions. Repeat the local adaptation to check for duplicate wiring or needless changes.
Report files changed, commands actually executed, exact versions, actual results, manual steps and remaining uncertainty. State what the change improves and what the evidence cannot establish.
Label each result with its tier (offline, local, live or release) and
outcome (pass, fail, blocked or not run) as
evidence labels defines them;
earlier, vendor and documentation-only results are historical,
vendor-measured or guidance, never this session's evidence.
Independent community project; not affiliated with or endorsed by Google.
LICENSE (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/bounded_tool_result.py (opens in a new tab)assets/finite_answer_stream.py (opens in a new tab)assets/formatting_contract.py (opens in a new tab)assets/session_observation.py (opens in a new tab)references/agent-runtime.md (opens in a new tab)references/application-integration.md (opens in a new tab)references/application.md (opens in a new tab)references/cloud-run-troubleshooting.md (opens in a new tab)references/cloud-run.md (opens in a new tab)references/compatibility.md (opens in a new tab)references/context-window.md (opens in a new tab)references/gke-application-integration.md (opens in a new tab)references/gke-deployment-troubleshooting.md (opens in a new tab)references/gke-lifecycle.md (opens in a new tab)references/gke-serving.md (opens in a new tab)references/gke-verification.md (opens in a new tab)references/gke.md (opens in a new tab)references/lifecycle.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
google-adk, cloud-run, gke, agent-runtime, performance-optimization
26 skills in this plugin
/adk-agent-evaluationBuild, adapt or audit a Python ADK agent's test strategy: deterministic tool and Runner tests, live eval sets, simulated conversations, conformance replay, strict result checks and quote or citation support. Use for agent behaviour, regression coverage, eval reliability, fixing a failed stage without re-running paid earlier ones, holdout budgets, error analysis on a labelled dev set to fix wrong decisions, measuring each prompt, exemplar or model change, and subject-matter expert labelling: failure taxonomy, inter-rater agreement and judge calibration. Do not activate for non-agent unit tests, standalone model benchmarks, deployment or cleanup alone, prompt wording or exemplar design (adk-agent-instructions), model settings (adk-model-and-output-contracts), wiring eval gates into CI (adk-release-engineering), production telemetry (adk-agent-observability), adversarial suites (adk-agent-security) or presenting results (adk-presenter)./adk-agent-instructionsDesign, review or repair the instructions of Python Google ADK agents, covering instruction structure and altitude, session-state templating, tool-use guidance inside the prompt, sub-agent descriptions for routing, few-shot exemplar design, the instruction-versus-code division, model-generation prompt notes and prompt-as-code layout with change tests. Use when an agent follows its prompt poorly, over- or under-calls tools, routes to the wrong sub-agent, raises templating KeyErrors, or a prompt must move to a new model generation. Do not activate for the measured evaluation loop (adk-agent-evaluation), orchestration or a key an earlier agent's output_key never wrote (adk-workflow-design), tool docstrings and parameter schemas (adk-tool-interface-design), output schemas or model configuration (adk-model-and-output-contracts), releasing prompt versions (adk-release-engineering), or injection-screening products (protect-adk-sensitive-data).Other plugins' skills for the same job
npx claudepluginhub ruslankhis/agentic-engineering-skills --plugin agentic-engineering