Plateforme Astro Batavia

VérifiéSûr

Conseil expert pour la base de code Astro Batavia, axé sur l'internationalisation, Tailwind CSS v4 et les motifs Astro.

Spar Skills Guide Bot
DeveloppementIntermédiaire
27/07/2026
Claude Code
#astro#i18n#tailwindcss#multilingual-blog#project-conventions

Recommandé pour

Synthèse automatique

Skill de référencement du dépôt Astro Batavia : il fournit les conventions du projet pour l'i18n, Tailwind CSS v4 en configuration CSS-only, la pagination manuelle et les composants Astro.

Points forts

  • Documente les pièges spécifiques du dépôt : paginate() exige `[page]` dans le nom de fichier, la première page doit pointer vers `/blog/` et non `/blog/1`.
  • Centralise les règles i18n : chaînes dans `src/i18n/ui.ts` pour en/es/ja, liens via `getLocalizedPath` et validation par `isValidLanguage`.
  • Impose des normes de composants claires : fichiers `.astro` avec JS vanilla, `<Picture>` de `astro:assets`, typographie et système de Skeleton.
  • Termine par une procédure de validation concrète : `npm run lint`, `npm run format` et `npm run build:only`.

Limites

  • Skill purement lié au dépôt : aucune indication exploitable sur un autre projet Astro.
  • Ne précise ni les versions d'Astro et de Tailwind testées, ni l'arborescence complète du projet.
  • La validation se limite à lint/format/build : aucun test automatisé n'est mentionné.
Quand l'utiliser

À utiliser dès qu'une tâche modifie du code dans le dépôt Astro Batavia : routes paginées, styles, traductions ou nouveaux composants.

Quand l'éviter

À ne pas utiliser pour un autre projet Astro ou pour une question générale sur Astro, Tailwind ou l'i18n hors de ce dépôt.

Analyse de sécurité

Sûr
Score qualité85/100

The skill contains only repository-specific development guidance for an Astro blog. It does not instruct destructive commands, secret exfiltration, obfuscated execution, or safety disabling. Mentioned commands are standard lint/format/build scripts.

Aucun point d'attention détecté

Comment cette analyse est faite

Exemples

Add a localized UI string
Add a new 'readingTime' UI string to src/i18n/ui.ts for en, es and ja, then display it on the blog post page using getLocalizedPath for any links.
Paginate the blog index
Paginate the blog index at /blog with 6 posts per page. Keep the first page at /blog/ (not /blog/1) and make sure prev/next URLs are localized.
Add a theme color
Add a new 'brand' color and a fade-in animation to the @theme block in src/styles/global.css, then use them in the header component without creating a tailwind.config.mjs.

name: astro-batavia description: specialized skill for developing and maintaining the Astro Batavia multilingual blog platform.

astro-batavia

Expert guidance for the Astro Batavia codebase, focusing on i18n, Tailwind CSS v4, and Astro-specific patterns.

When to use

Use this skill for any task involving code modifications, feature additions, or bug fixes within the Astro Batavia repository. It is particularly critical when:

  • Adding or modifying paginated routes (Manual Pagination).
  • Updating styles or theme configuration (CSS-only).
  • Working with multilingual content or translations.
  • Creating new UI components (Astro/Vanilla JS).
  • Implementing loading states using the custom Skeleton system.

Instructions

1. Internationalization (i18n)

  • Translations: UI strings are managed in src/i18n/ui.ts. Always add new strings there for all supported languages (en, es, ja).
  • Path Generation: Use getLocalizedPath(path, lang) from @/i18n/utils to generate links. Avoid hardcoding /en/ or /es/.
  • Validation: Use isValidLanguage(lang) when handling [lang] parameters in getStaticPaths.

2. Styling with Tailwind CSS v4

  • CSS-Only Config: All configuration MUST happen in src/styles/global.css. Never create a tailwind.config.mjs file.
  • Theme Extensions: Add colors, fonts, and animations to the @theme block in global.css.
  • Utility Layers: Use @layer base, @layer components, and @layer utilities within global.css to organize custom CSS.

3. Pagination & Routing

  • Filename Constraints: Astro's paginate() helper ONLY works if the filename contains [page] or [...page].
  • Manual Pagination: For index.astro or [slug].astro files requiring pagination, manually slice the data and construct the Page object. Ensure url.prev and url.next are correctly localized.
  • First Page URLs: Always ensure the first page links to the base directory (e.g., /blog/) and NOT to /blog/1.

4. Component Standards

  • Component Style: Keep components as .astro files with Vanilla JS <script> tags for interactivity. Avoid React/Islands.
  • Images: Use <Picture> component from astro:assets for automatic optimization.
  • Typography: Prefer components in src/components/ui/typography/ for consistent text styling.
  • Skeleton System:
    • All loading states must use the src/components/ui/Skeleton.astro primitive or pre-built specialized skeletons from src/components/ui/skeletons/.
    • Use SkeletonLoader.astro for global page transition skeletons.

5. Build & Validation

  • Linting: Run npm run lint before finalizing changes.
  • Formatting: Run npm run format to ensure code style consistency.
  • Build Test: Run npm run build:only to verify the build pipeline.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/astro-batavia-platform-ms2s7c60/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/astro-batavia-platform-ms2s7c60' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/astro-batavia-platform-ms2s7c60/download' --output '.skill-downloads/astro-batavia-platform-ms2s7c60/SKILL.md.part' && mv '.skill-downloads/astro-batavia-platform-ms2s7c60/SKILL.md.part' '.skill-downloads/astro-batavia-platform-ms2s7c60/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/astro-batavia-platform-ms2s7c60/SKILL.md' && test -s '.skill-downloads/astro-batavia-platform-ms2s7c60/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/astro-batavia' && cp -R '.skill-downloads/astro-batavia-platform-ms2s7c60' '.claude/skills/astro-batavia'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/astro-batavia-platform-ms2s7c60'

openskills read 'astro-batavia-platform-ms2s7c60'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/astro-batavia-platform-ms2s7c60/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires