Skip to content
Back to skills

Deploy

ASecurity

Use this skill to help deploy code to an environment. Triggered by "deploy", "deploy to staging", "deploy to production", "ship it".

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
devopsbashdockerkubernetesawsgitsecurity

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned May 27, 2026

npx -y skills add Imran-ml/claude-skills --skill deploy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deploy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deploy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/imran-ml-deploy/badge)](https://www.skillsdirectory.com/skills/imran-ml-deploy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: deploy
description: |
  Use this skill to help deploy code to an environment. Triggered by
  "deploy", "deploy to staging", "deploy to production", "ship it".
argument-hint: "[environment: staging|production|preview]"
allowed-tools: "Bash, Read"
disable-model-invocation: true
---

# Deployment Helper

Safely deploy to `$ARGUMENTS` (defaults to `staging` if not specified).

## Pre-Deploy Checklist

!`git status && echo "---" && git log --oneline -3`

### 1. Environment Confirmation

**Target:** $ARGUMENTS

⚠️  If deploying to **production**, I will explicitly confirm with you before running any deploy commands.

### 2. Pre-flight Checks

```bash
# Ensure clean working tree
git status

# Run tests
npm test

# Run linter
npm run lint

# Check for security issues
npm audit --audit-level=high

# Build
npm run build
```

### 3. Deploy Steps

Depending on your setup, deploy with one of:

```bash
# Vercel
vercel --prod   # production
vercel          # preview

# Railway
railway up

# Fly.io
fly deploy

# AWS (via CDK or SAM)
cdk deploy
sam deploy

# Kubernetes
kubectl apply -f k8s/ --namespace=production

# Docker Compose
docker-compose -f docker-compose.prod.yml up -d

# Heroku
git push heroku main

# GitHub Actions (trigger workflow)
gh workflow run deploy.yml --ref main -f environment=$ARGUMENTS
```

### 4. Post-Deploy Verification

```bash
# Check health endpoint
curl -f https://your-app.com/health

# Tail logs for errors
# vercel logs --follow
# fly logs
# kubectl logs -f deployment/app-name
```

### 5. Rollback (if needed)

```bash
# Vercel: revert to previous deployment in dashboard
# Fly.io:    fly releases list; fly deploy --image <old-image>
# Kubernetes: kubectl rollout undo deployment/app-name
# Git:        git revert HEAD && git push
```

## Rules

- Always run tests before deploying
- Always confirm before deploying to production
- Keep a rollback plan ready
- Monitor error rates for 10 minutes post-deploy

$ARGUMENTS

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.