en un clic
deploy
// Test and deploy changes safely. Runs tests as a pre-deploy gate, deploys, then runs post-deploy verification. This is a TEMPLATE — customize the commands and checks for your specific deployment pipeline.
// Test and deploy changes safely. Runs tests as a pre-deploy gate, deploys, then runs post-deploy verification. This is a TEMPLATE — customize the commands and checks for your specific deployment pipeline.
| name | deploy |
| description | Test and deploy changes safely. Runs tests as a pre-deploy gate, deploys, then runs post-deploy verification. This is a TEMPLATE — customize the commands and checks for your specific deployment pipeline. |
| user_invocable | true |
Deploy changes to production with automated testing and verification.
Arguments after /deploy:
--all — deploy everything--skip-tests — skip pre-deploy tests (use only if tests were just run)Valid targets: [YOUR_SERVICE_1], [YOUR_SERVICE_2], [YOUR_SERVICE_3]
If no target specified, check git for changes:
git diff --name-only HEAD
git diff --name-only --cached
Map changed files to affected targets and determine what needs deploying.
[YOUR_TEST_COMMAND]
[YOUR_DEPLOY_COMMAND] [target-name]
Deploy targets one at a time. If a deploy fails, stop and report — do not continue deploying remaining targets.
[YOUR_VERIFICATION_COMMAND]
If verification fails:
# Example rollback: restore previous version and redeploy
git checkout [previous-commit] -- [path/to/service/]
[YOUR_DEPLOY_COMMAND] [target-name]
git checkout HEAD -- [path/to/service/]
[YOUR_HEALTH_CHECK_COMMAND]
Deploy Complete
───────────────
Targets deployed: [list]
Tests: X/Y passed
Verification: passed
Health: ok
Do NOT use this skill for:
Here's what the skeleton above looks like with the placeholders replaced. Stack: a Node.js API on Fly.io with a Postgres backend, health-checked via curl. Adapt to your own stack — this is reference, not prescription.
git diff --name-only HEAD
git diff --name-only --cached
Mapping: anything under src/api/ → deploy api. migrations/ touched → run migration after deploy.
npm test
Fail → STOP, fix first.
flyctl deploy --app my-api
Fail → STOP. Don't continue to other targets if this is part of a multi-target deploy.
curl -fsSL https://my-api.fly.dev/health
flyctl releases list --app my-api
flyctl deploy --image registry.fly.io/my-api:<previous-tag>
curl -fsSL https://my-api.fly.dev/health | jq '.db_connected'
Confirms DB and downstream dependencies are reachable, not just the HTTP listener.
Deploy Complete
───────────────
Targets deployed: api
Tests: 47/47 passed
Verification: passed
Health: ok (db_connected: true)
Other stacks fit the same shape: Supabase Edge Functions (shadow-slug deploy + smoke probe + swap), Vercel (preview → promote with vercel --prod), Cloudflare Workers (wrangler deploy + health probe), AWS Lambda (sam deploy + CloudWatch check). Pick the one closest to your stack and substitute. The 6-step structure stays.
Get a second opinion from Google's Gemini Pro via the locally installed Gemini CLI (defaults to gemini-3.1-pro-preview; override with the CLAUDE_SECOND_OPINION_MODEL env var). Use this skill when in Plan Mode for large or critical tasks, when stuck on a debugging dead end, when facing architecture trade-offs, for subtle edge cases in code review, or any situation where an independent perspective would add value. Also use when the user explicitly asks for a "second opinion", "ask Gemini", "another perspective", or "cross-check this". Reports unavailability rather than falling back to a weaker model.
Update project documentation after code changes. Maintains the 4 core ai-context files (spec, project-structure, progress, deployment-infrastructure) and CLAUDE.md. Use after completing features, refactors, or any changes that affect project structure, capabilities, or status. Also creates initial documentation if files don't exist yet.
Review uncommitted code changes using parallel Claude sub-agents with specialized roles (Bug Hunter, Rules Auditor). Spawns multiple focused reviewers for large diffs (50+ lines), single reviewer for smaller changes. Checks for bugs, security issues, CLAUDE.md compliance, and test coverage gaps. Use after completing substantial implementation work, or when the Stop hook requests it. Also invocable manually with /review-work.
Remove backgrounds from images using local AI (rembg). Use when removing backgrounds from character art, mascot images, photos, or any image that needs a transparent background.
Edit images with precision — crop, resize, mirror, rotate, trim, and reframe. Use this skill whenever the user asks to crop, resize, trim, mirror, flip, rotate, reframe, or otherwise manipulate an image. Also use for creating square crops, portraits/headshots from full-body images, icon sizes, or any image transformation. Even if the request sounds simple, this skill prevents common pitfalls and ensures correct results on the first try.
Generate character art and image variations using AI image generation (Google Gemini) with reference images for style and character consistency. Use this skill when the user asks to generate new character poses, mascot variations, art assets, illustrations, or any AI-generated images — especially when maintaining consistency with an existing character or style.