27 Commits

Author SHA1 Message Date
zanwei.guo 593e39bc9e Fix deterministic color measurement and verification (#3) 2026-08-28 09:58:49 +08:00
zanwei.guo 18f3725250 Merge pull request #2 from minjishang4566/deterministic-color-measurement
Add deterministic color measurement and a verify loop
2026-08-28 09:24:33 +08:00
minji4566 59d48c9c5c docs: sync deterministic measurement across locales 2026-08-27 13:17:57 -07:00
minjishang4566 a8a08d45ee Add deterministic color measurement and a verify loop
Perceived colors drift toward familiar palette defaults (a brand pink
like #f476b8 reads as #ec4899, dE ~17; a near-black #16151b reads as
pure #000000). This adds two optional zero-config scripts and wires
them into the skill:

- scripts/measure-colors.mjs: deterministic k-means (farthest-point
  init) over the actual pixels with perceptual dE merging of
  anti-aliasing/JPEG noise; outputs exact hexes with coverage and
  background/text/accent roles for design_system.color
- scripts/verify.mjs: re-measures the generated implementation and
  reports per-color dE + coverage drift with PASS/FAIL thresholds
  (mean dE <= 5, max dE <= 20, drift <= 0.35), so the agent can
  self-correct instead of asking the user to judge by eye
- scripts/color-math.mjs: shared sRGB->Lab / dE76 math
- SKILL.md: Analyze uses measured hexes verbatim when the reference is
  an image; Generate ends with a verify step
- references/schema.md: optional measured_palette field for traceability
- README: Deterministic Measurement section with a before/after example
  (docs/example-deterministic-measurement.png): rebuilding bun.sh's
  hero from perceived style fails verify at mean dE 9.54, while the
  measured rebuild passes at mean dE 0.87

No API keys; the only dependency is sharp (Node >=18.17), installed
inside scripts/ and gitignored. package-lock.json is ignored to avoid
lockfile churn in a skill repo. Translated READMEs are not updated
here; happy to sync them during review.
2026-08-11 20:01:40 -07:00
zanwei.guo 9d9d79568d docs: add Star History chart to all README locales
Made-with: Cursor
2026-04-13 09:30:30 +08:00
zanwei.guo 6debc51c14 docs: center language nav; add Korean, Spanish, Traditional Chinese READMEs
Made-with: Cursor
2026-03-28 15:14:48 +08:00
zanwei.guo 13d8d3b42f docs: move language switch and intro below project title
Made-with: Cursor
2026-03-28 15:13:22 +08:00
zanwei.guo d03889aa05 docs: add Japanese README (README.ja.md) and language links
Made-with: Cursor
2026-03-28 15:11:02 +08:00
zanwei.guo f83d8731e2 docs: highlight Prompt line in TIP blocks (EN/ZH)
Made-with: Cursor
2026-03-25 21:11:57 +08:00
zanwei.guo 8c93e09c6b docs(readme): use GitHub TIP callout for polish pass at end of How It Works
Made-with: Cursor
2026-03-25 21:07:12 +08:00
zanwei.guo 9f95561ced docs(readme): document polish pass for richer visuals (EN/ZH)
Made-with: Cursor
2026-03-25 20:41:50 +08:00
zanwei.guo 4288b6121c Update README 2026-03-24 00:20:39 +08:00
zanwei.guo e7aad72d64 Update README 2026-03-24 00:13:29 +08:00
zanwei.guo ed0b4d2413 Add Cases section to README 2026-03-23 23:31:40 +08:00
zanwei.guo a9e66b09e5 Update README 2026-03-23 18:41:13 +08:00
zanwei.guo 82931032cb docs: replace ASCII pipeline with Mermaid diagram for reliable rendering
Made-with: Cursor
2026-03-23 18:39:18 +08:00
zanwei.guo 53ee4f2c2d docs: redesign workflow ASCII diagram to be more compact
Made-with: Cursor
2026-03-23 18:38:07 +08:00
zanwei.guo 75e1c3cbd8 docs: elevate and redesign workflow section with pipeline diagram
Made-with: Cursor
2026-03-23 18:36:44 +08:00
zanwei.guo 45cdb4ce79 docs: center README title
Made-with: Cursor
2026-03-23 18:30:55 +08:00
zanwei.guo 6a83d1a33a Update README 2026-03-23 18:30:09 +08:00
zanwei.guo acf0afc034 docs: add hero example image at top of READMEs
Made-with: Cursor
2026-03-23 18:28:10 +08:00
zanwei.guo bd7aa60717 docs: remove usage examples section
Made-with: Cursor
2026-03-23 18:21:27 +08:00
zanwei.guo dfe5c92c92 docs: add recommended workflow section describing the extract-then-generate pattern
Made-with: Cursor
2026-03-23 18:19:32 +08:00
zanwei.guo 36012800be docs: restructure READMEs with cleaner layout inspired by baoyu-skills
Made-with: Cursor
2026-03-23 18:17:17 +08:00
zanwei.guo 2768760091 docs: remove skills.sh leaderboard section from READMEs
Made-with: Cursor
2026-03-23 18:12:31 +08:00
zanwei.guo 0195cf3ff2 docs: use zanwei/design-dna in install commands
Made-with: Cursor
2026-03-23 18:10:55 +08:00
zanwei.guo ae0c91dddf chore: initialize design-dna skill repo with bilingual README
Made-with: Cursor
2026-03-23 18:09:34 +08:00