hadyfayed/laravel-agent/laravel-deploy
Claude Code and agent skill by hadyfayed/laravel-agent
- community
Checking that the SKILL.md file is still in the repository.
Laravel deployment — Forge, Vapor, Docker, Bref (AWS Lambda), traditional servers, zero-downtime releases, environment/secrets, CI/CD pipelines, and Envoy task runner. Use when deploying, configuring hosting/servers, going to production, or wiring up CI/CD. Triggers: "deploy", "production", "hosting", "server", "Forge", "Vapor", "Docker", "AWS", "Bref", "Lambda", "CI/CD", "release", "go live", "rollback".
Install
npx vskill@latest install hadyfayed/laravel-agent/laravel-deploySKILL.md
The same SKILL.md was published earlier as hadyfayed/laravel-agent/laravel-deploy.
Laravel Deploy Skill
Deploy Laravel applications to production across Forge, Vapor, Docker, Bref, or traditional servers.
When to Use
- Setting up deployment
- Configuring production servers
- Docker containerization
- CI/CD pipeline setup
- Cloud deployment (AWS, GCP, DigitalOcean)
- Zero-downtime releases and rollback
- Environment/secrets management
Quick Start
Conventions Checklist
Environment
- [ ]
APP_ENV=production,APP_DEBUG=false, validAPP_URL - [ ] Strong
APP_KEYset; secrets never committed to git - [ ]
CACHE_DRIVER,SESSION_DRIVER,QUEUE_CONNECTIONset to redis (not local file) - [ ]
LOG_LEVEL=error(not debug) in production - [ ]
.envexists and is checked before deploy
Optimization (run before/after deploy)
- [ ]
composer install --no-dev --optimize-autoloader - [ ]
php artisan config:cache - [ ]
php artisan route:cache - [ ]
php artisan view:cache - [ ]
php artisan event:cache
Database & Queues
- [ ] Run
php artisan migrate --forcein the deploy script - [ ] Test migrations on staging first
- [ ]
php artisan queue:restartafter deploy (workers cache old code) - [ ] Restart Horizon (
horizon:terminate) / Octane (octane:reload) if present
Zero-Downtime
- [ ] Symlink-based releases (
current→releases/<ts>) - [ ] Shared
.envandstoragelinked across releases - [ ] Keep last 5 releases for instant rollback
- [ ] Health check endpoint (
/health) returning 200/503
CI/CD
- [ ] Run tests in CI before deploy (
php artisan test) - [ ] Deploy step gated on the main branch
- [ ] Secrets via CI secret store, never in the repo
Common Pitfalls
- Forgetting migrations — always include
php artisan migrate --forcein the deploy script - Not caching in production — run ALL cache commands (
config,route,view,event) - Missing queue restart — workers cache old code; run
php artisan queue:restart - Incorrect file permissions —
chmod -R 775 storage bootstrap/cache, owned by the web user - Missing environment variables — verify
.envexists with required values before deploy - Not testing locally first — run
php artisan config:cache+ tests locally, thenconfig:clear - No rollback strategy — keep previous releases; use symlinks for instant rollback
Best Practices
- Always backup before deploying
- Use zero-downtime deployments
- Monitor after each deploy (Pulse, Sentry, New Relic)
- Use environment-specific configs
- Set up health check endpoints and alerting for failures
Monitoring
- Laravel Pulse — Application monitoring
- Sentry — Error tracking
- New Relic — APM
- Laravel Telescope — Debug (dev only)
Related Commands
/laravel-agent:deploy:setup— Configure deployment/laravel-agent:cicd:setup— Setup CI/CD pipeline
Related Agents
laravel-deploy— Deployment specialistcicd-setup— CI/CD pipeline specialist skill
Additional references
- Forge deploy script, env vars, supervisor; Vapor config + commands → references/forge-and-vapor.md
- Multi-stage Dockerfile, Nginx, Supervisor, OPcache, docker-compose, Bref (Lambda) → references/docker.md
- Env templates, traditional server deploy, zero-downtime script, rollback, health checks, CI/CD, Envoy → references/zero-downtime-and-env.md
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/laravel-deploy/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hadyfayed/laravel-agent/laravel-deploy)