Back to guide/Developer Tools

Deployment & CI/CD Workflow

Claude Code can run every check command in sequence and compile results. The 'do not actually deploy' guardrail is critical for trust. Checking for hardcoded secrets and undocumented env vars catches the issues that cause most deployment failures.

claude-code-tutorialdeploymentTargetcurrentStatetestCommand
Edit View
Prompt
Prepare this project for deployment. Here is what I need:

**Target:** {{deploymentTarget}}
**Current state:** {{currentState}}

**Tasks:**
1. **Pre-deploy checks:**
   - Run the full test suite: {{testCommand}}
   - Run lint: {{lintCommand}}
   - Run type check: {{typeCheckCommand}}
   - Check for any TODO/FIXME comments in the code that should be resolved
   - Verify environment variables are documented

2. **Build verification:**
   - Run {{buildCommand}} and ensure it succeeds
   - Check the build output size and flag anything unusually large

3. **Deployment config:**
   - Verify {{configFile}} has the correct settings for {{environment}}
   - Check that sensitive values are using environment variables, not hardcoded

4. **Create a deploy checklist** as a comment summarizing:
   - What tests passed/failed
   - Any warnings from the build
   - Environment variables needed
   - Any manual steps required after deploy

Do not actually deploy — just prepare everything and give me the checklist.

Variables to customize

{{deploymentTarget}}{{currentState}}{{testCommand}}{{lintCommand}}{{typeCheckCommand}}{{buildCommand}}{{configFile}}{{environment}}

Why this prompt works

Claude Code can run every check command in sequence and compile results. The 'do not actually deploy' guardrail is critical for trust. Checking for hardcoded secrets and undocumented env vars catches the issues that cause most deployment failures.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.