一键导入
astro-conventions
Project conventions and architecture for this Astro site (tylerbutler.com)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Project conventions and architecture for this Astro site (tylerbutler.com)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | astro-conventions |
| description | Project conventions and architecture for this Astro site (tylerbutler.com) |
| user-invocable | false |
Two collections defined in src/content/config.ts:
src/content/articles/)YYYY-MM-DD-<slug>.md (recent) or YYYY/YYYY-MM-DD-<slug>.md (older, by year)title, datetags, slug, excerpt, draft, link, via, vialink, headingStartLevel, typetype: "guide" shows a table of contents; default is "standard"link field are auto-classified as link-type articles<!--more--> as excerpt separatorsrc/content/projects/)titledate, description, tags, url, github, draftSingle base layout: src/layouts/BaseLayout.astro
src/components/)Astro components: ArticlePage, Header, Footer, Navigation, ThemeToggle, BrokenLinkTooltip, SocialIconsBelow, FootnotesScript, BrokenUrlDisplay
Both .md and .mdx files go through remark/rehype plugins configured in astro.config.ts:
Remark (in order): remarkLazyLinks, remarkGfm, remarkSmartypants, remarkGithubBlockquoteAlert, remarkShiftHeadings
Rehype (in order): rehypeFootnotes, rehypeSlug, rehypeAutolinkHeadings, rehypeExpressiveCode, rehypeMarkBrokenLinks
src/pages/)index.astro - Homepage[...slug].astro / [slug].astro - Dynamic article routesarticles/ - Article listingprojects.astro / projects/ - Project listingabout.astro, colophon.astro, search.astrofeed.xml.ts - RSS feedtags/ - Tag pagespnpm build triggers Astro build with font download, Pagefind indexing, sitemap, broken link checkingrollup-plugin-visualizer in productiondist/assets/