/agentic-engineering:adk-operational-guardrailsfrom Agentic Engineering Skills
Implements invocation limits, token budgets, repeated-tool protection, human approval flows, and cost controls for Python Google ADK agents. Use for runaway loops, cross-turn budget enforcement, risky action review, and staged cost shutdown.
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; scripts run unread.
Make the application decide whether another model call, tool action or expensive invocation may run. Deliver the smallest coherent implementation or an evidence-based audit, with enforcement at the actual execution boundary. The book and companion repository are not prerequisites.
google-adk/google-genai versions. Keep pins unchanged. Use compatibility before copying or adapting an ADK API.python "$SKILL_DIR/scripts/inspect_project.py" --project "$PROJECT_ROOT", resolving SKILL_DIR to this skill's directory and setting PROJECT_ROOT to the target directory first. Inspect the reported files yourself; the helper does not prove safety or execute project code. Credentials are unnecessary for this step.budget_guard module that only the CLI imports leaves the web path unguarded.Inspection is complete when each relevant entry point has an identified enforcement boundary, version baseline and state lifetime. Ask only for unresolved product limits, deployment targets or authority decisions that materially change the work; continue offline work while those answers are pending.
If no project interpreter exists, use an available Python only for read-only inspection and label its package metadata as the inspector environment. A successful scan with no relevant source/configuration files establishes no application coverage. Inspect a plan or inventory fixture with the available interpreter and install nothing for it.
Modes compose within this one skill. Read only the references needed for the request.
| Situation | Mode and reference | Result to produce |
|---|---|---|
| Agent repeats failed actions, exceeds rounds or hangs | Runtime bounds | Pre-execution limits, an overall deadline, static stop results and regressions proving tools did not execute |
| Usage must accumulate across turns or instances | Token budgets | Honest local accounting or shared admission/settlement, chosen for the actual concurrency and durability requirement |
| A business effect must accumulate across calls (money refunded against one order, quantity shipped, seats held) | Token budgets, "Bound the business effect as well as the calls" | An aggregate keyed on the business object in the operation record, enforced where the write lands |
| Too many escalations, reviewer fatigue, or a target escalation rate | Human review: escalation rules in code, the floor share, and the two-sided rates to tune against | |
| Risky tool actions need a human or can be retried after uncertainty, an approval was left unanswered, or the approval rule receives arguments it cannot read | Human review, including "Unanswered approvals and unreadable arguments" | Trusted identity, explicit operation states, deduplication and an approval/execution boundary; an unanswered approval is rejected and unreadable arguments go to manual review |
| An input or output screen runs in parallel and a tool fired before its verdict | Not this skill's rule: protect-adk-sensitive-data owns where a screen runs (a screen that must prevent an effect runs blocking, before the agent acts; a rejected output keeps its completed tool events) | This skill supplies only the static halt message that replaces rejected text |
| Spend should degrade or suspend AI features | Cost controls | Read-only assessment or an application control plan; cloud changes require separate approval |
| Guarded work is moving to an API/worker or several instances | Serving and lifecycle | Wire real entry points, shared admission, recovery and owned cleanup into the selected host |
| Provider/browser behaviour or paid continuation needs evidence after offline checks | Live campaigns | Reproducible preflight, explicit continuation quotas, a durable shared attempt/spending envelope and honest outcome evidence |
| User requests a review or architecture recommendation | Relevant modes above; evidence for provenance | Prioritised findings and concrete acceptance criteria; implementation only if requested |
For a greenfield project, confirm Python/ADK selection before installing dependencies; prepare a dependency-free design and tests meanwhile. For an existing project, adapt its interfaces and persistence rather than installing the demonstration architecture. Preserve custom statuses, policy thresholds, public APIs and test tools unless the requested fix requires a change.
When the project has agents-cli-manifest.yaml, consult the installed google-agents-cli-adk-code skill (references/adk-python.md, or the long-horizon-harness, ambient-expense-agent and deep-search recipes) for the native confirmation and resume wiring the scaffold expects; if it is not installed, adk-engineer explains how to get it. The enforcement boundary and the evidence rules in this skill still govern.
pending_approval string is the message that gate sends, and the gate itself is the code.historical live evidence, mocks (local (mocked)) and proposed production work (guidance) stay apart. Record a fixture response as fixture evidence; live provider and human-review success each need their own observation. Evidence records this skill's prior evidence.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.
Use a separate operator identity for emergency infrastructure controls, inaccessible to the agent. For paid tests, specify maximum submissions and actual provider attempts.
Report files changed, commands executed, actual results, the entry points covered, versions used, remaining manual steps and unverified behaviour. Identify any retained resources and the scope of cleanup if external work was approved. Do not commit, push, publish or deploy without explicit authorisation.
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.
This is an independent community project, not affiliated with or endorsed by Google. Design provenance and the distinction between the companion's local implementation and production advice are in evidence.
LICENSE (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/invocation_guard.py (opens in a new tab)references/compatibility.md (opens in a new tab)references/cost-controls.md (opens in a new tab)references/evidence.md (opens in a new tab)references/human-review.md (opens in a new tab)references/live-campaigns.md (opens in a new tab)references/operating-rules.md (opens in a new tab)references/runtime-bounds.md (opens in a new tab)references/serving-and-lifecycle.md (opens in a new tab)references/token-budgets.md (opens in a new tab)references/validation.md (opens in a new tab)scripts/inspect_project.py (opens in a new tab)tests/adk_boundary.py (opens in a new tab)tests/test_inspect_project.py (opens in a new tab)tests/test_invocation_guard.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
google-adk, agent-guardrails, cost-control, human-approval, token-budget
Other plugins' skills for the same job
npx claudepluginhub ruslankhis/agentic-engineering-skills --plugin agentic-engineering26 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)./adk-agent-interoperabilityConnect, expose or audit Python Google ADK agents across process boundaries with MCP and A2A: tool-source selection (FunctionTool, OpenAPIToolset, McpToolset, Toolbox, Application Integration), consuming MCP servers (connection, lifecycle, tool_filter, prefixes, headers, the confirmation flag, SDK pin), exposing an agent as an MCP server, the sub-agents versus remote A2A topology decision, consuming a remote agent with RemoteA2aAgent (agent cards, task states, streaming, timeouts), exposing with to_a2a and registering on Agent Runtime or Gemini Enterprise. Use when an agent must call or be called by another service or framework, or to review MCP and A2A wiring. Do not activate for the MCP threat model, allowlists or pinning policy (adk-agent-security), in-process orchestration (adk-workflow-design), OAuth plumbing (adk-tool-auth-and-secrets), one API call's retry policy (safe-api-tool-calls) or deployment (deploy-adk-on-google-cloud)./adk-agent-observabilityInstrument, monitor, alert on and debug Python Google ADK agents in production: the spans, metrics and logs ADK emits and their environment gates, exporters per host, SLIs, SLOs and alerts including Online Monitors, BigQuery Agent Analytics, feedback capture, production traces into evaluation cases, trace-to-session debugging, operations handover to a client's IT team and blameless agent postmortems. Use for missing or duplicated telemetry, token or cost accounting, alert design, dashboards or a production incident on an ADK agent. Do not activate for content-redaction policy (protect-adk-sensitive-data), GKE exporter allowlists and custom spans (optimise-adk-on-google-cloud), evaluation design (adk-agent-evaluation), enforcing budgets (adk-operational-guardrails), canary and rollback (adk-release-engineering), first deployment (deploy-adk-on-google-cloud) or Terraform and CLI scaffolding of telemetry (Google's agents-cli skills)./adk-agent-securityThreat-model, harden or review a whole Python Google ADK agent against prompt injection, tool and MCP supply-chain compromise, excessive agency, insecure output handling and unsafe code execution: the lethal-trifecta check, injection-resistant structure, MCP allowlists and pinning, tool tiering (which actions need confirmation), code-executor selection and an adversarial suite with forbidden-action assertions, mapped to OWASP IDs. Use when an agent reads untrusted content and can act, before exposing MCP servers or code execution, or for a security review. Do not activate for PII screening and Model Armor (protect-adk-sensitive-data), credential plumbing (adk-tool-auth-and-secrets), approval mechanics and budgets (adk-operational-guardrails), MCP or A2A wiring (adk-agent-interoperability), eval harness runs (adk-agent-evaluation), delimiting documents in drafts (adk-workflow-design) or questionnaire answers (adk-governance-pack)./adk-discoveryFind where AI would pay off in a business and pick the first use case, before any system is designed: with a rough area in mind, locate where the current journey breaks, choose the first workflow to improve and the business outcome to measure with its baseline; with no use case at all, go from what the business does and the KPIs it watches to the processes that drive them and the opportunities in them. Every opportunity gets a technology fit (agent, single LLM call, classical machine learning, rules or scripting, or a process change) and the portfolio is ranked. Ends with a discovery brief and the prompt for adk-system-designer. Do not activate when the use case and its measure are already chosen (adk-system-designer), for a change to an existing agent (adk-engineer), for market or competitor research, or to present results (adk-presenter).