kickstart-deploy
Skill65 starsChanged 3 months agoMITView on GitHub
Deploy phase playbook — build, push, apply with Azure CLI and kubectl.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- vscode-aks-tools-release-prSkill
- kickstart-acr-integrationSkill
- kickstart-bicep-authoringSkill
- kickstart-cluster-statusSkill
- kickstart-collaborator-voiceSkill
- kickstart-configure-infraSkill
- kickstart-designSkill
- kickstart-discoverSkill
- kickstart-file-generationSkill
- kickstart-generateSkill
- kickstart-github-pr-conventionsSkill
- kickstart-handoffSkill
- kickstart-phase-accelerationSkill
- kickstart-pim-activationSkill
- kickstart-reviewSkill
- kickstart-safeguard-checklistSkill
- kickstart-samplesSkill
- kickstart-security-hardeningSkill
- kickstart-workload-identitySkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Prefer az acr build over docker build + docker push.
- Very specific: line 15
Use the build context and Dockerfile path from the structure map — never assume repo root (.).
- Very specific: line 26
If pods not Ready, run kubectl describe pod <name> and kubectl logs <name> to diagnose.
- Distinctive: line 28
Health-check the running app: don't declare success on pod readiness alone — actually hit the app and compare against the expected response:
- Very specific: line 31
If the response isn't what the app should return (wrong status, error body, or logs show a missing entry point), classify as a cluster …
- Distinctive: line 47
Check Azure Monitor dashboards (managed Prometheus + Grafana auto-enabled).
- Distinctive: line 50
Only mention GitHub Actions if the user asks about CI/CD.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 Phase
Deploy using Azure CLI and kubectl. Execute each step via run_in_terminal, confirm between steps with vscode_askQuestions. Never auto-deploy.
Steps
- Build and push:
az acr build --registry <acr> --image <image>:<tag> -f <dockerfilePath> <buildContext>Preferaz acr buildoverdocker build+docker push. It runs on ACR's remote task builders, avoids a local Docker daemon dependency, and keeps the pushed digest and deployed image on one build path. Use the build context and Dockerfile path from the structure map — never assume repo root (.). For monorepos, build each service from its own context. Tag with a version (e.g. v1.0.0), never:latest. Requires the ACR build and push permissions verified in Generate and Pre-Deploy. Make sure.dockerignoreexcludes bulk because the whole context is uploaded on each build. Third-party images the app depends on (Redis, Postgres, RabbitMQ) can't beaz acr build-ed — bring them in withaz acr import --name <acr> --source docker.io/library/<img>:<tag> --image <img>:<tag>. - Get credentials:
az aks get-credentials --resource-group <rg> --name <cluster> --overwrite-existingkubelogin handles AAD auth automatically (verified in Pre-Deploy Check). Never use--admin. - Apply manifests: preview with
kubectl apply --dry-run=server -f k8s/, thenkubectl apply -f k8s/. Expect mutation: AKS Automatic's Deployment Safeguards rewrite on admission — missing CPU/memory requests get defaults and missing spread rules get anti-affinity/topology constraints. If Phase 4 generated compliant manifests these are no-ops; ifkubectl get -o yamldiffers from your file, inspect the safeguard mutation before treating it as a bug. - Verify:
kubectl get pods -n <namespace>andkubectl get services -n <namespace>If pods not Ready, runkubectl describe pod <name>andkubectl logs <name>to diagnose. - Health-check the running app: don't declare success on pod readiness alone — actually hit the app and compare against the expected response:
- Via the gateway/service URL from
kubectl get httproute/kubectl get services:curl -sS -o /dev/null -w "%{http_code}" http://<url>/(expect 2xx/3xx). - Or in-cluster:
kubectl exec <pod> -n <namespace> -- curl -sS localhost:<port>/<health-path>. If the response isn't what the app should return (wrong status, error body, or logs show a missing entry point), classify as aclusterfailure and diagnose before reporting success.
- Via the gateway/service URL from
Error Handling
Classify failures:
- auth — Azure/registry authentication, RBAC, OIDC, kubeconfig
- config — missing or invalid configuration (subscription, RG, cluster, ACR, manifest)
- dependency — missing CLI tool, extension, or container image
- cluster — pod CrashLoopBackOff, ImagePullBackOff, scheduling, quota
- safeguard — admission rejected by a Deployment Safeguard (e.g.
:latesttag, non-CSI StorageClass, duplicate Service selector, AKS-reserved label, node edit). Fix the manifest to satisfy the rule; never disable the policy.
Provide specific az or kubectl fix commands. Offer retry via vscode_askQuestions.
Post-Deployment
- Confirm the app actually responds at its external IP / gateway URL (the health-check above) — not just that the service has an address.
- Check Azure Monitor dashboards (managed Prometheus + Grafana auto-enabled).
- Set up alerts: CPU >80%, memory >85%, pod restarts >5.
Only mention GitHub Actions if the user asks about CI/CD.
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.

