---
description: Frontend-specific rules for Next.js, shared request code, and legacy c-* code
globs:
alwaysApply: false
---

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

# Cursor Rule: Cook Web

- Inspect the existing 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`,
  current stores, hooks, and compatibility layers instead of creating a second
  implementation path or ad-hoc component fetch logic.

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

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