kube-coder: Skill for Claude Code

.claude/skills/kc-preflight/SKILL.md

kc-preflight is a skill for Claude Code from imran31415/kube-coder. It costs 56 tokens per session (1,112 once invoked), scanned A, original, MIT.

A local preflight checker for kube-coder that runs the project’s main quality checks before code is pushed. These checks include chart validation, tests, web-app builds, and shell syntax checks.

In plain words
What is it for?
Use it before opening or updating a pull request to check Helm charts, Python tests, dashboard and controller builds, Vitest tests, and shell scripts.
Why use it?
It catches failures locally before a pull request or push reaches continuous integration (CI), the automated checks run by the repository.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is imran31415/kube-coder's own configuration. It tells Claude Code how to work on kube-coder 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 kube-coder configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/dev/kube-coder.

Reuse

Borrowing it

Nothing to install: this file belongs to imran31415/kube-coder. 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/imran31415/kube-coder/main/.claude/skills/kc-preflight/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/imran31415/kube-coder

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 kc-preflight

README.md
[![agentmods](https://agentmods.dev/badge/skills/imran31415/kube-coder/kc-preflight/github.svg)](https://agentmods.dev/skills/imran31415/kube-coder/kc-preflight)
Your own site
<a href="https://agentmods.dev/skills/imran31415/kube-coder/kc-preflight"><img src="https://agentmods.dev/badge/skills/imran31415/kube-coder/kc-preflight/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 kc-preflight

Your own site · 80×15
<a href="https://agentmods.dev/skills/imran31415/kube-coder/kc-preflight"><img src="https://agentmods.dev/badge/skills/imran31415/kube-coder/kc-preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,112 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00056 $0.01112
Opus 5.5 $0.00022 $0.00445
Sonnet 5.5 $0.00011 $0.00222
Haiku 4.5 $0.00006 $0.00111

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

Security

Grade A, and why

kc-preflight scanned grade A 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

cd /tmp && curl -fsSL https://get.helm.sh/helm-v3.14.4-linux-amd64.tar.gz | tar xz \
.claude/skills/kc-preflight/SKILL.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

kube-coder preflight (run CI locally)

Mirrors .github/workflows/ci.yml so you catch failures before pushing instead of waiting on a CI round-trip.

Run kc-scope-pr first. This skill runs whole suites; that one tells you which suites your change actually reaches, and what it left untested. A green preflight over a suite that never touches your diff is not evidence. Run the subset named by $ARGUMENTS (default all). Report a concise PASS/FAIL summary per section at the end.

Run from the repo root (/home/dev/kube-coder).

Prereqs (install once, idempotent)

export PATH="$HOME/.local/bin:$PATH"
# helm (if missing)
command -v helm >/dev/null || {
  cd /tmp && curl -fsSL https://get.helm.sh/helm-v3.14.4-linux-amd64.tar.gz | tar xz \
    && install -m755 linux-amd64/helm ~/.local/bin/helm; cd -; }
# helm-unittest plugin (if missing)
helm plugin list 2>/dev/null | grep -q unittest \
  || helm plugin install https://github.com/helm-unittest/helm-unittest.git --version v0.5.2

helm — lint + template + unit tests

export PATH="$HOME/.local/bin:$PATH"
helm lint charts/workspace/ -f charts/workspace/tests/test-values.yaml
helm template test-ws charts/workspace/ -f charts/workspace/tests/test-values.yaml > /dev/null
helm unittest charts/workspace/
# controller chart too, if you touched it:
# helm lint charts/workspace-controller/ -f charts/workspace-controller/tests/test-values.yaml
# helm unittest charts/workspace-controller/

python — server.py unit + integration tests

make python-tests
# Prefer the make target: it points KC_FEED_DIR / KC_PUSH_DIR / KC_PROVIDER_KEYS_FILE
# at a temp dir, so a test can't write this workspace's live Feed, page its phone
# (#685), or read/overwrite the API keys you set in Settings. By hand:
# t=$(mktemp -d) && cd charts/workspace && KC_FEED_DIR=$t/feed KC_PUSH_DIR=$t/push \
#   KC_PROVIDER_KEYS_FILE=$t/provider-keys.json \
#   python3 -m unittest discover -s tests -p '*_test.py'

Read the full file on GitHub · 110 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. 1mo ago Changed · +2 lines 5103aba473f6
  2. 1mo ago Changed · +3 lines 7c228f248468
  3. 1mo ago Changed · +4 lines 8a37e1534ba5
  4. 2mo ago First seen · 101 lines · 56 tokens per session scan A 78a6fac5d861

Subscribe to this mod's changes

kc-preflight is a skill published in the GitHub repository imran31415/kube-coder (399 stars, last pushed 2d ago), licensed MIT. It adds 56 tokens to every session and 1,112 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

kc-preflight compared with skills from other repositories

kc-preflight next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kc-preflightimran31415/kube-coderSkill3992d agoMITA56Claude Code
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.5k11d agoMITA69Claude Code
atmos-profilescloudposse/atmosSkill1.4kyesterdayApache-2.0A35Claude Code
webhook-managementhoangsonww/Claude-Code-Agent-MonitorSkill1.1kyesterdayMITA56Claude Code, Codex
monorepo-managementwshobson/agentsSkill42kyesterdayMITC54Claude Code
managing-github-actions-secretsPostHog/posthog-fossSkill728yesterdayMITA67Claude Code, Codex
postman-newman-automationLambdaTest/agent-skillsSkill390yesterdayMITA156Claude Code, Codex