claude-workspace: Command for Claude Code

.claude/commands/deploy.md

deploy is a command for Claude Code from Piyush8296/claude-workspace. It costs 5 tokens per session (789 once invoked), scanned A, original, MIT.

A pre-release checklist for checking whether an application is ready for production. Production is the live environment used by real customers.

In plain words
What is it for?
Checking environment variables, builds, bundle sizes, tests, code warnings, source maps, migrations, and API readiness.
Why use it?
It catches missing settings, exposed secrets, build errors, failing tests, oversized files, and database or API problems before release.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is Piyush8296/claude-workspace's own configuration. It tells Claude Code how to work on claude-workspace itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-workspace configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Piyush8296/claude-workspace. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Piyush8296/claude-workspace/main/.claude/commands/deploy.md
Clone the repo
git clone --depth 1 https://github.com/Piyush8296/claude-workspace

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 deploy

README.md
[![agentmods](https://agentmods.dev/badge/commands/piyush8296/claude-workspace/deploy/github.svg)](https://agentmods.dev/commands/piyush8296/claude-workspace/deploy)
Your own site
<a href="https://agentmods.dev/commands/piyush8296/claude-workspace/deploy"><img src="https://agentmods.dev/badge/commands/piyush8296/claude-workspace/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 deploy

Your own site · 80×15
<a href="https://agentmods.dev/commands/piyush8296/claude-workspace/deploy"><img src="https://agentmods.dev/badge/commands/piyush8296/claude-workspace/deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 789 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.00005 $0.00789
Opus 5.5 $0.00002 $0.00316
Sonnet 5.5 $0.00001 $0.00158
Haiku 4.5 $0.00001 $0.00079

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

Security

Grade A, and why

deploy 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 1mo 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.

.claude/commands/deploy.md · 87 lines

How it starts

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

Deploy Readiness Check

Run a comprehensive pre-deployment verification before shipping to production.

Steps

1. Environment Validation

  • Verify all required environment variables are set for the target environment
  • Check .env.example is in sync with actual .env usage across the codebase
  • Confirm no secrets or API keys are hardcoded in source files
  • Validate environment-specific configs (API URLs, feature flags, analytics IDs)

2. Build Verification

  • Run npm run build (or equivalent) and confirm zero errors
  • Check bundle size against budgets: main JS < 200KB gzipped, CSS < 50KB gzipped
  • Verify no console.log or debugger statements in production code
  • Confirm source maps are configured correctly (generated but not publicly served)
  • Check for any TypeScript @ts-ignore or any type escapes added in this release

3. Test Suite

  • Run full test suite: npm test -- --coverage
  • Confirm coverage thresholds are met (statements > 80%, branches > 75%)
  • Run E2E tests against staging: npm run test:e2e
  • Verify no skipped tests (.skip) were left from debugging

4. Database & API

  • List any pending database migrations and verify they are reversible
  • Confirm API versioning: no breaking changes to existing endpoints
  • Check that new API endpoints have rate limiting configured
  • Verify webhook endpoints have retry/idempotency handling

5. Feature Flags

  • List all feature flags modified in this release
  • Confirm flags default to OFF for new features
  • Document flag cleanup plan for flags older than 30 days
  • Verify flag evaluation doesn't block critical render path

6. Performance Check

  • Run Lighthouse CI and confirm scores: Performance > 90, Accessibility > 95
  • Check Core Web Vitals: LCP < 2.5s, INP < 200ms, CLS < 0.1
  • Verify no render-blocking resources added
  • Confirm images are optimized (WebP/AVIF with fallbacks, proper sizing)

7. Security Scan

  • Run npm audit and confirm no high/critical vulnerabilities
  • Check CSP headers are configured for new external resources
  • Verify authentication flows work end-to-end
  • Confirm CORS policies are correct for the target environment

Read the full file on GitHub · 87 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. 1mo ago First seen · 87 lines · 5 tokens per session scan A 260285165e72

Subscribe to this mod's changes

deploy is a command published in the GitHub repository Piyush8296/claude-workspace (2 stars, last pushed 6mo ago), licensed MIT. It adds 5 tokens to every session and 789 once invoked, about $0.0000 per session on Opus 5.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.