ai-governance
Generate and enforce policy gates for AI coding agents (Copilot, Claude Code) — real-time session hooks that deny protected-path edits and dangerous commands,…
Set up and troubleshoot Datadog — Agent deployment on Kubernetes, APM instrumentation, Log Management, Monitors, Dashboards, SLOs, Synthetic tests, and live incident investigation using the Datadog MCP server. Covers Terraform-managed Datadog resources.
> /plugin marketplace add nitinjain999/platform-skills > /plugin install platform-skills@platform-skills
How it fires
How this command gets triggered: by you, by Claude, or both.
/datadogContext preview
What this command does when you run it.
Set up and troubleshoot Datadog — Agent deployment on Kubernetes, APM instrumentation, Log Management, Monitors, Dashboards, SLOs, Synthetic tests, and live incident investigation using the Datadog MCP server. Covers Terraform-managed Datadog resources.
name: datadog description: Set up and troubleshoot Datadog — Agent deployment on Kubernetes, APM instrumentation, Log Management, Monitors, Dashboards, SLOs, Synthetic tests, and live incident investigation using the Datadog MCP server. Covers Terraform-managed Datadog resources. argument-hint: "[setup|instrument|monitor|dashboard|slo|investigate|debug] [service or description]" title: "Datadog Command" sidebar_label: "datadog" custom_edit_url: null
Configure, troubleshoot, or investigate incidents in Datadog.
Deploy and configure the Datadog Agent on Kubernetes.
Steps: 1. Ask for: Kubernetes distribution (EKS/AKS/GKE), Datadog site (EU: `datadoghq.eu` / US: `datadoghq.com`), features needed (APM, logs, process monitoring) 2. Generate Helm values with: API key from Secret (never hardcoded), APM enabled, log collection enabled, cluster name set, Cluster Agent enabled with 2 replicas 3. Provide install command: `helm upgrade --install datadog datadog/datadog -f values.yaml -n datadog` 4. Provide verification commands: `kubectl exec -n datadog ds/datadog -- agent status` 5. Add Unified Service Tagging labels (`DD_ENV`, `DD_SERVICE`, `DD_VERSION`) to app Deployment
Add APM tracing to a service.
Steps: 1. Ask for: language (Node.js / Python / Java / Go), framework (Express / Django / Spring / etc.), whether log-trace correlation is needed 2. Generate tracer initialisation code — `dd-trace` init must be the first import in Node.js; use `ddtrace-run` or `patch_all()` in Python 3. Add Unified Service Tagging env vars to the Deployment manifest 4. Add custom spans for business-critical paths (payment processing, order creation, etc.) 5. Show expected APM UI outcome: service map entry, latency/error rate populated
Create a Datadog monitor for a service.
Steps: 1. Ask for: metric to alert on (error rate / latency / availability), thresholds, notification targets (PagerDuty / Slack) 2. Generate Terraform `datadog_monitor` resource (preferred over UI / API for IaC) 3. Set `notify_no_data: true` and `no_data_timeframe` so silent services alert 4. Include warning and critical thresholds 5. Tag with `service:`, `env:`, `team:` for routing
Output monitor query, thresholds, notification message with `@pagerduty-*` and `@slack-*` handles.
Create a Datadog dashboard for a service.
Steps: 1. Default to RED method: request rate, error rate %, p50/p95/p99 latency 2. Generate Terraform `datadog_dashboard` resource with `timeseries_definition` widgets 3. Use APM metrics: `trace.web.request.hits`, `trace.web.request.errors`, `trace.web.request` percentiles 4. Add template variables for `env` and `service` for reuse across environments
Define a Datadog SLO.
Steps: 1. Ask for: SLI metric (availability / latency), target (e.g. 99.9%), timeframe (7d / 30d / 90d) 2. Generate Terraform `datadog_service_level_objective` resource 3. Set both target and warning thresholds 4. Link SLO to relevant monitors for error budget burn alerts
**Live incident investigation using the Datadog MCP server.**
Requires the Datadog MCP server connected to Claude Code. See setup in `references/datadog.md` → MCP Server Setup.
Ask Claude to run these via the MCP server:
What monitors are currently firing for service:orders-service env:production? Show me the event stream for the orders-service in the last 30 minutes. Were there any deployments to orders-service in the last 2 hours?
Correlate the three pillars through the MCP:
Show me error logs for service:orders-service between <start> and <end>. What is the error rate and p99 latency for orders-service over the last hour? Find traces with errors for orders-service — show me the top error messages.
Narrow down with MCP queries:
Compare the error rate for orders-service before and after <incident-start-time>. Which endpoints have the highest error rate on orders-service right now? Show me CPU and memory metrics for the hosts running orders-service.
Resolve the monitor "orders-service high error rate" — the fix has been deployed. Post to #incidents: "orders-service error rate returning to baseline, fix deployed at <time>." Create a Datadog notebook summarising the orders-service incident timeline.
If you need deeper context on any Datadog component, load `references/datadog.md`.
Diagnose Datadog data gaps or agent issues without the MCP server.
Classify the failure:
Evidence to collect:
# Agent health kubectl exec -n datadog ds/datadog -- agent status # Check APM port kubectl exec
A production-grade field handbook for platform, DevOps, SRE, and cloud engineers covering Kubernetes, Flux CD, Terraform, GitHub Actions, AWS, OPA/Rego, KEDA, Karpenter, supply chain security, Falco, observability, and more.
Repo: nitinjain999/platform-skills
Generate and enforce policy gates for AI coding agents (Copilot, Claude Code) — real-time session hooks that deny protected-path edits and dangerous commands,…
Generate, convert, and maintain animated GitHub-safe Markdown documents with animated SVG diagrams. Covers four SVG patterns (architecture flow, lifecycle…
AWS profile management for MCP servers — discover profiles across SSO, Granted, and assumed-role chains, check credential TTL, switch profiles across VS Code…
Structured guidance for AWS CloudFront distributions, WAF web ACLs, Lambda@Edge, CloudFront Functions, Firewall Manager multi-account enforcement, and IAM/IRSA…
Azure identity (Workload Identity, OIDC, Entra ID), resource tagging, AKS platform patterns, RBAC scoping, and production-readiness review — with Terraform…
Design, run, and debug Chaos Engineering experiments on Kubernetes using Litmus Chaos v3 and Chaos Mesh v2. Covers fault injection (pod-delete, network-loss,…