AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Ctx2img

skill-h5i-dev-h5i-ctx2img-ctx2img · by h5i-dev

Cut context tokens by rendering it as images. `ctx2img paint <path|->` turns any text-shaped input (a repo, a directory, a file, markdown, stdin) into dense images that carry the full text at 60-75% fewer tokens, with stable handles and a verbatim factsheet; `ctx2img read` recovers guaranteed-exact text. Use before ingesting any large text or at the START of any task in an unfamiliar or large rep…

No reviews yet
0 installs
4 views
0.0% view→install

Install

$ agentstack add skill-h5i-dev-h5i-ctx2img-ctx2img

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-h5i-dev-h5i-ctx2img-ctx2img)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
25d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Ctx2img? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

ctx2img — Repository Atlas

ctx2img compiles the repository into a query-conditioned map: an image where position = module topology, cell area = code size, elevation (▲1–▲5) = relevance to your current task, hatched red = trust hazards, arrows = dependencies. Every region/file/symbol carries a stable handle (R3, F103, S12) that resolves back to exact source. The image is an index, never the source of truth — exact code always comes from ctx2img read as text.

Workflow

  1. Index the repo against your task (auto-builds on first run):

``bash ctx2img paint . --budget 2000 -q "" ``

stdout is the legend (region roster with handles + elevation). If it prints an # atlas: line, Read that PNG file now — the image carries the geography the legend can't. On small repos it may print a text-only roster instead (representation: text) — that alone is a complete map; no image to read.

  1. Pick the summit. Start from the highest-elevation regions (▲5/▲4) and

their top files. ⚠net/exec/secrets/eval tags mark files that touch the outside world — relevant for anything security-adjacent.

  1. Focus where the task points — paint just that module or file:

``bash ctx2img paint src/auth -q "" # one module's FULL SOURCE as image tiles ctx2img paint src/auth/session.rs # a single file as dense pages ``

Subdirectory paints share the whole repo's handles and relevance, so the tiles line up with the atlas you already saw.

  1. Get exact source as text (never trust pixels for code):

``bash ctx2img read F103 # whole file, numbered ctx2img read S12 # just that symbol's line range ctx2img read F103 --lines 40:120 ctx2img read --find "session" # search paths+symbols, answers in handles ``

  1. Compress any bulky text (a long doc, tool output, a spec — or a whole

directory) before ingesting it:

``bash ctx2img paint doc.md --out-dir /tmp/pages # markdown → section map (headings = territories) ctx2img paint some/dir --query "" # dir → atlas folio: overview + full-source tiles cat text | ctx2img paint --out-dir /tmp/pages # flat text → dense pages ``

Then Read the page PNGs in order. Keep the printed factsheet line — it carries the exact identifiers (paths, SHAs, IDs) as text; quote those from the factsheet, never by transcribing them from the image. If paint says text is cheaper, just read the text.

Rules

  • The atlas is for navigation; inscribe tiles and paint pages are for

reading. Quote, edit, hash-compare, and reason over ctx2img read output or the factsheet (text), never over strings you transcribed from an image — image misreads are silent and look plausible.

  • Handles are stable across runs and queries — safe to mention in commits,

notes, and follow-up commands.

  • Re-run ctx2img paint . --budget 2000 -q "" whenever your task changes; it re-elevates the

same geography in well under a second (warm cache), so map early and often.

  • --json on paint gives {pages, legend_path, ...} when you need to

script it.

  • For a human-facing map (README, PR description):

ctx2img paint . --theme parchment.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.