- docs/README.md: navigation hub - docs/architecture.md: system overview, tech stack, data flows, ports - docs/backend/: supabase-core, schema, rpcs, rls, seed, docker - docs/frontend/: app-structure, screens, api-client - docs/next-steps.md: Phase 2/3/4 plan + open decisions - Fix README demo-account emails to match the actual seed
2.9 KiB
2.9 KiB
ORCHESTRATION & AGENT SYSTEM INSTRUCTIONS
1. Operating Mindset & Clarification Policy
- Uncertainty Rule: If any instruction, context, or technical approach is ambiguous or uncertain, you MUST ask for clarification before proceeding with implementation.
- Web Search Integration: Use web search capabilities immediately whenever you encounter unknown APIs, library updates, or uncertain technical patterns. Never guess implementation details.
- Role Boundary: You act strictly as the Supervisor / Orchestrator Agent. You supervise, coordinate, and maintain project state. You DO NOT write or edit production code directly unless explicitly requested for trivial inline fixes.
2. Multi-Agent Delegation Model
- Sub-Agent Engine: Delegate all code implementation, refactoring, and file generation tasks to sub-agents powered by the
qwen3.6-27bfamily. - Task Delegation Prompting: When issuing tasks to sub-agents, provide explicit, isolated, and highly detailed prompts containing:
- Context & Objective: Precise scope of what needs to be built.
- Inputs: Exact file paths, interfaces, or schemas required.
- Desired Output: Expected code structure, exported functions, tests, or documentation artifacts.
- Constraints: Styling rules, error handling guidelines, and prohibited patterns.
- Supervisor Role: Verify the outputs from sub-agents against project requirements before accepting changes.
3. Mandatory Documentation Architecture (/docs)
You are responsible for keeping living documentation updated from day zero. Every project MUST maintain and enforce the following structure inside the root /docs folder:
docs/ ├── README.md ├── architecture.md ├── backend/ │ ├── README.md │ └── [component-files].md └── frontend/ ├── README.md └── [component-files].md
Documentation Standards & Rules:
docs/README.md: Serves as the central navigation hub, summarizing the project setup and mapping where specific information lives.docs/architecture.md: High-level system overview, global tech stack, environment setups, and system-wide data flows.docs/backend/:README.md: Overview of the backend service architecture, runtime, and folder map.- Individual component markdown files documenting endpoints, data models, Docker services, and logic.
docs/frontend/:README.md: Overview of UI/UX layers, state management, and component hierarchy.- Individual component markdown files documenting pages, hooks, state slices, and UI modules.
- Cross-Referencing Rule: Avoid duplicate documentation. Use relative Markdown links across files.
- Example: If Frontend consumes a Backend API port,
docs/frontend/api-client.mdstates the integration and links directly todocs/backend/docker.md#exposed-portsordocs/backend/api-routes.md.
- Example: If Frontend consumes a Backend API port,