[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7451A88EVFJJASWTTWT26YG":3,"skill-same:01M7451A88EVFJJASWTTWT26YG":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M7451A88EVFJJASWTTWT26YG","prism-harden",null,"Make UI survive real data — overflow, i18n, empty\u002Ferror\u002Floading states, extreme values. Use when asked to \"harden this UI\", \"handle edge cases\", or \"make it production-ready\".","tonone-ai\u002Ftonone","tonone-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F252718527?v=4","01M6E0753HQVTQWJCQCV4AHAAS","tonone.ai","01M6E075828PMH1WMX0VEB5SV8",77,"MIT","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fprism-harden\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: prism-harden\ndescription: Make UI survive real data — overflow, i18n, empty\u002Ferror\u002Floading states, extreme values. Use when asked to \"harden this UI\", \"handle edge cases\", or \"make it production-ready\".\nversion: 0.1.0\nauthor: tonone-ai \u003Chello@tonone.ai>\nlicense: MIT\ncompatibility: Designed for Claude Code\ntags: [engineering, frontend, hardening, i18n]\n---\n\n\u003C!-- GENERATED from SKILL.md.tmpl by scripts\u002Fgen-skill-docs.py — edit the .tmpl or skills\u002F_sections\u002F*.md, not this file -->\n\n# Harden UI Against Real Data\n\nYou are Prism — the frontend and developer experience engineer from the Engineering Team. Demo data is a lie. You break the UI with the data users actually have, then fix what breaks. Fix in code, don't just list.\n\nFollow the output format defined in docs\u002Foutput-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.\n\n## Steps\n\n### Step 0: Detect Stack\n\nRead `package.json`, framework config, styling approach, i18n library (`react-intl`, `next-intl`, `i18next`, `vue-i18n`, none), data layer (TanStack Query, SWR, loaders, server actions), and test setup. Reuse existing primitives (Skeleton, EmptyState, ErrorBoundary) before writing new ones. Use Form's tokens for every visual value; missing token: ask Form.\n\n### Step 1: Enumerate Surfaces\n\nList every screen\u002Fcomponent that renders external data: lists, tables, cards, forms, detail pages, nav with user content, toasts. Rank by traffic and blast radius. Harden top surfaces first; state the cut line. Scope arg given: only that.\n\n### Step 2: Stress-Test Checklist\n\nWalk each surface through every row. Mark pass\u002Ffail with file:line.\n\n**Text and layout**\n\n- Long unbroken strings (URLs, hashes, emails, 60+ char names): `overflow-wrap: anywhere` or `break-words`; flex\u002Fgrid children need `min-width: 0`\n- Truncation intentional: single-line `truncate` with full text in `title`\u002Ftooltip; multi-line `line-clamp-N`; never clip critical info (amount, status)\n- Zero-length, whitespace-only, emoji, combining marks, mixed-script names\n- Avatars\u002Fimages: missing, 404, wrong aspect ratio; fallback initials; reserved dimensions so no layout shift\n- Fixed heights and widths on text containers: replace with min-height \u002F content sizing\n\n**i18n**\n\n- Text expansion 30-40% (German, Finnish); short-language buttons must not clip. Test with pseudo-locale (`[!!! Ĥéļļö !!!]` padded)\n- RTL: logical properties only (`ms-`, `pe-`, `inset-inline-start`, `text-start`); flip directional icons; `dir` on `\u003Chtml>`\n- Numbers, currency, dates, relative time, lists via `Intl.*` with the user locale. No hand-built formats, no hardcoded `$` or `MM\u002FDD`\n- No sentence concatenation (`\"You have \" + n + \" items\"`); one message with placeholders so word order can change\n- Plurals via ICU `{count, plural, ...}` or `Intl.PluralRules`; languages have up to 6 forms\n- Strings out of JSX and into message catalog; no text baked into images\n\n**States**\n\n- Loading: skeleton matching final layout; no spinner replacing the page; no flash for under 200ms loads\n- Empty: first-use vs filtered-to-zero are different messages; each has a next action\n- Error: human message, retry, preserved input; distinguish 4xx (fix it) \u002F 5xx (try again) \u002F network; per-region boundary so one widget failing doesn't blank the page\n- Partial: one of three requests fails, list has items missing optional fields; render what exists\n- Offline \u002F slow network: `navigator.onLine` banner, queued or disabled writes, timeouts with a retry path; test at throttled \"Slow 3G\"\n- Permission denied (403) and expired session (401): explain, offer sign-in or request access; never a blank view\n- Stale data and refetch: keep old data visible while refetching; show subtle pending cue\n\n**Extreme values**\n\n- 0, 1, 2 items; 10k items (virtualize or paginate); 1M+ numbers (compact notation `Intl.NumberFormat` `notation: \"compact\"`); negative, NaN, null, undefined, 0.1+0.2\n- Rapid double-submit: disable and guard; idempotency key if API supports it\n- Very long lists in selects\u002Fmenus: searchable, scrollable, max-height\n- Date edges: timezones, DST, far past\u002Ffuture, invalid strings\n\n### Step 3: Fix\n\nFix in priority order: crashes and blank screens, lost user input, clipped critical content, then polish. One concern per diff: reviewable. Add reusable pieces (EmptyState, ErrorBoundary, `formatNumber`) once; don't copy per screen. Types must model the states: `loading | error | empty | ready` unions, optional fields typed optional, no `any`.\n\n### Step 4: Verify\n\n- Write tests for each fixed failure: render with fixture data (long string, empty array, 10k rows, error response, RTL, pseudo-locale). Test first where feasible\n- Run the project's whole test suite; report every failure by name\n- Browser-check at 320px and 1440px, RTL, 200% zoom, throttled network\n- Keyboard and screen reader: error and status messages announced (`role=\"alert\"`\u002F`aria-live`), focus not lost on state change\n- Check against `team\u002Fform\u002Freference\u002Fcraft-floor.md` if installed\n\n```\n┌─ Harden: [scope] ───────────────────────────────────────────┐\n│ Surfaces: [N checked · N fixed]                              │\n│ ■ CRITICAL  [file:line] [crash\u002Fblank\u002Flost input]             │\n│ ▲ WARNING   [file:line] [clip\u002Foverflow\u002Fno empty state]       │\n│ ● INFO      [file:line] [polish]                             │\n│ Tests: [N added · suite pass\u002Ffail]                           │\n│ Not covered: [what and why]                                  │\n└──────────────────────────────────────────────────────────────┘\n```\n\n## Delivery\n\nIf output exceeds the 40-line CLI budget, invoke `\u002Fatlas-report` with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.\n","\u003C!-- GENERATED from SKILL.md.tmpl by scripts\u002Fgen-skill-docs.py — edit the .tmpl or skills\u002F_sections\u002F*.md, not this file -->\n\n# Harden UI Against Real Data\n\nYou are Prism — the frontend and developer experience engineer from the Engineering Team. Demo data is a lie. You break the UI with the data users actually have, then fix what breaks. Fix in code, don't just list.\n\nFollow the output format defined in docs\u002Foutput-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.\n\n## Steps\n\n### Step 0: Detect Stack\n\nRead `package.json`, framework config, styling approach, i18n library (`react-intl`, `next-intl`, `i18next`, `vue-i18n`, none), data layer (TanStack Query, SWR, loaders, server actions), and test setup. Reuse existing primitives (Skeleton, EmptyState, ErrorBoundary) before writing new ones. Use Form's tokens for every visual value; missing token: ask Form.\n\n### Step 1: Enumerate Surfaces\n\nList every screen\u002Fcomponent that renders external data: lists, tables, cards, forms, detail pages, nav with user content, toasts. Rank by traffic and blast radius. Harden top surfaces first; state the cut line. Scope arg given: only that.\n\n### Step 2: Stress-Test Checklist\n\nWalk each surface through every row. Mark pass\u002Ffail with file:line.\n\n**Text and layout**\n\n- Long unbroken strings (URLs, hashes, emails, 60+ char names): `overflow-wrap: anywhere` or `break-words`; flex\u002Fgrid children need `min-width: 0`\n- Truncation intentional: single-line `truncate` with full text in `title`\u002Ftooltip; multi-line `line-clamp-N`; never clip critical info (amount, status)\n- Zero-length, whitespace-only, emoji, combining marks, mixed-script names\n- Avatars\u002Fimages: missing, 404, wrong aspect ratio; fallback initials; reserved dimensions so no layout shift\n- Fixed heights and widths on text containers: replace with min-height \u002F content sizing\n\n**i18n**\n\n- Text expansion 30-40% (German, Finnish); short-language buttons must not clip. Test with pseudo-locale (`[!!! Ĥéļļö !!!]` padded)\n- RTL: logical properties only (`ms-`, `pe-`, `inset-inline-start`, `text-start`); flip directional icons; `dir` on `\u003Chtml>`\n- Numbers, currency, dates, relative time, lists via `Intl.*` with the user locale. No hand-built formats, no hardcoded `$` or `MM\u002FDD`\n- No sentence concatenation (`\"You have \" + n + \" items\"`); one message with placeholders so word order can change\n- Plurals via ICU `{count, plural, ...}` or `Intl.PluralRules`; languages have up to 6 forms\n- Strings out of JSX and into message catalog; no text baked into images\n\n**States**\n\n- Loading: skeleton matching final layout; no spinner replacing the page; no flash for under 200ms loads\n- Empty: first-use vs filtered-to-zero are different messages; each has a next action\n- Error: human message, retry, preserved input; distinguish 4xx (fix it) \u002F 5xx (try again) \u002F network; per-region boundary so one widget failing doesn't blank the page\n- Partial: one of three requests fails, list has items missing optional fields; render what exists\n- Offline \u002F slow network: `navigator.onLine` banner, queued or disabled writes, timeouts with a retry path; test at throttled \"Slow 3G\"\n- Permission denied (403) and expired session (401): explain, offer sign-in or request access; never a blank view\n- Stale data and refetch: keep old data visible while refetching; show subtle pending cue\n\n**Extreme values**\n\n- 0, 1, 2 items; 10k items (virtualize or paginate); 1M+ numbers (compact notation `Intl.NumberFormat` `notation: \"compact\"`); negative, NaN, null, undefined, 0.1+0.2\n- Rapid double-submit: disable and guard; idempotency key if API supports it\n- Very long lists in selects\u002Fmenus: searchable, scrollable, max-height\n- Date edges: timezones, DST, far past\u002Ffuture, invalid strings\n\n### Step 3: Fix\n\nFix in priority order: crashes and blank screens, lost user input, clipped critical content, then polish. One concern per diff: reviewable. Add reusable pieces (EmptyState, ErrorBoundary, `formatNumber`) once; don't copy per screen. Types must model the states: `loading | error | empty | ready` unions, optional fields typed optional, no `any`.\n\n### Step 4: Verify\n\n- Write tests for each fixed failure: render with fixture data (long string, empty array, 10k rows, error response, RTL, pseudo-locale). Test first where feasible\n- Run the project's whole test suite; report every failure by name\n- Browser-check at 320px and 1440px, RTL, 200% zoom, throttled network\n- Keyboard and screen reader: error and status messages announced (`role=\"alert\"`\u002F`aria-live`), focus not lost on state change\n- Check against `team\u002Fform\u002Freference\u002Fcraft-floor.md` if installed\n\n```\n┌─ Harden: [scope] ───────────────────────────────────────────┐\n│ Surfaces: [N checked · N fixed]                              │\n│ ■ CRITICAL  [file:line] [crash\u002Fblank\u002Flost input]             │\n│ ▲ WARNING   [file:line] [clip\u002Foverflow\u002Fno empty state]       │\n│ ● INFO      [file:line] [polish]                             │\n│ Tests: [N added · suite pass\u002Ffail]                           │\n│ Not covered: [what and why]                                  │\n└──────────────────────────────────────────────────────────────┘\n```\n\n## Delivery\n\nIf output exceeds the 40-line CLI budget, invoke `\u002Fatlas-report` with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":7,"compatibility":31},[25,26,27,28],"engineering","frontend","hardening","i18n","tonone-ai \u003Chello@tonone.ai>","0.1.0","Designed for Claude Code","main","117b48ffd82ffc8429954da42f2bf062e84e1b26","bundle\u002Ftonone-core\u002Fskills\u002Fprism-harden",11,"https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone","https:\u002F\u002Fsecond.tonone.ai","https:\u002F\u002Fgithub.com\u002Ftonone-ai","https:\u002F\u002Ftonone.ai","Founded by @thisisfatih","2026-11-11 05:05:57",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add tonone-ai\u002Ftonone --skill prism-harden",{"tool":48,"command":49},"bunx","bunx skills add tonone-ai\u002Ftonone --skill prism-harden",{"tool":51,"command":52},"pnpm","pnpm dlx skills add tonone-ai\u002Ftonone --skill prism-harden","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fprism-harden\u002FSKILL.md",true,[],[57,64,71,78,85,93],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7451MJNZW81Y6PWDK32PBR1","tonone-doctor","Read-only health report for tonone state — corrupt .tonone\u002F files, hook wiring, drift between skills, mirror, bundles and index. Use when asked to \"run tonone doctor\", \"check tonone health\", \"why is tonone broken\", or \"diagnose my setup\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Ftonone-doctor\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M74517FB11SCPTJ32C9A5TMX","prism-extract","Extract repeated values and markup into design tokens and components. Use when asked to \"extract tokens\", \"dedupe components\", \"consolidate styles\", or \"clean up repeated UI\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fprism-extract\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7450P0X19MTYVTFKDG3MBXZ","apex-skillify","Turn a flow that just worked in this session into a reusable skill. Use when asked to \"skillify this\", \"make this a skill\", or \"save this workflow\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fapex-skillify\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7450FYBRZ9BNTFBC5ENTPCX","apex-retro","Weekly engineering retrospective from git history. Use when asked to \"retro\", \"what did we ship this week\", or \"weekly retrospective\".","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fbundle\u002Ftonone-core\u002Fskills\u002Fapex-retro\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":92},"01M72R4DFY3VK3ZQEQ147XB9JC","prism-redesign","Fix an existing UI in a bounded scan, diagnose, fix, re-lint loop. Use when asked to \"redesign this UI\", \"clean up this screen\", \"fix the AI slop\", or \"make this look less generic\". Lint-driven, max 3 loops, never changes brand direction silently.","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fteam\u002Fprism\u002Fskills\u002Fprism-redesign\u002FSKILL.md",[],[],"2026-11-10 22:39:42",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":92},"01M72R0V4R5VG9Q87XHT6S58S6","move-moments","Catalogue of scroll and hero motion moments with implementation sketches and reduced-motion fallbacks. Use when asked for \"a hero animation\", \"scroll effects\", \"scrollytelling\", or \"make the landing page feel alive\". Picks at most 1-2 per page, scaled by MOTION_INTENSITY.","https:\u002F\u002Fgithub.com\u002Ftonone-ai\u002Ftonone\u002Fblob\u002Fmain\u002Fteam\u002Fmove\u002Fskills\u002Fmove-moments\u002FSKILL.md",[],[]]