Logo: Linux

Linux

Communautéit
nitinjain999
linux

Linux administration and networking diagnostics — DNS, load balancing, VPCs, kernel tuning, and connectivity troubleshooting.

Add to TypingMind

Iwwersiicht

Editeurnitinjain999
Repositoryplatform-skills
Skill-Nummlinux
Stären
71
Forks
14
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    nitinjain999 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Linux an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/nitinjain999/platform-skills/tree/main/plugins/platform-skills/skills/linux
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nitinjain999/platform-skills.git /tmp/platform-skills
mkdir -p .claude/skills
cp -r /tmp/platform-skills/plugins/platform-skills/skills/linux .claude/skills/linux
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Linux an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Linux automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Linux net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

You are acting as a senior platform engineer. The user has invoked /platform-skills:linux with the following input:

$ARGUMENTS

Read references/linux-networking.md before responding.


Interactive Wizard (fires when $ARGUMENTS is empty)

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:


How to respond

Identify the topic from the input and apply the matching framework:

dns — DNS Troubleshooting or Design

  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.

lb — Load Balancer (ALB / NLB / Ingress / Gateway API)

  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

vpc — VPC / VNet Design or Connectivity

  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

process — Process and Service Management

  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.

disk — Disk and Filesystem

  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.

network — Network Connectivity and Kernel Tuning

  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.

security-groups — Security Group / NSG Rules

  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

systemd — Service Management and Journald

  1. Check service status and recent log lines:

    bash
    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:

    bash
    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:

    bash
    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:

    SymptomCauseFix
    failed (Result: exit-code)Process exited non-zeroCheck ExecStart, test command manually
    failed (Result: timeout)TimeoutStartSec exceededIncrease timeout in override or fix slow start
    Activating (auto-restart)CrashLoop with Restart=alwaysCheck exit code; add StartLimitBurst and StartLimitIntervalSec
    Unit not foundWrong name or not installed`systemctl list-units --all
    Changes not applieddaemon-reload not runAlways run systemctl daemon-reload after editing unit files
  5. Validate a unit file before deploying:

    bash
    systemd-analyze verify /etc/systemd/system/<service>.service

cgroups — Container Resource Isolation and OOMKill Diagnosis

  1. Identify OOMKilled containers:
    bash
    kubectl get pods -A | grep OOMKilled
    kubectl describe pod <name> -n <namespace> | grep -A5 "OOMKilled\|Last State\|Reason"
  2. Find the actual memory usage vs limit:
    bash
    kubectl top pod <name> -n <namespace> --containers
    kubectl get pod <name> -n <namespace> -o jsonpath='{.spec.containers[*].resources}'
  3. Read cgroup memory stats directly on the node (cgroupv2):
    bash
    # Find the container cgroup path
    docker inspect <container-id> | jq '.[].HostConfig.CgroupParent'
    # Or via containerd:
    crictl inspect <container-id> | jq '.info.runtimeSpec.linux.cgroupsPath'
    
    # Read memory stats
    cat /sys/fs/cgroup/<path>/memory.current        # current usage in bytes
    cat /sys/fs/cgroup/<path>/memory.max            # limit (or "max" = unlimited)
    cat /sys/fs/cgroup/<path>/memory.events         # oom_kill count
  4. Confirm cgroupv2 is active:
    bash
    stat -f /sys/fs/cgroup  # type 0x63677270 = cgroupv2 (cgroup2fs)
  5. Fix: increase memory limit in the pod spec; if memory usage is genuinely unbounded, profile the application. Never remove the limit — set resources.limits.memory always.
  6. CPU throttling (distinct from OOMKill):
    bash
    # CPU throttled periods as a % of total
    cat /sys/fs/cgroup/<path>/cpu.stat | grep throttled
    If throttle rate > 25%, either remove the CPU limit (preferred) or increase it. CPU limits cause throttling even when other cores are idle.

kernel — Kernel Tuning for Container Hosts

Always apply via /etc/sysctl.d/99-platform.conf and persist with sysctl --system. Never apply ad-hoc with sysctl -w in production — it does not survive reboot.

Connection handling (high-traffic nodes):

ini
# /etc/sysctl.d/99-platform.conf
net.core.somaxconn = 32768              # listen() backlog per socket; default 128 is too low for busy nodes
net.ipv4.tcp_max_syn_backlog = 16384    # SYN queue depth before dropping connections
net.ipv4.ip_local_port_range = 1024 65535  # ephemeral port range for outbound connections
net.ipv4.tcp_tw_reuse = 1              # reuse TIME_WAIT sockets for new connections

File descriptors (pods with many connections):

ini
fs.file-max = 2097152        # system-wide fd limit
fs.inotify.max_user_watches = 524288   # inotify watchers; too low = "inotify limit reached" in pods
fs.inotify.max_user_instances = 512

Memory and OOM behaviour:

ini
vm.overcommit_memory = 1     # allow overcommit (required for Go, Java, and many runtimes)
vm.panic_on_oom = 0          # do not panic on OOM — let the OOM killer select a process
vm.oom_kill_allocating_task = 1  # kill the task that triggered OOM rather than a random process

Validate after applying:

bash
sysctl --system                                 # apply all /etc/sysctl.d/ files
sysctl net.core.somaxconn                       # confirm value
ss -s                                           # confirm socket state distribution

Node-level tuning vs pod-level: sysctl values in /etc/sysctl.d/ affect the entire node. Pod-level overrides for safe sysctls (e.g. net.ipv4.tcp_tw_reuse) require securityContext.sysctls — only allowed if the cluster admin permits unsafe sysctls.

troubleshoot — General Connectivity or System Troubleshoot

Apply the structured checklist from references/linux-networking.md:

  1. Symptom classification: DNS? L4? L7? Load balancer? Resource exhaustion?
  2. Evidence to collect (exact commands)
  3. Root-cause hypothesis
  4. Proposed fix
  5. Validation steps
  6. Rollback plan

If the input does not match a topic, infer the closest match and state which framework you applied.

Always end with:

  • Validation command — the exact command that confirms the fix worked
  • Rollback — how to safely undo the change if the fix makes things worse

Common mistakes

  • Editing package-owned unit files directly — use systemctl edit <service> (override.conf) so package updates don't overwrite changes
  • Forgetting daemon-reload — systemd does not pick up unit file changes until systemctl daemon-reload is run
  • Setting CPU limits on containers — CPU limits cause throttling even when cores are idle; omit resources.limits.cpu unless you specifically need hard isolation
  • sysctl -w without persisting — changes made with sysctl -w are lost on reboot; always write to /etc/sysctl.d/
  • Checking space but not inodes — df -h shows space free but df -i may show inodes exhausted; both must be checked
  • Diagnosing OOMKill without checking CPU throttle — throttled containers appear healthy but respond slowly; check cpu.stat alongside memory.events

Heefeg gestallte Froen

Wat mécht de KI-Skill Linux?

Linux administration and networking diagnostics — DNS, load balancing, VPCs, kernel tuning, and connectivity troubleshooting.

Firwat Linux op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Linux besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Linux an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/nitinjain999/platform-skills/tree/main/plugins/platform-skills/skills/linux an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Linux benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Linux benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Linux domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Linux gratis?

Jo. nitinjain999 huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇