codehub: Skill for Claude Code

.claude/skills/runtime-rebuild/SKILL.md

runtime-rebuild is a skill for Claude Code from mpolatcan/codehub. It costs 42 tokens per session (576 once invoked), scanned C, original, MIT.

A documented process rebuilds and labels the Docker image used as the CodeHub runtime. Docker images are packaged environments used to run software consistently.

In plain words
What is it for?
It is for rebuilding the runtime image, performing a clean no-cache build, checking installed command-line tools, and optionally tagging the canonical version as latest.
Why use it?
It helps ensure runtime changes, installation commands, and image version updates are built and checked from the current source.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Codex.

This is mpolatcan/codehub's own configuration. It tells Claude Code how to work on codehub itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codehub configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/mpolatcan/codehub/main/.claude/skills/runtime-rebuild/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mpolatcan/codehub

Made for: Claude Code.

Wrote 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.

agentmods badge for runtime-rebuild

README.md
[![agentmods](https://agentmods.dev/badge/skills/mpolatcan/codehub/runtime-rebuild/github.svg)](https://agentmods.dev/skills/mpolatcan/codehub/runtime-rebuild)
Your own site
<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.

agentmods 80×15 button for runtime-rebuild

Your own site · 80×15
<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>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 576 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash 2194c07f4477, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.
.claude/skills/runtime-rebuild/SKILL.md · 57 lines

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/Dockerfile was 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

  1. Confirm tag. Read src-tauri/src/lib.rs and locate DEFAULT_IMAGE (line near the top of run()). The version after : is the source of truth.

  2. Build. From repo root:

    make image                # equivalent to: docker build -t <repo>:<VERSION> runtime/
    make image-nocache        # --no-cache, guaranteed-clean rebuild
    

    Both targets parse the version from src-tauri/src/lib.rs:DEFAULT_IMAGE. Override via:

    make image IMAGE_TAG=0.2.0
    
  3. Smoke-test inside the image before declaring success:

    make image-verify
    

    Every CLI must produce a path + version. If which antigravity is added it will currently fail because Antigravity install is commented out — that is expected; do not block on it.

  4. Tag latest only if this is the canonical version on main:

    docker tag ghcr.io/mpolatcan/codehub-runtime:<VERSION> ghcr.io/mpolatcan/codehub-runtime:latest
    
  5. Multi-arch build for publishing (only when cutting a release — see release-cut skill):

    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 a curl … | bash install 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=plain and inspect the relevant RUN step.
  • Layer caching: editing a line invalidates all subsequent RUN layers. Cluster slow installs (Claude, Codex, Antigravity) above lines that change often (config envs) to maximize cache reuse during iteration.

Read the full file on GitHub · 57 lines

Changes

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.

  1. 2mo ago First seen · 57 lines · 42 tokens per session scan C 2194c07f4477

Subscribe to this mod's changes

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.

Related

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.

xalgorix/xalgorix · 43 tokens

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.

xalgorix/xalgorix · 45 tokens

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.

xalgorix/xalgorix · 42 tokens

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.

xalgorix/xalgorix · 44 tokens

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.

Prismer-AI/PrismerCloud · 52 tokens

ecspresso

ECS deployment tool - deploy, manage, and troubleshoot ECS services.

kayac/ecspresso · 17 tokens