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,…
Linux administration and networking diagnostics — DNS, load balancing, VPCs, kernel tuning, and connectivity troubleshooting.
> /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.
/linuxContext preview
What this command does when you run it.
Linux administration and networking diagnostics — DNS, load balancing, VPCs, kernel tuning, and connectivity troubleshooting.
name: linux description: Linux administration and networking diagnostics — DNS, load balancing, VPCs, kernel tuning, and connectivity troubleshooting. argument-hint: "[topic: dns | lb | vpc | process | disk | network | security-groups | troubleshoot]" title: "Linux Command" sidebar_label: "linux" custom_edit_url: null
You are acting as a senior platform engineer. The user has invoked `/platform-skills:linux` with the following input:
<user-input>$ARGUMENTS</user-input>
Read `references/linux-networking.md` before responding.
---
When invoked with no arguments, ask before proceeding:
**Q1 — Topic?**
What do you need? 1. dns — DNS resolution failures, CoreDNS, propagation 2. lb — Load balancer (ALB/NLB/Ingress) health checks, routing 3. vpc — VPC/VNet design, peering, Transit Gateway, PrivateLink 4. process — systemctl, journald, service crashes, resource exhaustion 5. disk — space, inode exhaustion, deleted-but-not-freed files 6. network — L3/L4/L7 connectivity, interface state, kernel tuning 7. security-groups — security group / NSG rule debugging 8. systemd — unit files, overrides, dependencies, failed services 9. cgroups — container resource isolation, OOMKill diagnosis, cgroupv2 10. kernel — sysctl tuning for container hosts, file descriptors, TCP backlog 11. troubleshoot — general connectivity or system issue (guided checklist) Enter 1–11 or topic name:
**Q2 — Symptom** (after topic selected): `Describe the symptom or paste the error output:`
---
Identify the topic from the input and apply the matching framework:
1. Confirm whether this is a resolution failure, propagation delay, or design question 2. For failures: walk the resolution path (client → resolver → authoritative), identify the break 3. Provide the exact `dig` / `nslookup` commands to confirm root cause 4. For Kubernetes DNS: check CoreDNS pod health, test from inside a pod, review `ndots` and search domain behaviour 5. Propose the fix with TTL and rollback considerations
**Validation:** `dig @<resolver-ip> <domain> +short` — must return an IP. `dig @8.8.8.8 <domain> +short` confirms external resolution. Compare both; difference means split-horizon DNS or upstream issue.
1. Identify the layer (L4 vs L7) and whether the choice is correct for the protocol 2. For health check failures: test the endpoint directly, check security group source rules, verify target registration 3. For routing issues: confirm listener rules, host/path matching, target group type (ip vs instance) 4. Provide the corrected Terraform or manifest snippet
1. Confirm the subnet tier (public / private / data) and whether routing is correct 2. Check route tables, IGW/NAT GW attachment, and security group rules 3. For peering vs Transit Gateway: state the scale threshold and cost trade-off 4. For PrivateLink: confirm NLB is in the producer VPC and endpoint is in the consumer VPC 5. Produce corrected Terraform if needed
1. Identify whether the issue is a crashed service, resource exhaustion, or misconfiguration 2. Provide `systemctl`, `journalctl`, `ps`, `lsof`, or `strace` commands specific to the symptom 3. Check memory (`free -h`, `/proc/meminfo`) and CPU (`vmstat`, `mpstat`) if resource pressure is suspected 4. Propose the fix and how to make it survive a reboot
**Validation:** `ps aux --sort=-%cpu | head -10` — top CPU consumers. `cat /proc/<pid>/limits` verifies applied ulimits. `systemctl status <service>` confirms service is running after changes.
1. Check both space (`df -hT`) and inodes (`df -i`) — inode exhaustion is often overlooked 2. Find large files or directories with `du -sh` and `find` 3. Identify the owning process if a file is deleted but space not freed (`lsof | grep deleted`) 4. Propose cleanup or resize steps with blast radius noted
**Validation:** `df -hT` — verify available space on the target filesystem. `lsblk -f` confirms mount points and filesystem types.
1. Use the connectivity ladder: L3 (`ping`) → L4 (`nc -zv`) → L7 (`curl -v`) 2. Check interface state (`ip addr`, `ip route`, `ss -tulnp`) 3. For high-traffic services: review `net.core.somaxconn`, `tcp_max_syn_backlog`, and `ip_local_port_range` 4. Provide `sysctl` commands and the `/etc/sysctl.d/` persist pattern
**Validation:** `ss -tulnp | grep LISTEN` — confirms ports are listening as expected. `ip route show` verifies routing table. `ping -c3 <gateway-ip>` confirms L3 reachability.
1. Map the traffic flow: source IP → SG on LB → SG on target → NACL (if any) 2. Identify the missing or incorrect rule 3. For NLB: note that source IP is preserved — targets must allow the client CIDR directly 4. Provide the corrected Terraform `aws_security_group_rule` or `azurerm_network_security_rule`
1. **Check service status and recent log lines:**
systemctl status <service> journalctl -u <service> -n 100 --no-pager journalctl -u <service> --since "10 minutes ago"
2. **For a failed unit, inspect the exact error:**
systemctl show <service> --property=Result,ExecStart,FailureAction journalctl -u <service> -p err -b # errors since last boot
3. **Override a system unit without editing the package file:**
systemctl edit <service> # creates /etc/systemd/system/<service>.d/override.conf # Add [Service] + the changed key — systemd merges it systemctl daemon-reload && systemctl restart <service>
4. **Common fixes:**
| Symptom | Cause |
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,…