Agent skill
deploy
Deploy, publish, push code, update project, release, migrations, build
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/deploy-billyfranklim1-claude-skills
SKILL.md
Skill: Deploy
Quando Usar
Quando o usuario pedir deploy, atualizar, publicar, ou subir codigo de algum projeto.
Projetos Laravel
PROJECT="myapp.example.com" # ou api.myapp.example.com, work8.example.com
cd /home/deploy/$PROJECT
sudo -u deploy php artisan down --retry=60
sudo -u deploy git pull origin main
sudo -u deploy composer install --no-dev --optimize-autoloader
sudo -u deploy php artisan migrate --force
sudo -u deploy php artisan config:cache
sudo -u deploy php artisan route:cache
sudo -u deploy php artisan view:cache
sudo -u deploy php artisan queue:restart
sudo -u deploy php artisan up
curl -I https://$PROJECT
Projetos Next.js
PROJECT="frontend.example.com" # ou portfolio.example.com, neuralnets.example.com
PM2_NAME="frontend" # ou portfolio, neuralnets
cd /home/deploy/$PROJECT
sudo -u deploy git pull origin main
sudo -u deploy npm ci
sudo -u deploy npm run build
sudo -u deploy pm2 restart $PM2_NAME
MyApp (especial — tem SSR)
cd /home/deploy/myapp
sudo -u deploy php artisan down --retry=60
sudo -u deploy git pull origin main
sudo -u deploy composer install --no-dev --optimize-autoloader
sudo -u deploy php artisan migrate --force
sudo -u deploy php artisan config:cache && sudo -u deploy php artisan route:cache && sudo -u deploy php artisan view:cache
sudo -u deploy npm run build && sudo -u deploy npm run build:ssr
sudo -u deploy pm2 restart myapp-ssr
sudo -u deploy php artisan queue:restart
sudo -u deploy php artisan up
Regras
- SEMPRE faca
php artisan downantes - SEMPRE confirme com curl apos subir
- Se migration falhar: rollback e reporte ao owner
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?