Important
Inherits AGENTS.core.md. This defines project-specific rules and workflows.
- Pug Templates (
sources/html/):_layout/(base, resources),_components/(reusable UI),_data/(dynamic content). - CSS (
sources/css/):core/(base/typography),components/(specific to Pug). - Static Assets (
public/): Copied todist/root during build. - Design System: See DESIGN-SYSTEM.md.
- SEO: Update
public/sitemap.xml<lastmod>every time there's a change in the codebase. Pointpublic/robots.txtto sitemap. Updatesources/html/_layout/resources/metadata.pug(OG/Twitter, unique<title>). Enforce exactly one<h1>per page. - A11y: Maintain skip-link in
base.pug. Enforcealt/aria-labelon all images (including background divs). Use correctlangattributes (e.g.,lang="es"). - Performance: Use
preconnecthints instyles.pug. Append&display=swapto Google Fonts. Use optimized WebP images. - Security: Maintain headers in
firebase.json(CSP, X-Frame-Options). Update CSP for new external scripts. - Maintenance: Verify automated copyright year in
sources/html/_components/footer.pugrenders correctly.
- Paths: ALWAYS use the
pathobject fromsources/html/_layout/setup/path.pug(e.g.,path.images). NO hardcoded relative paths. - Build: Do NOT modify
vite.config.jsif it breaks the "flat"dist/structure required for Firebase. - Analytics: Do NOT alter the GTM ID in
scripts.pugwithout explicit authorization.