AGENTS.md
Guidance for coding agents (Claude Code, Codex, etc.) working in this repository.
Project
Lawrence Wu’s personal blog at https://lawwu.github.io/blog.html, built with Quarto.
Key Commands
quarto preview # Local dev server with live reload
quarto render # Build site → docs/
uv sync # Install Python dependenciesDeployment: push to main → GitHub Actions renders and publishes to gh-pages.
Structure
posts/YYYY-MM-DD-slug/index.qmd # Blog posts
conferences/YYYY-MM-DD-name/index.qmd # Conference summaries
_quarto.yml # Main site config
posts/_metadata.yml # Default post settings
pyproject.toml / uv.lock # Python deps (Python 3.13.9)
docs/ # Rendered output (commit this)
_freeze/ # Computational cache (commit this)
Adding Content
Create posts/YYYY-MM-DD-slug/index.qmd with frontmatter:
---
title: "Post Title"
author: "Lawrence Wu"
date: '2025-01-01'
categories: [AI, Machine Learning]
---Use .qmd files (not .md) for all blog posts and conference summaries.
Conventions
- Branches:
main(production),feature/descriptionorclaude/description-xxxxx - Commit: include
docs/and_freeze/; exclude.quarto/,_site/ - Links: never use bare URLs — always wrap in
<url>or[text](url)form - Images: place in post directory, compress PNGs with
pngquant --quality 60-80 - Code blocks: executable Python runs via Jupyter during render; use
freeze: falseto force re-execution
Troubleshooting
- Build fails →
uv sync, thenrm -rf _freeze/ && quarto render - Preview stale → restart
quarto preview - Deployment issues → check Actions tab logs