[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EMBQ2M8RB244K803J257NP":3,"skill-same:01M7EMBQ2M8RB244K803J257NP":50},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7EMBQ2M8RB244K803J257NP","ui-verify",null,"Verifies a running UI against the gates in design.md — web pages in a real browser via the Playwright MCP (screenshots at 375\u002F768\u002F1280 px, console errors, axe scan, touch targets), terminal programs through dl-tui in a headless tmux (screens at 80×24, 40×12 and 20×5, NO_COLOR, key scripts per state, terminal restore, stdout purity), and token contrast with dl-contrast. Use after implementing or changing any UI, or when the user asks to check how a screen looks or works.","VolkovIlia\u002Fdeadlion-studio","VolkovIlia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43730119?v=4","01M7EM9F1A574SS7HEZRWMCA9C","Ilia Volkov","01M7EM9F1Z1DM8DEAT2WYZB6D0",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FVolkovIlia\u002Fdeadlion-studio\u002Fblob\u002Fmain\u002Fplugins\u002Fdeadlion\u002Fskills\u002Fui-verify\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ui-verify\ndescription: Verifies a running UI against the gates in design.md — web pages in a real browser via the Playwright MCP (screenshots at 375\u002F768\u002F1280 px, console errors, axe scan, touch targets), terminal programs through dl-tui in a headless tmux (screens at 80×24, 40×12 and 20×5, NO_COLOR, key scripts per state, terminal restore, stdout purity), and token contrast with dl-contrast. Use after implementing or changing any UI, or when the user asks to check how a screen looks or works.\n---\n\n# UI verify\n\nGates come from `.dev-docs\u002Ffeatures\u002F\u003Cslug>\u002Fdesign.md` (`## Target`, `## Accessibility\ngates`, `## States`, `## Keys`) if it exists, else the defaults per rung in\n`${CLAUDE_SKILL_DIR}\u002F..\u002Fux-design\u002Freferences\u002Ftargets.md`. Artifact contract:\n`${CLAUDE_SKILL_DIR}\u002F..\u002Fworkflow\u002Freferences\u002Fartifacts.md`.\n\n## Pick the loop\n\nThe rung comes from design.md `## Target` (else: browser UI → web, `\u002Fdev\u002Ftty` drawing →\nterminal, window → native GUI, none → CLI). CLI → `make test` is enough; stop. Each loop\nruns at most 5 iterations, never asks the user between iterations, and fixes code until\nthe gates pass.\n\n## Web loop\n\nUses the `playwright` MCP server shipped with this plugin (tools `browser_*`). Need a URL:\nif no dev server runs, start the project's dev command in the background and wait for its\nport. If the Playwright tools are unavailable, say so and stop — never claim visual\nverification without a browser.\n\nDefault gates:\n- 0 console errors.\n- 0 axe violations of impact `critical`, `serious` or `moderate`.\n- Every interactive element ≥44×44 px.\n- Every control has an accessible name and role (from `browser_snapshot`).\n- No horizontal scroll at 375 px; layout adapts at 768 and 1280.\n- Each designed state (empty, loading, error, success) reachable and rendered; no\n  placeholder copy (lorem ipsum, TODO).\n\nSteps:\n1. `browser_navigate` to the URL. For each width 375, 768, 1280: `browser_resize`\n   (heights 812, 1024, 800) → `browser_take_screenshot` + `browser_snapshot`. Look at\n   each screenshot: overflow, overlap, clipped text, missing elements vs design.md.\n2. `browser_console_messages` — any error is a failure.\n3. `browser_evaluate` the axe scan:\n   ```js\n   async () => {\n     if (!window.axe) {\n       const s = document.createElement('script');\n       s.src = 'https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Faxe-core\u002Faxe.min.js';\n       document.head.appendChild(s);\n       await new Promise((ok, err) => { s.onload = ok; s.onerror = err; });\n     }\n     const r = await axe.run();\n     return r.violations.map(v => ({ id: v.id, impact: v.impact,\n       nodes: v.nodes.map(n => n.target.join(' ')) }));\n   }\n   ```\n4. `browser_evaluate` the touch-target check at 375 px:\n   ```js\n   () => [...document.querySelectorAll('button,a,input,select,textarea,[role=button]')]\n     .map(e => [e, e.getBoundingClientRect()])\n     .filter(([, r]) => r.width && (r.width \u003C 44 || r.height \u003C 44))\n     .map(([e, r]) => `${e.tagName}${e.id ? '#' + e.id : ''} ${r.width}x${r.height}`)\n   ```\n5. States: drive the UI (`browser_click`, `browser_type`, `browser_press_key` Tab\u002FEnter)\n   to reach each state; check keyboard focus order is logical and visible.\n6. All gates pass → report and stop. Otherwise fix the code, then repeat from step 1.\n\nTypical fixes: missing name → `aria-label` or `\u003Clabel for>`; low contrast → change the\ntoken, not the one element; small target → `min-height\u002Fmin-width: 44px` or padding;\nmobile overflow → find the fixed width, don't hide overflow; CLS → explicit image and\ncontainer dimensions; missing focus → `:focus-visible` style.\n\n## Terminal loop\n\n`dl-tui [-s COLSxROWS] CMD [STEP...]` runs CMD in a private headless tmux; steps are\n`key:NAME` (tmux key names: `Down`, `Enter`, `Escape`, `C-c`, `BSpace`), `text:STRING`,\n`resize:COLSxROWS`, `wait:MS` and `snap`. Each `snap`, and the end, prints the screen\nfollowed by `-- COLSxROWS running`, `-- COLSxROWS exit N` or `-- COLSxROWS signal N`\n(killed by a signal: a crash, e.g. `signal 6` for a Rust panic). Exit 2 on usage or tmux\nerrors.\n\n1. `\"${CLAUDE_SKILL_DIR}\u002F..\u002Fux-design\u002Fscripts\u002Fdl-contrast\" \u003Ctoken files>` must be silent.\n2. For each state in design.md `## States`, write a step script reaching it. Run it at\n   `-s 80x24` and `-s 40x12`, ending with `snap`, e.g.\n   ```\n   \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdl-tui\" -s 40x12 'printf \"alpha\\nbeta\\n\" | .\u002Fpick > \u002Ftmp\u002Fout' text:al snap key:Enter\n   ```\n   Compare each block with the wireframes: overlap, truncation, missing elements.\n3. Resize: append `resize:20x5 wait:3000 snap` → footer still `running`, no garbage.\n   `exit 134`, `signal N` or a shell `rc=134` line is a crash. The wait matters: while a\n   core dump is written (systemd-coredump) the pane still reads `running` and shows the\n   last frame.\n4. NO_COLOR: rerun one script with `NO_COLOR=1` in CMD → the selection is still visible.\n5. Restore: CMD ends with `; stty -a | grep -c ' icanon'` → the final block shows `1` and\n   `exit 0`.\n6. Stdout purity: CMD redirects stdout to a file → the file holds only the result.\n\nTypical fixes: garbage after resize → redraw every row on a size change; selection lost\nunder NO_COLOR → reverse video or a `>` marker; mode not restored → restore in Drop and\nin a panic hook (`panic = \"abort\"` skips Drop), also on signals; UI in the stdout file →\ndraw on `\u002Fdev\u002Ftty`; abort when the terminal hangs up → no `eprintln!`\u002F`println!` on the\nerror path (they panic when the write fails), use `let _ = writeln!(…)`.\n\n## Native GUI\n\n- dl-contrast on the token files.\n- The program's keyboard tests in `make test`.\n- A screenshot only when `DISPLAY` is set and `import` is on PATH\n  (`import -window root \u002Ftmp\u002Fui.png`, then read the image).\n- Otherwise the visual gates are NOT VERIFIED; say so in the report.\n\n## Report\n\nWeb:\n```\nUI VERIFY: PASS|FAIL after N iteration(s) — \u003Curl>\n375: \u003Cok | issues>   768: \u003C…>   1280: \u003C…>\nconsole errors: N   axe: N (critical a, serious b, moderate c)   small targets: N\nstates checked: empty, loading, error, success\nFIXED: \u003Cfile:line — what>\nREMAINING: \u003Cgate — element — why not fixed>\n```\n\nTerminal:\n```\nUI VERIFY: PASS|FAIL after N iteration(s) — \u003Ccommand>\n80x24: \u003Cok | issues>   40x12: \u003C…>   20x5: \u003C…>\nNO_COLOR: ok|fail   restore: ok|fail   stdout: ok|fail   contrast: N violations\nstates checked: \u003Clist>\nFIXED: \u003Cfile:line — what>\nREMAINING: \u003Cgate — element — why not fixed>\n```\n\nAfter 5 iterations with failures, stop and report the REMAINING list; don't keep looping.\n","# UI verify\n\nGates come from `.dev-docs\u002Ffeatures\u002F\u003Cslug>\u002Fdesign.md` (`## Target`, `## Accessibility\ngates`, `## States`, `## Keys`) if it exists, else the defaults per rung in\n`${CLAUDE_SKILL_DIR}\u002F..\u002Fux-design\u002Freferences\u002Ftargets.md`. Artifact contract:\n`${CLAUDE_SKILL_DIR}\u002F..\u002Fworkflow\u002Freferences\u002Fartifacts.md`.\n\n## Pick the loop\n\nThe rung comes from design.md `## Target` (else: browser UI → web, `\u002Fdev\u002Ftty` drawing →\nterminal, window → native GUI, none → CLI). CLI → `make test` is enough; stop. Each loop\nruns at most 5 iterations, never asks the user between iterations, and fixes code until\nthe gates pass.\n\n## Web loop\n\nUses the `playwright` MCP server shipped with this plugin (tools `browser_*`). Need a URL:\nif no dev server runs, start the project's dev command in the background and wait for its\nport. If the Playwright tools are unavailable, say so and stop — never claim visual\nverification without a browser.\n\nDefault gates:\n- 0 console errors.\n- 0 axe violations of impact `critical`, `serious` or `moderate`.\n- Every interactive element ≥44×44 px.\n- Every control has an accessible name and role (from `browser_snapshot`).\n- No horizontal scroll at 375 px; layout adapts at 768 and 1280.\n- Each designed state (empty, loading, error, success) reachable and rendered; no\n  placeholder copy (lorem ipsum, TODO).\n\nSteps:\n1. `browser_navigate` to the URL. For each width 375, 768, 1280: `browser_resize`\n   (heights 812, 1024, 800) → `browser_take_screenshot` + `browser_snapshot`. Look at\n   each screenshot: overflow, overlap, clipped text, missing elements vs design.md.\n2. `browser_console_messages` — any error is a failure.\n3. `browser_evaluate` the axe scan:\n   ```js\n   async () => {\n     if (!window.axe) {\n       const s = document.createElement('script');\n       s.src = 'https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Faxe-core\u002Faxe.min.js';\n       document.head.appendChild(s);\n       await new Promise((ok, err) => { s.onload = ok; s.onerror = err; });\n     }\n     const r = await axe.run();\n     return r.violations.map(v => ({ id: v.id, impact: v.impact,\n       nodes: v.nodes.map(n => n.target.join(' ')) }));\n   }\n   ```\n4. `browser_evaluate` the touch-target check at 375 px:\n   ```js\n   () => [...document.querySelectorAll('button,a,input,select,textarea,[role=button]')]\n     .map(e => [e, e.getBoundingClientRect()])\n     .filter(([, r]) => r.width && (r.width \u003C 44 || r.height \u003C 44))\n     .map(([e, r]) => `${e.tagName}${e.id ? '#' + e.id : ''} ${r.width}x${r.height}`)\n   ```\n5. States: drive the UI (`browser_click`, `browser_type`, `browser_press_key` Tab\u002FEnter)\n   to reach each state; check keyboard focus order is logical and visible.\n6. All gates pass → report and stop. Otherwise fix the code, then repeat from step 1.\n\nTypical fixes: missing name → `aria-label` or `\u003Clabel for>`; low contrast → change the\ntoken, not the one element; small target → `min-height\u002Fmin-width: 44px` or padding;\nmobile overflow → find the fixed width, don't hide overflow; CLS → explicit image and\ncontainer dimensions; missing focus → `:focus-visible` style.\n\n## Terminal loop\n\n`dl-tui [-s COLSxROWS] CMD [STEP...]` runs CMD in a private headless tmux; steps are\n`key:NAME` (tmux key names: `Down`, `Enter`, `Escape`, `C-c`, `BSpace`), `text:STRING`,\n`resize:COLSxROWS`, `wait:MS` and `snap`. Each `snap`, and the end, prints the screen\nfollowed by `-- COLSxROWS running`, `-- COLSxROWS exit N` or `-- COLSxROWS signal N`\n(killed by a signal: a crash, e.g. `signal 6` for a Rust panic). Exit 2 on usage or tmux\nerrors.\n\n1. `\"${CLAUDE_SKILL_DIR}\u002F..\u002Fux-design\u002Fscripts\u002Fdl-contrast\" \u003Ctoken files>` must be silent.\n2. For each state in design.md `## States`, write a step script reaching it. Run it at\n   `-s 80x24` and `-s 40x12`, ending with `snap`, e.g.\n   ```\n   \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdl-tui\" -s 40x12 'printf \"alpha\\nbeta\\n\" | .\u002Fpick > \u002Ftmp\u002Fout' text:al snap key:Enter\n   ```\n   Compare each block with the wireframes: overlap, truncation, missing elements.\n3. Resize: append `resize:20x5 wait:3000 snap` → footer still `running`, no garbage.\n   `exit 134`, `signal N` or a shell `rc=134` line is a crash. The wait matters: while a\n   core dump is written (systemd-coredump) the pane still reads `running` and shows the\n   last frame.\n4. NO_COLOR: rerun one script with `NO_COLOR=1` in CMD → the selection is still visible.\n5. Restore: CMD ends with `; stty -a | grep -c ' icanon'` → the final block shows `1` and\n   `exit 0`.\n6. Stdout purity: CMD redirects stdout to a file → the file holds only the result.\n\nTypical fixes: garbage after resize → redraw every row on a size change; selection lost\nunder NO_COLOR → reverse video or a `>` marker; mode not restored → restore in Drop and\nin a panic hook (`panic = \"abort\"` skips Drop), also on signals; UI in the stdout file →\ndraw on `\u002Fdev\u002Ftty`; abort when the terminal hangs up → no `eprintln!`\u002F`println!` on the\nerror path (they panic when the write fails), use `let _ = writeln!(…)`.\n\n## Native GUI\n\n- dl-contrast on the token files.\n- The program's keyboard tests in `make test`.\n- A screenshot only when `DISPLAY` is set and `import` is on PATH\n  (`import -window root \u002Ftmp\u002Fui.png`, then read the image).\n- Otherwise the visual gates are NOT VERIFIED; say so in the report.\n\n## Report\n\nWeb:\n```\nUI VERIFY: PASS|FAIL after N iteration(s) — \u003Curl>\n375: \u003Cok | issues>   768: \u003C…>   1280: \u003C…>\nconsole errors: N   axe: N (critical a, serious b, moderate c)   small targets: N\nstates checked: empty, loading, error, success\nFIXED: \u003Cfile:line — what>\nREMAINING: \u003Cgate — element — why not fixed>\n```\n\nTerminal:\n```\nUI VERIFY: PASS|FAIL after N iteration(s) — \u003Ccommand>\n80x24: \u003Cok | issues>   40x12: \u003C…>   20x5: \u003C…>\nNO_COLOR: ok|fail   restore: ok|fail   stdout: ok|fail   contrast: N violations\nstates checked: \u003Clist>\nFIXED: \u003Cfile:line — what>\nREMAINING: \u003Cgate — element — why not fixed>\n```\n\nAfter 5 iterations with failures, stop and report the REMAINING list; don't keep looping.\n",{"name":5,"description":7},"main","02aa71ce4bc4511265a1469ef79ed215a71f9b2f","plugins\u002Fdeadlion\u002Fskills\u002Fui-verify","https:\u002F\u002Fgithub.com\u002FVolkovIlia\u002Fdeadlion-studio","https:\u002F\u002Fgithub.com\u002FVolkovIlia","2026-10-15 18:45:06",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add VolkovIlia\u002Fdeadlion-studio --skill ui-verify",{"tool":36,"command":37},"bunx","bunx skills add VolkovIlia\u002Fdeadlion-studio --skill ui-verify",{"tool":39,"command":40},"pnpm","pnpm dlx skills add VolkovIlia\u002Fdeadlion-studio --skill ui-verify","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVolkovIlia\u002Fdeadlion-studio\u002Fblob\u002Fmain\u002Fplugins\u002Fdeadlion\u002Fskills\u002Fui-verify\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"scripts\u002Fdl-tui","SCRIPT","脚本",7093,"https:\u002F\u002Fgithub.com\u002FVolkovIlia\u002Fdeadlion-studio\u002Fblob\u002Fmain\u002Fplugins\u002Fdeadlion\u002Fskills\u002Fui-verify\u002Fscripts\u002Fdl-tui",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7EMCBYGSW1DZJP59294W9NP","write-plan","Turns approved product\u002Fdesign\u002Farchitecture artifacts or a clear request into plan.md: small ordered tasks, each with exact files, a test written first and a verification command. Use before implementing anything larger than a one-file change.","https:\u002F\u002Fgithub.com\u002FVolkovIlia\u002Fdeadlion-studio\u002Fblob\u002Fmain\u002Fplugins\u002Fdeadlion\u002Fskills\u002Fwrite-plan\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7EMC7ANMETP06JQ1158G7MS","workflow","Runs the deadlion pipeline (product → design → decompose → architecture → plan → build → review → verify) through plain-text artifacts in .dev-docs\u002F. Use when the user starts a new product, system, feature or multi-step change, or asks what to do next.","https:\u002F\u002Fgithub.com\u002FVolkovIlia\u002Fdeadlion-studio\u002Fblob\u002Fmain\u002Fplugins\u002Fdeadlion\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7EMC46H7411EB9DVQQPHESC","verify","Evidence before claims: before saying work is done, fixed or passing, run the proving command fresh, read its output and the git diff, and report VERIFIED and NOT VERIFIED items separately. Use before declaring any task complete and after any subagent reports success.","https:\u002F\u002Fgithub.com\u002FVolkovIlia\u002Fdeadlion-studio\u002Fblob\u002Fmain\u002Fplugins\u002Fdeadlion\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7EMBZTP61P22DG5A0EK9CXT","ux-design","Designs the user interface of a program at the lowest rung that serves the job — CLI, filter (dmenu\u002Ffzf style), terminal UI, native GUI or web — with flows, states, a key map, design tokens kept in config.def and numeric gates per rung, so every UI works alone and embeds; avoids generic AI-looking UI. Includes the dl-contrast checker. Writes design.md. Use when building or changing any user interface, screen, TUI, GUI, component or visual style.","https:\u002F\u002Fgithub.com\u002FVolkovIlia\u002Fdeadlion-studio\u002Fblob\u002Fmain\u002Fplugins\u002Fdeadlion\u002Fskills\u002Fux-design\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7EMBV6DXFPQ5B7DVJFADTRB","unix-design","Designs the internals of one program or sub-project as small single-purpose modules with plain-text interfaces, separated mechanism and policy, and one build\u002Frun command each, following the Unix philosophy. Writes arch.md. Use when designing a new feature's architecture inside a program, a CLI, module or data flow; for splitting a system into several programs use decompose.","https:\u002F\u002Fgithub.com\u002FVolkovIlia\u002Fdeadlion-studio\u002Fblob\u002Fmain\u002Fplugins\u002Fdeadlion\u002Fskills\u002Funix-design\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7EMBHXM6HQGPJ2J0BEVEEZ3","testing","Test strategy and execution: test-first, isolated unit tests, then integration, then regression; tests assert behaviour, boundaries and errors, never wiring or mock echoes; make test and test.sh for programs, fixture tests for contracts; memory-safe fixtures for large suites. Use when writing tests, choosing what to test, or when a test suite is slow, flaky or runs out of memory.","https:\u002F\u002Fgithub.com\u002FVolkovIlia\u002Fdeadlion-studio\u002Fblob\u002Fmain\u002Fplugins\u002Fdeadlion\u002Fskills\u002Ftesting\u002FSKILL.md",[],[]]