adk-expert
Google ADK (Agent Development Kit) orchestration patterns — boundaries, agent composition, and tool seams. Trigger when designing…
LLM and cloud cost awareness — model tiering, token budgets, right-sizing, and when a cheaper model suffices. Trigger before finalising any architecture that calls LLMs, before scaling a workload, or when a cost estimate is needed.
Claude Code
$ npx -y skills add jpantsjoha/ai-native-developer-experience --skill cost-guardrail --agent claude-code
Codex
$ npx skills add jpantsjoha/ai-native-developer-experience --skill cost-guardrail -a codex -y
Cursor
$ npx skills add jpantsjoha/ai-native-developer-experience --skill cost-guardrail -a cursor -y
Gemini CLI
$ npx skills add jpantsjoha/ai-native-developer-experience --skill cost-guardrail -a gemini-cli -y
GitHub Copilot
$ npx skills add jpantsjoha/ai-native-developer-experience --skill cost-guardrail -a github-copilot -y
OpenCode
$ npx skills add jpantsjoha/ai-native-developer-experience --skill cost-guardrail -a opencode -y
Windsurf
$ npx skills add jpantsjoha/ai-native-developer-experience --skill cost-guardrail -a windsurf -y
name: cost-guardrail description: LLM and cloud cost awareness — model tiering, token budgets, right-sizing, and when a cheaper model suffices. Trigger before finalising any architecture that calls LLMs, before scaling a workload, or when a cost estimate is needed.
> **The most expensive model is the one running on every request when it does not need to.**
LLM cost is not a finance problem — it is an architecture problem. The design determines the bill. This skill enforces cost-awareness as a first-class design constraint, not an afterthought.
1. **Identify every LLM call in the system** — list: which agent or component makes the call, the model tier used, the approximate input and output token counts, and the call frequency (per user action / per minute / per batch).
2. **Apply the model tiering test** — for each LLM call, ask:
Starting hypotheses only (verify current pricing and qualify each task family before relying on them):
| Task type | Appropriate tier | |---|---| | Simple classification, extraction, summarisation | Small / fast model | | Complex reasoning, multi-step planning, code generation | Mid-tier model | | Deep analysis, architecture decisions, adversarial review | Highest-tier model |
A short ticket or one-file change does not qualify a cheap model. Require independent acceptance, preserve consequence floors, count failed attempts and bound escalation. Use the project's explicitly adopted routing mode; the [routing guide](references/model-routing.md) is not automatic consumer activation. Model/effort changes require a fresh baseline.
3. **Identify unbounded cost vectors** — flag any call pattern where the token count or call volume has no upper bound:
4. **Estimate the monthly cost envelope** — for each LLM call:
estimated monthly cost ≈ ((input tokens/call × input price) + (output tokens/call × output price)) × calls/month
Use current published rates from your provider. Do not use rates from training data — they change.
5. **Add cost controls** — for each unbounded vector:
6. **Check for caching opportunities** — LLM calls that return the same result for the same input are cacheable. Prompt caching (where supported by the provider) can reduce cost significantly on repeated prefixes.
7. **Document the cost model** — in the ADR or design doc, record: model tiers chosen, rationale, estimated monthly cost at target scale, and the controls in place.
For engineering-agent routing, use the task/effort matrix in [`council.md`](../pr-reviewer/references/council.md). Declare requested and resolved model, reasoning, bounded inputs, timeout, retry ceiling and acceptance test per lane. Measure total time/known cost to accepted outcomes including review and rework; unknown usage is not zero. Start with the smallest proven capable model, escalating on observed failure or ambiguity while preserving the quality and independence floor.
| Excuse | Counter | |---|---| | "It's only a few cents per call" | At scale, cents become thousands of dollars. Estimate the monthly envelope. | | "We'll optimise later" | Cost optimisation is hardest after the architecture is set. Do it now. | | "The big model gives better results" | Verify with a test. Small models are often sufficient for structured tasks. | | "We don't know the volume yet" | Estimate a range. A 10x cost swing between low and high volume is a design risk. |
**Shared ways of working for you, your team and your AI agents — from a new idea to a change running live.** join-the-team brings planning, delivery and ticket management, model selection, testing, independent review and release practices into one reusable
Google ADK (Agent Development Kit) orchestration patterns — boundaries, agent composition, and tool seams. Trigger when designing…
JP's signature red-team pass — "how would I break this?" Argue against your own approach before proceeding. Trigger on any…
Read-only SRE checkup of any GCP project: deterministic probes of the edge, Cloud Run services, 7-day error logs, Cloud…
Cloud guardrails for any vendor workload — Google Cloud (GCP, Vertex AI, GKE), AWS (IAM, EKS, Bedrock), Azure (Entra ID, Policy,…
Challenge vision alignment, value, cost, risk and operating ownership at material scope or release decisions.
Decompose an epic into atomic parallelizable tasks, route each to the right skill, and keep the four delivery records straight —…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.