Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add shivamsriva31093/gcp-ironclad --skill gcp-key-restrictionsgit clone --depth 1 https://github.com/shivamsriva31093/gcp-ironcladWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/shivamsriva31093/gcp-ironclad/gcp-key-restrictions)<a href="https://agentmods.dev/skills/shivamsriva31093/gcp-ironclad/gcp-key-restrictions"><img src="https://agentmods.dev/badge/skills/shivamsriva31093/gcp-ironclad/gcp-key-restrictions/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/shivamsriva31093/gcp-ironclad/gcp-key-restrictions"><img src="https://agentmods.dev/badge/skills/shivamsriva31093/gcp-ironclad/gcp-key-restrictions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.00923 |
| Opus 5 | $0.00030 | $0.00462 |
| Sonnet 5 | $0.00012 | $0.00185 |
| Haiku 4.5 | $0.00006 | $0.00092 |
Grade A, and why
gcp-key-restrictions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GCP Key Restrictions (APPLY)
Overview
For each API key flagged CRITICAL (unrestricted) by gcp-credentials-audit, queries the last 30 days of Cloud Monitoring request_count filtered by that key's credential_id, and — if the usage signal is unambiguous — restricts the key to exactly those APIs via gcloud services api-keys update. Keys with no usage signal, signals spanning >5 APIs, or that are <7 days old are demoted to "flag for review" rather than auto-restricted.
When to Use
- Triggered by
gcp-ironcladas Phase 3b, aftergcp-spend-guardrails. - Or standalone when you have a known list of unrestricted keys to lock down.
Inputs
SESSION_DIR(must contain a freshaudit.jsonwithriskClass = "CRITICAL"entries).DRY_RUNenv var (default0).MAX_INFERRED_APISenv var (default5— keys with usage across more APIs are flagged, not auto-restricted).LOOKBACK_DAYSenv var (default30).
Outputs
Writes ${SESSION_DIR}/key-restrictions.json matching output.schema.json.
Execution
Step A: Load candidate keys
jq -r '.credentials[] | select(.type == "api_key" and .riskClass == "CRITICAL") | "\(.project)\t\(.uid)\t\(.displayName)\t\(.createTime)"' \
"${SESSION_DIR}/audit.json" > "${SESSION_DIR}/restriction-candidates.tsv"
wc -l "${SESSION_DIR}/restriction-candidates.tsv"
Step B: For each candidate, query usage
For each line (project, uid, displayName, createTime):
- If
createTimeis within the last 7 days → outcome"flagged", reason"too_fresh". - Else query Monitoring
serviceruntime.googleapis.com/api/request_countgrouped bymetric.label.service, filtered tocredential_id = apikey:${uid}, overLOOKBACK_DAYS. - Collect the set of unique services with non-zero counts.
- If set is empty → outcome
"flagged", reason"no_usage_signal". - If set size >
MAX_INFERRED_APIS→ outcome"flagged", reason"signal_too_broad". - Otherwise the set is the proposed
apiTargets.
- If set is empty → outcome
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 74 lines · 59 tokens per session scan A 0e927982e6c8
gcp-key-restrictions is a skill published in the GitHub repository shivamsriva31093/gcp-ironclad (24 stars, last pushed 1mo ago), licensed MIT. It adds 59 tokens to every session and 923 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
finops-expert
Expert-level cloud financial operations, cost optimization, and cloud economics. Use when the user mentions cloud cost, optimization, cloud economics, or AWS cost, or when the task involves FinOps Fundamentals, Cost Management, FinOps Practices, or Cost Visibility.
gcp-expert
Expert-level Google Cloud Platform, services, and cloud architecture. Use when the user mentions Google Cloud, Cloud Functions, BigQuery, or Firestore.
recipes
Use when a user states a FinOps outcome rather than a tool. Route to one recipe card, then hand off: bill jump → explain-period-change (DIGEST preview); marketplace → marketplace-spend; K8s namespace → namespace-cost; credits runway → provider-credits; GCP spend CUD leftover → gcp-spend-cud; BigQuery warehouse →…
aegisops-ai
/aegisops-ai — Autonomous Governance Orchestrator workflow skill. Use this skill when the user needs Autonomous DevSecOps & FinOps Guardrails. Orchestrates Gemini 3 Flash to audit Linux Kernel patches, Terraform cost drifts, and K8s compliance and the operator should preserve the upstream workflow, copied support…
google-agents-cli-deploy
This skill should be used when the user wants to "deploy an agent", "deploy my ADK agent", "set up CI/CD", "configure secrets", "troubleshoot a deployment", or needs guidance on Agent Runtime, Cloud Run, or GKE deployment targets, or binding an agent to an Agent Gateway. Covers deployment workflows, service accounts…
infrastructure
A guide for cloud-native infrastructure: software and configuration used to run applications in containers and manage cloud resources. It covers Kubernetes, Helm, Kustomize, GitOps tools such as ArgoCD and Flux, and infrastructure-as-code tools such as Terraform and Pulumi.