Communitygithub.com

astro-build-playbook

Build or modify Astro sites from design evidence, starting from a vanilla `npm create astro` minimal install plus a small baseline of tokens, layout and verification gates. Routes setup, design ingestion (Figma, Paper, HTML exports), tokens, content and CMS (local collections, Sveltia, EmDash, Sanity), assets, forms, motion, hosting, SEO and verification work.

astro-build-playbook란 무엇인가요?

astro-build-playbook is a Claude Code agent skill that build or modify Astro sites from design evidence, starting from a vanilla `npm create astro` minimal install plus a small baseline of tokens, layout and verification gates. Routes setup, design ingestion (Figma, Paper, HTML exports), tokens, content and CMS (local collections, Sveltia, EmDash, Sanity), assets, forms, motion, hosting, SEO and verification work.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/gdcrosbie/agent-skills/tree/HEAD/skills/astro-build-playbook

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Astro build playbook

Read this core once. Select the current task below and load only its reference. Do not restart setup phases for an established project.

Starting point

New projects start from a vanilla Astro install (npm create astro@latest, minimal template), then this skill's baseline: a two-tier token contract, a base layout with skip link and metadata, a 404 page, reset/global CSS and verification gates. See project setup and baseline assets.

For an existing project, inspect its instructions, project record, package.json, config and components first. Keep its own token contract, component library and file ownership; apply the rules below without replacing them with baseline examples.

Content/asset reuse does not authorise adopting the source's CMS, auth, dependencies or deployment identity. Inspect these independently; adopting services or replacing the design system needs the owner's decision.

Decisions and constraints

  • New projects: settle CMS/runtime (no CMS, Sveltia or EmDash unless another, such as Sanity, is explicitly selected), colour-mode scope, host/deploy path and indexing policy before scaffolding. Preserve choices already authorised. Use project setup for commands, existing repository discovery and the single project record/baseline commit.
  • Baseline tokens: consume semantic aliases, not raw palette values. Select supplied tokens, extracted design values or approved baseline defaults through token ingestion.
  • Content scope: obvious in-page repeaters/globals can be classified directly. For ambiguous services/projects/team/testimonials, ask about detail routes, editing and prose before choosing architecture. Preserve canonical sources and validate IDs/relationships; format does not decide routes.
  • Forms: settle the unresolved destination and providers (spam protection, email delivery) before implementation. Use the selected host's endpoint and retain existing authorised routes; a contact form alone does not require SSR.
  • Interactions: if the astro-ui-patterns skill is installed, its UI pattern index owns behaviour contracts. For uncatalogued widgets, stop and ask before adding a library. Settle the motion tier before adding a runtime/library. Define a useful no-JS path.
  • Markup/performance: semantic HTML and scoped CSS first, logical properties, responsive navigation wherever site navigation exists, no initially hidden LCP content, reduced-motion treatment and stable image dimensions. Size-dependent cards use container queries on their actual available width.
  • Assets/privacy: self-host fonts/media; no third-party tracking SDKs or runtime stock imagery. Figma Make/HTML exports are markup/layout evidence; inspect React only for data/behaviour the export cannot supply. Native design ingestion captures durable evidence before links expire.

Select the operation

TaskRead only when needed
New scaffold, runtime/host choice or repository setupProject setup
Tokens/semantic bridge or baseline defaultsToken contract
Native Figma / Paper / exported HTML sourceFigma, Paper or HTML, whichever is supplied
Baseline component/CSS slicingComponent authoring
Geometry, overlaps, typography or locked compositionsLayout fidelity
Local editorial/entities/repeaters and relational validationContent collections
Sveltia / EmDash / explicitly chosen SanityGit CMS, EmDash or Sanity integration, only the selected branch
Images, source assets or LCP mediaAssets and images
Forms and submissionsForms contract, then the contact form recipe if it fits
Interactive widget or new browser runtimeInteraction decisions, then the requested UI spec
MotionAnimation tiers
Hosting, headers, protection or indexingHosting
Canonicals, social cards or structured metadataSEO
Browser performance and authoring accessibilityCWV/a11y checklist
Gate commands, checker coverage, interaction verification or the final auditVerification
Source ZIP / distributable kitProject handoff
Installing/debugging baseline gatesBaseline assets; do not load implementation files up front

Build and hand off

For a full design build: settle choices → capture evidence/tokens → model content → compose → localise assets → enhance interactions → tune → verify. Targeted edits use only applicable steps.

Run the project's actual required checks, sequentially where sync/build share generated state. Report exact failures, unsupported checks and fallback coverage gaps; do not treat unrun checks as passes. EmDash needs live route/editorial/database performance checks instead of static-only assertions. Inspect real interactions on built output and the deployed origin with its actual CSP.

Completed design builds finish with the astro-design-audit skill (workflow, if installed; otherwise the design check in verification) and the accessibility-audit skill (workflow, if installed). Keep audit records in design/audit/ and accepted decisions in the project record. Targeted fixes recheck affected states and regressions within scope. Source files and a passing build are not proof of published appearance, keyboard behaviour or metadata.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

관련 스킬