foundry-caphost-lifecycle

foundry-caphost-lifecycle is a skill for Claude Code, Codex from aiappsgbb/awesome-gbb. It costs 229 tokens per session (6,477 once invoked), scanned A, original, MIT.

An operations guide for Microsoft Foundry capability hosts, which provide infrastructure for Foundry capabilities inside Azure. It covers what to do after the initial setup, including inspection, removal, cleanup, and redeployment.

In plain words
What is it for?
Inspecting, recreating, deleting, soft-deleting, purging, and redeploying capability hosts through Azure operations.
Why use it?
It addresses deployment failures and stuck resources that can occur after deleting a network-connected Foundry account. In particular, it explains cleanup needed before reusing the same subnet.

Skill for Claude CodeCodex

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

Good fit Inspecting, recreating, deleting, soft-deleting, purging, and redeploying capability hosts through Azure operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiappsgbb/awesome-gbb/foundry-caphost-lifecycle
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 aiappsgbb/awesome-gbb --skill foundry-caphost-lifecycle
Clone the repo
git clone --depth 1 https://github.com/aiappsgbb/awesome-gbb

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 foundry-caphost-lifecycle

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiappsgbb/awesome-gbb/foundry-caphost-lifecycle.svg)](https://agentmods.dev/skills/aiappsgbb/awesome-gbb/foundry-caphost-lifecycle)
Your own site
<a href="https://agentmods.dev/skills/aiappsgbb/awesome-gbb/foundry-caphost-lifecycle"><img src="https://agentmods.dev/badge/skills/aiappsgbb/awesome-gbb/foundry-caphost-lifecycle.svg" alt="Measured on agentmods" height="20"></a>
Per session 229 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,477 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 warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Memory Poisoning · line 286
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
  • medium Agent Snooping · line 35
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00229 $0.06477
Opus 5 $0.00114 $0.03238
Sonnet 5 $0.00046 $0.01295
Haiku 4.5 $0.00023 $0.00648

Measured 7d ago against content hash 8f9b126c2a4a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

foundry-caphost-lifecycle 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 7d 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/foundry-caphost-lifecycle/SKILL.md · 491 lines

How it starts

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

Foundry Capability Host Lifecycle — Day-2 Operations

1. Goal

This skill teaches Day-2 operations for Microsoft Foundry capability hosts: how to inspect, idempotently re-create, delete, soft-delete the parent account, purge, and redeploy without tripping the Subnet already in use failure that blocks every team that has ever torn down a VNet-injected Foundry account.

This is explicitly not greenfield create — for first-time BYO-VNet deploys see foundry-vnet-deploy, and for the azd template flow see foundry-hosted-agents or threadlight-deploy. This skill is the field-experience overlay on top of the MS Learn capability-hosts page (learn.microsoft.com/azure/foundry/agents/concepts/capability-hosts) that ships with the operational knowledge MS Learn does not document.

2. When to use

Trigger this skill whenever any of these are true:

  • You teardown'd a Foundry VNet-injected account and now az deployment group create fails with Subnet already in use (or SubnetIsFull referencing a serviceAssociationLink) when you try to redeploy into the same agent subnet.
  • A caphost create is stuck in Creating for more than 10 minutes (the upstream operation has a documented ~5-15 min p99; longer means hung — go to § 9).
  • You need to change the connections referenced by a project capability host (e.g., swap a Cosmos connection). MS Learn is explicit: updates are not supported; delete + recreate is the only path.
  • You need to fully reclaim the soft-deleted account name within the 48h window (so a new account can be created with the same custom domain).
  • You want a clean teardown that releases the serviceAssociationLink on the agent subnet AND removes the hidden ACA Managed Environment that the capability host provisioned under the covers.
  • You have a soft-deleted account that needs to be recovered (not purged) before the 48h window expires.

Read the full file on GitHub · 491 lines

Files

What ships with it

2 files 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. 7d ago First seen · 491 lines · 229 tokens per session scan A 8f9b126c2a4a

Subscribe to this mod's changes

foundry-caphost-lifecycle is a skill published in the GitHub repository aiappsgbb/awesome-gbb (5 stars, last pushed yesterday), licensed MIT. It adds 229 tokens to every session and 6,477 once invoked, about $0.0011 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-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens