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.
npx skills add k-kohey/axe --skill previewgit clone --depth 1 https://github.com/k-kohey/axeWrote 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.
[](https://agentmods.dev/skills/k-kohey/axe/preview)<a href="https://agentmods.dev/skills/k-kohey/axe/preview"><img src="https://agentmods.dev/badge/skills/k-kohey/axe/preview/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.
<a href="https://agentmods.dev/skills/k-kohey/axe/preview"><img src="https://agentmods.dev/badge/skills/k-kohey/axe/preview.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00036 | $0.00690 |
| Opus 5.5 | $0.00014 | $0.00276 |
| Sonnet 5.5 | $0.00007 | $0.00138 |
| Haiku 4.5 | $0.00004 | $0.00069 |
Grade C, and why
preview scanned grade C 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.
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.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -fsSL https://raw.githubusercontent.com/k-kohey/axe/main/install.sh | sh Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -fsSL https://raw.githubusercontent.com/k-kohey/axe/main/install.sh | sh How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SwiftUI Preview Capture
Capture a screenshot of a SwiftUI View's #Preview block using axe preview report (preferred) or axe preview.
Steps
Default: Use axe preview report
axe preview report is preferred because it waits for rendering to complete (--wait, default 10s) and retries on failure. Use this unless you need to select a specific preview from multiple #Preview blocks.
-
Resolve
$ARGUMENTSto a.swiftfile path.$ARGUMENTSmay contain only a View name (e.g.ContentView), so use Glob to find the actual path (e.g.TodoApp/ContentView.swift). -
Run
axe preview reportto capture the preview as a PNG image:
axe preview report <path/to/File.swift> --output <output.png>
-
Display the captured image using the Read tool.
- If the file contains multiple
#Previewblocks,--outputmust be a directory. In that case, each screenshot is saved as<basename>--preview-<index>.png. Display all captured images.
- If the file contains multiple
-
Describe what you see in the preview to the user.
Fallback: Use axe preview (oneshot)
Use axe preview when you need to select a specific preview from a file that contains multiple #Preview blocks, via --preview <title|index>.
Note: oneshot mode captures immediately after the app signals readiness, with no rendering delay. This may result in a blank screenshot for views that require time to render.
axe preview <path/to/File.swift> > <output.png>
Options
--wait <duration>— Rendering delay before screenshot capture (default 10s,reportonly). Reduce for simple views, increase for complex ones.--reuse-build— Skip xcodebuild and reuse artifacts from a previous build. Useful when capturing multiple previews in succession or when only the View source changed.--preview <title|index>— Select a specific preview by title or index (oneshot only).
Notes
- If the command fails, read
$ERR_LOGand report the error to the user. Common causes:- The file does not contain a
#Previewblock - Missing
.axercor--schemenot specified axeoridb_companionnot installed
- The file does not contain a
- The screenshot reflects the current state of the source code on disk. If the user has unsaved edits, remind them to save first.
- Clean up generated screenshot and log files after they are no longer needed.
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.
- 5d ago First seen · 63 lines · 36 tokens per session scan C 05a17686fa4b
preview is a skill published in the GitHub repository k-kohey/axe (99 stars, last pushed 22d ago), licensed MIT. It adds 36 tokens to every session and 690 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.
preview compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| previewk-kohey/axe | Skill | 99 | 22d ago | MIT | C | 36 | Claude Code |
| ios-expertpersonamanagmentlayer/pcl | Skill | 44 | 11d ago | Apache-2.0 | A | 64 | Claude Code |
| ttb-skill-native-swiftui-componentstqtuan1201/TTBaseUIKit | Skill | 23 | 3mo ago | MIT | A | 55 | Claude Code, Codex |
| ax-design-refKasempiternal/axiom-v2 | Skill | 4 | 8mo ago | MIT | A | 64 | Claude Code |
| ax-designKasempiternal/axiom-v2 | Skill | 4 | 8mo ago | MIT | A | 41 | Claude Code |
| swiftui-liquid-glassthiennc-tesoglobal/ios-skills | Skill | 3 | 1mo ago | none | A | 60 | Claude Code |
| swiftui-responsive-layoutthiennc-tesoglobal/ios-skills | Skill | 3 | 1mo ago | none | A | 76 | Claude Code |