# nextlevelbuilder/ui-ux-pro-max-skill — AlpLab Radar Static Code Audit

- Ring: `adopt`
- Category: `skills`
- Overall score: `4.3/5`
- Implementation check: `verified`
- Maturity: `mature`
- Audited commit: `4229fa16b124` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-01T20:26:55Z
- Repository: https://github.com/nextlevelbuilder/ui-ux-pro-max-skill
- Radar entry: https://radar.alplab.co/#repo/nextlevelbuilder/ui-ux-pro-max-skill
- License: `MIT`
- CI workflows: `.github/workflows`
- Tags: `ui-ux`, `design-systems`, `agent-skills`, `bm25-search`, `design-tokens`, `accessibility`

## Summary

A design-intelligence agent skill: a stdlib-Python BM25 search engine over curated CSV catalogs (80 UI styles, 194 product/reasoning/palette rows, 74 font pairings, 141 UX guidelines, 23 stack guides) plus a design-system generator with DTCG/CSS token export and self-contained HTML preview, delivered to 20+ AI assistants via an npm CLI and Claude plugin.

## Implementation Check

Every headline README claim maps to working code I read — BM25 search in .claude/skills/ui-ux-pro-max/scripts/core.py (BM25.fit/score), design-system generation with persistence/tokens/preview in design_system.py (generate_design_system, build_design_tokens, write_preview_html), and the 80/194/74/141/25/23 counts match .claude/skills/ui-ux-pro-max/data/catalog-summary.json — with only a trivial README '22 Tech Stacks' vs 23 in SKILL.md/plugin.json mismatch.

## When to Use

Install into any supported AI coding assistant (Claude Code, Cursor, Copilot, Codex, etc.) when you want grounded, searchable design guidance — styles, palettes, typography, accessibility/UX rules, stack-specific implementation checklists — instead of model-memory guesses. Skip it if you need a zero-Python runtime (search scripts require Python 3.x), visual asset/image generation (premium tier only), or you cannot tolerate unpinned GitHub Actions in the project's own CI.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 5.0/5 |
| usability | 4.5/5 |
| reliability | 3.0/5 |
| security | 4.0/5 |
| integration | 5.0/5 |

## Code Evidence

core.py implements a real BM25 engine (class BM25, fit/score/vocabulary) with snapshot-verified CSV loads (_load_csv_snapshot re-stats files to detect concurrent mutation), per-domain calibrated score floors with abstention (_SEARCH_THRESHOLDS, reason 'low-confidence'), typo recovery (_suggest_terms/_suggest_identities), and RTL filtering applied post-ranking before truncation (_rtl_row_filter); 23 stacks are wired via STACK_CONFIG with version-aware legacy/current filtering (_stack_row_filter, STACK_CURRENT_VERSIONS). design_system.py aggregates product/style/color/landing/typography searches (DesignSystemGenerator.generate), applies ui-reasoning.csv rules through a deliberately non-executable grammar (reasoning_contract.py parse_decision_rules/apply_decision_rules — 'never execute data'), resolves dark/light mode with WCAG luminance math (_relative_luminance, _contrast_ratio, _resolve_color_mode), exports W3C DTCG or CSS tokens (build_design_tokens), and persists MASTER.md atomically with path-traversal-proof slugs (safe_slug collapses everything outside [a-z0-9_-]; _write_persisted_file uses temp-file + os.link exclusivity). preview.py escapes all HTML (html.escape) and validates hex colors (_SAFE_HEX) and allowlists Google Fonts URLs. The skill's Python imports only stdlib (csv/re/json/difflib/math/pathlib) — no network, no eval/exec, matching the README's 'install nothing, no network calls' claim. Test coverage is real and substantive: .claude/skills/ui-ux-pro-max/scripts/tests/test_core.py covers tokenizer/BM25 behavior, hard-negative abstention across every domain and stack, and an 8-process concurrent-persistence race asserting exactly one 'success' writer; 21 sibling test files cover RTL, tokens, taxonomy, data contracts, catalog refresh, IME, text-layout resilience. CI (.github/workflows/tests.yml) runs `npm --prefix cli run verify:data` (CSV+semantic+agent-guide+catalog-summary validation, Python tests, relevance evaluation, domain/stack smoke, asset-sync hash check), pytest on .claude/skills, Playwright e2e (10 specs in cli/tests/e2e), and gallery tests; check-asset-sync.yml enforces byte-hash sync between src/ui-ux-pro-max, cli/assets, and .claude/skills plus a path contract and bundled-skill contract; release.yml gates npm publishing behind the same verify:data + e2e suite. The installer (cli/src/utils/template.ts) renders per-platform SKILL.md files from 26 JSON platform configs and bundled assets with dry-run planning (planPlatformInstallActions) sharing resolveInstallPaths with the real install.

## Issues Found

cli/src/utils/extract.ts shells out with interpolated strings (extractZip: `unzip -o "${zipPath}" -d "${destDir}"` and a Windows powershell Expand-Archive equivalent; copyFolders fallback: `cp -r`/`xcopy`) — currently unreachable from the CLI because cli/src/index.ts never registers a --legacy flag for initCommand's `legacy` option, and the interpolated paths are CLI-generated mkdtemp paths rather than user input, but the unescaped-interpolation pattern invites command injection if the branch is ever rewired to user-supplied paths. Minor: README.md advertises '22 Tech Stacks' while SKILL.md, .claude-plugin/plugin.json, and catalog-summary.json all say 23.

## Key Risks

Static review only — nothing was executed, so 'tests exist and are wired into CI' is verified but 'tests pass' is not; the 80/194/74/141/25/23 counts were read from the committed catalog-summary.json (guarded by CI sha256 snapshot checks) but not recomputed from the raw CSVs. The search scripts require Python 3.x on the host agent's machine. 18 GitHub Actions are tag-pinned (e.g. actions/checkout@v4/v6) rather than SHA-pinned — a supply-chain hardening gap in the repo's own CI, not in shipped skill code. The premium tier (brand/logo/icon generation) is out-of-repo and unauditable here. ui-styling skill ships a separate bundled LICENSE.txt whose terms I did not compare against the repo MIT license.

## Reviewed Files

- `skill.json`
- `README.md`
- `.claude-plugin/plugin.json`
- `SECURITY.md`
- `.claude/skills/ui-ux-pro-max/SKILL.md`
- `.claude/skills/ui-ux-pro-max/scripts/search.py`
- `.claude/skills/ui-ux-pro-max/scripts/core.py`
- `.claude/skills/ui-ux-pro-max/scripts/design_system.py`
- `.claude/skills/ui-ux-pro-max/scripts/reasoning_contract.py`
- `.claude/skills/ui-ux-pro-max/scripts/preview.py`
- `.claude/skills/ui-ux-pro-max/scripts/tests/test_core.py`
- `.claude/skills/ui-ux-pro-max/data/catalog-summary.json`
- `src/ui-ux-pro-max/scripts/search.py`
- `scripts/refresh-google-fonts.py`
- `cli/package.json`
- `cli/src/index.ts`
- `cli/src/commands/init.ts`
- `cli/src/commands/uninstall.ts`
- `cli/src/utils/github.ts`
- `cli/src/utils/extract.ts`
- `cli/src/utils/template.ts`
- `cli/scripts/sync-assets.mjs`
- `cli/scripts/run-python.mjs`
- `.github/workflows/tests.yml`
- `.github/workflows/release.yml`
- `.github/workflows/check-asset-sync.yml`
- `.github/workflows/smoke-stacks.yml`
- `stack/.mcp.json`
- `stack/.claude/settings.json`
- `stack/scripts/design-audit.mjs`
