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 agentmods add skills/d-o-hub/github-template-ai-agents/ui-ux-optimizenpx skills add d-o-hub/github-template-ai-agents --skill ui-ux-optimizegit clone --depth 1 https://github.com/d-o-hub/github-template-ai-agentsWrote 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/d-o-hub/github-template-ai-agents/ui-ux-optimize)<a href="https://agentmods.dev/skills/d-o-hub/github-template-ai-agents/ui-ux-optimize"><img src="https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/ui-ux-optimize.svg" alt="Measured on agentmods" 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.00108 | $0.02478 |
| Opus 5 | $0.00054 | $0.01239 |
| Sonnet 5 | $0.00022 | $0.00496 |
| Haiku 4.5 | $0.00011 | $0.00248 |
Grade A, and why
ui-ux-optimize scanned grade A with 0 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.
UI/UX Prompt Optimizer
Compliance Mandate
You are a constrained design executor once tokens are frozen.
- Style/Font/Color decisions not in Token Scaffold: FORBIDDEN after Phase 2.
- Missing required token category: warn and ask user — do NOT infer.
- Before Phase 2: full creative freedom. After Phase 2 freeze: zero discretion.
- FREEZE ENFORCEMENT:
scripts/validate-tokens.cjsenforces the freeze programmatically.
Swarm-powered skill for generating implementation-ready UI/UX prompts. Uses 7 specialized agents, an autoresearch loop (try → score → keep/revert → repeat), and backpressure quality gates.
When to Use
- UI/UX design help, redesign, or critique for any digital product
- Prompt optimization for a design or coding agent
- A structured design brief from a vague idea
- A design audit or variant generation for a design system
Supported: web apps, mobile apps, dashboards, admin tools, e-commerce, SaaS, games, kiosk/touch UIs, prototypes.
When NOT to Use
- Pure branding (logos, print, identity only)
- Motion graphics or video production
- Backend architecture with no UI component
- Marketing copy without interface context
Anti-AI-Slop Guide
Systematic antidote for generic AI patterns in UI, UX, and copy.
Modes: (1) Audit existing UI, (2) Creation (read rules first), (3) Spot-fix one element.
Always name the sin before fixing. Full pattern tables → references/anti-slop-guide.md
and references/anti-slop-rules.md. Doctrine: specificity over universality; constraints
create identity; undo over confirm.
Swarm Architecture
7 specialized agents. Full details → references/swarm-coordination.md
| Agent | Domain |
|---|---|
| Research Scout | Domain trends, platform guidelines, competitor analysis |
| Token Architect | Semantic design tokens, typography, color, spacing |
| Layout Engineer | Navigation, screen hierarchy, responsive composition |
| Variant Generator | 3 design variants with shared tokens + override diffs |
| Browser Verifier | Playwright screenshots, overlap detection, tap targets |
| Quality Auditor | Review checklist scoring, confidence, lessons |
| Anti-Slop Sentinel | Cross-cutting: translates vague language, detects AI patterns |
What ships with it
30 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.
- evals/eval-prompt.md 73 B
- evals/evals.json 840 B
- evals/golden-tokens.json 835 B
- examples/casual-quest-game-run.md 1.8 KB
- examples/saas-dashboard-redesign-run.md 23 KB
- references/animations.md 11 KB
- references/anti-slop-guide.md 2.2 KB
- references/anti-slop-rules.md 1.7 KB
- references/auto-research.md 1.7 KB
- references/browser-verification.md 1.1 KB
- references/color-system.md 768 B
- references/design-tokens.md 1.9 KB
- references/game-ui-rules.md 1.1 KB
- references/layout-composition.md 1.3 KB
- references/navigation-clarity.md 1.1 KB
- references/prompt-patterns.md 1.1 KB
- references/responsive-screen-rules.md 1.1 KB
- references/review-checklist.md 1.4 KB
- references/self-learning-loop.md 829 B
- references/stitch-design-token-alignment.md 1.0 KB
- references/swarm-coordination.md 6.1 KB
- references/typography.md 4.6 KB
- references/variant-worktree-flow.md 996 B
- scripts/check-output.cjs 2.1 KB runs code
- scripts/sync-tokens.cjs 1.3 KB runs code
- scripts/validate-tokens.cjs 2.9 KB runs code
- scripts/verify.py 5.0 KB runs code
- templates/design-audit-template.md 2.0 KB
- templates/lessons-log-template.md 498 B
- templates/optimize-prompt-template.md 1.5 KB
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 · 205 lines · 108 tokens per session scan A 99cff06339e9
ui-ux-optimize is a skill published in the GitHub repository d-o-hub/github-template-ai-agents (2 stars, last pushed today), licensed MIT. It adds 108 tokens to every session and 2,478 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
accessibility-ui-design
When designing and implementing web interfaces to ensure they are usable by everyone.
design-movements
Historical design movements and their enduring influence. Understand Bauhaus, Swiss International Style, Art Deco, Memphis, and more. Use when choosing an aesthetic direction, understanding cultural context, or predicting trend cycles.
brand-systems
Building comprehensive brand identity systems from strategy to implementation. Covers logo design, color palettes, typography pairing, voice guidelines, and system documentation. Use when creating new brands, rebranding, or systematizing existing identities.
design-masters
Deep knowledge of legendary designers and their enduring contributions. Learn from Saul Bass, Massimo Vignelli, Dieter Rams, Paula Scher, and others whose work defines excellence. Use when seeking inspiration, understanding design history, or applying proven approaches.
design-principles
Core visual design principles that underpin all great design. Master gestalt psychology, visual hierarchy, composition, color theory, and typography fundamentals. Use when making design decisions or evaluating designs against proven principles.
opencli-sitemap-author
Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.