| name | qovery-preview |
| description | Creates temporary preview environments from pull requests via Qovery. Detects or creates a blueprint environment, clones it for each PR, switches git branches, configures auto-shutdown, and handles cleanup. Supports full-stack and single-service previews. Use when the user asks for a PR preview, branch preview, ephemeral environment, or per-PR deployment on Qovery. |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developers","workflow":"preview-environments"} |
Qovery Preview Environment Skill
This skill creates preview environments on Kubernetes via Qovery. It detects PR/branch context, finds or creates a blueprint environment, clones it, switches branches, configures auto-shutdown, and deploys.
When to Use This Skill
Trigger phrases:
- "Create a preview environment for the current branch"
- "Create a PR environment for PR-123"
- "Set up preview environments for my project"
- "Clone my environment for this feature branch"
- "I want to test my PR in isolation"
- "Preview this branch on Qovery"
- "Create a temporary environment for my feature"
/qovery-preview (slash command)
Workflow checklist
Preview Environment Progress:
- [ ] Phase 1 — Context gathering (auth, PR/branch detection, org/cluster, blueprint check)
- [ ] Phase 2 — Create or find a blueprint environment
- [ ] Phase 3 — Clone the blueprint into the preview environment
- [ ] Phase 4 — Configure auto-shutdown (stop / delete / recycle)
- [ ] Phase 5 — Deployment plan summary + USER CONFIRMATION
- [ ] Phase 6 — Deploy & verify
- [ ] Phase 7 — Cleanup & lifecycle management
Reference materials (load on demand)
Quick reference
CLI commands
qovery environment clone --environment "staging" --name "blueprint"
qovery environment deploy --environment "blueprint"
qovery environment stop --environment "blueprint"
qovery environment clone --environment "blueprint" --name "preview-pr-123"
qovery environment deploy --environment "preview-pr-123"
qovery environment stop --environment "preview-pr-123"
qovery environment delete --environment "preview-pr-123"
qovery status --watch
qovery log --service "backend" --follow
qovery log --service "backend" --since 1h --filter "ERROR"
qovery service list
qovery environment list
API endpoints
# Base URL: https://api.qovery.com Auth: Authorization: Token $QOVERY_API_TOKEN
# Environment lifecycle
POST /environment/{envId}/clone Clone (blueprint or preview)
POST /environment/{envId}/deploy
POST /environment/{envId}/stop
DELETE /environment/{envId}
# Service configuration
GET /environment/{envId}/application List applications
PUT /application/{appId} Edit (switch branch)
GET /application/{appId}/link Get public URLs
GET /environment/{envId}/container List containers
PUT /container/{containerId} Edit (switch branch)
# Status
GET /environment/{envId}/statuses All service statuses
GET /environment/{envId}/logs Deployment logs v2
# Auto-shutdown jobs
POST /environment/{envId}/job Create cron job
POST /application/{jobId}/secret Set job secret (shutdown token)
# API tokens (for scoped tokens used by jobs)
POST /organization/{orgId}/apiToken
GET /organization/{orgId}/apiToken
DELETE /organization/{orgId}/apiToken/{tokenId}
# Service logs
GET /application/{appId}/log last 1000 lines
GET /container/{containerId}/log last 1000 lines
Reference links