[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F6APQY7EK359APVG5K3DXQ":3,"skill-same:01M7F6APQY7EK359APVG5K3DXQ":46},{"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":30,"updatedAt":31,"install":32,"resources":45},"01M7F6APQY7EK359APVG5K3DXQ","ui-preview",null,"Capture headless-Chrome screenshots of the tingly-box frontend (running locally in mock mode) so frontend changes can be visually verified in environments without a real browser. Use when the user asks to \"preview\", \"screenshot\", \"see the page\", \"show me the UI\", \"verify visually\", or when frontend layout \u002F component \u002F styling changes need a sanity-check before review. Works in restricted\u002Fcloud sandboxes where Playwright's normal Chromium install is blocked.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fui-preview\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: ui-preview\ndescription: Capture headless-Chrome screenshots of the tingly-box frontend (running locally in mock mode) so frontend changes can be visually verified in environments without a real browser. Use when the user asks to \"preview\", \"screenshot\", \"see the page\", \"show me the UI\", \"verify visually\", or when frontend layout \u002F component \u002F styling changes need a sanity-check before review. Works in restricted\u002Fcloud sandboxes where Playwright's normal Chromium install is blocked.\n---\n\n# Headless UI preview (Playwright + Chrome for Testing)\n\nDesigned for the remote-execution container where:\n- `cdn.playwright.dev` \u002F `dl.google.com` are blocked — use Chrome for Testing via `storage.googleapis.com`.\n- Ubuntu's `chromium-browser` is a snap stub and won't run.\n- MCP servers can't be registered mid-session — use Playwright's Node API directly.\n\n## Setup (run once per fresh container)\n\n> ⚠️ **This project uses pnpm** (`frontend\u002Fpnpm-lock.yaml` is the source of truth).\n> Do **NOT** run `npm i` here — npm ignores the pnpm lockfile and re-resolves\n> transitive deps, which pulls **broken** versions (e.g. `es-toolkit@1.47.0` vs the\n> pinned `1.46.1`) that crash the whole SPA at load. See *Troubleshooting* below.\n\n`playwright` is already a committed `devDependency` in `frontend\u002Fpackage.json`, so\na plain install provides it — no ad-hoc add\u002Frevert needed. `@emotion\u002Freact` \u002F\n`@emotion\u002Fstyled` are likewise already declared.\n\n```bash\n# 1. Install deps from the lockfile (also fixes a node_modules previously\n#    polluted by npm — wipe it first with `rm -rf node_modules` if you suspect that).\ncd frontend\npnpm install --frozen-lockfile\n\n# 2. Download Chrome for Testing (Playwright's own Chromium download is blocked)\nmkdir -p \u002Ftmp\u002Fchrome && cd \u002Ftmp\u002Fchrome\ncurl -fsSL -o chrome.zip \\\n  \"https:\u002F\u002Fstorage.googleapis.com\u002Fchrome-for-testing-public\u002F148.0.7778.96\u002Flinux64\u002Fchrome-linux64.zip\"\nunzip -q chrome.zip          # → \u002Ftmp\u002Fchrome\u002Fchrome-linux64\u002Fchrome\n```\n\n**Do NOT** modify `frontend\u002Fpackage.json` \u002F `frontend\u002Fpnpm-lock.yaml` for tooling\nanymore — everything needed is already committed. If a previous session left them\ndirty (or npm polluted the tree), reset with:\n```bash\ncd \u003Crepo> && git checkout -- frontend\u002Fpackage.json frontend\u002Fpnpm-lock.yaml\npnpm -C frontend install --frozen-lockfile\n```\n\n## Dev server\n\n```bash\ncd frontend\nUSE_MOCK=true node_modules\u002F.bin\u002Fvite --mode mock --port 3000 &\nuntil curl -fs http:\u002F\u002Flocalhost:3000 >\u002Fdev\u002Fnull; do sleep 1; done\n```\n\n`USE_MOCK=true` must be a shell env var (read by `vite.config.ts` before `.env.mock`).\n\n## Auth seeding\n\nEvery script must seed `localStorage.user_auth_token` via `addInitScript` or the app\nredirects to the login screen:\n\n```js\nawait page.addInitScript(() => {\n    localStorage.setItem('user_auth_token', 'mock-token-for-screenshots');\n});\n```\n\n## Scripts\n\nAll scripts live here and are run from `frontend\u002F`. They use `createRequire(cwd)` to\nresolve `playwright` from `frontend\u002Fnode_modules` regardless of the script's location:\n\n```js\nimport { createRequire } from 'module';\nconst { chromium } = createRequire('file:\u002F\u002F' + process.cwd() + '\u002F')('playwright');\n```\n\n| Script | Mode | Purpose |\n|--------|------|---------|\n| [`screenshot.mjs`](screenshot.mjs) | mock | **Ad-hoc template** — copy here and customise; do NOT commit |\n| [`docs-screenshots.mjs`](docs-screenshots.mjs) | mock | All 9 `docs\u002Fimages\u002F` product screenshots + theme previews |\n| [`regression-credentials.mjs`](regression-credentials.mjs) | mock | Assertion-based regression for `\u002Fcredentials` Add API Key flow |\n| [`scenario-routing-graph.mjs`](scenario-routing-graph.mjs) | real backend | Codex routing graph screenshots (requires running Go server) |\n\nEach script is self-documenting — see its file header for usage, outputs, and known issues.\n\n## Shrinking screenshots (optional)\n\nScreenshots are captured with Playwright's plain `page.screenshot()` — the skill\ndeliberately does **not** compress images internally, because optimizers depend on\nhost tooling that is not guaranteed in the run environment. If a PNG is large and\nyou want to trim it before committing, run any optimizer you have available on the\ncaptured file afterwards. None of these are required:\n\n- `pngquant --quality 80-95 --strip --force --out foo.png foo.png` (lossy, smallest PNGs)\n- `oxipng -o 4 --strip safe foo.png` (lossless)\n- Node: `sharp(file).png({ quality: 80, palette: true }).toFile(out)`\n- Python: `Pillow` → `img.save(out, optimize=True)`\n\nPrefer keeping the original capture when quality matters more than size.\n\n## After capturing\n\n1. `SendUserFile` the PNGs so the user can review them.\n2. For ad-hoc `screenshot.mjs`: delete it before committing — the stop hook will flag it.\n3. `docs\u002F` is gitignored; force-add images: `git add -f docs\u002Fimages\u002F`.\n4. Free the port: `fuser -k 3000\u002Ftcp` or `pkill -f \"vite --mode mock\"`.\n\n## Troubleshooting\n\n**Blank white page \u002F `root` is empty, console shows\n`TypeError: require_isUnsafeProperty is not a function`**\n(stack points at `es-toolkit\u002Fdist\u002Fcompat\u002Fobject\u002Fget.js` ← `recharts`).\n\nCause: `node_modules` was installed\u002Fresolved by **npm** instead of pnpm, so a\ntransitive dep (`es-toolkit`) drifted to a version whose CJS→ESM interop esbuild\nmis-bundles. It breaks the React vendor chunk, so **every** route renders blank —\nnot just the page you're testing. Tweaking `optimizeDeps` (include\u002Fexclude\u002F\n`keepNames`) does **not** fix it.\n\nFix — reinstall the pinned tree with pnpm:\n```bash\ncd frontend\nrm -rf node_modules node_modules\u002F.vite        # drop the npm-polluted tree + dep cache\npnpm install --frozen-lockfile\n# verify the pinned (working) version is what's on disk:\nls node_modules\u002F.pnpm | grep es-toolkit       # expect es-toolkit@1.46.1, NOT 1.47.0\npnpm add -D playwright                         # re-add the tool\n```\nThen restart the dev server. If you edited `vite.config.ts` while chasing this,\nrevert it — the config is not the problem.\n\n**Dev-server process exits immediately (e.g. exit 144) on `--force`**: usually a\nfollow-on of the crash above (the unhandled client error). Once the pnpm tree is\ncorrect it starts cleanly; `--force` is only needed once to drop a stale\n`node_modules\u002F.vite` optimize cache.\n","# Headless UI preview (Playwright + Chrome for Testing)\n\nDesigned for the remote-execution container where:\n- `cdn.playwright.dev` \u002F `dl.google.com` are blocked — use Chrome for Testing via `storage.googleapis.com`.\n- Ubuntu's `chromium-browser` is a snap stub and won't run.\n- MCP servers can't be registered mid-session — use Playwright's Node API directly.\n\n## Setup (run once per fresh container)\n\n> ⚠️ **This project uses pnpm** (`frontend\u002Fpnpm-lock.yaml` is the source of truth).\n> Do **NOT** run `npm i` here — npm ignores the pnpm lockfile and re-resolves\n> transitive deps, which pulls **broken** versions (e.g. `es-toolkit@1.47.0` vs the\n> pinned `1.46.1`) that crash the whole SPA at load. See *Troubleshooting* below.\n\n`playwright` is already a committed `devDependency` in `frontend\u002Fpackage.json`, so\na plain install provides it — no ad-hoc add\u002Frevert needed. `@emotion\u002Freact` \u002F\n`@emotion\u002Fstyled` are likewise already declared.\n\n```bash\n# 1. Install deps from the lockfile (also fixes a node_modules previously\n#    polluted by npm — wipe it first with `rm -rf node_modules` if you suspect that).\ncd frontend\npnpm install --frozen-lockfile\n\n# 2. Download Chrome for Testing (Playwright's own Chromium download is blocked)\nmkdir -p \u002Ftmp\u002Fchrome && cd \u002Ftmp\u002Fchrome\ncurl -fsSL -o chrome.zip \\\n  \"https:\u002F\u002Fstorage.googleapis.com\u002Fchrome-for-testing-public\u002F148.0.7778.96\u002Flinux64\u002Fchrome-linux64.zip\"\nunzip -q chrome.zip          # → \u002Ftmp\u002Fchrome\u002Fchrome-linux64\u002Fchrome\n```\n\n**Do NOT** modify `frontend\u002Fpackage.json` \u002F `frontend\u002Fpnpm-lock.yaml` for tooling\nanymore — everything needed is already committed. If a previous session left them\ndirty (or npm polluted the tree), reset with:\n```bash\ncd \u003Crepo> && git checkout -- frontend\u002Fpackage.json frontend\u002Fpnpm-lock.yaml\npnpm -C frontend install --frozen-lockfile\n```\n\n## Dev server\n\n```bash\ncd frontend\nUSE_MOCK=true node_modules\u002F.bin\u002Fvite --mode mock --port 3000 &\nuntil curl -fs http:\u002F\u002Flocalhost:3000 >\u002Fdev\u002Fnull; do sleep 1; done\n```\n\n`USE_MOCK=true` must be a shell env var (read by `vite.config.ts` before `.env.mock`).\n\n## Auth seeding\n\nEvery script must seed `localStorage.user_auth_token` via `addInitScript` or the app\nredirects to the login screen:\n\n```js\nawait page.addInitScript(() => {\n    localStorage.setItem('user_auth_token', 'mock-token-for-screenshots');\n});\n```\n\n## Scripts\n\nAll scripts live here and are run from `frontend\u002F`. They use `createRequire(cwd)` to\nresolve `playwright` from `frontend\u002Fnode_modules` regardless of the script's location:\n\n```js\nimport { createRequire } from 'module';\nconst { chromium } = createRequire('file:\u002F\u002F' + process.cwd() + '\u002F')('playwright');\n```\n\n| Script | Mode | Purpose |\n|--------|------|---------|\n| [`screenshot.mjs`](screenshot.mjs) | mock | **Ad-hoc template** — copy here and customise; do NOT commit |\n| [`docs-screenshots.mjs`](docs-screenshots.mjs) | mock | All 9 `docs\u002Fimages\u002F` product screenshots + theme previews |\n| [`regression-credentials.mjs`](regression-credentials.mjs) | mock | Assertion-based regression for `\u002Fcredentials` Add API Key flow |\n| [`scenario-routing-graph.mjs`](scenario-routing-graph.mjs) | real backend | Codex routing graph screenshots (requires running Go server) |\n\nEach script is self-documenting — see its file header for usage, outputs, and known issues.\n\n## Shrinking screenshots (optional)\n\nScreenshots are captured with Playwright's plain `page.screenshot()` — the skill\ndeliberately does **not** compress images internally, because optimizers depend on\nhost tooling that is not guaranteed in the run environment. If a PNG is large and\nyou want to trim it before committing, run any optimizer you have available on the\ncaptured file afterwards. None of these are required:\n\n- `pngquant --quality 80-95 --strip --force --out foo.png foo.png` (lossy, smallest PNGs)\n- `oxipng -o 4 --strip safe foo.png` (lossless)\n- Node: `sharp(file).png({ quality: 80, palette: true }).toFile(out)`\n- Python: `Pillow` → `img.save(out, optimize=True)`\n\nPrefer keeping the original capture when quality matters more than size.\n\n## After capturing\n\n1. `SendUserFile` the PNGs so the user can review them.\n2. For ad-hoc `screenshot.mjs`: delete it before committing — the stop hook will flag it.\n3. `docs\u002F` is gitignored; force-add images: `git add -f docs\u002Fimages\u002F`.\n4. Free the port: `fuser -k 3000\u002Ftcp` or `pkill -f \"vite --mode mock\"`.\n\n## Troubleshooting\n\n**Blank white page \u002F `root` is empty, console shows\n`TypeError: require_isUnsafeProperty is not a function`**\n(stack points at `es-toolkit\u002Fdist\u002Fcompat\u002Fobject\u002Fget.js` ← `recharts`).\n\nCause: `node_modules` was installed\u002Fresolved by **npm** instead of pnpm, so a\ntransitive dep (`es-toolkit`) drifted to a version whose CJS→ESM interop esbuild\nmis-bundles. It breaks the React vendor chunk, so **every** route renders blank —\nnot just the page you're testing. Tweaking `optimizeDeps` (include\u002Fexclude\u002F\n`keepNames`) does **not** fix it.\n\nFix — reinstall the pinned tree with pnpm:\n```bash\ncd frontend\nrm -rf node_modules node_modules\u002F.vite        # drop the npm-polluted tree + dep cache\npnpm install --frozen-lockfile\n# verify the pinned (working) version is what's on disk:\nls node_modules\u002F.pnpm | grep es-toolkit       # expect es-toolkit@1.46.1, NOT 1.47.0\npnpm add -D playwright                         # re-add the tool\n```\nThen restart the dev server. If you edited `vite.config.ts` while chasing this,\nrevert it — the config is not the problem.\n\n**Dev-server process exits immediately (e.g. exit 144) on `--force`**: usually a\nfollow-on of the crash above (the unhandled client error). Once the pnpm tree is\ncorrect it starts cleanly; `--force` is only needed once to drop a stale\n`node_modules\u002F.vite` optimize cache.\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fui-preview",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill ui-preview",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill ui-preview",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill ui-preview","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fui-preview\u002FSKILL.md",true,[],[47,54,59,66,73,80],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":55,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]