context-health-visual

context-health-visual is a skill for Claude Code, Codex from LeeJuOh/claude-code-zero. It costs 62 tokens per session (8,557 once invoked), scanned B, original, MIT.

An environment audit for Claude Code, the coding-agent tool. It checks areas such as context usage, skill descriptions, trigger collisions, hooks, plugins, configuration files, memory, and security risks.

In plain words
What is it for?
Use it to review Claude Code setup health, investigate context-budget use, inspect plugins and hooks, or scan installed skills for risky patterns. It can output HTML or Markdown.
Why use it?
It brings scattered environment problems into one report so maintainers can see what may affect the agent’s behaviour or safety.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the vision-powers plugin — 4 skills, 4 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/leejuoh/claude-code-zero/context-health-visual
Any agent
npx skills add LeeJuOh/claude-code-zero --skill context-health-visual
Clone the repo
git clone --depth 1 https://github.com/LeeJuOh/claude-code-zero

Made for: Claude Code, Codex.

Or install vision-powers, the plugin that ships this one along with the rest of its 4 skills, 4 agents.

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 context-health-visual

README.md
[![agentmods](https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/context-health-visual.svg)](https://agentmods.dev/skills/leejuoh/claude-code-zero/context-health-visual)
Your own site
<a href="https://agentmods.dev/skills/leejuoh/claude-code-zero/context-health-visual"><img src="https://agentmods.dev/badge/skills/leejuoh/claude-code-zero/context-health-visual.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,557 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
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 $0.00062 $0.08557
Opus 5 $0.00031 $0.04279
Sonnet 5 $0.00012 $0.01711
Haiku 4.5 $0.00006 $0.00856

Measured 5d ago against content hash 97c3976d1032, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

context-health-visual scanned grade B 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/env-health-scan.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

command-type `InstructionsLoaded` hook to `~/.claude/settings.json` that logs to

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

allowed-tools: Read, Glob, Grep, Agent, AskUserQuestion, Artifact, Skill(artifact-design), Bash(node *), Bash(open *), Bash(rm -rf /tmp/env-health-*)

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

plugins/vision-powers/skills/context-health-visual/SKILL.md · 558 lines

How it starts

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

Environment Health

Diagnose the user's Claude Code environment health. Outputs either an inline markdown report or a self-contained interactive HTML dashboard. Covers 10 diagnostic areas — 6 graded scores against official thresholds (§4 splits into §4a at-rest and §4b post-compact; §9 Skill Security Scan uses security baselines rather than docs-cited thresholds) plus 5 observational areas (raw numbers, no tier).

Instructions

Input Parsing

Parse these arguments:

Flag Values Default Meaning
--format html | md html Output mode. html generates a full interactive dashboard (default — recommended). md produces an inline markdown report for non-browser contexts or chat pasting
--lang ISO code (en, ko, fr, etc.) detected Report language. Falls back to detecting the user message language, then en
--use-instructions-loaded-hook (flag) off Guide the user through temporarily enabling the InstructionsLoaded hook for file-level ground-truth data, then offer to revert it
--local (flag) off Force the local design-system dashboard — capable HTML publishes to an Artifact by default
--artifact (flag) retained no-op alias Already the default on capable HTML — kept so muscle memory / natural-language triggers don't break

Channel is decided by the shared contract, not re-derived here — read ${CLAUDE_PLUGIN_ROOT}/references/design-system/channel-decision.md (SSOT, restates ADR 0009) for the (Format × capable) → channel table, flag semantics, and the optimistic-try-then-regenerate rule. The short version: capable HTML publishes to a claude.ai Artifact by default; --local forces the local dashboard; md and non-capable sessions stay local. Both flags apply to --format html only; --artifact combined with --format md is ignored and the normal markdown path runs. If --local and --artifact are both signalled, --local wins. --local also triggers on natural-language equivalents ("keep it local", "don't publish"); --artifact still triggers on "as an artifact", "publish as a link", "share as a URL" — in whatever language the user writes.

Read the full file on GitHub · 558 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 558 lines · 62 tokens per session scan B 97c3976d1032

Subscribe to this mod's changes

context-health-visual is a skill published in the GitHub repository LeeJuOh/claude-code-zero (51 stars, last pushed 6d ago), licensed MIT. It adds 62 tokens to every session and 8,557 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.