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 preview-reportgit 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-report)<a href="https://agentmods.dev/skills/k-kohey/axe/preview-report"><img src="https://agentmods.dev/badge/skills/k-kohey/axe/preview-report/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-report"><img src="https://agentmods.dev/badge/skills/k-kohey/axe/preview-report.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.00039 | $0.00594 |
| Opus 5.5 | $0.00016 | $0.00238 |
| Sonnet 5.5 | $0.00008 | $0.00119 |
| Haiku 4.5 | $0.00004 | $0.00059 |
Grade C, and why
preview-report 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 — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Batch Preview Report
Capture screenshots of all #Preview blocks across multiple SwiftUI files and generate a report.
Steps
1. Determine target files
If $ARGUMENTS specifies files, use those directly. $ARGUMENTS may contain only View names (e.g. ContentView) instead of file paths, so resolve each to a .swift path (e.g. TodoApp/ContentView.swift) using Glob.
If no arguments are provided, detect changed Swift files:
FILES=$(git diff --name-only --diff-filter=ACMR HEAD -- '*.swift')
if [ -z "$FILES" ]; then
echo "No changed Swift files found. Specify files explicitly."
exit 1
fi
2. Generate the report
axe preview report $FILES --format md --output <output-dir>
When $ARGUMENTS is provided, use $ARGUMENTS instead of $FILES:
axe preview report $ARGUMENTS --format md --output <output-dir>
This generates:
axe_swiftui_preview_report.md— Markdown report with embedded image referencesaxe_swiftui_preview_report_assets/*.png— Individual preview screenshots
3. Display the results
Read the generated Markdown report with the Read tool. Then read each preview image in the assets directory to show them to the user.
4. Summarize
Provide a summary of all captured previews, noting:
- Total number of
#Previewblocks found - Any previews that failed to capture (and likely reasons from stderr)
- Quick observations about the UI state of each view
Options
- Use
-j <n>to control parallel simulator count for faster capture - Use
--reuse-buildto skip rebuilding if the project was recently built - Replace
--format mdwith--format htmlfor an interactive HTML report with lightbox
Use Cases
- PR review: Capture all changed views before creating a pull request
- Visual regression: Compare previews across branches
- Documentation: Generate a visual catalog of UI components
Prerequisites
Run this if the command fails because axe is not found::
curl -fsSL https://raw.githubusercontent.com/k-kohey/axe/main/install.sh | sh
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 · 75 lines · 39 tokens per session scan C 0eb52ca84da1
preview-report is a skill published in the GitHub repository k-kohey/axe (99 stars, last pushed 22d ago), licensed MIT. It adds 39 tokens to every session and 594 once invoked, about $0.0002 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-report compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| preview-reportk-kohey/axe | Skill | 99 | 22d ago | MIT | C | 39 | 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 |