These instructions are for AI assistants working in this project.
Always open @/openspec/AGENTS.md when the request:
- Mentions planning or proposals (words like proposal, spec, change, plan)
- Introduces new capabilities, breaking changes, architecture shifts, or big performance/security work
- Sounds ambiguous and you need the authoritative spec before coding
Use @/openspec/AGENTS.md to learn:
- How to create and apply change proposals
- Spec format and conventions
- Project structure and guidelines
Keep this managed block so 'openspec update' can refresh the instructions.
src/pages/holds Astro routes (e.g.,index.astro,tabella.astro,info.astro).src/components/contains reusable React/Astro UI pieces.src/layouts/defines shared page chrome.src/lib/andsrc/types/keep helpers and TypeScript types.public/stores static assets served as-is.data/contains API snapshots and derived JSONL files used by the site.scripts/includes data/asset utilities (e.g.,download_data.sh,generate-og-images.js).
npm installinstalls dependencies.npm run devstarts the Astro dev server.npm run buildgenerates OpenGraph images and builds the static site.npm run previewserves the production build locally.npm run generate-og-imagesrunsscripts/generate-og-images.jsdirectly.
- Use 2-space indentation as seen in
.astroand JS/TS files. - Prefer clear, descriptive component names in
PascalCase(e.g.,HomePage,Footer). - Keep Astro page files lowercase and route-aligned (e.g.,
tabella.astro). - Styling is Tailwind-first; avoid custom CSS unless necessary. Configuration lives in
tailwind.config.mjs.
- There is no automated test suite wired in
package.jsontoday. - When changing UI or data logic, verify locally with
npm run devandnpm run preview. - If you add tests, document the runner and add corresponding
npm run testscripts.
- Recent history follows Conventional Commits (e.g.,
chore: update data files...) and sometimes adds[skip ci]for data-only updates. - Keep commit subjects short and scoped; use
feat:,fix:, orchore:as appropriate. - PRs should include a concise summary, link relevant issues, and add screenshots for UI changes.
astro.config.mjsdefinessiteandbasefor GitHub Pages deployments; update when forking.- Data appears to be refreshed via scripts and CI; avoid editing
data/by hand unless the change is intentional and documented.