Imported from iangelmanuel/angel-library (
AGENTS.md). Install upstream withnpx skills add iangelmanuel/angel-library. Copyright stays with the author.
Agent Instructions
- This is a single private Astro 7 site. Use Node.js
>=22.12.0and pnpm11(pnpm@11.25.0); do not introduce another package manager. - Run
pnpm checkfor Astro/TypeScript diagnostics andpnpm buildfor the real content-integrity check. There is no general test runner; focused documentation checks live inscripts/. ESLint and Prettier have package scripts. Runpnpm syncafter changingsrc/content.config.tsor when generated Astro types are stale. - Site identity lives in
src/config/site.ts.src/config/catalog.tsdiscovers categories and subcategories from folders; optionalsrc/content/docs/<category>/_meta.jsonfiles customize labels, descriptions, grouping and order. Do not introduce parallel category registries. Editorial types live insrc/config/content-types.ts; sidebar construction is insrc/config/sidebar.ts. Runpnpm check:catalogafter changing this logic. - Content is local Markdown in
src/content/docs/<category>/<subcategory>/<module>.md: the folder decides category and subcategory, and frontmatter declares editorialtype. Thedocscollection extends Starlight's schema with per-type validation; readsrc/content.config.tsbefore editing frontmatter.draft: trueis excluded from production. Consultdocs/CONTENT_GUIDE.mdfor editorial requirements anddocs/CONTENT_AUDIT.mdfor verification scope. - Personal command/configuration entries carry
private: trueand live in their category folder; they still get the standard detail route but are excluded from public navigation, listings, tags, and search. - Content references are the target entry id, i.e. its path:
frontend/react/react-context-api.src/lib/validation.tschecks structure, references and internal links during static generation. New valid folders are discovered automatically; malformed metadata or broken references fail the build. Integrations and recipes discover technology relationships throughtechnologiesrather than duplicated reverse links. - Starlight generates every documentation entry page (URL = entry id);
categories/[category].astroandtipos/[type].astrogenerate the custom listings. Adding a Markdown file needs no route change. - Icons live in one table,
src/config/icons.ts:BRAND_ICONSfor own logos andRECOLORED_ICONSfor tinted lucide icons.src/lib/icons.tsreads it at build time; plain lucide names need no registration on the Astro side. - Astro and Starlight own the site UI. Tailwind is v4 via
@tailwindcss/vite; there is notailwind.config. - Match the repository’s Spanish-language content and UI conventions. Do not commit secrets or real data; environment files are ignored except
.env.example. - For the fuller verified architecture notes and content-authoring conventions, consult
CLAUDE.mdandCONTRIBUTING.md.