Deploy Skill
Guided deployment with pre-deploy checklist and checkpoint creation
Commands
| Command | Description | Example |
|---|---|---|
/deploy dev |
Deploy to development | /deploy dev |
/deploy staging |
Deploy to staging | /deploy staging |
/deploy prod |
Deploy to production (full checklist) | /deploy prod |
Note: Auto-deploy is not possible from the Gemini CLI Extension. This skill provides a guided checklist and ensures safety steps are taken. The actual deploy command must be run by the user or CI/CD pipeline.
How to Execute
1. Pre-Deploy Checkpoint
Before any deployment:
- Call
bkit_checkpointto create a restore point - Record the checkpoint ID for potential rollback
- Note: If checkpoint fails, warn user but do not block
2. Environment-Specific Checklists
Development (/deploy dev)
- All modified files saved
- No syntax errors (
node -con changed files) - Local tests pass (if configured)
- Checkpoint created
Staging (/deploy staging)
All of dev checklist, plus:
- PDCA Check phase completed (match rate >= 80%)
- No
TODOorFIXMEin changed files - Environment variables documented
- API changes backward-compatible
Production (/deploy prod)
All of staging checklist, plus:
- PDCA Check phase completed (match rate >= 90%)
- Code review completed (
/code-review) - All tests pass
- No debug/console.log statements
- Rollback plan documented
- PDCA report generated (
/pdca report) - Changelog updated
3. Deploy Command Guidance
After checklist is verified, provide the appropriate deploy command:
# Development
npm run deploy:dev # or project-specific command
# Staging
npm run deploy:staging
# Production
npm run deploy:prod
4. Post-Deploy Verification
After deployment:
- Verify the deployment was successful
- Check health endpoints (if applicable)
- Update PDCA status to "deployed"
- Log the deployment in audit trail
Output Format
## Deploy Checklist: {environment}
### Pre-Deploy
- [x] Checkpoint created (ID: chk-20260409-143000)
- [x] Syntax check passed (12 files)
- [x] PDCA match rate: 94%
- [ ] Code review: PENDING
### Deploy Command
Run: `npm run deploy:staging`
### Post-Deploy
- [ ] Verify health endpoint
- [ ] Update PDCA status
Safety Rules
- Production requires explicit confirmation - Never auto-deploy to prod
- Checkpoint is mandatory - Always create before deploy
- Match rate threshold - Warn if below required threshold for environment
- Rollback ready - Always provide rollback instructions with checkpoint ID