[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GXNS643K4RBRD1XTQN8Q61":3,"skill-same:01M6GXNS643K4RBRD1XTQN8Q61":81},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":54,"ownerDescription":56,"updatedAt":57,"install":58,"resources":70},"01M6GXNS643K4RBRD1XTQN8Q61","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.","SethGammon\u002FCitadel","SethGammon","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F5523585?v=4","01M6GXJ90FD2CE9QF5GQERWN06","Seth Gammon","01M6GXJ94VXYGK5KAW14EYE901",931,"MIT","https:\u002F\u002Fgithub.com\u002FSethGammon\u002FCitadel\u002Fblob\u002Fmain\u002Fskills\u002Flive-preview\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"live preview","live","preview","visual verification","true","render","false","visual","compound","build","screenshots","check","just","tool","verification loop","loop","screenshot","verification","components","playwright","2026-11-10 10:12:30",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":40,"last-updated":44,"user-invocable":45,"trigger_keywords":46},1774051200000,true,[21,35,47,48],"visual check","does it render","main","e1a3d45697a0f323aaedcbea0ab6a0387b5fe722","skills\u002Flive-preview",84,"https:\u002F\u002Fgithub.com\u002FSethGammon\u002FCitadel","https:\u002F\u002Fsethgammon.github.io\u002FCitadel\u002F","https:\u002F\u002Fgithub.com\u002FSethGammon","Building Citadel, the repo-local operating layer for Claude Code and Codex. Persistent work, routing, verification, and coordinated agent fleets.","2026-11-13 02:05:13",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":45},[60,63,66],{"tool":61,"command":62},"npx","npx skills add SethGammon\u002FCitadel --skill live-preview",{"tool":64,"command":65},"bunx","bunx skills add SethGammon\u002FCitadel --skill live-preview",{"tool":67,"command":68},"pnpm","pnpm dlx skills add SethGammon\u002FCitadel --skill live-preview","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSethGammon\u002FCitadel\u002Fblob\u002Fmain\u002Fskills\u002Flive-preview\u002FSKILL.md",[71,77],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"__benchmarks__\u002Fno-server.md","REFERENCE","参考文档",989,"https:\u002F\u002Fgithub.com\u002FSethGammon\u002FCitadel\u002Fblob\u002Fmain\u002Fskills\u002Flive-preview\u002F__benchmarks__\u002Fno-server.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"__benchmarks__\u002Fvisual-verify-pass.md",1020,"https:\u002F\u002Fgithub.com\u002FSethGammon\u002FCitadel\u002Fblob\u002Fmain\u002Fskills\u002Flive-preview\u002F__benchmarks__\u002Fvisual-verify-pass.md",[82,107,131,155,176,195],{"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":39},"01M6GXSBKE9A2HQWF8QRAZ4WJ5","workspace","Multi-repo campaign coordinator. Same lifecycle as fleet -- scope claims, discovery relay, wave-based execution -- but the unit of work is a repo, not a file. Coordinates campaigns across repositories with shared context.","https:\u002F\u002Fgithub.com\u002FSethGammon\u002FCitadel\u002Fblob\u002Fmain\u002Fskills\u002Fworkspace\u002FSKILL.md",[],[84,89,90,91,92,93,94,95,96,97,98,99,100,25,101,102,103,104,105,106],"repos","snowflake","multi-repo","work","context","campaign","coordinate","but","across","campaigns","shared","as","scope","add","unit","coordinator","fleet","claims",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":39},"01M6GXS873AD1Y6RTM6GV47F3E","wiki","Markdown-first knowledge base where the LLM acts as librarian. Ingests raw sources, compiles and interlinks topic files, self-maintains an index. No vector DB or embeddings required -- uses LLM-native navigation over structured markdown up to ~400K words.","https:\u002F\u002Fgithub.com\u002FSethGammon\u002FCitadel\u002Fblob\u002Fmain\u002Fskills\u002Fwiki\u002FSKILL.md",[],[109,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,100,25,129,130],"vector","embeddings","librarian","markdown","knowledge","karpathy","knowledge management","karpathy wiki","up","files","maintain","self","knowledge base","project","db","sources","native",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":39},"01M6GXS2840SJ61285SZ43EJC3","watch","File sentinel that monitors the working directory for changes and marker comments, then auto-triggers appropriate skills. Poll-based via git diff against the last scan commit. Writes intake items for batch processing and routes marker actions through \u002Fdo. Use for automatic reactions to file changes; do NOT use for one-off inspection or tasks needing human judgment per file.","https:\u002F\u002Fgithub.com\u002FSethGammon\u002FCitadel\u002Fblob\u002Fmain\u002Fskills\u002Fwatch\u002FSKILL.md",[],[133,138,139,140,141,142,143,144,145,146,147,148,123,149,150,151,152,153,25,154],"directory","commit","tasks","git","batch","actions","start","sentinel","diff","auto","stop","do","scan","human","judgment","reactions","processing",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":39},"01M6GXRXHYJ5RD9RZP81S2VFSW","verify","Self-test the Citadel hook pipeline from within a live session. Exercises real tool calls (Write, Edit, Bash, Read) and checks that hooks fired, telemetry accumulated, and no errors occurred. Reports HOOK HEALTH: PASS or HOOK HEALTH: FAIL with a per-hook breakdown.","https:\u002F\u002Fgithub.com\u002FSethGammon\u002FCitadel\u002Fblob\u002Fmain\u002Fskills\u002Fverify\u002FSKILL.md",[],[157,162,163,164,165,166,32,167,168,169,170,171,172,125,20,25,173,174,175,23],"citadel","telemetry","harness","pipeline","Bash","read","write","edit","session","hooks","reports","hook","errors","calls",{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":39},"01M6GXRS9MCJFMQZ917H2XH3AC","unharness","Safely leave Citadel using the active adoption receipt. Produces a no-write, reviewable plan, preserves a portable archive, removes only exact owned material, and reports modified or externally registered surfaces as retained or unknown. Legacy installs must be imported before exact leave is claimed.","https:\u002F\u002Fgithub.com\u002FSethGammon\u002FCitadel\u002Fblob\u002Fmain\u002Fskills\u002Funharness\u002FSKILL.md",[],[178,183,162,164,184,185,186,187,188,122,172,189,190,191,192,193,100,25,194,23],"uninstall","adoption","plan","archive","remove","only","Legacy","surfaces","clean","imported","active","material",{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":201,"publishedAt":39},"01M6GXRMEJ2VHD43R9FNPD4910","triage","GitHub issue and PR investigator. Pulls open issues\u002FPRs, classifies them, searches the codebase for root cause or reviews contributed code, proposes fixes with file:line references, and optionally implements fixes. Use for investigating GitHub issues and reviewing PRs; do NOT use for general code review unrelated to GitHub issues.","https:\u002F\u002Fgithub.com\u002FSethGammon\u002FCitadel\u002Fblob\u002Fmain\u002Fskills\u002Ftriage\u002FSKILL.md",[],[197,202,203,204,205,206,207,208,209,210,211,212,213,214,149,25,215,216,217,23],"code review","review","review pr","pr","code","github issues","issues","open","use","unrelated","issue","general","references","line","investigator","reviews"]