diff --git a/skills/deploy/preview.md b/skills/deploy/preview.md new file mode 100644 index 0000000..d9751e7 --- /dev/null +++ b/skills/deploy/preview.md @@ -0,0 +1,37 @@ +# Skill: Deploy Preview + +## Description +Deploys a preview environment for a feature branch. + +## Input +- **branch**: Branch name to deploy (required) +- **project**: Project name (required) +- **expire_hours**: Hours until auto-cleanup (optional, default: 24) + +## Steps +1. Validate branch exists in Gitea +2. Create preview deployment in Dokploy +3. Configure preview subdomain +4. Run deployment +5. Return preview URL + +## Output Format +```json +{ + "status": "success|error", + "preview": { + "url": "https://preview-branch-project.mylder.io", + "branch": "feature/my-feature", + "expires_at": "2024-12-12T12:00:00Z", + "deployment_id": "abc123" + }, + "logs_url": "https://dokploy.mylder.io/deployments/abc123" +} +``` + +## Token Budget +- Max input: 300 tokens +- Max output: 300 tokens + +## Model +- Recommended: haiku (simple orchestration)