[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77Y15YBTPRH2YXB3YC3QW4C":3,"skill-same:01M77Y15YBTPRH2YXB3YC3QW4C":47},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77Y15YBTPRH2YXB3YC3QW4C","astro-standards",null,"Use when building an Astro 5 content site in a touchstone repo — islands, zero-JS-by-default, .astro components, client directives, content collections, rendering modes, view transitions, astro:env. Triggers on .astro files, `astro`\u002F`@astrojs\u002F*` in package.json, astro.config.mjs, src\u002Fcontent.config.ts. For the interactive framework inside an island use the react\u002Fsvelte\u002Fvue skills; language-level TS rules live in the typescript skill.","hwanngo\u002Ftouchstone","hwanngo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F40811995?v=4","01M77Y071N2D3A6BMB2GVS4F36","01M77Y072AAS1FW736DJ42EP5S",0,"MIT","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Fskills\u002Fastro-standards\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: astro-standards\ndescription: Use when building an Astro 5 content site in a touchstone repo — islands, zero-JS-by-default, .astro components, client directives, content collections, rendering modes, view transitions, astro:env. Triggers on .astro files, `astro`\u002F`@astrojs\u002F*` in package.json, astro.config.mjs, src\u002Fcontent.config.ts. For the interactive framework inside an island use the react\u002Fsvelte\u002Fvue skills; language-level TS rules live in the typescript skill.\nlicense: MIT\nmetadata:\n  version: 0.2.0\n  author: touchstone\n---\n\n# Astro (framework)\n\nFull standard: **`standards\u002Fframeworks\u002Fastro.md`** (layers on `standards\u002Flanguages\u002Ftypescript.md`).\nLoad-bearing rules:\n\n## Always\n- **Zero JS by default** — `.astro` components render to HTML and ship nothing; an island only hydrates when a framework component carries a `client:*` directive. Frontmatter is server-only: secrets, DB calls, heavy imports stay there and never reach the browser.\n- **Choose the minimum directive**: `client:visible` is the house default, `client:idle`\u002F`client:media` for low priority, `client:load` only for critical above-the-fold UI (justify it), `client:only` only for genuinely browser-only widgets (names the framework, ships no SSR HTML).\n- **Content collections get a Zod `schema` + a `loader`** (Content Layer API, `src\u002Fcontent.config.ts`); frontmatter is untrusted input parsed once at build. Query via `getCollection`\u002F`getEntry`, never raw `fs`\u002F`import.meta.glob`.\n- **`output: 'static'` is the default**; opt routes into on-demand rendering per-page with `export const prerender = false` and a concrete `adapter` pinned — don't flip the whole site to a server, and don't ship SSR without an adapter.\n\n## Defer\n- Island internals → `..\u002F..\u002Fstandards\u002Fframeworks\u002Freact.md` \u002F `..\u002F..\u002Fstandards\u002Fframeworks\u002Fsvelte.md` \u002F `..\u002F..\u002Fstandards\u002Fframeworks\u002Fvue.md`; language\u002Ftsconfig\u002Ftest-runner → `..\u002F..\u002Fstandards\u002Flanguages\u002Ftypescript.md`; a11y (astro check warnings + axe gate) → `..\u002F..\u002Fstandards\u002Fpractices\u002Faccessibility.md`; Core Web Vitals budgets → `..\u002F..\u002Fstandards\u002Fpractices\u002Fperformance.md`; secrets\u002Fauth → `..\u002F..\u002Fstandards\u002Fpractices\u002Fsecurity.md`.\n\n## Don't get burned\n- **Whole-page interactivity means you picked the wrong tool** — Astro is for content; a single stateful UI graph spanning the page wants a SPA framework. Don't render an `.astro` component inside a client island, and don't ship two UI frameworks without cause (two runtimes).\n- **A prerendered route reading cookies\u002F`Astro.request` is a bug** — keep static routes pure or move per-request reads behind `prerender = false` \u002F a server island. `astro:env` `access: 'public'` is inlined plaintext — no secrets; server vars in an island is a build error. Use `\u003CImage \u002F>`\u002F`\u003CPicture \u002F>` (not raw `\u003Cimg>`) with dimensions set.\n\n## Done\n`astro check` (a11y warnings fail) · `tsc` · `biome ci` · `vitest` · `playwright` green; zero unjustified client JS; collections schema-validated; secrets out of public env. See `standards\u002Fframeworks\u002Fastro.md`.\n","# Astro (framework)\n\nFull standard: **`standards\u002Fframeworks\u002Fastro.md`** (layers on `standards\u002Flanguages\u002Ftypescript.md`).\nLoad-bearing rules:\n\n## Always\n- **Zero JS by default** — `.astro` components render to HTML and ship nothing; an island only hydrates when a framework component carries a `client:*` directive. Frontmatter is server-only: secrets, DB calls, heavy imports stay there and never reach the browser.\n- **Choose the minimum directive**: `client:visible` is the house default, `client:idle`\u002F`client:media` for low priority, `client:load` only for critical above-the-fold UI (justify it), `client:only` only for genuinely browser-only widgets (names the framework, ships no SSR HTML).\n- **Content collections get a Zod `schema` + a `loader`** (Content Layer API, `src\u002Fcontent.config.ts`); frontmatter is untrusted input parsed once at build. Query via `getCollection`\u002F`getEntry`, never raw `fs`\u002F`import.meta.glob`.\n- **`output: 'static'` is the default**; opt routes into on-demand rendering per-page with `export const prerender = false` and a concrete `adapter` pinned — don't flip the whole site to a server, and don't ship SSR without an adapter.\n\n## Defer\n- Island internals → `..\u002F..\u002Fstandards\u002Fframeworks\u002Freact.md` \u002F `..\u002F..\u002Fstandards\u002Fframeworks\u002Fsvelte.md` \u002F `..\u002F..\u002Fstandards\u002Fframeworks\u002Fvue.md`; language\u002Ftsconfig\u002Ftest-runner → `..\u002F..\u002Fstandards\u002Flanguages\u002Ftypescript.md`; a11y (astro check warnings + axe gate) → `..\u002F..\u002Fstandards\u002Fpractices\u002Faccessibility.md`; Core Web Vitals budgets → `..\u002F..\u002Fstandards\u002Fpractices\u002Fperformance.md`; secrets\u002Fauth → `..\u002F..\u002Fstandards\u002Fpractices\u002Fsecurity.md`.\n\n## Don't get burned\n- **Whole-page interactivity means you picked the wrong tool** — Astro is for content; a single stateful UI graph spanning the page wants a SPA framework. Don't render an `.astro` component inside a client island, and don't ship two UI frameworks without cause (two runtimes).\n- **A prerendered route reading cookies\u002F`Astro.request` is a bug** — keep static routes pure or move per-request reads behind `prerender = false` \u002F a server island. `astro:env` `access: 'public'` is inlined plaintext — no secrets; server vars in an island is a build error. Use `\u003CImage \u002F>`\u002F`\u003CPicture \u002F>` (not raw `\u003Cimg>`) with dimensions set.\n\n## Done\n`astro check` (a11y warnings fail) · `tsc` · `biome ci` · `vitest` · `playwright` green; zero unjustified client JS; collections schema-validated; secrets out of public env. See `standards\u002Fframeworks\u002Fastro.md`.\n",{"name":5,"license":14,"metadata":23,"description":7},{"author":24,"version":25},"touchstone","0.2.0","main","d733e177953000560b4cee8f6c01c63aa7a498f0","skills\u002Fastro-standards","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone","https:\u002F\u002Fgithub.com\u002Fhwanngo","\"There is always one more bug to fix.\"","2026-08-26 01:16:05",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add hwanngo\u002Ftouchstone --skill astro-standards",{"tool":39,"command":40},"bunx","bunx skills add hwanngo\u002Ftouchstone --skill astro-standards",{"tool":42,"command":43},"pnpm","pnpm dlx skills add hwanngo\u002Ftouchstone --skill astro-standards","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Fskills\u002Fastro-standards\u002FSKILL.md",true,[],[48,55,62,67,72,77],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M77YA15EH4A1SDYPZSPZSE8V","ok-standards","Use when writing shell, per standards\u002Flanguages\u002Fshell.md.","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fstandards-known-good\u002Fskills\u002Fok-standards\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M77Y9YK8K580BZ6GNZP6N0PW","demo-standards","Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-url-ignored\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":63,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M77Y9VKRQH1CD8B7Y1BZX0PX","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-stray-xml\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":68,"name":57,"nameZh":6,"description":58,"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},"01M77Y9SZBHZJES7014P5W1A33","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-pointer-sentence-period\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":73,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M77Y9Q6PRTYDTPR8EK0TMJC6","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-pointer-relative-dead\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":78,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M77Y9NH1Z2528QQ6VQ45G6RV","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-pointer-outside-repo\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[]]