[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FAE2DDTDRVPJF5R0KHJQKS":3,"skill-same:01M7FAE2DDTDRVPJF5R0KHJQKS":62},{"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":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":51},"01M7FAE2DDTDRVPJF5R0KHJQKS","live-preview",null,"Mid-build visual verification loop. Takes screenshots of components during construction, not just after. Catches visual regressions and invisible features before they compound. Requires Playwright or similar screenshot tool.","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\u002F06-前端与设计\u002Flive-preview\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: live-preview\nlicense: MIT\ndescription: >-\n  Mid-build visual verification loop. Takes screenshots of components during\n  construction, not just after. Catches visual regressions and invisible features\n  before they compound. Requires Playwright or similar screenshot tool.\nuser-invocable: true\nauto-trigger: false\ntrigger_keywords:\n  - preview\n  - screenshot\n  - visual check\n  - does it render\nlast-updated: 2026-03-21\n---\n\n# \u002Flive-preview — Build-Verify-Fix Loop\n\n## Prerequisites\n\nThis skill requires a screenshot tool. Supported:\n- **Playwright** (recommended): `npx playwright screenshot [url] [output.png]`\n- **Puppeteer**: via a small script\n- **Any tool that takes a URL and produces a screenshot**\n\nIf no screenshot tool is available, this skill will tell you what to install and exit.\n\n## When to Use\n\n- Any time .tsx, .jsx, .vue, .svelte, or .html files are modified\n- After component creation or replacement\n- During visual redesign campaigns\n- When Archon or Marshal delegate UI work\n\n## Protocol\n\n### Step 1: DETECT\n\nDetermine what needs visual verification:\n\n1. Check which files were modified in the current session\u002Fphase\n2. Filter to view-layer files (.tsx, .jsx, .vue, .svelte, .html, .css)\n3. **If no view-layer files found**: exit early with message\n   \"No view-layer files modified. Nothing to preview.\" Skip Steps 2-5.\n   This is expected for non-UI repos (CLI tools, libraries, agent harnesses).\n4. Map each modified file to a route or URL where it renders:\n   - If the project has a route manifest or sitemap, use it\n   - If the project has a dev server, identify which routes render the modified components\n   - If you can't determine the route, ask the user\n\n### Step 2: CAPTURE\n\nFor each route\u002FURL that needs verification:\n\n1. Ensure the dev server is running (start it if not)\n2. Take a screenshot:\n   ```bash\n   npx playwright screenshot http:\u002F\u002Flocalhost:{port}\u002F{route} .planning\u002Fscreenshots\u002F{route-slug}.png --full-page\n   ```\n3. If Playwright isn't available, try:\n   ```bash\n   # Check for playwright\n   npx playwright --version 2>\u002Fdev\u002Fnull\n   # If not found, inform the user:\n   # \"live-preview needs Playwright for screenshots. Install with: npm i -D playwright\"\n   ```\n\n### Step 3: VERIFY\n\nFor each screenshot:\n\n1. Read the screenshot (vision). Check:\n   - Does the component render? (not blank, not invisible)\n   - Does it show real data or placeholder\u002Fempty states?\n   - Are there obvious layout breaks (overlapping elements, overflow, missing sections)?\n   - Does it match the intended design direction?\n2. Record the result:\n   - PASS: renders correctly, matches expectations\n   - FAIL: describe what's wrong\n   - BLANK: nothing rendered (critical failure)\n\n### Step 4: FIX (if failures found)\n\nFor each FAIL or BLANK:\n\n1. Diagnose: is it a data issue, a rendering issue, or a missing import?\n2. Fix the root cause (not a band-aid)\n3. Re-capture and re-verify\n4. Maximum 2 fix attempts per component. If still failing, log it and move on.\n\n### Step 5: ARTIFACT\n\nSave verification artifacts:\n\n1. Screenshots go to `.planning\u002Fscreenshots\u002F{campaign-slug}\u002F` (if in a campaign)\n   or `.planning\u002Fscreenshots\u002F` (if standalone)\n2. In Codex, also register screenshots for the app artifact\u002Fbrowser workflow:\n   ```bash\n   node scripts\u002Fcodex-app-artifacts.js record --workflow live-preview --kind screenshot --path \".planning\u002Fscreenshots\u002F{route-slug}.png\" --status pass\n   ```\n3. Verify registered artifacts:\n   ```bash\n   node scripts\u002Fcodex-app-artifacts.js verify --require-artifacts\n   ```\n4. Write a verification summary:\n   ```markdown\n   ## Visual Verification: {date}\n\n   | Route | File Modified | Result | Notes |\n   |-------|--------------|--------|-------|\n   | \u002Fdashboard | Dashboard.tsx | PASS | Renders correctly |\n   | \u002Fsettings | SettingsPanel.tsx | FAIL → PASS | Fixed missing import, re-verified |\n   | \u002Fprofile | ProfileCard.tsx | BLANK → PASS | Component wasn't mounted, fixed export |\n   ```\n\n## Integration with Archon\n\nWhen Archon delegates a build phase that modifies view files:\n\n1. After the sub-agent completes, Archon invokes \u002Flive-preview on the modified routes\n2. If any route is BLANK or FAIL, the phase is NOT marked complete\n3. The fix cycle runs before proceeding to the next phase\n4. This is part of Archon's Step 4 (Self-Correction) quality spot-check\n\n## What This Prevents\n\n- **Invisible features** (postmortem #17) — compiles but renders nothing\n- **Layout regressions** — change in one component breaks another's layout\n- **Empty states shipped as features** — data not connected, UI renders skeleton\n- **\"Works on my machine\"** — screenshots are artifacts anyone can review\n\n## Fringe Cases\n\n- **Dev server is not running**: Offer to start it. Output: \"Dev server not detected on localhost:{port}. Start it with `npm run dev` or equivalent, then re-run \u002Flive-preview.\" Do not attempt screenshots against a dead server.\n- **Port is not 3000**: Check common alternatives (3001, 5173, 4173, 8080) before asking. Read `package.json` scripts for a `--port` flag or `PORT` env variable.\n- **Screenshot tool unavailable** (Playwright not installed): Output what to check manually — list the modified routes, describe what each should render, and suggest installing Playwright: `npm i -D playwright`. Exit gracefully without crashing.\n- **`.planning\u002Fscreenshots\u002F` does not exist**: Create the directory before writing artifacts. Never error on a missing output directory.\n- **No view-layer files modified**: Exit immediately with \"No view-layer files modified. Nothing to preview.\" This is expected and correct for non-UI repos.\n\n## Contextual Gates\n\n**Disclosure:** \"Taking screenshots for visual verification. Images saved to `.planning\u002Fscreenshots\u002F`.\"\n**Reversibility:** green — screenshots only; saves to `.planning\u002Fscreenshots\u002F`. No source files modified.\n**Trust gates:**\n- Any: full screenshot capture, verify, and fix workflow.\n\n## Quality Gates\n\n- Every modified view file must have a corresponding screenshot\n- BLANK results are critical failures (never acceptable)\n- Screenshots must be saved as artifacts (not just checked and discarded)\n- Fix attempts capped at 2 per component (prevent infinite loops)\n\n## Exit Protocol\n\n```\n---HANDOFF---\n- Live Preview: {N} routes verified\n- Results: {pass}\u002F{total} passed\n- Failures: {list of routes that failed and what was wrong}\n- Screenshots: .planning\u002Fscreenshots\u002F{path}\n- Reversibility: green — delete .planning\u002Fscreenshots\u002F to remove artifacts; no source files modified\n---\n```\n","# \u002Flive-preview — Build-Verify-Fix Loop\n\n## Prerequisites\n\nThis skill requires a screenshot tool. Supported:\n- **Playwright** (recommended): `npx playwright screenshot [url] [output.png]`\n- **Puppeteer**: via a small script\n- **Any tool that takes a URL and produces a screenshot**\n\nIf no screenshot tool is available, this skill will tell you what to install and exit.\n\n## When to Use\n\n- Any time .tsx, .jsx, .vue, .svelte, or .html files are modified\n- After component creation or replacement\n- During visual redesign campaigns\n- When Archon or Marshal delegate UI work\n\n## Protocol\n\n### Step 1: DETECT\n\nDetermine what needs visual verification:\n\n1. Check which files were modified in the current session\u002Fphase\n2. Filter to view-layer files (.tsx, .jsx, .vue, .svelte, .html, .css)\n3. **If no view-layer files found**: exit early with message\n   \"No view-layer files modified. Nothing to preview.\" Skip Steps 2-5.\n   This is expected for non-UI repos (CLI tools, libraries, agent harnesses).\n4. Map each modified file to a route or URL where it renders:\n   - If the project has a route manifest or sitemap, use it\n   - If the project has a dev server, identify which routes render the modified components\n   - If you can't determine the route, ask the user\n\n### Step 2: CAPTURE\n\nFor each route\u002FURL that needs verification:\n\n1. Ensure the dev server is running (start it if not)\n2. Take a screenshot:\n   ```bash\n   npx playwright screenshot http:\u002F\u002Flocalhost:{port}\u002F{route} .planning\u002Fscreenshots\u002F{route-slug}.png --full-page\n   ```\n3. If Playwright isn't available, try:\n   ```bash\n   # Check for playwright\n   npx playwright --version 2>\u002Fdev\u002Fnull\n   # If not found, inform the user:\n   # \"live-preview needs Playwright for screenshots. Install with: npm i -D playwright\"\n   ```\n\n### Step 3: VERIFY\n\nFor each screenshot:\n\n1. Read the screenshot (vision). Check:\n   - Does the component render? (not blank, not invisible)\n   - Does it show real data or placeholder\u002Fempty states?\n   - Are there obvious layout breaks (overlapping elements, overflow, missing sections)?\n   - Does it match the intended design direction?\n2. Record the result:\n   - PASS: renders correctly, matches expectations\n   - FAIL: describe what's wrong\n   - BLANK: nothing rendered (critical failure)\n\n### Step 4: FIX (if failures found)\n\nFor each FAIL or BLANK:\n\n1. Diagnose: is it a data issue, a rendering issue, or a missing import?\n2. Fix the root cause (not a band-aid)\n3. Re-capture and re-verify\n4. Maximum 2 fix attempts per component. If still failing, log it and move on.\n\n### Step 5: ARTIFACT\n\nSave verification artifacts:\n\n1. Screenshots go to `.planning\u002Fscreenshots\u002F{campaign-slug}\u002F` (if in a campaign)\n   or `.planning\u002Fscreenshots\u002F` (if standalone)\n2. In Codex, also register screenshots for the app artifact\u002Fbrowser workflow:\n   ```bash\n   node scripts\u002Fcodex-app-artifacts.js record --workflow live-preview --kind screenshot --path \".planning\u002Fscreenshots\u002F{route-slug}.png\" --status pass\n   ```\n3. Verify registered artifacts:\n   ```bash\n   node scripts\u002Fcodex-app-artifacts.js verify --require-artifacts\n   ```\n4. Write a verification summary:\n   ```markdown\n   ## Visual Verification: {date}\n\n   | Route | File Modified | Result | Notes |\n   |-------|--------------|--------|-------|\n   | \u002Fdashboard | Dashboard.tsx | PASS | Renders correctly |\n   | \u002Fsettings | SettingsPanel.tsx | FAIL → PASS | Fixed missing import, re-verified |\n   | \u002Fprofile | ProfileCard.tsx | BLANK → PASS | Component wasn't mounted, fixed export |\n   ```\n\n## Integration with Archon\n\nWhen Archon delegates a build phase that modifies view files:\n\n1. After the sub-agent completes, Archon invokes \u002Flive-preview on the modified routes\n2. If any route is BLANK or FAIL, the phase is NOT marked complete\n3. The fix cycle runs before proceeding to the next phase\n4. This is part of Archon's Step 4 (Self-Correction) quality spot-check\n\n## What This Prevents\n\n- **Invisible features** (postmortem #17) — compiles but renders nothing\n- **Layout regressions** — change in one component breaks another's layout\n- **Empty states shipped as features** — data not connected, UI renders skeleton\n- **\"Works on my machine\"** — screenshots are artifacts anyone can review\n\n## Fringe Cases\n\n- **Dev server is not running**: Offer to start it. Output: \"Dev server not detected on localhost:{port}. Start it with `npm run dev` or equivalent, then re-run \u002Flive-preview.\" Do not attempt screenshots against a dead server.\n- **Port is not 3000**: Check common alternatives (3001, 5173, 4173, 8080) before asking. Read `package.json` scripts for a `--port` flag or `PORT` env variable.\n- **Screenshot tool unavailable** (Playwright not installed): Output what to check manually — list the modified routes, describe what each should render, and suggest installing Playwright: `npm i -D playwright`. Exit gracefully without crashing.\n- **`.planning\u002Fscreenshots\u002F` does not exist**: Create the directory before writing artifacts. Never error on a missing output directory.\n- **No view-layer files modified**: Exit immediately with \"No view-layer files modified. Nothing to preview.\" This is expected and correct for non-UI repos.\n\n## Contextual Gates\n\n**Disclosure:** \"Taking screenshots for visual verification. Images saved to `.planning\u002Fscreenshots\u002F`.\"\n**Reversibility:** green — screenshots only; saves to `.planning\u002Fscreenshots\u002F`. No source files modified.\n**Trust gates:**\n- Any: full screenshot capture, verify, and fix workflow.\n\n## Quality Gates\n\n- Every modified view file must have a corresponding screenshot\n- BLANK results are critical failures (never acceptable)\n- Screenshots must be saved as artifacts (not just checked and discarded)\n- Fix attempts capped at 2 per component (prevent infinite loops)\n\n## Exit Protocol\n\n```\n---HANDOFF---\n- Live Preview: {N} routes verified\n- Results: {pass}\u002F{total} passed\n- Failures: {list of routes that failed and what was wrong}\n- Screenshots: .planning\u002Fscreenshots\u002F{path}\n- Reversibility: green — delete .planning\u002Fscreenshots\u002F to remove artifacts; no source files modified\n---\n```\n",{"name":5,"license":15,"description":7,"auto-trigger":20,"last-updated":24,"user-invocable":25,"trigger_keywords":26},1774051200000,true,[27,28,29,30],"preview","screenshot","visual check","does it render","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Flive-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":40,"prompt":50,"zipAvailable":25},[41,44,47],{"tool":42,"command":43},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill live-preview",{"tool":45,"command":46},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill live-preview",{"tool":48,"command":49},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill live-preview","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Flive-preview\u002FSKILL.md",[52,58],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"__benchmarks__\u002Fno-server.md","REFERENCE","参考文档",989,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Flive-preview\u002F__benchmarks__\u002Fno-server.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"__benchmarks__\u002Fvisual-verify-pass.md",1020,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Flive-preview\u002F__benchmarks__\u002Fvisual-verify-pass.md",[63,70,75,82,89,96],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"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":71,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"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":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"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":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"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":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"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",[],[]]