---
applyTo: "src/cook-web/**/*.ts,src/cook-web/**/*.tsx,src/cook-web/**/*.js,src/cook-web/**/*.jsx,src/cook-web/**/*.css,src/cook-web/**/*.scss,src/cook-web/**/*.md,src/cook-web/**/*.mdx"
---

<!-- Generated by scripts/generate_ai_collab_docs.py. Edit metadata in that script. -->

# Copilot Instructions: Frontend

- Inspect the current route, component, hook, store, and shared-lib path
  before changing frontend behavior.

- Use `docs/engineering-baseline.md` for frontend-wide engineering conventions
  such as request flow, naming, i18n, and testing.

- Extend `src/cook-web/src/lib/request.ts`, `src/cook-web/src/lib/api.ts`,
  existing stores, hooks, and `c-*` compatibility layers instead of creating
  parallel implementations or ad-hoc component fetch logic.

- Keep user-facing strings in shared i18n JSON under `src/i18n/` and preserve
  the unified business-code handling path.

- Keep route-entry behavior in `page.tsx`, `layout.tsx`, and `route.ts`, and
  treat legacy `c-*` directories as active compatibility surfaces until a
  deliberate migration removes them.
