[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72WDNB8DTS3NNM8NG0ZSFWW":3,"skill-same:01M72WDNB8DTS3NNM8NG0ZSFWW":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":26,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":32,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M72WDNB8DTS3NNM8NG0ZSFWW","astro",null,"Guides building and reviewing Astro sites: .astro components, islands and client directives (client:load, client:visible, client:idle, client:only), file-based routing and getStaticPaths, Content Collections (src\u002Fcontent, src\u002Fcontent.config.ts, Zod schemas), static versus server output and adapters, integrations (Tailwind, MDX, sitemap, astro:assets), environment variables, deployment, performance and security, and bundles a script that checks an Astro project for a missing site option, missing collection config, pages without a layout, images without alt and bare client:only. Use when authoring or reviewing .astro files, astro.config.mjs, a content collection for blog posts, hydration directives on framework components, or a project with astro in package.json, or when an Astro build fails. Not for generic HTML or CSS or WCAG audits (frontend), page copy (copywriting), Playwright tests (web-tester) or GitHub Actions workflow authoring (github-actions).","crewrig\u002Fcrewrig","crewrig","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F283580446?v=4","01M72WDBD9H0YW5JBHNZ0TEVWB","01M72WDBEBNRBAS94AXRPEVYNK",24,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fastro\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: astro\ndescription: \"Guides building and reviewing Astro sites: .astro components, islands and client directives (client:load, client:visible, client:idle, client:only), file-based routing and getStaticPaths, Content Collections (src\u002Fcontent, src\u002Fcontent.config.ts, Zod schemas), static versus server output and adapters, integrations (Tailwind, MDX, sitemap, astro:assets), environment variables, deployment, performance and security, and bundles a script that checks an Astro project for a missing site option, missing collection config, pages without a layout, images without alt and bare client:only. Use when authoring or reviewing .astro files, astro.config.mjs, a content collection for blog posts, hydration directives on framework components, or a project with astro in package.json, or when an Astro build fails. Not for generic HTML or CSS or WCAG audits (frontend), page copy (copywriting), Playwright tests (web-tester) or GitHub Actions workflow authoring (github-actions).\"\nlicense: Apache-2.0\ncompatibility: \"Astro 4 or 5 projects; notes say where Astro 5 differs. The bundled script needs Node.js 24 (node scripts\u002Fcheck-astro-project.ts) and reads files only.\"\nmetadata:\n  provenance:\n    canonical: \"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\"\n    feedback: \"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\"\n    version: \"2.0.0\"\n---\n\n\n# Astro\n\nLoad this skill for any task on an Astro project: content collections, hydration directives, config and the project check.\n\nAstro renders pages as HTML on the server and ships JavaScript only for the\ncomponents you mark as islands. Every rule below follows from that bias: start from\nzero client JavaScript and justify each addition. The model knows the framework\nbasics; this skill holds the conventions, the Astro 4 versus 5 differences and the\ncheck that settles the fixed questions.\n\nHand a change to the **security** skill when it adds authentication, a secret or\nuntrusted Markdown, and to the **frontend** skill for CSS, accessibility or Core Web\nVitals work that is not specific to Astro.\n\n## Decision rules\n\n- **Output mode.** Use `static` unless a feature needs a server (authenticated routes,\n  form handling, on-demand image transforms). Astro 5 removed `output: \"hybrid\"`:\n  per-page choice is `export const prerender`.\n- **Hydration.** Default to `client:visible` or `client:idle`. `client:load` is for\n  above-the-fold interaction, `client:media` for a query-bound widget, and\n  `client:only=\"\u003Cframework>\"` for code that cannot run on the server; it always names\n  the framework.\n- **Content.** Structured Markdown, MDX or JSON goes in a Content Collection with a Zod\n  schema, not in ad-hoc imports. Astro 5 keeps the config in `src\u002Fcontent.config.ts`\n  with a `loader`; Astro 4 uses `src\u002Fcontent\u002Fconfig.ts` with `type`.\n- **Dynamic routes.** A static `[param]` or `[...rest]` page exports `getStaticPaths`;\n  a server-rendered one reads `Astro.params`.\n- **Images.** Use `\u003CImage>` or `\u003CPicture>` from `astro:assets` with a real `alt`\n  (`alt=\"\"` when decorative). The LCP image is `loading=\"eager\"` with\n  `fetchpriority=\"high\"`; the others stay lazy.\n- **Pages.** Every page sits in a layout so `\u003Chead>`, `lang` and metadata are shared.\n- **Secrets.** Declare variables in the `astro:env` schema; a secret is\n  `context: \"server\"`. Only `PUBLIC_` names reach the browser through `import.meta.env`.\n- **`site` and `base`.** Set `site` always; sitemap, canonical URLs and RSS need it.\n  Set `base` for a project page on GitHub Pages.\n\n## Script\n\nRun it from this skill's directory on the project root; it reads files and writes\nnothing:\n\n```sh\nnode scripts\u002Fcheck-astro-project.ts \u003Cproject-dir> [--json]\n```\n\nRun it after you write or change pages, components or `astro.config.*`, and when\nreviewing a project. It reports `no-config`, `site-missing` (sitemap integration\nwithout `site`), `site-missing-warn`, `collection-config` (entries under\n`src\u002Fcontent` with no collection config), `page-no-layout` (warning),\n`img-missing-alt` (`\u003Cimg>`, `\u003CImage>`, `\u003CPicture>`) and `client-only-bare`.\n\n| Exit | Meaning |\n|---|---|\n| `0` | No error finding. Warnings may be listed; read them. |\n| `1` | At least one error finding: fix it and run again. |\n| `2` | Usage error: pass exactly one directory. |\n| `3` | The directory cannot be read. |\n\n`--json` prints one `{ok, data, findings}` object. The script is a text scan, not a\nbuild: it does not replace `astro check` and `astro build`, so report those as not\nrun when you did not run them. A page that gets its layout through a wrapper that is\nnot named like a layout is a false positive of `page-no-layout`.\n\n## References\n\nRead one only when its subject is the task.\n\n- `references\u002Fcomponents.md`: component syntax, props, slots, scoped styles, the\n  hydration directive table.\n- `references\u002Frouting.md`: file-based routes, dynamic and rest parameters,\n  `getStaticPaths`, server-rendered routes.\n- `references\u002Fcontent-collections.md`: schemas, loaders, queries, the Astro 4 and 5\n  differences, failure modes.\n- `references\u002Fintegrations.md`: Tailwind, MDX, sitemap, `astro:assets` usage.\n- `references\u002Fdeployment.md`: output modes, adapters, build and `astro:env`\n  configuration, per-target deployment; the GitHub Pages workflow is delegated to the\n  `github-actions` skill.\n- `references\u002Fperformance-security.md`: images, fonts, scripts, island budget, secrets,\n  CSP, MDX and form handling.\n\n## Friction\n\nWhen something in this skill misleads or blocks you, tag it with the `harness-report` skill.\n","# Astro\n\nLoad this skill for any task on an Astro project: content collections, hydration directives, config and the project check.\n\nAstro renders pages as HTML on the server and ships JavaScript only for the\ncomponents you mark as islands. Every rule below follows from that bias: start from\nzero client JavaScript and justify each addition. The model knows the framework\nbasics; this skill holds the conventions, the Astro 4 versus 5 differences and the\ncheck that settles the fixed questions.\n\nHand a change to the **security** skill when it adds authentication, a secret or\nuntrusted Markdown, and to the **frontend** skill for CSS, accessibility or Core Web\nVitals work that is not specific to Astro.\n\n## Decision rules\n\n- **Output mode.** Use `static` unless a feature needs a server (authenticated routes,\n  form handling, on-demand image transforms). Astro 5 removed `output: \"hybrid\"`:\n  per-page choice is `export const prerender`.\n- **Hydration.** Default to `client:visible` or `client:idle`. `client:load` is for\n  above-the-fold interaction, `client:media` for a query-bound widget, and\n  `client:only=\"\u003Cframework>\"` for code that cannot run on the server; it always names\n  the framework.\n- **Content.** Structured Markdown, MDX or JSON goes in a Content Collection with a Zod\n  schema, not in ad-hoc imports. Astro 5 keeps the config in `src\u002Fcontent.config.ts`\n  with a `loader`; Astro 4 uses `src\u002Fcontent\u002Fconfig.ts` with `type`.\n- **Dynamic routes.** A static `[param]` or `[...rest]` page exports `getStaticPaths`;\n  a server-rendered one reads `Astro.params`.\n- **Images.** Use `\u003CImage>` or `\u003CPicture>` from `astro:assets` with a real `alt`\n  (`alt=\"\"` when decorative). The LCP image is `loading=\"eager\"` with\n  `fetchpriority=\"high\"`; the others stay lazy.\n- **Pages.** Every page sits in a layout so `\u003Chead>`, `lang` and metadata are shared.\n- **Secrets.** Declare variables in the `astro:env` schema; a secret is\n  `context: \"server\"`. Only `PUBLIC_` names reach the browser through `import.meta.env`.\n- **`site` and `base`.** Set `site` always; sitemap, canonical URLs and RSS need it.\n  Set `base` for a project page on GitHub Pages.\n\n## Script\n\nRun it from this skill's directory on the project root; it reads files and writes\nnothing:\n\n```sh\nnode scripts\u002Fcheck-astro-project.ts \u003Cproject-dir> [--json]\n```\n\nRun it after you write or change pages, components or `astro.config.*`, and when\nreviewing a project. It reports `no-config`, `site-missing` (sitemap integration\nwithout `site`), `site-missing-warn`, `collection-config` (entries under\n`src\u002Fcontent` with no collection config), `page-no-layout` (warning),\n`img-missing-alt` (`\u003Cimg>`, `\u003CImage>`, `\u003CPicture>`) and `client-only-bare`.\n\n| Exit | Meaning |\n|---|---|\n| `0` | No error finding. Warnings may be listed; read them. |\n| `1` | At least one error finding: fix it and run again. |\n| `2` | Usage error: pass exactly one directory. |\n| `3` | The directory cannot be read. |\n\n`--json` prints one `{ok, data, findings}` object. The script is a text scan, not a\nbuild: it does not replace `astro check` and `astro build`, so report those as not\nrun when you did not run them. A page that gets its layout through a wrapper that is\nnot named like a layout is a false positive of `page-no-layout`.\n\n## References\n\nRead one only when its subject is the task.\n\n- `references\u002Fcomponents.md`: component syntax, props, slots, scoped styles, the\n  hydration directive table.\n- `references\u002Frouting.md`: file-based routes, dynamic and rest parameters,\n  `getStaticPaths`, server-rendered routes.\n- `references\u002Fcontent-collections.md`: schemas, loaders, queries, the Astro 4 and 5\n  differences, failure modes.\n- `references\u002Fintegrations.md`: Tailwind, MDX, sitemap, `astro:assets` usage.\n- `references\u002Fdeployment.md`: output modes, adapters, build and `astro:env`\n  configuration, per-target deployment; the GitHub Pages workflow is delegated to the\n  `github-actions` skill.\n- `references\u002Fperformance-security.md`: images, fonts, scripts, island budget, secrets,\n  CSP, MDX and form handling.\n\n## Friction\n\nWhen something in this skill misleads or blocks you, tag it with the `harness-report` skill.\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":27},{"provenance":24},{"version":25,"feedback":26,"canonical":26},"2.0.0","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig","Astro 4 or 5 projects; notes say where Astro 5 differs. The bundled script needs Node.js 24 (node scripts\u002Fcheck-astro-project.ts) and reads files only.","main","6d7f2262eb86a02d21a60a8147ed6f8a27d7b8eb",".agents\u002Fskills\u002Fastro",6,"https:\u002F\u002Fcrewrig.org","https:\u002F\u002Fgithub.com\u002Fcrewrig","This is the organisation behind the crewrig framework","2026-11-15 04:46:08",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add crewrig\u002Fcrewrig --skill astro",{"tool":42,"command":43},"bunx","bunx skills add crewrig\u002Fcrewrig --skill astro",{"tool":45,"command":46},"pnpm","pnpm dlx skills add crewrig\u002Fcrewrig --skill astro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fastro\u002FSKILL.md",true,[50,56,60,64,68,72,76],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fcomponents.md","REFERENCE","参考文档",3039,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fastro\u002Freferences\u002Fcomponents.md",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fcontent-collections.md",3017,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fastro\u002Freferences\u002Fcontent-collections.md",{"path":61,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fdeployment.md",3519,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fastro\u002Freferences\u002Fdeployment.md",{"path":65,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fintegrations.md",2302,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fastro\u002Freferences\u002Fintegrations.md",{"path":69,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fperformance-security.md",2460,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fastro\u002Freferences\u002Fperformance-security.md",{"path":73,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Frouting.md",2332,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fastro\u002Freferences\u002Frouting.md",{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Fcheck-astro-project.ts","SCRIPT","脚本",11117,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fastro\u002Fscripts\u002Fcheck-astro-project.ts",[83,91,96,101,106,111],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":90},"01M76AJKRKGGYZFJJHKE32Q5ZZ","fixture","Fixture skill. Mentions scripts\u002Ffrontmatter-only.ts which must be ignored.","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Fyaml-example\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":92,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":90},"01M76AJJHS0AHW5HJJQCVVJ4DH","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Funterminated\u002FSKILL.md",[],[],{"skillNo":97,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":90},"01M76AJH8VJ2NAE000285J1D8F","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Funresolved\u002FSKILL.md",[],[],{"skillNo":102,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":90},"01M76AJG4M862QH00H5QVVT60P","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Fstray\u002FSKILL.md",[],[],{"skillNo":107,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":90},"01M76AJEZKZVMWZXCKXCFNQQ6B","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Fresolving\u002FSKILL.md",[],[],{"skillNo":112,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":90},"01M76AJD4G4K2YK2SMN8NSEG9R","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Freferences-unfenced\u002FSKILL.md",[],[]]