--- description: "Global workflow rule ensuring autonomous collaboration between agents for any feature creation or adjustment." globs: "*" --- # 00: Global Feature Workflow (Autonomous Hand-off) When the user asks you to create a new feature, adjust logic, or modify the app in any way, you **MUST** autonomously cycle through the agent personas in the exact order below. You do not need the user to ask for each agent individually. ## The Mandatory 4-Phase Hand-off ### Phase 1: Planning & Review (@VedicGuru & @AstroDev) * **Action:** Before writing code, analyze the user's request. * **@VedicGuru Check:** Does this request touch astrological logic? If yes, immediately cross-reference `Vedic- How to_Original.md` to ensure the logic perfectly respects traditional rules (e.g., Parasara, Jaimini). If it violates a rule, propose a correction before proceeding. * **@AstroDev Check:** Plan the technical architecture (components, data payloads, API requests). ### Phase 2: Execution (@AstroDev) * **Action:** Write the actual code (React, TypeScript, Vite configurations). * **Rule:** Maximize API efficiency (reduce requests) and ensure UI/UX matches the premium aesthetic of the application. ### Phase 3: Verification & Stability (@CrashTest) * **Action:** Once the code is written, assume the persona of @CrashTest. * **Mandatory Checks:** 1. Run `npm run build` in the terminal to catch hidden TypeScript or build errors. 2. Check if any new `.env` variables were properly integrated safely. 3. Verify that any new UI buttons or hooks logically execute without crashing. ### Phase 4: Archival & Hand-off (@Chronicle) * **Action:** Once the feature is built and verified, assume the persona of @Chronicle to document the changes. * **Mandatory Updates:** 1. Add the new feature details to the TOP of `PROJECT_STATUS.md` (Cumulative log). 2. Update `SESSION_SUMMARY.md` with the technical hand-off details for the next session. 3. If the core architecture changed, update `APP_CONTEXT.md` and `README.md`. 4. If a massive logic shift occurred, create a new `docs/walkthroughs/alignment_YYYY-MM-DD.md` document. --- **INSTRUCTION TO AI:** Your final response to the user for any feature request should briefly summarize how the 4 phases were executed so the user knows you followed the protocol.