← Docs
Reference

Slash Commands

16 commands built directly into Claude Code. Type any of these inside a Claude Code session opened on the devops-agent directory.

/deploy/dockerize/terraform/helm/secrets/test/local-test/optimize-cost/audit/status/holmesgpt/kagent/nightshift/opensre/plural/sre-guard

Infrastructure

10 commands
/deploy

Full pipeline orchestrator — runs every step from clone to CI/CD setup

Inputs
Service name, repo URL, cloud provider, region, environment, KEDA preference
Outputs
Dockerfile, Terraform, Helm chart, CI/CD workflows, ESO secrets, cost estimate
/dockerize

Generate or validate a Dockerfile for the detected language/framework

Inputs
Repo path or URL, service name
Outputs
Dockerfile at repo root, hadolint + trivy scan results
/terraform

Generate cloud-specific Terraform for the service and environment

Inputs
Cloud provider, service name, use case, region, environment
Outputs
terraform/ directory with main.tf, variables.tf, outputs.tf; runs fmt + validate
/helm

Generate a production-ready Helm chart with security contexts and probes

Inputs
Service name, cloud provider, container port
Outputs
helm/ directory; runs helm lint and helm unittest
/secrets

Scan repo for secrets and generate ESO manifests or sealed secrets

Inputs
Repo path, service name, cloud provider, output directory
Outputs
ESO ClusterSecretStore + ExternalSecret manifests, github-secrets.md checklist
/test

Run all validation layers: Dockerfile, Terraform, Helm, GitHub Actions, integration

Inputs
Service name, repo path, terraform dir, helm dir, cloud provider
Outputs
Pass/fail report for each layer; exits non-zero if any test fails
/local-test

Validate Terraform against a local cloud emulator (LocalStack / Azurite / GCP emulators)

Inputs
Cloud provider, terraform directory, service name
Outputs
Emulator apply results, resource inventory, teardown confirmation
/optimize-cost

Apply KEDA scale-to-zero configuration to the Helm chart

Inputs
Terraform directory, platform (eks / aks / gke)
Outputs
KEDA HTTPScaledObject manifest, updated Helm values, estimated monthly savings
/audit

Audit existing Terraform, Helm, and Dockerfiles against the security checklist

Inputs
Repo path (must contain existing infrastructure files)
Outputs
Prioritized findings (CRITICAL / HIGH / MEDIUM / LOW), diff suggestions
/status

Show the current state of all generated artifacts for a service

Inputs
Service name, workspace path
Outputs
Summary table of generated files, last-run test results, cost estimate

Agents

6 commands
/holmesgpt

Query HolmesGPT with a plain-English incident question

Inputs
Incident question in quotes, e.g. "Why are pods crash-looping in namespace X?"
Outputs
Root cause analysis, ranked hypotheses, relevant log excerpts
/kagent

Execute a fleet operation via kagent's intent API

Inputs
Intent description, target namespace or cluster, dry-run flag
Outputs
KAgentTask YAML applied to cluster, execution plan, confirmation prompt before mutation
/nightshift

Configure scale-down / scale-up schedules for non-production namespaces

Inputs
Namespace or label selector, cron expressions for down/up, timezone
Outputs
Nightshift annotation applied to namespace, projected monthly savings
/opensre

Run or list available OpenSRE runbooks

Inputs
Runbook name or alert label selector, variable overrides
Outputs
Step-by-step runbook execution with live output, audit log entry
/plural

Manage Plural deployments, promotions, and release status

Inputs
Action (build / deploy / promote), target context, commit message
Outputs
Plural CLI output, deployment status, drift report
/sre-guard

Run a one-shot SRE Guard health check or configure the monitoring daemon

Inputs
Service name, namespace, action (check / configure / status)
Outputs
Health check report, SLO compliance status, runbook trigger log
How slash commands work

Slash commands are defined in .claude/commands/. Each file is a Markdown prompt template that Claude Code loads automatically. They call the Python tools in tools/ under the hood — so everything can also be run directly without Claude Code.