# Groundwork reference for this project Groundwork (https://groundwork-two-ecru.vercel.app) is a set of short engineering docs. Use it as a reference instead of guessing. Fetch only what the current task needs: each page is a few thousand words, and the whole site is far too large to load. ## How to look things up - Index of every page (title, summary, phase, headings, raw URL): https://groundwork-two-ecru.vercel.app/docs.json - One page as markdown: append `.md` to its URL, for example https://groundwork-two-ecru.vercel.app/docs/security/security-basics.md - A set of pages as one file: the slices below - If you cannot fetch URLs in this session, say so and ask me to paste the page. Do not answer from memory as if you had read it. ## Which phase of the work are you in? ### Plan: deciding what to build, which stack, which model, and what it will cost Slice: https://groundwork-two-ecru.vercel.app/llms/phase-plan.txt - Choosing a stack: https://groundwork-two-ecru.vercel.app/docs/stacks/choosing-a-stack.md - Stack recipes: https://groundwork-two-ecru.vercel.app/docs/stacks/stack-recipes.md - Cost, limits and choosing a model: https://groundwork-two-ecru.vercel.app/docs/ai-agents/cost-and-model-choice.md ### Design: shaping how the parts fit together: architecture, networking, data model Slice: https://groundwork-two-ecru.vercel.app/llms/phase-design.txt - How software fits together: https://groundwork-two-ecru.vercel.app/docs/foundations/how-software-fits-together.md - Networking basics: https://groundwork-two-ecru.vercel.app/docs/foundations/networking-basics.md - Databases: https://groundwork-two-ecru.vercel.app/docs/data/databases.md ### Build: writing code: UI, API, auth, schema, git, calling model APIs Slice: https://groundwork-two-ecru.vercel.app/llms/phase-build.txt - The terminal & git: https://groundwork-two-ecru.vercel.app/docs/foundations/terminal-and-git.md - Building a UI: https://groundwork-two-ecru.vercel.app/docs/frontend/building-a-ui.md - State & data fetching: https://groundwork-two-ecru.vercel.app/docs/frontend/state-and-data-fetching.md - Building an API: https://groundwork-two-ecru.vercel.app/docs/backend/building-an-api.md - Authentication & authorization: https://groundwork-two-ecru.vercel.app/docs/backend/authentication-and-authorization.md - Schema & migrations: https://groundwork-two-ecru.vercel.app/docs/data/schema-and-migrations.md - Building with LLM APIs: https://groundwork-two-ecru.vercel.app/docs/ai-agents/building-with-llm-apis.md ### Verify: proving it works and is safe: tests, review, security, agent risk Slice: https://groundwork-two-ecru.vercel.app/llms/phase-verify.txt - Security basics: https://groundwork-two-ecru.vercel.app/docs/security/security-basics.md - Testing: https://groundwork-two-ecru.vercel.app/docs/quality/testing.md - Reviewing and verifying AI output: https://groundwork-two-ecru.vercel.app/docs/ai-agents/reviewing-ai-output.md - Security of agentic workflows: https://groundwork-two-ecru.vercel.app/docs/ai-agents/agent-security.md ### Ship: getting it to production: deploys, environments, secrets Slice: https://groundwork-two-ecru.vercel.app/llms/phase-ship.txt - Deployment: https://groundwork-two-ecru.vercel.app/docs/shipping/deployment.md - Environments & secrets: https://groundwork-two-ecru.vercel.app/docs/shipping/environments-and-secrets.md ### Operate: running it: monitoring, backups, recovery, incidents Slice: https://groundwork-two-ecru.vercel.app/llms/phase-operate.txt - Backups & recovery: https://groundwork-two-ecru.vercel.app/docs/data/backups-and-recovery.md - Observability: https://groundwork-two-ecru.vercel.app/docs/shipping/observability.md ### Any phase: working with agents itself: prompting, context, tools, skills, how models behave Slice: https://groundwork-two-ecru.vercel.app/llms/phase-any.txt - Working with coding agents: https://groundwork-two-ecru.vercel.app/docs/start-here/working-with-coding-agents.md - Anatomy of a good prompt: https://groundwork-two-ecru.vercel.app/docs/start-here/anatomy-of-a-good-prompt.md - AI vocabulary and when to use what: https://groundwork-two-ecru.vercel.app/docs/start-here/ai-vocabulary-and-when-to-use-what.md - How LLMs work, for builders: https://groundwork-two-ecru.vercel.app/docs/ai-agents/how-llms-work.md - Context engineering: https://groundwork-two-ecru.vercel.app/docs/ai-agents/context-engineering.md - Prompting patterns that work: https://groundwork-two-ecru.vercel.app/docs/ai-agents/prompting-patterns.md - Agents, tools and MCP: https://groundwork-two-ecru.vercel.app/docs/ai-agents/agents-tools-and-mcp.md - Skill and agent templates: https://groundwork-two-ecru.vercel.app/docs/ai-agents/skill-and-agent-templates.md ## Slices by section - Start Here (6 pages): https://groundwork-two-ecru.vercel.app/llms/section-start-here.txt - Foundations (3 pages): https://groundwork-two-ecru.vercel.app/llms/section-foundations.txt - Frontend (2 pages): https://groundwork-two-ecru.vercel.app/llms/section-frontend.txt - Backend (2 pages): https://groundwork-two-ecru.vercel.app/llms/section-backend.txt - Data (3 pages): https://groundwork-two-ecru.vercel.app/llms/section-data.txt - Shipping (3 pages): https://groundwork-two-ecru.vercel.app/llms/section-shipping.txt - Security (1 pages): https://groundwork-two-ecru.vercel.app/llms/section-security.txt - Quality (1 pages): https://groundwork-two-ecru.vercel.app/llms/section-quality.txt - Stacks (2 pages): https://groundwork-two-ecru.vercel.app/llms/section-stacks.txt - AI & Agents (9 pages): https://groundwork-two-ecru.vercel.app/llms/section-ai.txt - Appendix (2 pages): https://groundwork-two-ecru.vercel.app/llms/section-appendix.txt ## Rules for using these docs - Read the page before you apply it. Quote the heading you relied on when you explain a decision. - Each topic page has a Decisions table and a Checklist. When reviewing work, go through the Checklist and report each item as met, not met or not checked. - The docs describe defaults. If this project's code or my instructions disagree, follow the project and tell me about the difference. - Each page carries a last_reviewed date in /docs.json. Treat anything older than 90 days as possibly stale, especially for AI tools.