$npx -y skills add zhaoxuya520/reverse-skill --skill competition-container-runtimeInternal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for live container runtime analysis, mounted secrets, sidecars, namespaces, init containers, entrypoint drift, and route-to-container resolution. Use when the user asks why a live container differs from
| 1 | # Competition Container Runtime |
| 2 | |
| 3 | Use this skill only as a downstream specialization after `$ctf-sandbox-orchestrator` is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to `$ctf-sandbox-orchestrator` first. |
| 4 | |
| 5 | Use this skill when the challenge is really about what the live container or pod is doing now, not what the checked-in manifest claims it should do. |
| 6 | |
| 7 | Reply in Simplified Chinese unless the user explicitly requests English. |
| 8 | |
| 9 | ## Quick Start |
| 10 | |
| 11 | 1. Split intent from reality: manifest, image, startup, live mount, live route, live process. |
| 12 | 2. Map host -> proxy -> container or pod -> mounted volume -> consuming process. |
| 13 | 3. Keep secrets, rendered config, init output, and sidecar output separate from static manifests. |
| 14 | 4. Prove one minimal live path from mounted or injected state to reachable behavior. |
| 15 | 5. Reproduce the effect with the smallest runtime-specific chain. |
| 16 | |
| 17 | ## Workflow |
| 18 | |
| 19 | ### 1. Map The Live Runtime |
| 20 | |
| 21 | - Compare compose or kube manifests against running containers, pods, mounted volumes, env, sidecars, init containers, and entrypoints. |
| 22 | - Identify which process actually consumes the mounted secret, rendered config, or shared volume output. |
| 23 | |
| 24 | ### 2. Trace Route And Mount Boundaries |
| 25 | |
| 26 | - Map virtual host, reverse proxy, service, container port, filesystem mount, and runtime-generated file paths together. |
| 27 | - Record whether the decisive state is image-baked, env-injected, mounted later, or written by an init/sidecar process. |
| 28 | |
| 29 | ### 3. Report The Runtime Deviation |
| 30 | |
| 31 | - State the earliest point where live runtime diverges from checked-in intent. |
| 32 | - Keep one compact evidence chain from manifest or compose intent to live consumer behavior. |
| 33 | |
| 34 | ## Read This Reference |
| 35 | |
| 36 | - Load `references/container-runtime.md` for the runtime checklist, mount-chain checklist, and common live-vs-static pitfalls. |
| 37 | - If the hard part is kube API permissions, service-account trust, RBAC edges, admission mutations, or controller-created workload drift, prefer `$competition-k8s-control-plane`. |
| 38 | - If the hard part is Host-header routing, path-prefix rewriting, or route-to-service mapping across nodes, prefer `$competition-runtime-routing`. |
| 39 | - If the hard part is proving container-to-host crossover, kernel attack-surface preconditions, or stable escape primitives, prefer `$competition-kernel-container-escape`. |
| 40 | - If the hard part is replaying Linux secrets, socket trust edges, or host-to-host pivots after container foothold, prefer `$competition-linux-credential-pivot`. |
| 41 | |
| 42 | ## What To Preserve |
| 43 | |
| 44 | - Compose/Kubernetes fragments tied to live mounts or routes |
| 45 | - Container IDs, pod names, mount paths, sidecar outputs, rendered config paths, and consuming processes |
| 46 | - The exact route or file path that becomes reachable only at runtime |