Borrowing it
Nothing to install: this file belongs to mpolatcan/codehub. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/mpolatcan/codehub/main/.claude/skills/runtime-rebuild/SKILL.mdgit clone --depth 1 https://github.com/mpolatcan/codehubWrote 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/mpolatcan/codehub/runtime-rebuild)<a href="https://agentmods.dev/skills/mpolatcan/codehub/runtime-rebuild"><img src="https://agentmods.dev/badge/skills/mpolatcan/codehub/runtime-rebuild/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/mpolatcan/codehub/runtime-rebuild"><img src="https://agentmods.dev/badge/skills/mpolatcan/codehub/runtime-rebuild.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.00042 | $0.00576 |
| Opus 5.5 | $0.00017 | $0.00230 |
| Sonnet 5.5 | $0.00008 | $0.00115 |
| Haiku 4.5 | $0.00004 | $0.00058 |
Grade C, and why
runtime-rebuild scanned grade C with 2 findings 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 2mo 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.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
- `SHELL ["bash", "-euo", "pipefail", "-c"]` at the top of the Dockerfile is intentional. If a `curl … | bash` install line fails silently, pipefail surfaces it as a build error. Don't remove this. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- `SHELL ["bash", "-euo", "pipefail", "-c"]` at the top of the Dockerfile is intentional. If a `curl … | bash` install line fails silently, pipefail surfaces it as a build error. Don't remove this. How it starts
The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rebuild CodeHub runtime image
Run this skill when any of:
runtime/Dockerfilewas edited- a CLI install command was added, removed, or updated
- the runtime tag in
lib.rs(DEFAULT_IMAGE) was bumped - you want to verify a clean build from scratch (no Docker layer cache)
Steps
-
Confirm tag. Read
src-tauri/src/lib.rsand locateDEFAULT_IMAGE(line near the top ofrun()). The version after:is the source of truth. -
Build. From repo root:
make image # equivalent to: docker build -t <repo>:<VERSION> runtime/ make image-nocache # --no-cache, guaranteed-clean rebuildBoth targets parse the version from
src-tauri/src/lib.rs:DEFAULT_IMAGE. Override via:make image IMAGE_TAG=0.2.0 -
Smoke-test inside the image before declaring success:
make image-verifyEvery CLI must produce a path + version. If
which antigravityis added it will currently fail because Antigravity install is commented out — that is expected; do not block on it. -
Tag
latestonly if this is the canonical version onmain:docker tag ghcr.io/mpolatcan/codehub-runtime:<VERSION> ghcr.io/mpolatcan/codehub-runtime:latest -
Multi-arch build for publishing (only when cutting a release — see
release-cutskill):make image-push # buildx --platform linux/amd64,linux/arm64 --push
Notes
SHELL ["bash", "-euo", "pipefail", "-c"]at the top of the Dockerfile is intentional. If acurl … | bashinstall line fails silently, pipefail surfaces it as a build error. Don't remove this.- If the build succeeds but a CLI is missing in the smoke test, suspect a silent install failure — re-run with
--progress=plainand inspect the relevantRUNstep. - Layer caching: editing a line invalidates all subsequent
RUNlayers. Cluster slow installs (Claude, Codex, Antigravity) above lines that change often (config envs) to maximize cache reuse during iteration.
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.
- 2mo ago First seen · 57 lines · 42 tokens per session scan C 2194c07f4477
runtime-rebuild is a skill published in the GitHub repository mpolatcan/codehub (6 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 576 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
hardening-docker-containers-for-production
Hardening Docker containers for production involves applying security best practices aligned with CIS Docker Benchmark v1.8.0 to minimize attack surface, prevent privilege escalation, and enforce leas.
implementing-container-image-minimal-base-with-distroless
Reduce container attack surface by building application images on Google distroless base images that contain only the application runtime with no shell, package manager, or unnecessary OS utilities.
scanning-docker-images-with-trivy
Trivy is a comprehensive open-source vulnerability scanner by Aqua Security that detects vulnerabilities in OS packages, language-specific dependencies, misconfigurations, secrets, and license violati.
performing-docker-bench-security-assessment
Docker Bench for Security is an open-source script that checks dozens of common best practices around deploying Docker containers in production. Based on the CIS Docker Benchmark, it audits host confi.
release-ota-promote
Publish signed Electron UI/daemon bundles to a local OTA feed with atomic manifest switch and digest readback, while dry-running the K8s drainrespawn rollout. Prod is refused before writes; feed publication is not client apply.
ecspresso
ECS deployment tool - deploy, manage, and troubleshoot ECS services.