Deploy Summoner
Deploy Summoner helps invoke and inspect the runtime stack without turning every diagnosis into a risky cluster mutation.
Default posture: read-only first, plan before action. It may execute local or remote mutating deployment commands only when the user explicitly approves the target, command, namespace/context, and rollback path.
Load References
- Load
references/safety.md before beginning the workflow.
- Load
references/deployment-rubric.md before reviewing manifests, preparing deployment plans, or diagnosing runtime failures.
- Load
references/source-literature.md when explaining the deployment model or when the user asks what the workflow is based on.
Workflow
Step 1 - Establish Target And Safety Boundary
Identify:
- platform: Docker, Docker Compose, Helm, Kubernetes, or mixed;
- target: local, staging, production, cluster/context, namespace, release, workload, service, image/tag;
- task: inspect, plan, deploy, rollback, diagnose, smoke test, or write commands;
- mutation level: read-only, local-only, remote mutation, destructive/rollback.
For remote mutation, require explicit approval before running commands such as helm upgrade, helm rollback, kubectl apply, kubectl delete, kubectl rollout restart, docker compose up -d, or image promotion.
Step 2 - Inspect Configuration
Use repo-local sources first:
- Dockerfiles, compose files,
.env.example, build scripts, image tags, healthchecks.
- Helm
Chart.yaml, values.yaml, environment values, templates, hooks, CRDs, helpers.
- Kubernetes manifests for Deployments, StatefulSets, DaemonSets, Jobs, Services, Ingress, ConfigMaps, Secrets references, ServiceAccounts, RBAC, HPA, NetworkPolicy.
- CI/CD deploy scripts and release notes when they define deployment behavior.
Check for common readiness risks:
- unpinned or surprising image tags;
- missing readiness/liveness/startup probes;
- missing resource requests/limits where project policy expects them;
- secret/env/config references without corresponding documented source;
- namespace/context ambiguity;
- unsafe rollout settings, hooks, or migrations;
- values drift between environments;
- missing rollback and smoke-test commands.
Step 3 - Diagnose Runtime Evidence
For live issues, gather read-only evidence before proposing fixes:
kubectl get/describe, events, pod status, previous logs, init containers, rollout status/history;
- Helm release status/history/values/manifests;
- Docker/Compose ps, logs, config, health status, image IDs;
- service endpoints, ingress status, config/secret references, resource pressure signals.
Prefer the first actionable failure over the last noisy line. Classify the issue as image/build, config/env/secret, probe, resource, scheduling, networking, migration/job, chart/template, rollout, dependency, or unknown.
Step 4 - Plan Deploy Or Rollback
Return a plan before mutation:
Deployment status: ready | risky | blocked | diagnosing
Target:
- Platform/context/namespace/release:
Findings:
- [severity] [area] issue
Evidence:
Impact:
Action:
Plan:
1. Read-only verification:
2. Mutating command(s), if approved:
3. Smoke checks:
4. Rollback:
Approval needed:
- <exact commands and target>
Use Helm dry-runs/templates and Kubernetes diff/server-side validation when available before mutating. For Docker Compose, render/validate config before starting or recreating services.
Step 5 - Execute Only Approved Actions
When approved:
- restate the exact target and command;
- run one coherent action batch;
- capture rollout/status/log evidence;
- run smoke checks;
- record rollback command or confirm rollback is not applicable.
If the action fails, stop and report the first actionable failure with evidence. Do not keep applying speculative fixes.
Guardrails
- Never mutate a remote cluster, production host, namespace, Helm release, or Docker runtime without explicit approval.
- Never print secrets, full env dumps, kubeconfigs, tokens, registry credentials, or decoded Secret values.
- Never switch Kubernetes context silently.
- Never delete resources or roll back a release as "cleanup" without approval.
- Prefer
helm template, helm lint, helm diff when installed, kubectl diff, kubectl describe, and read-only logs before mutation.
- Treat production as dangerous even when the command looks routine.
- Make rollback and smoke checks part of the plan, not an afterthought.
1---2name: krt-deploy-summoner3description: Prepare, inspect, and diagnose deployments across Docker, Docker Compose, Helm, and Kubernetes. Use when a user asks to review deployment manifests, Helm charts or values, Dockerfiles, compose files, Kubernetes resources, rollouts, pods, logs, probes, resources, namespaces, image tags, deployment readiness, rollback plans, smoke tests, CrashLoopBackOff, ImagePullBackOff, failed Helm upgrades, or safe kubectl/helm/docker diagnostic commands. Runtime aliases may expose this as krt:deploy-summoner.4---56# Deploy Summoner78Deploy Summoner helps invoke and inspect the runtime stack without turning every diagnosis into a risky cluster mutation.910Default posture: **read-only first, plan before action**. It may execute local or remote mutating deployment commands only when the user explicitly approves the target, command, namespace/context, and rollback path.1112## Load References1314- Load `references/safety.md` before beginning the workflow.15- Load `references/deployment-rubric.md` before reviewing manifests, preparing deployment plans, or diagnosing runtime failures.16- Load `references/source-literature.md` when explaining the deployment model or when the user asks what the workflow is based on.1718## Workflow1920### Step 1 - Establish Target And Safety Boundary2122Identify:2324- platform: Docker, Docker Compose, Helm, Kubernetes, or mixed;25- target: local, staging, production, cluster/context, namespace, release, workload, service, image/tag;26- task: inspect, plan, deploy, rollback, diagnose, smoke test, or write commands;27- mutation level: read-only, local-only, remote mutation, destructive/rollback.2829For remote mutation, require explicit approval before running commands such as `helm upgrade`, `helm rollback`, `kubectl apply`, `kubectl delete`, `kubectl rollout restart`, `docker compose up -d`, or image promotion.3031### Step 2 - Inspect Configuration3233Use repo-local sources first:3435- Dockerfiles, compose files, `.env.example`, build scripts, image tags, healthchecks.36- Helm `Chart.yaml`, `values.yaml`, environment values, templates, hooks, CRDs, helpers.37- Kubernetes manifests for Deployments, StatefulSets, DaemonSets, Jobs, Services, Ingress, ConfigMaps, Secrets references, ServiceAccounts, RBAC, HPA, NetworkPolicy.38- CI/CD deploy scripts and release notes when they define deployment behavior.3940Check for common readiness risks:4142- unpinned or surprising image tags;43- missing readiness/liveness/startup probes;44- missing resource requests/limits where project policy expects them;45- secret/env/config references without corresponding documented source;46- namespace/context ambiguity;47- unsafe rollout settings, hooks, or migrations;48- values drift between environments;49- missing rollback and smoke-test commands.5051### Step 3 - Diagnose Runtime Evidence5253For live issues, gather read-only evidence before proposing fixes:5455- `kubectl get/describe`, events, pod status, previous logs, init containers, rollout status/history;56- Helm release status/history/values/manifests;57- Docker/Compose ps, logs, config, health status, image IDs;58- service endpoints, ingress status, config/secret references, resource pressure signals.5960Prefer the first actionable failure over the last noisy line. Classify the issue as image/build, config/env/secret, probe, resource, scheduling, networking, migration/job, chart/template, rollout, dependency, or unknown.6162### Step 4 - Plan Deploy Or Rollback6364Return a plan before mutation:6566```text67Deployment status: ready | risky | blocked | diagnosing6869Target:70- Platform/context/namespace/release:7172Findings:73- [severity] [area] issue74 Evidence:75 Impact:76 Action:7778Plan:791. Read-only verification:802. Mutating command(s), if approved:813. Smoke checks:824. Rollback:8384Approval needed:85- <exact commands and target>86```8788Use Helm dry-runs/templates and Kubernetes diff/server-side validation when available before mutating. For Docker Compose, render/validate config before starting or recreating services.8990### Step 5 - Execute Only Approved Actions9192When approved:9394- restate the exact target and command;95- run one coherent action batch;96- capture rollout/status/log evidence;97- run smoke checks;98- record rollback command or confirm rollback is not applicable.99100If the action fails, stop and report the first actionable failure with evidence. Do not keep applying speculative fixes.101102## Guardrails103104- Never mutate a remote cluster, production host, namespace, Helm release, or Docker runtime without explicit approval.105- Never print secrets, full env dumps, kubeconfigs, tokens, registry credentials, or decoded Secret values.106- Never switch Kubernetes context silently.107- Never delete resources or roll back a release as "cleanup" without approval.108- Prefer `helm template`, `helm lint`, `helm diff` when installed, `kubectl diff`, `kubectl describe`, and read-only logs before mutation.109- Treat production as dangerous even when the command looks routine.110- Make rollback and smoke checks part of the plan, not an afterthought.