Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add mohitmishra786/low-level-dev-skills --skill containers-internalsgit clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/containers-internals)<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/containers-internals"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/containers-internals/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/containers-internals"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/containers-internals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00077 | $0.01783 |
| Opus 5.5 | $0.00031 | $0.00713 |
| Sonnet 5.5 | $0.00015 | $0.00357 |
| Haiku 4.5 | $0.00008 | $0.00178 |
Grade B, and why
containers-internals scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo runc run mycontainer How it starts
The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Containers Internals
Purpose
Guide agents through Linux container internals: namespaces (clone, unshare, nsenter), cgroups v2 resource limits, overlayfs storage, runc and the OCI runtime spec, seccomp-bpf filtering, Linux capabilities for privilege dropping, and container escape mitigations.
Triggers
- Understanding how Docker/Podman isolate processes under the hood
- Debugging container resource limits (OOM, CPU throttling)
- Writing custom seccomp profiles for sandboxed workloads
- Building minimal containers without Docker
- Investigating container escape vulnerabilities
- Tuning cgroups v2 for Kubernetes pods
Workflow
1. Namespaces
# List namespaces for a process
ls -la /proc/self/ns/
readlink /proc/self/ns/pid
readlink /proc/1234/ns/net
# Enter container namespaces
nsenter -t <pid> -m -u -i -n -p bash
# Unshare namespaces (manual container)
unshare --fork --mount-proc --pid --net --uts --ipc bash
| Namespace | Isolates |
|---|---|
CLONE_NEWNS (mount) |
Mount points, filesystem roots |
CLONE_NEWPID |
Process IDs |
CLONE_NEWNET |
Network stack |
CLONE_NEWUTS |
Hostname |
CLONE_NEWIPC |
SysV IPC, POSIX message queues |
CLONE_NEWUSER |
UID/GID mappings |
CLONE_NEWCGROUP |
cgroup root view |
// clone() with namespaces
#define _GNU_SOURCE
#include <sched.h>
int container_init(void *arg) {
sethostname("container", 9);
mount("proc", "/proc", "proc", 0, NULL);
execv("/bin/sh", (char *[]){"/bin/sh", NULL});
return 1;
}
int stack[1024 * 1024];
clone(container_init, stack + sizeof(stack)/sizeof(int),
CLONE_NEWPID | CLONE_NEWNS | CLONE_NEWNET | SIGCHLD, NULL);
2. cgroups v2
# Unified hierarchy (cgroup v2)
mount -t cgroup2 none /sys/fs/cgroup
# Create cgroup and set limits
mkdir /sys/fs/cgroup/mycontainer
echo $$ > /sys/fs/cgroup/mycontainer/cgroup.procs
# Memory limit 256MB
echo 256M > /sys/fs/cgroup/mycontainer/memory.max
# CPU weight (relative to siblings, default 100)
echo 50 > /sys/fs/cgroup/mycontainer/cpu.weight
# IO weight
echo default 100 > /sys/fs/cgroup/mycontainer/io.weight
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 14d ago Changed · +1 lines f64413994d91
- 3mo ago First seen · 240 lines · 77 tokens per session scan B 0847acd38664
containers-internals is a skill published in the GitHub repository mohitmishra786/low-level-dev-skills (310 stars, last pushed 14d ago), licensed MIT. It adds 77 tokens to every session and 1,783 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
containers-internals compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| containers-internalsmohitmishra786/low-level-dev-skills | Skill | 310 | 14d ago | MIT | B | 77 | Claude Code, Codex |
| kubernetesEliasOulkadi/shokunin | Skill | 112 | 2mo ago | MIT | A | 144 | Claude Code |
| whendone-plusEliasOulkadi/shokunin | Skill | 112 | 2mo ago | MIT | A | 116 | Claude Code, Codex |
| dockeralivirgo/Major-AI-Skills | Skill | 6 | today | MIT | A | 34 | Claude Code |
| argocdalivirgo/Major-AI-Skills | Skill | 6 | today | MIT | A | 42 | Claude Code |
| docker-compose-setupseb1n/awesome-ai-agent-skills | Skill | 268 | 3mo ago | MIT | A | 46 | Claude Code, Codex |
| kubernetes-deploymentseb1n/awesome-ai-agent-skills | Skill | 268 | 3mo ago | MIT | A | 43 | Claude Code, Codex |