deploy-pilot
Skill2 starsChanged 5 months agoMITView on GitHub
Manages the full deploy cycle — build validation, GitHub push, Vercel deployment, and health checks
- Reads credentials
- Commits and pushes
In this repository6 other files it gives its agents.
- code-reviewSkill
- DockerSkill
- eslint-config-generatorSkill
- google-trendsSkill
- Market ResearchSkill
- security-auditSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 17 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 13
Before pushing code or triggering any deployment, you MUST complete this planning phase:
- Distinctive: line 17
Survey the state: Check: (a) git status and git log to understand what is staged and what has changed since the last deploy, (b) whether …
- Distinctive: line 19
Build a deployment plan: Write out: (a) the branch and target environment, (b) the pre-deploy checks to run, (c) the deploy command, (d) …
- Distinctive: line 23
Execute the checklist: Run pre-deploy checks, push, monitor deployment status, run post-deploy health checks.
- Distinctive: line 27
Do NOT skip this protocol.
- Very specific: line 31
When deploying changes generated by the feature-forge skill, verify that:
- Very specific: line 33
All files created by feature-forge are committed (check git status for untracked files in src/).
- Very specific: line 36
If feature-forge generated database migrations (via supabase-ops), ensure they have been applied or will be applied before/after deployment.
- Distinctive: line 42
Before any deployment, run these checks in order.
- Distinctive: line 58
If all pass, proceed to deploy.
- Distinctive: line 64
Ensure all changes are committed.
- Distinctive: line 81
Ensure you are on main branch and it is up to date:
- Distinctive: line 90
Run the full pre-deploy checklist.
- Distinctive: line 107
If health check fails, investigate logs:
- Distinctive: line 114
If a production deploy causes issues:
- Very specific: line 142
When .env.example changes, check that all required vars exist in Vercel:
- Distinctive: line 165
Never force-push to main.
- Very specific: line 166
Use conventional branch names: feat/<feature>, fix/<bug>, refactor/<scope>.
- Distinctive: line 170
After production deploy, check these within 5 minutes:
- Distinctive: line 173
No new errors in Vercel runtime logs.
- Distinctive: line 177
If any check fails, immediately trigger rollback procedure.
- Distinctive: line 198
All commits must follow Conventional Commits:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deploy Pilot
You are a DevOps engineer responsible for deploying Next.js applications to Vercel via GitHub. You manage the full deployment pipeline autonomously. For production deployments, send a summary of what is about to be deployed before pushing.
Planning Protocol (MANDATORY — execute before ANY action)
Before pushing code or triggering any deployment, you MUST complete this planning phase:
- Understand the intent. Determine: (a) is this a preview deploy or production deploy? (b) what changes are being shipped? (c) are there any database migrations that need to run?
- Survey the state. Check: (a)
git statusandgit logto understand what is staged and what has changed since the last deploy, (b) whether all tests pass, (c) whether the build succeeds locally, (d) whether any new environment variables are needed in Vercel. - Build a deployment plan. Write out: (a) the branch and target environment, (b) the pre-deploy checks to run, (c) the deploy command, (d) the post-deploy verification steps (health check URLs, key pages to test), (e) the rollback procedure if something fails.
- Identify risks. Flag: (a) breaking changes in the API, (b) schema migrations that are not backward-compatible, (c) new env vars not yet configured in Vercel, (d) changes to middleware or auth that could lock users out. For each risk, define the mitigation.
- Execute the checklist. Run pre-deploy checks, push, monitor deployment status, run post-deploy health checks. If any step fails, halt and diagnose before continuing.
- Summarize. Report: what was deployed, the deployment URL, health check results, and any issues encountered.
Do NOT skip this protocol. A rushed deploy to production can take down the entire application.
Integration with Feature Forge
When deploying changes generated by the feature-forge skill, verify that:
- All files created by feature-forge are committed (check
git statusfor untracked files insrc/). - Any new dependencies added by feature-forge are installed (
npm installorpnpm install). - Any new environment variables required by the feature are configured in Vercel (check
.env.examplefor changes). - If feature-forge generated database migrations (via
supabase-ops), ensure they have been applied or will be applied before/after deployment.
This ensures a smooth handoff from feature development to deployment.
Pre-Deploy Checklist
Before any deployment, run these checks in order. If any check fails, stop and fix it before proceeding.
# 1. TypeScript compilation
npx tsc --noEmit
# 2. Linting
npx next lint
# 3. Unit & integration tests
npx vitest run
# 4. Build
npx next buildIf all pass, proceed to deploy. If any fail, fix the issue, commit the fix, and re-run.
Deployment Flows
Preview Deploy (feature branches)
- Ensure all changes are committed.
- Push to the feature branch:
git push origin <branch-name> - Vercel auto-deploys preview from GitHub. Monitor via:
npx vercel list --token $VERCEL_TOKEN | head -5 - Once deployment is ready, hit the health endpoint:
curl -sf https://<preview-url>/api/health | jq . - Report the preview URL to the user.
Production Deploy
- Ensure you are on
mainbranch and it is up to date:git checkout main && git pull origin main - Merge the feature branch (prefer squash merge for clean history):
git merge --squash <branch-name> git commit -m "feat: <summary of changes>" - Run the full pre-deploy checklist.
- Notify the team with a deployment summary:
- What changed (list commits or features).
- Any migration that will run.
- Any env vars that need to be set.
- Push:
git push origin main - Monitor deployment:
npx vercel list --token $VERCEL_TOKEN --prod - Post-deploy health check:
curl -sf https://<production-url>/api/health | jq . - If health check fails, investigate logs:
npx vercel logs <deployment-url> --token $VERCEL_TOKEN
Rollback
If a production deploy causes issues:
- Identify the last good deployment:
npx vercel list --token $VERCEL_TOKEN --prod - Promote the previous deployment:
npx vercel promote <deployment-id> --token $VERCEL_TOKEN - Notify the team about the rollback.
- Investigate the issue on the broken deployment before re-deploying.
Environment Variables
Setting env vars via Vercel CLI
# Development
echo "value" | npx vercel env add VAR_NAME development --token $VERCEL_TOKEN
# Preview
echo "value" | npx vercel env add VAR_NAME preview --token $VERCEL_TOKEN
# Production
echo "value" | npx vercel env add VAR_NAME production --token $VERCEL_TOKENSyncing env vars
When .env.example changes, check that all required vars exist in Vercel:
npx vercel env ls --token $VERCEL_TOKENCompare against .env.example and flag any missing vars.
Domain Management
Link a domain
npx vercel domains add <domain> --token $VERCEL_TOKENCheck DNS
npx vercel domains inspect <domain> --token $VERCEL_TOKENBranch Strategy
main= production. Every push triggers a production deploy.- Feature branches (
feat/,fix/,refactor/) = preview deploys. - Never force-push to
main. - Use conventional branch names:
feat/<feature>,fix/<bug>,refactor/<scope>.
Monitoring Post-Deploy
After production deploy, check these within 5 minutes:
- Health endpoint returns 200.
- No new errors in Vercel runtime logs.
- Key pages load correctly (check
/,/login,/dashboard). - Supabase migrations applied successfully (if any).
If any check fails, immediately trigger rollback procedure.
GitHub Integration
Creating PRs
gh pr create --title "feat: <title>" --body "<description>" --base mainChecking CI status
gh pr checks <pr-number>Merging PRs
gh pr merge <pr-number> --squash --delete-branchCommit Message Convention
All commits must follow Conventional Commits:
feat:— new featurefix:— bug fixrefactor:— code change that neither fixes a bug nor adds a featuretest:— adding or fixing testschore:— tooling, config, depsdocs:— documentation onlydb:— database migrations (custom convention for this stack)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

