This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a documentation website for "Awesome Agentic Patterns" - a curated catalogue of AI agent design patterns. It uses Astro (apps/web/) to generate a static documentation site that can be deployed to Vercel.
NOTE: This project uses bun as the package manager, not npm.
# Initial setup (run once)
npm install # Install Node.js dependencies
# Standard development cycle
npm run dev # Serve docs locally at http://localhost:4321
# Building and deployment
npm run build # Build static site to apps/web/dist/
vercel deploy # Deploy to Vercel (primary)The project has a unique architecture where pattern documentation drives the entire site:
-
Pattern Files (
patterns/*.md): Source of truth for all patterns- Must include YAML front-matter with: title, status, authors, category, tags
- Content sections: Problem, Solution, Example (with Mermaid diagrams), References
-
Data Pipeline: Pattern files are converted to JSON in
apps/web/public/patterns/- Astro build reads JSON files to generate pages
- Pattern metadata drives navigation and listings
-
Build Process:
- Astro builds from apps/web/ to apps/web/dist/
- Site can be served locally or deployed to Vercel
- Start with template: Copy
patterns/TEMPLATE.mdto create new pattern files - Required YAML front-matter: Every pattern must include:
--- title: "Clear, Descriptive Title" status: "proposed | emerging | established | validated-in-production | best-practice | experimental-but-awesome | rapidly-improving" authors: ["Contributor Name (@username)"] based_on: ["Original Creator (Source)"] category: "Orchestration & Control | Context & Memory | Feedback Loops | Learning & Adaptation | Reliability & Eval | Security & Safety | Tool Use & Environment | UX & Collaboration | Uncategorized" source: "URL to primary source" tags: [relevant, keywords, here] ---
- Required sections: Problem, Solution, References
- Data sync: Pattern files must be converted to JSON for the Astro site
- Run the data pipeline script to update JSON files
- JSON files are stored in
apps/web/public/patterns/
- Use Mermaid diagrams in patterns for architectural visualization
- Pattern files support full Markdown with front-matter
- Community policy for pattern submissions:
- Treat this as a community project, not a promotional channel
- Reject promotional, sales, affiliate, or backlink-seeding content
- For external contributors, prefer links to
github.com,github.io, or non-vendor neutral references - Allow vendor/product links only when the contribution is truly novel and adds clear value
- Require submissions to be materially novel and non-repetitive versus existing patterns
- CRITICAL: Always add blank lines after headers before starting bullet point lists
- Incorrect:
**Header:**\n- Item 1(renders inline) - Correct:
**Header:**\n\n- Item 1(renders as proper list) - This is required for Astro to properly convert Markdown lists to HTML
<ul><li>elements
- Incorrect:
CRITICAL: When adding images or other assets that need to work on both localhost and deployed sites:
- Use absolute paths starting with
/in all asset references - Image references: Use
/image.jpeginstead ofimage.jpegin markdown files - Rationale: Relative paths can work locally but fail on Vercel due to different path resolution behavior
- Example fix: Change
to
This ensures assets load correctly on both local development (localhost:4321) and production deployment (agentic-patterns.com).
- Astro: Modern static site generator in
apps/web/ - Pattern JSON files: Generated data in
apps/web/public/patterns/ - Vercel config: Build settings in
vercel.json - TypeScript/Node.js: Build toolchain
patterns/ # Source of truth - all pattern .md files
├── TEMPLATE.md # Template for new patterns
└── *.md # Individual pattern files with YAML front-matter
apps/web/ # Astro web application
├── public/
│ └── patterns/ # JSON pattern data for site generation
├── src/ # Astro components and pages
└── dist/ # Build output (deployment artifact)
- Node.js: Astro framework and build toolchain
- Vercel: Primary deployment platform
- Primary deployment: Vercel (
vercel deploy) - For detailed deployment instructions, see DEPLOYMENT.md