36 Commits

Author SHA1 Message Date
Khanh Le
ed766d3bf6
feat: add GIS web map and Earth observation product types (#582)
Map products had no matching product type: "GIS dashboard web map"
routed to Analytics Dashboard, "geospatial analytics platform" to
Podcast Platform, and "satellite imagery earth observation viewer"
returned nothing, so --design-system fell back to a landing-page
pattern for a map tool.

Add two product types with matching rows in products.csv, colors.csv
and ui-reasoning.csv (No 193-194):

- GIS / Web Map Dashboard: map-first layout with layer panel and linked
  list, muted basemap, one UI accent, colorblind-safe data ramps.
- Earth Observation / Satellite Imagery Viewer: imagery-first layout,
  neutral dark-grey chrome so imagery colors read true, date timeline,
  before/after compare, perceptual index ramps.

Reasoning rows require map attribution, a legend and a text
alternative, and list rainbow ramps, hidden attribution, glass panels
over the map and raw-count choropleths as anti-patterns, in line with
the Maps rows in ux-guidelines.csv. Color tokens pass the existing
contrast contract. Provenance records cover both reasoning rows.

The product, palette and reasoning sets grow from 192 to 194, so the
row-count contract in validate_data.py, test_data_contracts.py and the
published counts move to 194. Neighbouring product queries (analytics
dashboard, delivery tracking, public transit, drone fleet, podcast
platform) keep their product type; relevance metrics are unchanged.

Co-authored-by: Khanhle19 <201531944+Khanhle19@users.noreply.github.com>
2026-11-18 23:06:04 +07:00
Khanh Le
f984fcd3de
feat: add web map UX guidelines (Maps category) (#581)
Add ten sourced guidelines for web maps (MapLibre, Mapbox GL, Leaflet,
OpenLayers) to ux-guidelines.csv, rows 121-130:

- Map Attribution Visible (Critical)
- Map Text Alternative (Critical)
- Map Keyboard and Non-Drag Navigation (High)
- Map Symbology Not Color Alone (High)
- Normalized Choropleth Map (High)
- Perceptual Map Color Ramps (High)
- Safe Map Popup Content (High)
- Cluster Dense Map Points (Medium)
- Large Geodata as Vector Tiles (Medium)
- Map Camera Reduced Motion (Medium)

The Geographic Data chart row now asks for normalized choropleths,
proportional symbols for totals, colorblind-safe ramps and visible
attribution. Provenance records cite OSMF, Mapbox, MapLibre, Leaflet,
W3C WCAG 2.2, ColorBrewer, Esri, NASA Earth Observatory and OWASP; the
map publishers are added to the official source hosts.

Generic queries ("color alone", "keyboard navigation", "reduced motion",
"dragging movements") still return the generic rows first; relevance
metrics are unchanged. UX guideline count 120 -> 130.

Distilled from the MIT-licensed gis-ui-ux-pro skill.

Co-authored-by: Khanhle19 <201531944+Khanhle19@users.noreply.github.com>
2026-11-18 20:15:23 +07:00
Matt Van Horn
b6a79003ad
feat(design-system): export the generated design system as design tokens (#577) 2026-11-16 05:07:39 +07:00
Matt Van Horn
efd9822135
feat(design-system): write a self-contained preview page for the generated system (#576) 2026-11-16 02:05:27 +07:00
조유경 (Cho Yugyeong)
1f50119f71
fix: assemble the IME test reference path from components (#575) 2026-11-15 20:09:38 +07:00
조유경 (Cho Yugyeong)
4f2dbb67e6
feat: add IME-safe Enter shortcut guidance (#562)
* test: verify IME retrieval and Enter shortcut example

* test: verify IME retrieval and Enter shortcut example

* docs: explain IME-safe Enter shortcuts and verification

* test: verify IME retrieval and Enter shortcut example

* chore: update UX guideline count in .claude/skills/ui-ux-pro-max/SKILL.md

* chore: update UX guideline count in .claude/skills/ui-ux-pro-max/data/catalog-summary.json

* feat: add IME composition Enter guidance

* chore: refresh runtime fingerprint for IME guidance

* chore: update UX guideline count in README.ko.md

* chore: update UX guideline count in README.md

* chore: update UX guideline count in README.zh.md

* chore: update UX guideline count in cli/assets/data/catalog-summary.json

* feat: add IME composition Enter guidance

* chore: refresh runtime fingerprint for IME guidance

* chore: update UX guideline count in cli/assets/templates/platforms/agent.json

* chore: update UX guideline count in cli/assets/templates/platforms/amazonq.json

* chore: update UX guideline count in cli/assets/templates/platforms/augment.json

* chore: update UX guideline count in cli/assets/templates/platforms/autoclaw.json

* chore: update UX guideline count in cli/assets/templates/platforms/claude.json

* chore: update UX guideline count in cli/assets/templates/platforms/codebuddy.json

* chore: update UX guideline count in cli/assets/templates/platforms/codewhale.json

* chore: update UX guideline count in cli/assets/templates/platforms/codex.json

* chore: update UX guideline count in cli/assets/templates/platforms/continue.json

* chore: update UX guideline count in cli/assets/templates/platforms/copilot.json

* chore: update UX guideline count in cli/assets/templates/platforms/cursor.json

* chore: update UX guideline count in cli/assets/templates/platforms/droid.json

* chore: update UX guideline count in cli/assets/templates/platforms/gemini.json

* chore: update UX guideline count in cli/assets/templates/platforms/kilocode.json

* chore: update UX guideline count in cli/assets/templates/platforms/kimi.json

* chore: update UX guideline count in cli/assets/templates/platforms/kiro.json

* chore: update UX guideline count in cli/assets/templates/platforms/openclaw.json

* chore: update UX guideline count in cli/assets/templates/platforms/opencode.json

* chore: update UX guideline count in cli/assets/templates/platforms/qoder.json

* chore: update UX guideline count in cli/assets/templates/platforms/roocode.json

* chore: update UX guideline count in cli/assets/templates/platforms/trae.json

* chore: update UX guideline count in cli/assets/templates/platforms/universal.json

* chore: update UX guideline count in cli/assets/templates/platforms/warp.json

* chore: update UX guideline count in cli/assets/templates/platforms/windsurf.json

* chore: update UX guideline count in cli/assets/templates/platforms/zcode.json

* chore: update UX guideline count in src/ui-ux-pro-max/data/catalog-summary.json

* feat: add IME composition Enter guidance

* chore: refresh runtime fingerprint for IME guidance

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/agent.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/amazonq.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/augment.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/autoclaw.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/claude.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/codebuddy.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/codewhale.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/codex.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/continue.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/copilot.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/cursor.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/droid.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/gemini.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/kilocode.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/kimi.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/kiro.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/openclaw.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/opencode.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/qoder.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/roocode.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/trae.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/universal.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/warp.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/windsurf.json

* chore: update UX guideline count in src/ui-ux-pro-max/templates/platforms/zcode.json

* docs: record official sources for IME guidance

* feat: add IME composition Enter guidance

* chore: refresh runtime fingerprint for IME guidance

* test: verify IME retrieval and Enter shortcut example

* chore: update UX guideline count in README.az.md

* chore: update UX guideline count in README.id.md

* chore: update UX guideline count in README.ja.md

* chore: update UX guideline count in README.vi.md

* docs: record official sources for IME guidance

* feat: add IME composition Enter guidance

* chore: refresh runtime fingerprint for IME guidance

* test: verify IME retrieval and Enter shortcut example

* test: align platform query contract with UX count

* docs: explain IME-safe Enter shortcuts and verification

* chore: update UX guideline count in skill.json

* docs: record official sources for IME guidance

* feat: add IME composition Enter guidance

* chore: refresh runtime fingerprint for IME guidance

* test: verify IME retrieval and Enter shortcut example

* chore: update UX guideline count in stack/README.md

* chore: update UX guideline count in stack/docs/STACK.md

* feat: add IME composition Enter guidance

* docs: include IME Enter guidance in quick reference

* chore: refresh runtime fingerprint for IME guidance

* test: verify IME retrieval and Enter shortcut example

* feat: add IME composition Enter guidance

* chore: refresh runtime fingerprint for IME guidance

* test: verify IME retrieval and Enter shortcut example

* docs: include IME Enter guidance in quick reference

* test: align platform query contract with UX count

* docs: explain IME-safe Enter shortcuts and verification

* feat: add IME composition Enter guidance

* chore: refresh runtime fingerprint for IME guidance

* test: verify IME retrieval and Enter shortcut example

* docs: include IME Enter guidance in quick reference
2026-11-08 02:05:11 +07:00
Paritosh Gaidhani
b7d5353e01
feat: add Apple Native Experience UI style (#557)
* feat: add data catalog, provenance, styles, and taxonomy test suite

* feat: add Apple Native Experience style
2026-11-05 14:07:38 +07:00
SoufianeDev
713eef51b0
feat(search): add RTL compatibility levels and --rtl filter (#553)
* feat(data): add rtl_level to styles and products

Classify every style and product row for right-to-left interfaces:
full (mirrors unchanged), partial (mirrors with per-component work),
caveats (layout encodes reading direction).

One column is appended per row; existing fields, column order and LF
line endings are untouched. Mirrors under cli/assets and .claude are
synced with npm run sync:assets.

* feat(search): add --rtl filter to style and product searches

search() accepts rtl="all|full|partial|caveats" and projects the new
rtl_level column, so filtered rows still carry their compatibility
level. Without that projection the filter saw None and dropped every
row, which is what broke the earlier attempt.

The filter runs after BM25 scoring but before max_results truncation.
Filtering the corpus before indexing shifted IDF and made calibrated
searches abstain incorrectly (dashboard --domain style --rtl=partial
returned nothing); scoring first keeps the corpus and thresholds
stable while still preventing -n 1 from hiding a matching row.

--rtl requires an explicit style/product domain, and is rejected with
--design-system and --stack.

relevance thresholds: runtimeFingerprint refreshed; every metric is
identical to the committed baseline.

* test: cover rtl data contract and filter ordering

Pin the behaviour the RTL filter depends on:

- rtl_level is projected, not a search signal;
- every row in both CSVs carries a supported level;
- known layouts keep their curated level;
- filtering happens before max_results truncation (saas --domain
  product -n 1 with --rtl=full returns Micro SaaS, while the unfiltered
  top hit is a partial row);
- omitting --rtl keeps previous results;
- unsupported domains raise ValueError and exit non-zero through the
  CLI.

* docs: document the rtl compatibility filter

Explain the three levels, the CLI flag and its domain restriction in
the README, CLAUDE.md, the generated skill content and the
hand-authored Claude skill. The agent guidance tells the skill to add
--rtl for Arabic, Hebrew, Persian and Urdu work and to respect the
returned level instead of silently mirroring a caveats layout.
2026-11-02 23:10:22 +07:00
Ray Tien
3a13158ff1
feat(nuxt-ui): add guidance for v4.12 (#551)
* Add Nuxt UI 4.12.0 guidance

Add rows 77-83 to the nuxt-ui stack:
- UChart usage, categories and colors, donut data shape
- UApp automatic locale with @nuxtjs/i18n
- UCheckboxGroup max and UFileUpload reject event
- Security upgrade note for 4.11.3 (set/setAtPath prototype
  pollution, ChatPrompt GET leak)

Existing rows are unchanged. Mirrored copies synced with
npm run sync:assets.

* Fix Nuxt UI 4.12.0 data gate

Move the nuxt-ui current target from 4.11.1 to 4.12.0 so the new rows
pass validation:
- Update the pin in core.py and test_web_stack_freshness.py.
- Retag the 76 existing rows to nuxt-ui 4.12.0. Verified At stays
  unchanged. The 4.11.2 to 4.12.0 release notes list no breaking
  changes.
- Use an official ui.nuxt.com URL for row 83 (High severity).
- Regenerate catalog-summary.json for the new row count.
- Refresh the relevance threshold runtimeFingerprint. Relevance
  metrics are identical to the committed baseline.
2026-11-01 14:04:28 +07:00
wangyuehua
bf41cbc3ce
fix: align AutoClaw validation baselines (#550)
Co-authored-by: wangyuehua <wangyuehua0429@users.noreply.github.com>
2026-10-31 23:07:44 +07:00
Walid Khalafi
9a3f14f742
feat: add AutoClaw compatibility (#545)
* feat: add AutoClaw compatibility

- Add root SKILL.md following the open SKILL.md standard
- Add 'autoclaw' to skill.json#platforms
- Add AutoClaw install instructions to README
- Add docs/autoclaw-install.md with detailed install guide

AutoClaw is Z.ai's official general-purpose AI agent (https://autoclaw.z.ai),
part of the GLM Coding Plan family alongside ZCode and OpenClaw. This PR
adds first-class AutoClaw support without changing any existing platform
install paths.

Verified SKILL.md compliance with AutoClaw/ZCode spec:
- name and description in frontmatter (required)
- description < 1024 chars
- body < 100KB
- explicit trigger phrases in description

* text feat(cli): add AutoClaw platform support

- Register 'autoclaw' in AIType, AI_TYPES, and AI_FOLDERS configuration.
- Update SKILL.md to fix broken search script paths and incorrect folder layout documentation.
- Synchronize CLI assets to ensure platform configuration and script paths are correctly bundled.

* fix(cli): install AutoClaw skills where AutoClaw actually loads them

AutoClaw does not scan `.autoclaw`; it reads workspace `skills/` plus the
shared `~/.openclaw-autoclaw/skills` directory. Point the platform config at
those roots so `uipro init --ai autoclaw` produces a skill that AutoClaw
discovers without extra configuration.

- register `autoclaw` in AI_TO_PLATFORM and add templates/platforms/autoclaw.json
  with root `skills` and globalRoot `.openclaw-autoclaw/skills`
- detect AutoClaw from `.autoclaw` or an installed `skills/ui-ux-pro-max/SKILL.md`
  and add its CLI description
- sync cli/assets, including the packaged autoclaw.json
- restore the `## Using the Search Script (CLI)` section in the canonical skill
  template, keep the explanatory paragraph as body text, and remove the
  source-repo path from generated content
- make search.py add its own directory to sys.path so sibling imports work on
  embedded Python builds whose `._pth` omits the script directory (AutoClaw's
  bundled runtime)
- remove the hand-maintained root SKILL.md; templates/base/skill-content.md is
  the single source of truth
- rewrite docs/INSTALL.md around the verified local and global CLI workflows
- update e2e coverage for the new platform count, detection, and script paths

Validated with npm run check:assets, npm run typecheck, 49 Playwright tests,
164 Python tests, and local/global installs whose generated search script runs
successfully from the installed skill directory.

* Update search.py
2026-10-31 02:08:33 +07:00
Jallepalli Harsha Vardhan
28b3b8dee8
fix: don't read '3d'/'2fa' after a stack name as a framework version (#548)
The version pattern in _stack_query_requests_legacy had no trailing
boundary, so 'react 3d ...' parsed as React 3 and the query got only
deprecated rows (or none, for stacks without legacy guidance).

Fixes #547
2026-10-26 17:07:27 +07:00
Neal Meyer
477bcb28c9
fix: stop Cursor skill pointing at empty Quick Reference (#509)
* fix: stop Cursor skill pointing at empty Quick Reference

Platforms that set quickReference to false omitted the inlined
reference but still told the agent to use "the Quick Reference
sections above." Resolve QR/NOQR variants so Cursor (and other
non-inlined platforms) follow the existing search flow instead.
Claude and Codex keep the inlined reference wording.

Co-authored-by: Neal Meyer <ngmeyer@users.noreply.github.com>

* fix: accept 21 platform configs after ZCode

ZCode landed on main without updating the agent-guide validator
or the platform-count e2e assertion. This branch did not add a
platform; the stale expected count of 20 was failing CI.

Co-authored-by: Neal Meyer <ngmeyer@users.noreply.github.com>

* fix: refresh stale relevance runtime fingerprint

verify:data would fail next on evaluate:relevance because main's
threshold manifest still hashed the pre-#500 runtime. Metrics are
unchanged; only the fingerprint now matches current scripts/data.

Co-authored-by: Neal Meyer <ngmeyer@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Neal Meyer <ngmeyer@users.noreply.github.com>
2026-10-03 23:05:26 +07:00
Clark Cant
09170eec67
Merge pull request #500 from alinultimatltd/fix/light-result-output-coherence
fix(design-system): agree on dark mode in light results, keep box output in bounds, readable button text
2026-09-27 18:30:41 +07:00
heojunfo
6c69cb5058 fix(threejs): replace deprecated Clock and PCFSoftShadowMap in r185 guidance
The Three.js stack claims `threejs 0.185.1` but several rows still
recommend APIs that 0.185.1 deprecates and warns about at runtime:

- THREE.Clock (deprecated since r183) -> THREE.Timer with
  timer.update(timestamp) once per frame, getDelta()/getElapsed(),
  and timer.connect(document) to avoid a huge delta after a hidden tab.
  Rows 13, 31, 34, 45. Row 45 also stops calling getElapsedTime()
  per vertex (Clock.getElapsedTime() calls getDelta() internally).
- THREE.PCFSoftShadowMap (deprecated since r182, WebGLShadowMap warns
  and falls back to PCFShadowMap) -> PCFShadowMap, with shadow.radius /
  VSMShadowMap noted for softer edges. Rows 22, 23.
- GLTFLoader imported from three/examples/jsm -> three/addons, matching
  the rest of the file. Row 52.

Bump Verified At on touched rows, extend the freshness test's
forbidden-token list (three.clock, clock.getdelta,
clock.getelapsedtime, pcfsoftshadowmap, three/examples/jsm/) and add a
positive Timer lookup, refresh the relevance runtime fingerprint and
baseline, and re-sync mirrored assets.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 22:16:56 +09:00
Ray Tien
0d2b646cb6
feat(nuxt-ui): refresh guidance for v4.11 (#502)
Reverify the full stack catalog against Nuxt UI 4.11.1 and correct stale API examples. Add Splitter, ProgressGroup, motion, Vite detection, and CommandPalette security guidance.

Co-authored-by: Ray <ray.tien@cloudeep.com.tw>
2026-09-21 12:28:06 +07:00
Ray Tien
f1c725fd2f
feat(react): add React 19 guidelines to stack data (#344)
Squash-merged by github-maintain cron after maintainer approval (review 2026-06-20 by @mrgoonie) and conflict resolution (rebase to head 4bd45ba5, all checks green).
2026-09-21 10:28:15 +07:00
alinultimatltd
79b64af0f9 fix(design-system): agree on dark mode in light results, keep box output in bounds, readable button text
- Mode Support no longer reads "Dark supported" next to an AVOID list that
  says "Dark mode". Light results now print "Dark supported, but avoid for
  this product" (the light-side counterpart of #428).
- ASCII box: long single-line fields (conversion, CTA, perf/a11y, Google
  Fonts URL, motion) now wrap, over-long tokens split, section headers and
  the CSS Import line were one char too wide, and the colour label column
  fits "Muted Foreground:".
- MASTER.md buttons: .btn-primary used hard-coded white text, below 4.5:1
  on the accent in 137/192 palettes; it now uses the palette's On Accent.
  .btn-secondary text falls back to Foreground when Primary is below 4.5:1
  on Background (94/192 palettes).

Adds regression tests for all three.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 12:30:38 +01:00
Shxiao
314307f156
fix(search): warn that --stack is ignored in --design-system mode (#484) (#487)
Merged by github-maintain automation. Closes #484 Finding 1 (priority-1 quick win: silent --stack flag drop in --design-system mode).
2026-09-06 11:31:08 +07:00
notbucki
91c193ac05
fix(skills): skill-relative paths below SKILL.md, widen path contract (#482)
Refs #474 (finding 1 follow-up to #476, which rewrote design/SKILL.md
and added a contract that grepped only */SKILL.md; the same defect one
level down survived).

- 29 home-rooted paths (~/.claude/skills/design/scripts/...) in
  design/references/{cip,icon,logo}-design.md -> scripts/... (27 at
  review time, two more added by #470); the printed
  hint in design/scripts/cip/generate.py now derives the absolute path
  from __file__
- 19 project-rooted invocations (.claude/skills/<skill>/scripts/...) in
  brand/, slides/ and design/ references -> scripts/... (own skill) or
  ../<skill>/scripts/... (sibling sub-skill; sub-skills are installed
  side by side in every layout)
- brand/scripts/sync-brand-to-tokens.cjs resolved its sibling script from
  process.cwd(), silently skipping CSS regeneration under plugin and
  --global installs; now resolved from __dirname, with a warning when
  the sibling skill is missing; regression test asserts the regeneration
- brand/scripts/extract-colors.cjs: tool-neutral hint instead of a
  project-rooted path into a skill this plugin does not ship
- "Script Paths" section in the five sub-skills that invoke scripts:
  script path from the skill directory, working directory at the
  project root
- new test_skill_script_paths.py (src, mirrored to both scripts/tests
  copies): every python/node/bash invocation in every shipped skill
  markdown must be skill-relative and name a file that ships
- check-asset-sync.yml: contract covers every file under both skill
  trees and home-/project-/variable-rooted forms; ${CLAUDE_PLUGIN_ROOT}
  allowed only in the plugin-only core SKILL.md; LC_ALL=C + -I for the tracked
  .coverage binary; grep errors fail instead of passing; push filter
  includes the workflow and sync-assets.mjs
- CLI copy regenerated via sync-assets.mjs

Co-authored-by: notbucki <daniel@buckenmaier.xyz>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-03 15:14:02 +07:00
speedy75015-crypto
e2effd5775
fix(data): make catalog snapshot hashes line-ending independent (#478)
* fix(data): regenerate stale catalog-summary snapshot hashes

catalog-summary.json was not regenerated after google-fonts.csv,
google-font-licenses.json, icons.csv and phosphor-icons-upstream.json
changed, so `npm --prefix cli run verify:data` fails on a clean
checkout of main:

  validate:semantic          4 stale snapshot errors
  validate:catalog-summary   "catalog-summary.json is stale"
  test:python                1 failure / 153
  check:assets               2 files out of sync

Regenerated with the existing --verified-at 2026-08-26: only the four
sha256 fields change. The date is a human attestation that the font
catalog was checked against the upstream google/fonts repository, so it
is deliberately left untouched -- no such verification was performed
here.

verify:data now exits 0.

Note: prepublishOnly runs sync:assets before verify:data, which
regenerates the snapshot at publish time. That is why released packages
are unaffected and the drift stayed invisible on main.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015UidECV1wVBD8SW6Abuj71

* fix(data): make catalog snapshot hashes line-ending independent

Root cause of the stale snapshot restored in the previous commit.

bd19ab9 (#462) regenerated catalog-summary.json from a CRLF checkout.
Every recorded sha256 was the CRLF hash of its source file, so the
check failed on every LF platform. The four committed values are
exactly sha256(crlf_bytes):

  google-fonts.csv              committed d03194d2…  = CRLF hash
  google-font-licenses.json     committed 7c35e410…  = CRLF hash
  icons.csv                     committed 272ccf0e…  = CRLF hash
  phosphor-icons-upstream.json  committed 81c37fb3…  = CRLF hash

Two conditions had to combine: the digest hashed raw bytes, and no
.gitattributes pinned these files to LF, so Windows checkouts get CRLF
by default. Restoring the hashes alone would let the next contributor
on Windows reproduce the same commit.

Three changes:

- normalize line endings in generate-catalog-summary.py's digest(), so
  the snapshot no longer depends on the checkout
- apply the same normalization in validate_data.py, which independently
  recomputes the hashes and has to agree with the generator
- add .gitattributes pinning src/ui-ux-pro-max/data/*.{csv,json} to LF,
  so a Windows checkout matches the committed bytes in the first place

sync-assets.mjs already normalizes to LF, so this only extends an
existing project convention to the two places that were missing it.

Adds test_catalog_summary_line_endings.py: LF and CRLF inputs must
digest identically, the committed snapshot must match the normalized
sources, and a simulated CRLF checkout must still produce the recorded
hashes. The third case fails against the pre-fix digest.

verify:data exits 0; the Python suite goes from 153 to 156 tests.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015UidECV1wVBD8SW6Abuj71

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-02 14:14:59 +07:00
Viet Tran
a38d04c3d5
feat(search): overhaul relevance and curated design data
Overhaul BM25 relevance, reasoning and data-quality contracts; refresh UI styles and framework guidance; add resilient text, chip, badge and micro-interaction guidance; strengthen release, provenance and catalog refresh gates; update bilingual documentation.
2026-08-14 00:08:23 +07:00
Lin Junrong
ec1f2a9027
fix(design-system): resolve palette and anti-patterns against the style's mode (#428) (#434)
generate() ranked style, palette and anti-patterns independently, so a
dark-primary style could come back with a light palette and a
"Dark mode by default" anti-pattern in the same output. The palette is
what users copy into CSS variables, so the output shipped a light theme
with dark-theme styling instructions attached.

Resolve the mode first -- from the query keywords and the style's own
Light/Dark Mode columns -- then pick a palette whose Background matches
it and drop mode-contradicting anti-pattern clauses.

Only the dark case filters palettes. Light keeps the existing top-hit
behaviour so queries that never mention a mode are untouched, and dark
falls back to the top hit when colors.csv has no dark ramp for the
product type.

Adds scripts/tests/test_design_system_mode.py (stdlib unittest, matching
test_core.py) and syncs cli/assets + .claude/skills via sync-assets.mjs.
2026-07-31 18:00:15 +07:00
sunilchandarjr
f8ac5e1266
Fix .claude/skills data drift, harden search engine, tighten SKILL.md (#412)
Merged by github-maintain cron. Approved by @clark-cant and @jizc. Pre-existing pytest failure on main (ui-styling/shadcn test) is unrelated to PR scope.
2026-07-15 01:32:50 +07:00
Andras Polgar
3da52ff1ca
security: harden skill against agent-audit risk patterns (#417)
Addresses the behavioral patterns that plausibly triggered the Gen
(Agent Trust Hub) High Risk rating on skills.sh, without changing
runtime functionality:

- Prerequisites no longer instruct agents to run sudo/brew/apt/winget
  install commands; agents must ask the user to install Python instead
  (SKILL.md, skill-content.md template, README.md, README.zh.md)
- Soften coercive invocation language ("Must Use" -> "Primary Use
  Cases") and replace keyword-stuffed frontmatter descriptions with
  factual ones (SKILL.md, quick-reference.md, claude/droid.json,
  plugin.json)
- Remove design.csv, draft.csv and _sync_all.py: unused by the runtime
  (not registered in core.py CSV_CONFIG) and containing prompt-shaped
  "System Prompt: ... You are ..." blocks that read as injection risk
- Fix path traversal in --persist: new safe_slug() restricts project
  and page names to [a-z0-9_-], so ../ in -p/--page can no longer
  escape the design-system/ output folder

Verified: validate-csv.py (35 files), smoke-domains (12/12),
smoke-stacks (22/22), check:assets in sync, persist traversal attempt
stays confined.

Co-authored-by: Andras Polgar <5525341+ruredi@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 21:30:06 +07:00
文敏華
6a6167691a Rename motion domain to gsap to avoid collision with PR #296
PR #296 (feat/emil-motion-principles) independently registers a "motion"
domain key in CSV_CONFIG/detect_domain for motion-principles.csv (37
design-principle rows). Both PRs adding the same dict key would cause
one to silently overwrite the other's domain registration if merged
independently, per the automated review on this PR.

The two domains are complementary, not duplicate (design principles vs.
ready-to-use GSAP code snippets), so this renames this PR's domain from
"motion" to "gsap" - a more precise name given every row is GSAP-specific
implementation code. The --motion CLI dial and its "Subtle/Standard/
Complex" tiers are unaffected (unrelated to the domain key; only the
`--domain gsap` search endpoint and its internal lookup changed). No
regressions: --design-system output with no dials set remains
byte-identical to before this feature.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-02 23:36:44 +08:00
文敏華
bd9329c9cb Add motion domain and design dials to design-system generator
Adds a new searchable `motion` domain (motion.csv, 16 GSAP animation
skeletons across hover/scroll-reveal/stagger/page-transition/parallax/
loading, each tagged Subtle/Standard/Complex) plus three optional 1-10
dials on `--design-system` — --variance, --motion, --density — inspired
by taste-skill's DESIGN_VARIANCE/MOTION_INTENSITY/VISUAL_DENSITY sliders.

- --variance biases style search/selection toward centered-minimal (low)
  or bold-asymmetric (high) categories
- --motion attaches a matching GSAP snippet (code + framework notes +
  do/don't) from motion.csv
- --density overrides the --space-* token scale in ASCII/markdown/MASTER.md
  output (spacious <-> dense/dashboard)

All three dials are optional and additive; output with no dials set is
byte-identical to before (verified via regression diff). Synced into
.claude/skills/ui-ux-pro-max and cli/assets alongside src/ui-ux-pro-max
(source of truth) so all three installed copies stay consistent.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-01 22:54:02 +08:00
Alexander
d86f44368d
fix(scripts): force UTF-8 stdout/stderr in design_system.py on Windows (#390)
design_system.py prints box-drawing characters and swatches (--, OK marks,
block swatches), but unlike search.py it never reconfigured stdout. On a
non-UTF-8 Windows console (cp1252/gbk) running the CLI crashes with
UnicodeEncodeError, the same failure reported in #112 for search.py.

Mirror the wrapper search.py already uses: re-wrap stdout/stderr in a
UTF-8 TextIOWrapper when the console encoding is not UTF-8. Applied to
the source of truth and the synced cli/assets copy.

Verified: the CLI runs clean under PYTHONIOENCODING=cp1252 (exit 0, no
UnicodeEncodeError) while still emitting the box/swatch output;
check:assets passes.

Related to #112 (search.py is already fixed on main; this covers the
remaining design_system.py instance).
2026-06-25 18:30:49 +07:00
Alexander
3a12b63bd8
fix(scripts): guard persist_design_system against None project_name (#388)
persist_design_system crashed with AttributeError: 'NoneType' object has
no attribute 'lower' when the design_system dict carries an explicit
project_name of None (the default of generate(query, project_name=None)).
dict.get("project_name", "default") only substitutes the default for a
MISSING key, not a present-but-None value, so project_name.lower() blew
up.

Coalesce falsy values (None/""/missing) to "default" before slugifying.
Applied to both the source of truth and the bundled cli/assets copy.

The "search blindness" half of #159 (core.py tokenize length filter) is
already resolved on main (`len(w) >= 2`), so this targets the remaining
crash only.

Closes #159

Co-authored-by: YangKuoshih <155388493+YangKuoshih@users.noreply.github.com>
2026-06-25 15:43:33 +07:00
Alexander
b4d33beada
fix CLI asset sync (#355)
* fix CLI asset sync

* fix(cli): normalize line endings in asset sync/check

check:assets hashed raw bytes, so identical CSV/JSON/py content with
CRLF vs LF (git autocrlf on checkout) was reported as stale drift,
blocking the release guard on Windows/mixed checkouts.

- fileHash now normalizes CRLF->LF before hashing, so check:assets
  compares content, not line endings.
- sync:assets writes LF-normalized copies instead of a raw byte copy,
  so re-syncing is deterministic across platforms.

All synced assets are text (csv/json/md/py); no binaries affected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* ci: enforce CLI asset sync on PRs

Adds a Check asset sync workflow that runs `npm run check:assets` on any
PR touching src/ui-ux-pro-max/** or cli/assets/**, so the bundled CLI
assets can't silently drift from the source of truth.

The check uses only node builtins (no install step) and normalizes
line endings before hashing, so it hard-fails on real content drift
without the CRLF/LF soft-fail hack other approaches needed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 12:54:58 +07:00
youngledo
53d670cd30
feat: add JavaFX enterprise stack guidance (#316) 2026-06-22 12:00:21 +07:00
Jens
e3102cb7ed Improve design system output with Unicode borders, ANSI color swatches, extended palette, and dark/light mode
Upgrade the design system terminal output from basic ASCII to Unicode box-drawing characters,
add ANSI true color swatches with graceful fallback, expand the color palette from 5 to 10
colors (Primary, On Primary, Secondary, Accent, Background, Foreground, Muted, Border,
Destructive, Ring) with CSS variable names, and surface Light/Dark mode support from styles.csv.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 11:08:47 +01:00
rianadesigner
5cbdb0ac30 chore: update ui-ux pro max skill for react-native apps
Made-with: Cursor
2026-03-10 11:56:27 +08:00
rianadesigner
2aec7afb93 sync: 161 product types, design system 与 CLI 资产同步,小猫咪预览页
- products.csv: 修复 No.90/No.65 数据,统一 161 产品类型
- colors.csv: 修复 Bitcoin DeFi Mobile 截断,同步 178 色板
- ui-reasoning.csv: 与 products 对齐
- core.py: 扩展 product 域关键词覆盖
- README/SKILL: 更新 161 reasoning rules、178 palettes 等数字
- 移除 stacks 下多框架 CSV,保留 react-native
- 新增 design.csv、_sync_all.py,CLI assets 全量同步
- 新增 preview/xiaomaomi-app.html 小猫咪 App 示例

Made-with: Cursor
2026-03-06 11:03:28 +08:00
Viet Tran
402c49a283 fix: Windows Unicode encoding error for emoji characters
Force UTF-8 encoding for stdout/stderr in search.py to handle
emoji characters (⚡, ✓) on Windows systems that default to cp1252.

Fixes UnicodeEncodeError: 'charmap' codec can't encode character

- Bump CLI version to 2.2.3

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 21:25:32 +07:00
Viet Tran
b2a05eceeb
feat: reorganize codebase with single source of truth + merge prompts into styles (#116)
BREAKING CHANGES:
- Moved canonical data/scripts to src/ui-ux-pro-max/
- Removed duplicate folders (.codex/, .gemini/, .trae/, .codebuddy/, .continue/, skills/, .qoder/)
- CLI now uses template system instead of copying pre-built folders

New features:
- Merged prompts.csv into styles.csv with 4 new columns:
  - AI Prompt Keywords
  - CSS/Technical Keywords
  - Implementation Checklist
  - Design System Variables
- All 67 styles now have complete prompt data
- Added Astro stack (53 guidelines)
- Added 10 new 2025 UI trend styles

CLI changes:
- New template rendering system (cli/src/utils/template.ts)
- Reduced cli/assets from ~34MB to ~564KB
- Assets now contain only: data/, scripts/, templates/

File structure:
- src/ui-ux-pro-max/ - Single source of truth
- .claude/skills/ - Symlinks to src/ for development
- .shared/ - Symlink to src/ui-ux-pro-max/

Bumped CLI version: 2.1.3 → 2.2.0

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 22:05:41 +07:00