[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FDBJTTX9DSDN47EFGZGXA4":3,"skill-same:01M7FDBJTTX9DSDN47EFGZGXA4":45},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7FDBJTTX9DSDN47EFGZGXA4","control-ui",null,"Build or adapt a local browser\u002FCDP harness to drive and inspect a web, IDE, or Electron UI. Use for local UI verification, screenshots, accessibility snapshots, perf profiles, visual diffs, or reproducing UI bugs.","l246804\u002Fdsh-pstack","l246804","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F53589602?v=4","01M7FD2TFY24A2KKK55FSQWJ47","leihaohao","01M7FD2TGRS2ZCQ68BRY93D89D",23,"MIT","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002F.agents\u002Fskills\u002Fcontrol-ui\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: control-ui\ndescription: Build or adapt a local browser\u002FCDP harness to drive and inspect a web, IDE, or Electron UI. Use for local UI verification, screenshots, accessibility snapshots, perf profiles, visual diffs, or reproducing UI bugs.\n---\n\n# Control UI\n\nUse local browser automation to verify UI behavior with evidence. First reuse the repo's own Playwright, browser, or Electron harness if it exists; otherwise assemble a temporary local harness around the app's dev server or Chromium debug port.\n\n## What It Is Used For\n\n- Reproducing UI bugs that depend on real browser focus, keyboard input, scrolling, resizing, or rendering.\n- Verifying visual or accessibility changes with screenshots and snapshots.\n- Checking local web, IDE, or Electron behavior before shipping.\n- Capturing console logs, network logs, CPU profiles, traces, or heap snapshots.\n- Creating before\u002Fafter evidence for `verify-this`.\n\n## Setup Pattern\n\n1. Start the app locally using the repo's documented dev command.\n2. Discover existing local harnesses: Playwright tests, Cypress specs, Storybook, browser scripts, Electron launch scripts, or snapshot tools.\n3. For a web app, connect to the local URL with the existing browser tooling.\n4. For Electron\u002FChromium, enable a remote debugging port when supported.\n5. Select the correct page by stable app markers, not by tab order alone.\n6. Prefer accessibility roles, labels, and stable `data-*` selectors over coordinates.\n\n## Generic Web Harness\n\nUse the repo's installed browser tooling when possible. If the repo already has Playwright, a minimal one-off probe looks like:\n\n```javascript\nimport { chromium } from \"playwright\";\n\nconst browser = await chromium.launch();\nconst page = await browser.newPage({ viewport: { width: 1280, height: 800 } });\nawait page.goto(\"http:\u002F\u002F127.0.0.1:\u003Cport>\");\nawait page.getByRole(\"button\", { name: \u002Fsubmit\u002Fi }).click();\nawait page.screenshot({ path: \"\u002Ftmp\u002Fui-harness-after.png\", fullPage: true });\nawait browser.close();\n```\n\nDo not add Playwright as a project dependency just for this probe unless the user asks. Prefer existing dev dependencies or external browser tools already available in the environment.\n\n## Generic CDP Harness\n\nFor Electron or a Chromium app launched with `--remote-debugging-port=\u003Cport>`, connect over CDP:\n\n```javascript\nimport { chromium } from \"playwright\";\n\nconst browser = await chromium.connectOverCDP(\"http:\u002F\u002F127.0.0.1:\u003Cdebug-port>\");\nconst pages = browser.contexts().flatMap((context) => context.pages());\nlet page;\nfor (const candidate of pages) {\n  if (await candidate.locator(\"\u003Capp-root-selector>\").count()) {\n    page = candidate;\n    break;\n  }\n}\n\nif (!page) {\n  console.log(await Promise.all(pages.map(async (p) => ({\n    title: await p.title(),\n    url: p.url(),\n  }))));\n  throw new Error(\"No matching app page found\");\n}\n\nawait page.screenshot({ path: \"\u002Ftmp\u002Fui-harness-cdp.png\", fullPage: true });\nawait browser.close();\n```\n\nReplace `\u003Capp-root-selector>` with a stable marker from the current repo, such as a root app node, landmark, or product-specific `data-*` attribute.\n\n## Interaction Loop\n\n1. Capture a page snapshot or screenshot before acting.\n2. Choose a target from the latest page structure.\n3. Perform exactly one structural action: click, type, keypress, drag, scroll, navigate, or resize.\n4. Capture a fresh snapshot\u002Fscreenshot.\n5. Verify the expected state change.\n6. Save artifacts for before\u002Fafter comparisons when the user asked for proof.\n\n## CDP Capabilities\n\nUse raw CDP only when higher-level browser APIs are insufficient:\n\n- Performance: CPU profiles, traces, paint flashing, FPS meter, layout shift inspection.\n- Memory: heap snapshots and forced GC for leak investigations.\n- Network: request blocking, throttling, cache disablement, request\u002Fresponse logs.\n- Rendering: viewport changes, color scheme emulation, reduced motion, accessibility checks.\n- Debugging: console streaming, exception capture, DOM snapshots.\n\n## Page Selection\n\nWhen multiple app windows\u002Ftabs share a debug port:\n\n- Prefer a positive marker for the surface under test, such as an app root selector.\n- Use a negative marker to avoid the wrong surface when necessary.\n- If no page matches, list available page titles and URLs instead of guessing.\n\n## Guardrails\n\n- Do not rely on stale element references after navigation or structural changes.\n- Avoid coordinate clicks unless a fresh screenshot was captured immediately before the click.\n- Keep test data local and disposable.\n- Do not store screenshots or heap snapshots from privacy-sensitive workspaces unless the user explicitly agrees.\n- Do not hard-code selectors, ports, or script paths from another repository. Discover the current repo's local app markers.\n- Clean up dev servers, debug sessions, and temp profiles when done.\n","# Control UI\n\nUse local browser automation to verify UI behavior with evidence. First reuse the repo's own Playwright, browser, or Electron harness if it exists; otherwise assemble a temporary local harness around the app's dev server or Chromium debug port.\n\n## What It Is Used For\n\n- Reproducing UI bugs that depend on real browser focus, keyboard input, scrolling, resizing, or rendering.\n- Verifying visual or accessibility changes with screenshots and snapshots.\n- Checking local web, IDE, or Electron behavior before shipping.\n- Capturing console logs, network logs, CPU profiles, traces, or heap snapshots.\n- Creating before\u002Fafter evidence for `verify-this`.\n\n## Setup Pattern\n\n1. Start the app locally using the repo's documented dev command.\n2. Discover existing local harnesses: Playwright tests, Cypress specs, Storybook, browser scripts, Electron launch scripts, or snapshot tools.\n3. For a web app, connect to the local URL with the existing browser tooling.\n4. For Electron\u002FChromium, enable a remote debugging port when supported.\n5. Select the correct page by stable app markers, not by tab order alone.\n6. Prefer accessibility roles, labels, and stable `data-*` selectors over coordinates.\n\n## Generic Web Harness\n\nUse the repo's installed browser tooling when possible. If the repo already has Playwright, a minimal one-off probe looks like:\n\n```javascript\nimport { chromium } from \"playwright\";\n\nconst browser = await chromium.launch();\nconst page = await browser.newPage({ viewport: { width: 1280, height: 800 } });\nawait page.goto(\"http:\u002F\u002F127.0.0.1:\u003Cport>\");\nawait page.getByRole(\"button\", { name: \u002Fsubmit\u002Fi }).click();\nawait page.screenshot({ path: \"\u002Ftmp\u002Fui-harness-after.png\", fullPage: true });\nawait browser.close();\n```\n\nDo not add Playwright as a project dependency just for this probe unless the user asks. Prefer existing dev dependencies or external browser tools already available in the environment.\n\n## Generic CDP Harness\n\nFor Electron or a Chromium app launched with `--remote-debugging-port=\u003Cport>`, connect over CDP:\n\n```javascript\nimport { chromium } from \"playwright\";\n\nconst browser = await chromium.connectOverCDP(\"http:\u002F\u002F127.0.0.1:\u003Cdebug-port>\");\nconst pages = browser.contexts().flatMap((context) => context.pages());\nlet page;\nfor (const candidate of pages) {\n  if (await candidate.locator(\"\u003Capp-root-selector>\").count()) {\n    page = candidate;\n    break;\n  }\n}\n\nif (!page) {\n  console.log(await Promise.all(pages.map(async (p) => ({\n    title: await p.title(),\n    url: p.url(),\n  }))));\n  throw new Error(\"No matching app page found\");\n}\n\nawait page.screenshot({ path: \"\u002Ftmp\u002Fui-harness-cdp.png\", fullPage: true });\nawait browser.close();\n```\n\nReplace `\u003Capp-root-selector>` with a stable marker from the current repo, such as a root app node, landmark, or product-specific `data-*` attribute.\n\n## Interaction Loop\n\n1. Capture a page snapshot or screenshot before acting.\n2. Choose a target from the latest page structure.\n3. Perform exactly one structural action: click, type, keypress, drag, scroll, navigate, or resize.\n4. Capture a fresh snapshot\u002Fscreenshot.\n5. Verify the expected state change.\n6. Save artifacts for before\u002Fafter comparisons when the user asked for proof.\n\n## CDP Capabilities\n\nUse raw CDP only when higher-level browser APIs are insufficient:\n\n- Performance: CPU profiles, traces, paint flashing, FPS meter, layout shift inspection.\n- Memory: heap snapshots and forced GC for leak investigations.\n- Network: request blocking, throttling, cache disablement, request\u002Fresponse logs.\n- Rendering: viewport changes, color scheme emulation, reduced motion, accessibility checks.\n- Debugging: console streaming, exception capture, DOM snapshots.\n\n## Page Selection\n\nWhen multiple app windows\u002Ftabs share a debug port:\n\n- Prefer a positive marker for the surface under test, such as an app root selector.\n- Use a negative marker to avoid the wrong surface when necessary.\n- If no page matches, list available page titles and URLs instead of guessing.\n\n## Guardrails\n\n- Do not rely on stale element references after navigation or structural changes.\n- Avoid coordinate clicks unless a fresh screenshot was captured immediately before the click.\n- Keep test data local and disposable.\n- Do not store screenshots or heap snapshots from privacy-sensitive workspaces unless the user explicitly agrees.\n- Do not hard-code selectors, ports, or script paths from another repository. Discover the current repo's local app markers.\n- Clean up dev servers, debug sessions, and temp profiles when done.\n",{"name":5,"description":7},"main","df33da1bb4942fbd2761c305edb3785093ec1055","skills\u002F.agents\u002Fskills\u002Fcontrol-ui",4,"https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack","https:\u002F\u002Fgithub.com\u002Fl246804","2026-11-15 16:09:02",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add l246804\u002Fdsh-pstack --skill control-ui",{"tool":37,"command":38},"bunx","bunx skills add l246804\u002Fdsh-pstack --skill control-ui",{"tool":40,"command":41},"pnpm","pnpm dlx skills add l246804\u002Fdsh-pstack --skill control-ui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002F.agents\u002Fskills\u002Fcontrol-ui\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7FDC7PA7ACJ95HW5T1N9ZJ3","setup-project-docs","Bootstrap architecture, glossary, decision-record conventions, and root agent-doc pointers; rerun to fill approved gaps.","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fauthored\u002Fsetup-project-docs\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7FDC35BXG4PW3HG16BXF5FG","docs-drift","Audit living project documentation for drift and redundancy; repair approved findings.","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fauthored\u002Fdocs-drift\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7FDBZ7PP5T1V4Q1MEP95BGM","decision-write","Write, update, land, or supersede decision records. Use for resolved alternatives, missing rationale, reversed decisions, or record-file changes. Land finds and verifies the implementation; Review-only updates keep the current status.","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fauthored\u002Fdecision-write\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7FDBVXYSHCB2E52HKS2TH2E","decision-audit","Read-only audit of decision records for a PR, local changes, or the whole repository. Report routing, status, scope, anchor, supersession, and overdue-review findings with command evidence.","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fauthored\u002Fdecision-audit\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7FDBSF0V6HTFHD5PHDC6BAM","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002F.agents\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7FDBQPY2F8PSNJKTGZ6AYD6","retro","Conduct a retrospective on a coding session.","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002F.agents\u002Fskills\u002Fretro\u002FSKILL.md",[],[]]