[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EDQCVPW83KEAHHDZPW23ZM":3,"skill-same:01M7EDQCVPW83KEAHHDZPW23ZM":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M7EDQCVPW83KEAHHDZPW23ZM","web-page-rebuild",null,"jonahthan433\u002FCortexOS","jonahthan433","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F211465495?v=4","01M7ECH9HPHGA89DCXHHJBTS3C","jonah.ai","01M7ECH9JCEM45DZMWPT7148S1",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fweb-page-rebuild\u002Fweb-page-rebuild\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# web-page-rebuild\n\n# Web Page Rebuild (token-faithful, slop-free, visually verified)\n\n## When to use\n- \"Rebuild this landing page\", \"clone this site's style\", \"make our page look like X\"\n- \"restyle using exact colors\u002Ffonts from Y\", or the user pastes screenshots and says \"make it look like this\"\n- Any task where fidelity to a live reference matters and you must NOT guess the design system.\n\n## Workflow (in order)\n\n### 1. Extract exact design tokens — never guess\nThe reference's real colors\u002Ffonts\u002Fspacing live in its CSS, not in your memory.\n```bash\ncurl -sSL \u003Csite>\u002F -o page.html\n# find the stylesheet href in page.html, then:\ncurl -sSL \u003Csite>\u002F\u003Ccss-path> -o site.css\n```\nParse with Python (regex on `:root{--var:...}` + component rules) to pull: color tokens, font families + weights (often a Google Fonts `@import`), base type scale, spacing rhythm, layout grid. Also extract the real copy\u002FIA — nav labels, section headings, code snippets, endpoint lists — via script, not by eye. See `references\u002Fdesign-token-extraction.md`.\n\n### 2. Rebuild as a single self-contained .html\n- One file. Inline `\u003Cstyle>`, minimal vanilla JS. No framework, no build step (YAGNI).\n- Use the EXACT tokens from step 1 — same hex, same font stack, same spacing. `#0a0a0a` vs `#000` is visibly different.\n- KILL slop by default: drop fake \"Sign up\" funnel modals, upsell banners, hero animations, marketing prose, redundant \"copy to LLM\" walls — UNLESS the reference screenshot shows them and the user wants parity (see Pitfalls).\n- Keep it functional where cheap: tab switching, copy buttons, a real fetch that surfaces 402.\n\n### 3. Verify by RENDERING and LOOKING — never claim done unseen\nIf `browser_exec` works, use it. If it reports `chrome-not-running` \u002F no supported browser, install headless Chromium via Playwright (see `references\u002Fvisual-verification.md`) and render to PNG, then `vision_analyze` with a specific question (layout regions, overlaps, text overflow, broken styles, truncation). Don't declare success until vision confirms no defects.\n\n### 4. Match parity when the user sends screenshots\nIf the user pastes screenshots and says \"make it look like this\", they want CONTENT parity, not a stripped minimal version. My first rebuild over-stripped the Agent tab (removed the system-prompt block, tutorials, rate-limit bullets) thinking they were slop — the user corrected by sending the real screenshots. Lesson: strip only chrome\u002Fdecoration; keep every content section the reference shows. Match structure 1:1.\n\n## Pitfalls\n- **Full-page screenshots clip scrollable content.** A `height:100vh` grid + `overflow:hidden` app shell (very common) makes `full_page=True` screenshots cut off mid-content. Inject a capture-only style override before shooting: `.app{height:auto!important} main,.tab-content,.scroll{overflow:visible!important}`. Verification artifact only — never edit the real CSS for this.\n- **Don't trust a viewport screenshot for \"is text cut off?\"** It only shows the fold. Expand + full-page (with the override) to confirm.\n- **No browser \u002F display available — curl-CSS extraction IS the valid path.**\n  If `computer_use` reports \"no DISPLAY \u002F X11 not reachable\" and `browser_exec`\n  reports \"chrome-not-running\", you CANNOT render. Do NOT claim a visual check\n  you didn't do. Instead: (1) `curl` the page + its CSS bundle, extract `:root`\n  tokens + component rules (step 1) — this is pixel-accurate for\n  colors\u002Ffonts\u002Fspacing; (2) verify the LIVE result by `curl`-ing the deployed\n  URL and grepping for the tokens you set (`grep -oE '--bg:#0a0a0a|--orange:#ff5500'`)\n  plus a slop grep (`grep -ciE 'Powered by|seamless'`) to prove the old\u002Fstale\n  version isn't still served (a stale deploy often means a git-divergent prod —\n  see the cortexcloud-api-dev drift guard). That combination is a legitimate\n  \"see exactly\" verification when no renderer exists. Only say \"rendered and\n  visually confirmed\" if you actually rendered.\n- **Guessing tokens = wrong fidelity.** Always curl the real CSS.\n- **AI slop ≠ reference content.** \"Agent System Prompt\" blocks, endpoint tables, payment-rail tutorials are content, not slop. Only kill decorative\u002Fmarketing chrome.\n- **Verify the live API contract if you wire calls.** A real `POST` to the reference returned `x402Version:2, accepts[].scheme=exact, network:eip155:8453, amount:10000` (= $0.01 USDC) — my frontend's 402 handling matched. Smoke-test before claiming done.\n\n## References\n- `references\u002Fvisual-verification.md` — Playwright install + render + vision_verify recipe, clipping fix, mobile capture.\n- `references\u002Fdesign-token-extraction.md` — Python snippet to pull `:root` vars + component rules from minified CSS.\n- `scripts\u002Frender_page.py` — reusable render-to-PNG (desktop + mobile + expanded full-page).\n\n## Output discipline (user prefers terse, token-faithful)\nRebuild first, then 1–3 lines on what was skipped and when to add it. No essays, no design tours.\n",{},"main","38b32c99e7ed0b8e215d638e92cfa452c1ec3079","skills\u002Fimported\u002Fweb-page-rebuild\u002Fweb-page-rebuild","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS","https:\u002F\u002Fgithub.com\u002Fjonahthan433","AI Consultant","2026-10-24 05:13:39",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add jonahthan433\u002FCortexOS --skill web-page-rebuild",{"tool":35,"command":36},"bunx","bunx skills add jonahthan433\u002FCortexOS --skill web-page-rebuild",{"tool":38,"command":39},"pnpm","pnpm dlx skills add jonahthan433\u002FCortexOS --skill web-page-rebuild","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fweb-page-rebuild\u002Fweb-page-rebuild\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"skill.json","REFERENCE","参考文档",600,"https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fweb-page-rebuild\u002Fweb-page-rebuild\u002Fskill.json",[50,56,62,68,74,80],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M7EDQZDQX3Q8Y7GCQX6KN9V7","opportunity-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fsales\u002Fopportunity-brief\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7EDQYA0V9Y99VKBREJJ3MRT","morning-intel","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fmorning-intel\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EDQVX1JVY0B6PDHKKGM19G","decision-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fdecision-brief\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7EDQV1GENZAC2SZSD8KZ3GM","weekly-review","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fweekly-review\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7EDQT2KETJ1Y3CGVN9EKW2J","system-health","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fsystem-health\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EDQQN2JK3XPWMS1M4T0F3K","backup-restore","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fbackup-restore\u002FSKILL.md",[],[]]