kube-coder: Skill for Claude Code

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

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

A screenshot tool for checking a web dashboard in a real browser. It captures desktop and mobile views in both dark and light themes.

In plain words
What is it for?
Use it after frontend changes when you need rendered screenshots for visual quality checks.
Why use it?
It shows visual problems that tests may miss, such as layout, terminal, or theme issues.

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/screenshots).

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-screenshot/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-screenshot

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/imran31415/kube-coder/kc-screenshot"><img src="https://agentmods.dev/badge/skills/imran31415/kube-coder/kc-screenshot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 936 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.00049 $0.00936
Opus 5.5 $0.00020 $0.00374
Sonnet 5.5 $0.00010 $0.00187
Haiku 4.5 $0.00005 $0.00094

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

Security

Grade A, and why

kc-screenshot 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 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.

Makes network callslowCapability

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

curl -sf http://localhost:7070/ >/dev/null && echo "dev server up" || tail -20 /tmp/dev_server.log
.claude/skills/kc-screenshot/SKILL.md · 93 lines

How it starts

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

Screenshot the dashboard SPA

Drives a headless Chromium across desktop (1280x800) and mobile (390x844) viewports in dark + light themes, against a local dev harness that stubs auth. Useful for changes that can't be fully unit-tested (terminal iframe, layout, theming). Read the resulting PNGs with the Read tool — they render inline.

How it works

  • charts/workspace/web/dev_server.py <port> — a thin harness that imports the real charts/workspace/server.py and monkeypatches check_claude_auth to always return True, so the SPA can hit /api/* without the OAuth proxy. The production dashboard on 6080 is untouched.
  • charts/workspace/web/scripts/shoot.mjs — drives Chromium via playwright-core and writes phaseN-<view>-<viewport>-<theme>.png files. Sibling variants exist for specific surfaces: shoot-hv.mjs (hypervisor), shoot-msgchat.mjs, shoot-docs.mjs, shoot-toolbar-paste.mjs.

Steps

1. Build the SPA (the dev server serves dist/)

yarn --cwd charts/workspace/web build

Rebuild after any source edit — the dev server picks up the new dist/ on the next request, no restart needed.

2. Start the dev server on port 7070

cd /home/dev/kube-coder
nohup python3 charts/workspace/web/dev_server.py 7070 > /tmp/dev_server.log 2>&1 &
disown
sleep 2
curl -sf http://localhost:7070/ >/dev/null && echo "dev server up" || tail -20 /tmp/dev_server.log

3. Ensure a Chromium binary is installed

The shoot scripts auto-discover the Playwright Chromium via scripts/chromium-path.mjs (checks $KC_CHROMIUM, then the highest-revision chromium-<rev> under any ms-playwright cache root), so you don't hardcode or symlink anything. Just make sure one is installed:

ls -d ~/.cache/ms-playwright/chromium-*/chrome-linux*/chrome 2>/dev/null \
  || yarn --cwd charts/workspace/web exec playwright install chromium

If it lives somewhere unusual, point the scripts at it explicitly with KC_CHROMIUM=/path/to/chrome.

Read the full file on GitHub · 93 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 · 93 lines · 49 tokens per session scan A 87bb93fb86c1

Subscribe to this mod's changes

kc-screenshot is a skill published in the GitHub repository imran31415/kube-coder (399 stars, last pushed 2d ago), licensed MIT. It adds 49 tokens to every session and 936 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-screenshot compared with skills from other repositories

kc-screenshot next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kc-screenshotimran31415/kube-coderSkill3992d agoMITA49Claude Code
webgl-holographic-foilnexu-io/open-designSkill106kyesterdayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill106kyesterdayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill106kyesterdayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34k3d agoMITA52Codex
glance-canonical-layoutsandroid/skillsSkill10kyesterdayApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.6kyesterdayMITA47Claude Code