make site_install- Install Python dependenciesmake site_preview- Serve docs locally at http://localhost:8000make site_build- Build static site to site/ directorymake site_deploy- Deploy to GitHub Pagespython scripts/build_readme.py- Regenerate README.md and mkdocs.yaml from pattern filesmake lint_front_matter- Validate pattern front-matter schemanpx wrangler deploy- Deploy to Cloudflare Workers
- Use YAML front-matter for all pattern files with: title, status, authors, based_on, category, source, tags
- Follow TEMPLATE.md structure: Problem → Solution → How to use it → Trade-offs → References
- Use absolute paths for assets:
/image.jpegnotimage.jpeg(critical for deployment) - Pattern categories: "Orchestration & Control", "Context & Memory", "Feedback Loops", "Learning & Adaptation", "Reliability & Eval", "Security & Safety", "Tool Use & Environment", "UX & Collaboration"
- Python: Snake_case functions, proper YAML parsing, UTF-8 encoding
- Always run
python scripts/build_readme.pyafter adding/modifying patterns - Support Mermaid diagrams in pattern markdown files
- README.md pattern section is auto-generated - don't edit between HTML comment markers
- Pattern files are source of truth - all navigation and docs generated from these
- Use
make site_linkto copy patterns to docs/ before building