staging-deploy

staging-deploy is a skill for Claude Code from srnichols/plan-forge. It costs 30 tokens per session (858 once invoked), scanned A, original, MIT.

A procedure for deploying a completed .NET application to a staging environment, a test copy that resembles production. It builds and tests the app, creates and pushes a container image, runs database migrations, deploys it, and checks its health.

In plain words
What is it for?
Use it to deploy with Docker, Kubernetes, or Docker Compose, apply pending PostgreSQL migrations, and run health, version, and smoke checks.
Why use it?
It makes staging deployments repeatable and stops the process when pre-deployment checks fail.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to deploy with Docker, Kubernetes, or Docker Compose, apply pending PostgreSQL migrations, and run health, version, and smoke checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/srnichols/plan-forge/staging-deploy
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 srnichols/plan-forge --skill staging-deploy
Clone the repo
git clone --depth 1 https://github.com/srnichols/plan-forge

Made for: Claude Code.

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 staging-deploy

README.md
[![agentmods](https://agentmods.dev/badge/skills/srnichols/plan-forge/staging-deploy/github.svg)](https://agentmods.dev/skills/srnichols/plan-forge/staging-deploy)
Your own site
<a href="https://agentmods.dev/skills/srnichols/plan-forge/staging-deploy"><img src="https://agentmods.dev/badge/skills/srnichols/plan-forge/staging-deploy/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 staging-deploy

Your own site · 80×15
<a href="https://agentmods.dev/skills/srnichols/plan-forge/staging-deploy"><img src="https://agentmods.dev/badge/skills/srnichols/plan-forge/staging-deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 858 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00030 $0.00858
Opus 5.5 $0.00012 $0.00343
Sonnet 5.5 $0.00006 $0.00172
Haiku 4.5 $0.00003 $0.00086

Measured 3mo ago against content hash 5d7a1e1699b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

staging-deploy scanned grade A with 1 finding 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 3mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -f https://staging-api.contoso.com/health
presets/dotnet/.github/skills/staging-deploy/SKILL.md · 97 lines

How it starts

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

Staging Deploy Skill

Trigger

"Deploy to staging" / "Push to staging environment"

Steps

0. Pre-flight Forge Validation

Use the forge_validate MCP tool to verify setup integrity before deploying.

1. Pre-Flight Checks

dotnet build --configuration Release
dotnet test --configuration Release --no-build

Conditional: Pre-Flight Failure

If Step 1 (Pre-Flight Checks) fails → STOP. Do not proceed to build.

2. Build Container

docker build -t contoso-api:staging -f Dockerfile .
docker tag contoso-api:staging registry.contoso.com/api:staging
docker push registry.contoso.com/api:staging

3. Run Migrations

# Apply pending database migrations
psql -h staging-db -d contoso_staging -f Database/migrations/latest.sql

4. Deploy

# Kubernetes
kubectl apply -f k8s/staging/ --context staging

# Or Docker Compose
docker compose -f docker-compose.staging.yml up -d

5. Verify

# Health check
curl -f https://staging-api.contoso.com/health

# Version check
curl https://staging-api.contoso.com/api/version

# Smoke test
dotnet test --filter "Category=Smoke" -- TestEnvironment=Staging

Safety Rules

  • ALWAYS run tests before deploying
  • ALWAYS verify health endpoint after deploy
  • NEVER deploy to production using this skill
  • Rollback: kubectl rollout undo deployment/api --context staging

Temper Guards

Shortcut Why It Breaks
"It works locally, skip staging" Local environments mask configuration, networking, and scaling issues that only surface in staging.
"Health check isn't needed yet" Without health checks, orchestrators can't detect failures. A "successful" deploy may serve errors silently.
"I'll add monitoring after launch" Post-launch is too late. Staging is where you verify observability works before production traffic arrives.
"One big deploy is simpler" Monolithic deploys are harder to roll back. Deploy incrementally so failures are isolated to a single change.

Read the full file on GitHub · 97 lines

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. 3mo ago First seen · 97 lines · 30 tokens per session scan A 5d7a1e1699b6

Subscribe to this mod's changes

staging-deploy is a skill published in the GitHub repository srnichols/plan-forge (6 stars, last pushed 1mo ago), licensed MIT. It adds 30 tokens to every session and 858 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

staging-deploy compared with skills from other repositories

staging-deploy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
staging-deploysrnichols/plan-forgeSkill61mo agoMITA30Claude Code
aspiremanagedcode/dotnet-skillsSkill530todayMITA145Claude Code, Codex
azure-functionsmanagedcode/dotnet-skillsSkill530todayMITA113Claude Code, Codex
entity-framework-coremanagedcode/dotnet-skillsSkill530todayMITA110Claude Code, Codex
entity-framework6managedcode/dotnet-skillsSkill530todayMITA114Claude Code, Codex
deploymentmatrixorigin/memoriaSkill6318d agoApache-2.0A28Claude Code, Codex
infra-conventionsfpindej/netrockSkill23618d agoMITA20Claude Code