[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74XNJEPVG8FVMYX2F53VJ8J":3,"skill-same:01M74XNJEPVG8FVMYX2F53VJ8J":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M74XNJEPVG8FVMYX2F53VJ8J","subpage-nav-anchor-baseurl-ssr-label-drift",null,"Shared nav\u002Fskip-link `href=\"#section\"` resolves to a dead URL like `\u002Frepo\u002Fupdates\u002F#work` the moment a single-page static site (Astro\u002FSSG under a base path, e.g. GitHub Pages `base: '\u002Frepo\u002F'`) grows a second page, and an SSR-rendered label (\"Theme · Light\") stays wrong until hydration (or forever with JS off) after the client-side default it mirrors gets flipped. Use when adding page N+1 to a 1-page site, reviewing a shared header\u002Fnav\u002Fskip-link component on a base-path-hosted static site, or changing any client-side default (theme, locale, sort order) that has an SSR-rendered reflection.","abhijitbansal\u002Fclaude-skills","abhijitbansal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F271802621?v=4","01M74XA5M33XYNJ2D2TJDS7W9E","01M74XA5MQ8GMWJW10ZJ4V0NVG",1,"MIT","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fios-dev\u002Fskills\u002Fsubpage-nav-anchor-baseurl-ssr-label-drift\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: subpage-nav-anchor-baseurl-ssr-label-drift\ndescription: \"Shared nav\u002Fskip-link `href=\\\"#section\\\"` resolves to a dead URL like `\u002Frepo\u002Fupdates\u002F#work` the moment a single-page static site (Astro\u002FSSG under a base path, e.g. GitHub Pages `base: '\u002Frepo\u002F'`) grows a second page, and an SSR-rendered label (\\\"Theme · Light\\\") stays wrong until hydration (or forever with JS off) after the client-side default it mirrors gets flipped. Use when adding page N+1 to a 1-page site, reviewing a shared header\u002Fnav\u002Fskip-link component on a base-path-hosted static site, or changing any client-side default (theme, locale, sort order) that has an SSR-rendered reflection.\"\n---\n\n# Multi-Page Static Site: Subpage Nav Anchors + SSR Default Drift\n\n## Symptom\n\n- Clicking a nav link that worked fine on the page it was written on now\n  404s or silently no-ops on a subpage — `href=\"#work\"` in a shared `Nav`\n  component resolves relative to the current URL, landing on\n  `\u002Frepo\u002Fupdates\u002F#work` instead of `\u002Frepo\u002F#work`.\n- A skip-link (or any in-page anchor) targets a section id that doesn't\n  exist on the current page\u002Fstate — sometimes because the target lives on\n  a different page, sometimes because the id is rendered only inside a\n  conditional branch and the empty state has no element with that id at\n  all.\n- A UI label rendered by the server is wrong on first paint — e.g. it says\n  `Theme · Light` even though the client script actually applies dark mode\n  by default — and stays wrong permanently if JavaScript is disabled.\n\nNone of these throw a build error. They ship clean and are caught by a\nhuman clicking around or reading the rendered HTML.\n\n## Root cause\n\nThree variants of the same underlying mistake — a shared component or a\nhardcoded string was authored against **one** page\u002Fstate and never\nre-verified when the site (or a client-side default) grew past it:\n\n1. **Bare `#section` hrefs are relative to the current document**, not the\n   site root. A shared `Nav` component's `href=\"#work\"` only resolves\n   correctly on the page that actually has `#work` in it. The moment the\n   site grows a second page, every other page's copy of that link is dead\n   — it just isn't dead on the page where it was first written and tested.\n2. **Skip links \u002F anchor targets assume the target element always\n   renders.** Two ways this breaks: (a) a shared component points at a\n   section id that only exists on some pages (same root cause as #1 —\n   component blindness to which page it's rendered on), and (b) the\n   target id is emitted inside a conditional branch (\n   `weeks.length > 0 ? \u003Cdiv id=\"weeks\">… : null`), so the empty-state\n   render has no element with that id — the skip link is dead specifically\n   when there's nothing to skip to.\n3. **SSR-rendered text drifts from a client-side default after the\n   default is flipped.** The server renders a label\u002Faria-state that\n   mirrors a client-side default (e.g. theme). When that default changes\n   in the client script (light→dark), the hardcoded SSR string is a\n   separate, un-synced source of truth — it keeps saying the old value\n   until client JS runs, and forever if it doesn't.\n\n## Fix\n\n- Prefix every shared-nav section link with the site's base path so it\n  resolves the same from any page:\n  `href={`${import.meta.env.BASE_URL}#section`}`. On the page that already\n  has the section, this is same-URL-plus-hash (no reload); on every other\n  page it now navigates home first, then jumps to the section.\n- For shared components with page-dependent anchor targets (e.g.\n  `SkipLink`), make the target id and visible label **props** with\n  sensible defaults instead of hardcoding them — forces each usage site to\n  either confirm the default is correct or override it.\n- Anchor target ids must exist in **all** render states of the page,\n  including empty states — put the id on a wrapper element that always\n  renders, never inside the conditional branch that only renders when\n  there's content.\n- When adding page N+1 to what was a 1-page site, grep the whole shared\n  component tree for bare hash hrefs: `grep -rn 'href=\"#' src\u002F` — every\n  hit inside a shared component (not a page-local anchor) is a latent bug\n  the moment a second page exists.\n- When flipping a client-side default (theme, locale, sort order, etc.),\n  grep for the **old** default's literal rendered strings across\n  server-rendered markup — labels, `aria-*` state, alt text — e.g.\n  `Theme · Light` — and update them alongside the client-side flip. The\n  SSR string and the client default are two copies of the same fact; a\n  change to one without the other is the bug.\n\n## Evidence\n\nMined from an Astro site (a private web project) served under a GitHub Pages project base\npath (`base: '\u002Frepo\u002F'`), growing from one page to several. Three related\nfailure modes, all shipped and user-reported\u002Freview-caught:\n\n- `href=\"#work\"` in a shared `Nav` component resolved to\n  `\u002Frepo\u002Fupdates\u002F#work` on the subpage — dead URL, no way back — while\n  working fine on the page it was written for.\n- A skip link's target id, rendered only inside\n  `weeks.length > 0 ? \u003Cdiv id=\"weeks\">…` , was absent from the DOM in the\n  empty state, making the skip link a no-op exactly when the page had\n  nothing to skip to.\n- A theme default was flipped light→dark in the client script while the\n  server-rendered label still read `Theme · Light` — wrong until\n  hydration, permanently wrong with JS off.\n\n## Related skills\n\n- `github-pages-flat-deploy-subdir-404` — the base-path\u002Fsubdirectory\n  deploy context this bug family lives in.\n- `legal-pages-css-scoping-bleed` — another shared-component-on-a-growing-\n  site mined lesson from the same marketing-site family.\n- `site-pages-deploy-kit` — the deploy tooling for this site family; run\n  the grep sweeps in this skill before invoking it on a page-count change.\n- `site-og-favicon-verify` — sibling verification pass for other\n  per-page-metadata drift on the same sites.\n","# Multi-Page Static Site: Subpage Nav Anchors + SSR Default Drift\n\n## Symptom\n\n- Clicking a nav link that worked fine on the page it was written on now\n  404s or silently no-ops on a subpage — `href=\"#work\"` in a shared `Nav`\n  component resolves relative to the current URL, landing on\n  `\u002Frepo\u002Fupdates\u002F#work` instead of `\u002Frepo\u002F#work`.\n- A skip-link (or any in-page anchor) targets a section id that doesn't\n  exist on the current page\u002Fstate — sometimes because the target lives on\n  a different page, sometimes because the id is rendered only inside a\n  conditional branch and the empty state has no element with that id at\n  all.\n- A UI label rendered by the server is wrong on first paint — e.g. it says\n  `Theme · Light` even though the client script actually applies dark mode\n  by default — and stays wrong permanently if JavaScript is disabled.\n\nNone of these throw a build error. They ship clean and are caught by a\nhuman clicking around or reading the rendered HTML.\n\n## Root cause\n\nThree variants of the same underlying mistake — a shared component or a\nhardcoded string was authored against **one** page\u002Fstate and never\nre-verified when the site (or a client-side default) grew past it:\n\n1. **Bare `#section` hrefs are relative to the current document**, not the\n   site root. A shared `Nav` component's `href=\"#work\"` only resolves\n   correctly on the page that actually has `#work` in it. The moment the\n   site grows a second page, every other page's copy of that link is dead\n   — it just isn't dead on the page where it was first written and tested.\n2. **Skip links \u002F anchor targets assume the target element always\n   renders.** Two ways this breaks: (a) a shared component points at a\n   section id that only exists on some pages (same root cause as #1 —\n   component blindness to which page it's rendered on), and (b) the\n   target id is emitted inside a conditional branch (\n   `weeks.length > 0 ? \u003Cdiv id=\"weeks\">… : null`), so the empty-state\n   render has no element with that id — the skip link is dead specifically\n   when there's nothing to skip to.\n3. **SSR-rendered text drifts from a client-side default after the\n   default is flipped.** The server renders a label\u002Faria-state that\n   mirrors a client-side default (e.g. theme). When that default changes\n   in the client script (light→dark), the hardcoded SSR string is a\n   separate, un-synced source of truth — it keeps saying the old value\n   until client JS runs, and forever if it doesn't.\n\n## Fix\n\n- Prefix every shared-nav section link with the site's base path so it\n  resolves the same from any page:\n  `href={`${import.meta.env.BASE_URL}#section`}`. On the page that already\n  has the section, this is same-URL-plus-hash (no reload); on every other\n  page it now navigates home first, then jumps to the section.\n- For shared components with page-dependent anchor targets (e.g.\n  `SkipLink`), make the target id and visible label **props** with\n  sensible defaults instead of hardcoding them — forces each usage site to\n  either confirm the default is correct or override it.\n- Anchor target ids must exist in **all** render states of the page,\n  including empty states — put the id on a wrapper element that always\n  renders, never inside the conditional branch that only renders when\n  there's content.\n- When adding page N+1 to what was a 1-page site, grep the whole shared\n  component tree for bare hash hrefs: `grep -rn 'href=\"#' src\u002F` — every\n  hit inside a shared component (not a page-local anchor) is a latent bug\n  the moment a second page exists.\n- When flipping a client-side default (theme, locale, sort order, etc.),\n  grep for the **old** default's literal rendered strings across\n  server-rendered markup — labels, `aria-*` state, alt text — e.g.\n  `Theme · Light` — and update them alongside the client-side flip. The\n  SSR string and the client default are two copies of the same fact; a\n  change to one without the other is the bug.\n\n## Evidence\n\nMined from an Astro site (a private web project) served under a GitHub Pages project base\npath (`base: '\u002Frepo\u002F'`), growing from one page to several. Three related\nfailure modes, all shipped and user-reported\u002Freview-caught:\n\n- `href=\"#work\"` in a shared `Nav` component resolved to\n  `\u002Frepo\u002Fupdates\u002F#work` on the subpage — dead URL, no way back — while\n  working fine on the page it was written for.\n- A skip link's target id, rendered only inside\n  `weeks.length > 0 ? \u003Cdiv id=\"weeks\">…` , was absent from the DOM in the\n  empty state, making the skip link a no-op exactly when the page had\n  nothing to skip to.\n- A theme default was flipped light→dark in the client script while the\n  server-rendered label still read `Theme · Light` — wrong until\n  hydration, permanently wrong with JS off.\n\n## Related skills\n\n- `github-pages-flat-deploy-subdir-404` — the base-path\u002Fsubdirectory\n  deploy context this bug family lives in.\n- `legal-pages-css-scoping-bleed` — another shared-component-on-a-growing-\n  site mined lesson from the same marketing-site family.\n- `site-pages-deploy-kit` — the deploy tooling for this site family; run\n  the grep sweeps in this skill before invoking it on a page-count change.\n- `site-og-favicon-verify` — sibling verification pass for other\n  per-page-metadata drift on the same sites.\n",{"name":5,"description":7},"main","153711dd9432743d97f0b33b080ada5798ea623c","plugins\u002Fios-dev\u002Fskills\u002Fsubpage-nav-anchor-baseurl-ssr-label-drift","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills","https:\u002F\u002Fgithub.com\u002Fabhijitbansal","2026-11-07 12:59:51",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add abhijitbansal\u002Fclaude-skills --skill subpage-nav-anchor-baseurl-ssr-label-drift",{"tool":35,"command":36},"bunx","bunx skills add abhijitbansal\u002Fclaude-skills --skill subpage-nav-anchor-baseurl-ssr-label-drift",{"tool":38,"command":39},"pnpm","pnpm dlx skills add abhijitbansal\u002Fclaude-skills --skill subpage-nav-anchor-baseurl-ssr-label-drift","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fios-dev\u002Fskills\u002Fsubpage-nav-anchor-baseurl-ssr-label-drift\u002FSKILL.md",true,[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M74XTV2V7GZM8FDBXQZZ74VX","second-wind","Orchestrate long unattended Claude Code runs across multiple repos with the wind CLI. Use when the user wants to run Claude Code overnight, resume sessions after the 5-hour usage limit, run Claude in many repos at once via tmux, or says \"set up second wind\", \"wind up\", \"overnight run\", \"resume after limit\", \"usage limit orchestrator\".","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fsecond-wind\u002Fskills\u002Fsecond-wind\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M74XTPGN1HDQSKGCZZX0AZPC","structured-output-adaptive-thinking-token-bloat","A Claude API call using output_config.format (json_schema structured outputs) with thinking:{type:\"adaptive\"} burns most of its output budget on thinking (observed ~21k of ~24k tokens) without improving JSON quality, making the run up to ~5x more expensive than the same call with thinking omitted — use when calling the Messages API with a json_schema output format for extraction, ranking, classification, or summarization tasks, or when a schema-constrained call's usage.output_tokens is far larger than the returned JSON.","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Fstructured-output-adaptive-thinking-token-bloat\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M74XTKTRHAMC2JFHQ1P1E6GR","review","Apply a code-review lens to a diff, branch, or file — find correctness bugs, security issues, and quality problems, ranked by severity, with a concrete fix for each. Use when the user says \"review this\", \"review my diff\", \"check this PR\", \"look this over before I commit\", or \"is this safe\". Skip when the user wants the code written, not reviewed.","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M74XTGGCW7GWDDHPEMJQC7Y1","refresh","Rebuild the prompt-craft command registry and usage profile, and print a summary of installed commands and your personalized recommendations. Use when you install or update plugins and want the advisor to pick them up immediately, or say \"refresh prompt-craft\", \"rebuild the command registry\".","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Frefresh\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M74XTCNGNR4G19P3Z95KTHQJ","refactor","Apply a refactoring lens — restructure code without changing behavior, guarded by tests that pass before and after. Use when the user says \"refactor\", \"clean this up\", \"extract this\", \"simplify this\", \"reduce duplication\", or \"make this readable\" on existing working code. Skip when the change is meant to alter behavior (that's a feature or a fix).","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Frefactor\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M74XT9FKXN3N106G7Q3X56XR","plan","Decompose a non-trivial task into an explicit, tracked plan with goals and per-step acceptance criteria before writing code. Use when the user says \"plan this\", \"break this down\", \"what's the plan\", or asks for a multi-step feature\u002Frefactor that touches more than one file. Pairs with plan mode. Skip for single-edit changes that need no decomposition.","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Fplan\u002FSKILL.md",[],[]]