🧪 Skills
Puter Deployer
Deploy or update Puter-hosted web apps/sites with a CLI-first, verify-first workflow. Use when user asks to publish to Puter, update an existing Puter app/si...
v1.0.1
Description
name: puter-deployer description: Deploy or update Puter-hosted web apps/sites with a CLI-first, verify-first workflow. Use when user asks to publish to Puter, update an existing Puter app/site, create a new Puter app from a build directory, troubleshoot failed Puter deployment, or prepare rollback. Trigger on phrases like "deploy to Puter", "publish Puter app", "update Puter site", "Puter deployment failed", or "rollback Puter deploy".
Puter Deployer
Use a strict flow: preflight → build/stage → deploy path selection → verify → rollback note.
1) Preflight (always)
Run:
bash skills/puter-deployer/scripts/preflight.sh <project_dir> <build_dir>
This checks:
puterCLI existsputer whoamiworks- build directory exists and is non-empty
index.htmlexists
If any check fails, stop and report exact fix commands.
2) Deployment path selection
Choose one path explicitly:
- Create new Puter app entry (CLI-supported):
puter app:create <name> <remoteDir> --description "..." --url "..."
- Update/publish build content:
- Use Puter API fallback guidance in
references/api-fallback.md. - If API details are unclear for this host/version, inspect active
puter-clisource behavior before pushing.
- Use Puter API fallback guidance in
Important: current public puter-cli command surface is limited. Do not invent non-existent commands.
3) Verify deployment (always)
Run:
bash skills/puter-deployer/scripts/verify_url.sh <url> [expected_snippet]
Require:
- HTTP 200
- expected snippet present (if provided)
If verification fails, mark deployment unsuccessful.
4) Rollback note (always)
Return these fields in final report:
- source commit
- previous known-good artifact path
- previous known-good URL
- exact rollback command/runbook
Use scripts/deploy_report_template.md as output skeleton.
Guardrails
- Never print auth tokens.
- Never delete remote app/site without explicit user request.
- Require explicit confirmation before overwriting production targets.
- On failure, classify into one bucket:
- auth/session
- missing build artifact
- wrong app/site target
- platform/API error
References
references/deploy-checklist.md— end-to-end checklistreferences/api-fallback.md— API-first fallback logic when CLI is insufficientreferences/failure-playbook.md— common failure signatures + fixes
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!