[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F83RC3KFE7D7A1JW2A0P89":3,"skill-same:01M7F83RC3KFE7D7A1JW2A0P89":66},{"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":34,"commitSha":35,"skillDirectory":36,"forksCount":14,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M7F83RC3KFE7D7A1JW2A0P89","ssr-web-app-development",null,"Use when editing a server-rendered web UI.","chaorenex1\u002Fhermes-home-content","chaorenex1","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F23194925?v=4","01M7F5NA1D1D02R2MEMYQN2NZT","chan chan","01M7F5NA20KTHMTY2015CYM1TZ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Fssr-web-app-development\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\r\nname: ssr-web-app-development\r\ndescription: \"Use when editing a server-rendered web UI.\"\r\nversion: 1.0.0\r\nauthor: Masia\r\nlicense: MIT\r\nmetadata:\r\n  hermes:\r\n    tags: [frontend, ssr, testing]\r\n    related_skills: [browser-qa]\r\n---\r\n\r\n# SSR Web App Development\r\n\r\nServer-rendered React fails quietly. A render-time exception is often caught by the page handler and replaced with a client-only shell, so the browser looks correct while SSR is gone. Treat SSR output as a separate deliverable and verify it every time a rendered component changes.\r\n\r\n## When to Use\r\n\r\n- A server-rendered component starts reading a new config or environment field.\r\n- A page looks correct in a browser but the server HTML is only an empty shell.\r\n- Adding a page, route, or interactive panel to a React SSR app.\r\n- A share or file-upload panel must emit direct, HTML, and Markdown links.\r\n- Adding SSR HTML regression coverage after a UI change.\r\n\r\n## Workflow\r\n\r\n1. Map the render path before editing.\r\n   - Find the SSR entry (for example `worker\u002Fpages\u002Findex.ts`, `server\u002Frender.tsx`, a Next server component, or a framework route).\r\n   - Read the exact props or config object passed into the component tree.\r\n   - Find any `try\u002Fcatch` around `renderToString`; that catch is where failures become an invisible CSR fallback.\r\n\r\n2. Add every render-time config read to the SSR config object.\r\n   - If a component starts reading `config.FIELD`, add `FIELD` to the server-side config literal. Adding it only to `wrangler.toml`, `.env`, or the client bundle is not enough.\r\n   - Search the frontend for `config\\.[A-Z_]+` after adding a field.\r\n   - A missing field usually throws inside `.trim()`, `Number()`, or destructuring, not at the type checker.\r\n   - Keep SSR and client values identical. A dev server that injects `localhost` while the client bundle was built with a public URL produces wrong links and API calls after hydration.\r\n\r\n3. Prove SSR with a browser-like request.\r\n   - `curl -s -H 'User-Agent: Mozilla\u002F5.0' http:\u002F\u002Flocalhost:PORT\u002F | grep -F '\u003Cnew heading>'`\r\n   - Many apps serve markdown or JSON to curl; a browser UA is required for the HTML path.\r\n   - A screenshot is not proof: CSR fallback renders the same UI.\r\n   - Add a regression test asserting the HTML contains `\u003Cdiv id=\"root\">` and a stable component marker.\r\n   - React inserts `\u003C!-- -->` between adjacent JSX text nodes. Assert a substring such as `256 MB`, not the joined sentence `256 MB per upload`.\r\n\r\n4. Build in dependency order.\r\n   - Build the client bundle before worker or SSR tests that read an SSR manifest.\r\n   - Run typecheck, lint, tests, client build, and server\u002Fdeploy dry-run as separate gates. A passing client build does not prove the SSR render runs.\r\n\r\n5. Verify the client-only path separately.\r\n   - SSR proof does not exercise upload, form, or API interactions.\r\n   - For a local app tested through a Docker-hosted browser, load the `browser-qa` skill and its `local-dev-containerized-browser` reference.\r\n   - For MSW + jsdom multipart XHR hangs, see `references\u002Fmsw-jsdom-multipart.md`.\r\n\r\n## References\r\n\r\n- `references\u002Fmsw-jsdom-multipart.md` - forcing the fetch path when MSW XHR multipart responses never dispatch `load`.\r\n- `references\u002Fshare-link-formats.md` - content-kind detection and the direct\u002FHTML\u002FMarkdown embed matrix.\r\n- `browser-qa` skill, `local-dev-containerized-browser` reference - page and API access plus file-upload simulation through a Docker-hosted browser.\r\n\r\n## Pitfalls\r\n\r\n- **Silent CSR fallback**: the handler catches the SSR error and returns a valid 200 shell. Only an HTML assertion detects it.\r\n- **Narrow SSR config**: SSR entries often pass a hand-built subset of the runtime env. Every new UI field must be added there.\r\n- **Build-time client config**: client values are baked at build time, server values are read at request time. Rebuild after changing a deploy URL or `define`.\r\n- **Exact SSR text assertions**: React comments split interpolated text. Use `toContain` on a stable fragment.\r\n- **Test timeout masking**: keep `waitFor` below the test timeout so failures name the missing element instead of timing out the test.\r\n\r\n## Verification checklist\r\n\r\n- [ ] Every new `config.*` read exists in the SSR config object\r\n- [ ] Browser-UA curl shows the new marker in server HTML\r\n- [ ] SSR regression test passes\r\n- [ ] Client bundle built before SSR\u002Fworker tests\r\n- [ ] Real browser exercised the client-only interaction\r\n","# SSR Web App Development\r\n\r\nServer-rendered React fails quietly. A render-time exception is often caught by the page handler and replaced with a client-only shell, so the browser looks correct while SSR is gone. Treat SSR output as a separate deliverable and verify it every time a rendered component changes.\r\n\r\n## When to Use\r\n\r\n- A server-rendered component starts reading a new config or environment field.\r\n- A page looks correct in a browser but the server HTML is only an empty shell.\r\n- Adding a page, route, or interactive panel to a React SSR app.\r\n- A share or file-upload panel must emit direct, HTML, and Markdown links.\r\n- Adding SSR HTML regression coverage after a UI change.\r\n\r\n## Workflow\r\n\r\n1. Map the render path before editing.\r\n   - Find the SSR entry (for example `worker\u002Fpages\u002Findex.ts`, `server\u002Frender.tsx`, a Next server component, or a framework route).\r\n   - Read the exact props or config object passed into the component tree.\r\n   - Find any `try\u002Fcatch` around `renderToString`; that catch is where failures become an invisible CSR fallback.\r\n\r\n2. Add every render-time config read to the SSR config object.\r\n   - If a component starts reading `config.FIELD`, add `FIELD` to the server-side config literal. Adding it only to `wrangler.toml`, `.env`, or the client bundle is not enough.\r\n   - Search the frontend for `config\\.[A-Z_]+` after adding a field.\r\n   - A missing field usually throws inside `.trim()`, `Number()`, or destructuring, not at the type checker.\r\n   - Keep SSR and client values identical. A dev server that injects `localhost` while the client bundle was built with a public URL produces wrong links and API calls after hydration.\r\n\r\n3. Prove SSR with a browser-like request.\r\n   - `curl -s -H 'User-Agent: Mozilla\u002F5.0' http:\u002F\u002Flocalhost:PORT\u002F | grep -F '\u003Cnew heading>'`\r\n   - Many apps serve markdown or JSON to curl; a browser UA is required for the HTML path.\r\n   - A screenshot is not proof: CSR fallback renders the same UI.\r\n   - Add a regression test asserting the HTML contains `\u003Cdiv id=\"root\">` and a stable component marker.\r\n   - React inserts `\u003C!-- -->` between adjacent JSX text nodes. Assert a substring such as `256 MB`, not the joined sentence `256 MB per upload`.\r\n\r\n4. Build in dependency order.\r\n   - Build the client bundle before worker or SSR tests that read an SSR manifest.\r\n   - Run typecheck, lint, tests, client build, and server\u002Fdeploy dry-run as separate gates. A passing client build does not prove the SSR render runs.\r\n\r\n5. Verify the client-only path separately.\r\n   - SSR proof does not exercise upload, form, or API interactions.\r\n   - For a local app tested through a Docker-hosted browser, load the `browser-qa` skill and its `local-dev-containerized-browser` reference.\r\n   - For MSW + jsdom multipart XHR hangs, see `references\u002Fmsw-jsdom-multipart.md`.\r\n\r\n## References\r\n\r\n- `references\u002Fmsw-jsdom-multipart.md` - forcing the fetch path when MSW XHR multipart responses never dispatch `load`.\r\n- `references\u002Fshare-link-formats.md` - content-kind detection and the direct\u002FHTML\u002FMarkdown embed matrix.\r\n- `browser-qa` skill, `local-dev-containerized-browser` reference - page and API access plus file-upload simulation through a Docker-hosted browser.\r\n\r\n## Pitfalls\r\n\r\n- **Silent CSR fallback**: the handler catches the SSR error and returns a valid 200 shell. Only an HTML assertion detects it.\r\n- **Narrow SSR config**: SSR entries often pass a hand-built subset of the runtime env. Every new UI field must be added there.\r\n- **Build-time client config**: client values are baked at build time, server values are read at request time. Rebuild after changing a deploy URL or `define`.\r\n- **Exact SSR text assertions**: React comments split interpolated text. Use `toContain` on a stable fragment.\r\n- **Test timeout masking**: keep `waitFor` below the test timeout so failures name the missing element instead of timing out the test.\r\n\r\n## Verification checklist\r\n\r\n- [ ] Every new `config.*` read exists in the SSR config object\r\n- [ ] Browser-UA curl shows the new marker in server HTML\r\n- [ ] SSR regression test passes\r\n- [ ] Client bundle built before SSR\u002Fworker tests\r\n- [ ] Real browser exercised the client-only interaction\r\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"description":7},"Masia","1.0.0",{"hermes":27},{"tags":28,"related_skills":32},[29,30,31],"frontend","ssr","testing",[33],"browser-qa","main","a3f3199bb87ec3c91248f68a39d88527e1847ae9","skills\u002Fssr-web-app-development","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content","https:\u002F\u002Fgithub.com\u002Fchaorenex1","https:\u002F\u002Fblog.aduib.com","A programmer whose only hobby in life is coding","2026-10-20 00:34:32",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add chaorenex1\u002Fhermes-home-content --skill ssr-web-app-development",{"tool":48,"command":49},"bunx","bunx skills add chaorenex1\u002Fhermes-home-content --skill ssr-web-app-development",{"tool":51,"command":52},"pnpm","pnpm dlx skills add chaorenex1\u002Fhermes-home-content --skill ssr-web-app-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Fssr-web-app-development\u002FSKILL.md",true,[56,62],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fmsw-jsdom-multipart.md","REFERENCE","参考文档",996,"https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Fssr-web-app-development\u002Freferences\u002Fmsw-jsdom-multipart.md",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fshare-link-formats.md",3547,"https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Fssr-web-app-development\u002Freferences\u002Fshare-link-formats.md",[67,74,81,88,95,102],{"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},"01M7F8GF32YD5MBQW2TGSRH1YP","web-retrieval-resilience","Web tools fail or search rules break: repair or fall back.","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fweb-retrieval-resilience\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},"01M7F8FP46QESQMCZ1KBT3TW3R","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall.","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fblocked-page-recovery\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},"01M7F8ER6VXHBNVRQBZS7X08SE","verification-loop","Run a six-phase verification of a Claude Code session's work — build, type check, lint, tests with coverage, security grep, and diff review — then produce a PASS\u002FFAIL verification report. Use when verifying work after completing a feature or refactor, before creating a PR, or when quality gates must pass.","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7F8E4BQJ38KVQVM3MT20PYV","unreal-world-builder","开放世界与环境专家——精通 UE5 World Partition、Landscape、程序化植被、HLOD 和大规模关卡流式加载，打造无缝开放世界体验","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Funreal-engine\u002Funreal-world-builder\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7F8D747SQW2FTP7GBSX38BR","unreal-technical-artist","Unreal Engine 视觉管线专家——精通材质编辑器、Niagara 特效、程序化内容生成和 UE5 项目的美术到引擎管线","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Funreal-engine\u002Funreal-technical-artist\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7F8CKHYJVZVBTN0321J88T2","unreal-systems-engineer","性能与混合架构专家——精通 C++\u002FBlueprint 边界、Nanite 几何体、Lumen GI 和 Gameplay Ability System，面向 AAA 级 Unreal Engine 项目","https:\u002F\u002Fgithub.com\u002Fchaorenex1\u002Fhermes-home-content\u002Fblob\u002Fmain\u002Fskills\u002Funreal-engine\u002Funreal-systems-engineer\u002FSKILL.md",[],[]]