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.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.svg" alt="Measured on agentmods" 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 $0.00024 $0.00468
Sonnet 5 $0.00010 $0.00187
Haiku 4.5 $0.00005 $0.00094

Measured 9d ago against content hash 87bb93fb86c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 9d 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. 9d 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 (354 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 936 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens

animation-principles

Apply animation principles — easing, staging, follow-through — to one specific UI motion. Use when tuning how an animation feels. For product-wide duration and easing tokens use motion-system (design-systems); for a full interaction spec use micro-interaction-spec.

Owl-Listener/designer-skills · 59 tokens

refactoring-ui

Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions "my UI looks off" (or amateur/unprofessional), "fix the design", "Tailwind styling", "color palette", "visual hierarchy", "design system", "spacing scale", or "component styling". Also trigger when building consistent…

wondelai/skills · 132 tokens