gcp-key-restrictions

gcp-key-restrictions is a skill for Claude Code, Codex from shivamsriva31093/gcp-ironclad. It costs 59 tokens per session (923 once invoked), scanned A, original, MIT.

A visual-asset generation guide for creating images from a specific brief, such as hero artwork, illustrations, textures, or marketing visuals.

In plain words
What is it for?
Preparing reusable visual assets, documenting the prompt used to make them, and keeping image style and composition consistent across versions.
Why use it?
It helps produce images with a planned subject, composition, style, aspect ratio, and space for text instead of relying on improvised prompts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Preparing reusable visual assets, documenting the prompt used to make them, and keeping image style and composition consistent across versions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shivamsriva31093/gcp-ironclad/gcp-key-restrictions
Install

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.

Any agent
npx skills add shivamsriva31093/gcp-ironclad --skill gcp-key-restrictions
Clone the repo
git clone --depth 1 https://github.com/shivamsriva31093/gcp-ironclad

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for gcp-key-restrictions

README.md
[![agentmods](https://agentmods.dev/badge/skills/shivamsriva31093/gcp-ironclad/gcp-key-restrictions/github.svg)](https://agentmods.dev/skills/shivamsriva31093/gcp-ironclad/gcp-key-restrictions)
Your own site
<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.

agentmods 80×15 button for gcp-key-restrictions

Your own site · 80×15
<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>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 923 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash 0e927982e6c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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.

skills/gcp-key-restrictions/SKILL.md · 74 lines

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-ironclad as Phase 3b, after gcp-spend-guardrails.
  • Or standalone when you have a known list of unrestricted keys to lock down.

Inputs

  • SESSION_DIR (must contain a fresh audit.json with riskClass = "CRITICAL" entries).
  • DRY_RUN env var (default 0).
  • MAX_INFERRED_APIS env var (default 5 — keys with usage across more APIs are flagged, not auto-restricted).
  • LOOKBACK_DAYS env var (default 30).

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):

  1. If createTime is within the last 7 days → outcome "flagged", reason "too_fresh".
  2. Else query Monitoring serviceruntime.googleapis.com/api/request_count grouped by metric.label.service, filtered to credential_id = apikey:${uid}, over LOOKBACK_DAYS.
  3. 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.

Read the full file on GitHub · 74 lines

Files

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.

Changes

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.

  1. 12d ago First seen · 74 lines · 59 tokens per session scan A 0e927982e6c8

Subscribe to this mod's changes

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.

Related

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.

personamanagmentlayer/pcl · 55 tokens

gcp-expert

Expert-level Google Cloud Platform, services, and cloud architecture. Use when the user mentions Google Cloud, Cloud Functions, BigQuery, or Firestore.

personamanagmentlayer/pcl · 35 tokens

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 →…

costory-io/costory-finops-mcp-skills · 223 tokens

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…

diegosouzapw/awesome-omni-skills · 81 tokens

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…

google/agents-cli · 153 tokens

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.

fengshao1227/ccg-workflow · 65 tokens