pulumi-context-api

pulumi-context-api is a skill for Claude Code from pulumi/agent-skills. It costs 153 tokens per session (1,140 once invoked), scanned A, original, Apache-2.0.

A way to query an organization's cloud infrastructure as a dependency graph through Pulumi Cloud. A graph shows which resources and stacks are connected and depend on one another.

In plain words
What is it for?
Use it to investigate dependencies, trace stack outputs, estimate the impact of changes, and explore reachable infrastructure resources.
Why use it?
It answers relationship questions that individual resource searches cannot, such as what a change may affect or what depends on a resource.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the pulumi plugin — 9 skills shipped together

Good fit Use it to investigate dependencies, trace stack outputs, estimate the impact of changes, and explore reachable infrastructure resources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pulumi/agent-skills/pulumi-context-api
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 pulumi/agent-skills --skill pulumi-context-api
Clone the repo
git clone --depth 1 https://github.com/pulumi/agent-skills

Made for: Claude Code.

Or install pulumi, the plugin that ships this one along with the rest of its 9 skills.

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 pulumi-context-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/pulumi/agent-skills/pulumi-context-api/github.svg)](https://agentmods.dev/skills/pulumi/agent-skills/pulumi-context-api)
Your own site
<a href="https://agentmods.dev/skills/pulumi/agent-skills/pulumi-context-api"><img src="https://agentmods.dev/badge/skills/pulumi/agent-skills/pulumi-context-api/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 pulumi-context-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/pulumi/agent-skills/pulumi-context-api"><img src="https://agentmods.dev/badge/skills/pulumi/agent-skills/pulumi-context-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,140 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00153 $0.01140
Opus 5 $0.00077 $0.00570
Sonnet 5 $0.00031 $0.00228
Haiku 4.5 $0.00015 $0.00114

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

Security

Grade A, and why

pulumi-context-api 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 10d 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.

pulumi/skills/pulumi-context-api/SKILL.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Query the Pulumi Context API

The Context API answers questions about an organization's cloud infrastructure as a graph: what exists, what depends on what, what a change would affect. It covers resources found through Pulumi Discovery, not just Pulumi-managed ones.

Prefer it over Resource Search whenever the question involves relationships. Resource Search finds individual resources but cannot follow edges, so answering "what depends on X" with repeated searches is slow and usually incomplete.

Public preview, for organizations on the Enterprise and Business Critical editions. Needs Pulumi CLI v3.243.0 or newer, an active pulumi login, and a role granting resources:search (the default Member and Admin roles do).

Step 1: fetch the primer, always

pulumi whoami -v lists every organization the login can reach. Ask which one the question is about rather than assuming the default org — that is often an individual account with no entitlement.

pulumi api GetGraphSchema -F orgName=<org>

This returns a self-contained guide to composing selectors — vocabulary, edge types, engine caps, worked examples, pagination, completeness rules, and the traps that produce a confident wrong answer instead of an error. It is served by the deployment that answers your queries, so it is the contract, and it moves between schema versions. This skill bootstraps you to it and stops there; everything below defers to it. Fetch it fresh in every session and for every org you query — a primer remembered from earlier may describe a schema this deployment no longer serves.

Read it in full — never truncate it with head, tail, or a byte cap. A clipped primer means malformed selectors and rejected queries.

If this call fails

You have no primer yet, so handle it here rather than looking it up there:

Response Meaning
402 Payment Required the org's edition doesn't include the Context API
409 Conflict a self-hosted install whose license doesn't enable it
404 Not Found: '<org>' not found bad org name, or the caller lacks permission on it
404 Not Found, detail-free a wrong path or method name, or a deployment without the endpoint
503 Service Unavailable transient — retry

Read the full file on GitHub · 110 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. 10d ago First seen · 110 lines · 153 tokens per session scan A 77f1b12fadf5

Subscribe to this mod's changes

pulumi-context-api is a skill published in the GitHub repository pulumi/agent-skills (67 stars, last pushed today), licensed Apache-2.0. It adds 153 tokens to every session and 1,140 once invoked, about $0.0008 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

infrastructure-as-code-guardian

Universal Infrastructure as Code (IaC) agent skill for authoring, securing, and managing cloud infrastructure across Terraform, Pulumi, CloudFormation, Ansible, and Bicep. Provides cross-tool security hardening, state management best practices, cost optimization, drift detection, and CI/CD integration. Covers AWS…

JPeetz/agent-skills · 254 tokens

terraform-expert

Expert-level Terraform infrastructure as code, modules, state management, and production best practices. Use when the user mentions infrastructure as code, devops, or automation, or when the task involves Terraform Basics, Resource Management, Modules, or State Management.

personamanagmentlayer/pcl · 53 tokens

terraform-docs

Terraform 1.15.x — configuration language, resources, variables, modules, state, backends, providers, functions.

pledgeandgrow/pledge-skills · 29 tokens

Terraform Infrastructure as Code

Production-grade Terraform development with HCL best practices, module design, state management, multi-cloud patterns, and AI-enhanced infrastructure as code for scalable cloud deployments.

bobmatnyc/mcp-skillset · 36 tokens

activate-site

Activates and provisions a Power Pages website in a Power Platform environment via the Power Platform REST API. Use when the user wants to activate, provision, turn on, or enable a Power Pages website or portal.

microsoft/power-platform-skills · 45 tokens

deploy

Builds and deploys a Power Apps code app to Power Platform. Use when deploying changes, redeploying an existing app, or pushing updates.

microsoft/power-platform-skills · 32 tokens