docs: add /docs living documentation per AGENT.MD
- 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
This commit is contained in:
1 parent
37684ba116
commit
4abdc7691b
16 files changed
+1494
-7
No files matched your search
@@ -0,0 +1,40 @@
|
||||
# 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-27b` family.
|
||||
- **Task Delegation Prompting:** When issuing tasks to sub-agents, provide explicit, isolated, and highly detailed prompts containing:
|
||||
1. **Context & Objective:** Precise scope of what needs to be built.
|
||||
2. **Inputs:** Exact file paths, interfaces, or schemas required.
|
||||
3. **Desired Output:** Expected code structure, exported functions, tests, or documentation artifacts.
|
||||
4. **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:
|
||||
1. **`docs/README.md`**: Serves as the central navigation hub, summarizing the project setup and mapping where specific information lives.
|
||||
2. **`docs/architecture.md`**: High-level system overview, global tech stack, environment setups, and system-wide data flows.
|
||||
3. **`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.
|
||||
4. **`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.
|
||||
5. **Cross-Referencing Rule:** Avoid duplicate documentation. Use relative Markdown links across files.
|
||||
- *Example:* If Frontend consumes a Backend API port, `docs/frontend/api-client.md` states the integration and links directly to `docs/backend/docker.md#exposed-ports` or `docs/backend/api-routes.md`.
|
||||
Reference in new issue
Block a user