Imported from PhamNgocTan24/tradepulse (
frontend/AGENTS.md). Install upstream withnpx skills add PhamNgocTan24/tradepulse --skill frontend. Copyright stays with the author.
Frontend Agent Instructions (Next.js & React)
This file contains rules for agent behavior when working in the frontend folder of the TradePulse project.
Standard Guidelines
- Modern Web APIs: Always follow the latest Next.js practices (App Router, Server Components, and Next.js 16+ features like
proxy.tsreplacingmiddleware.ts). Always cross-reference with official Next.js documentation for newest routing and API standards. - TypeScript: Strict types only. Absolutely no
any. - Comments Language: All code comments MUST be written in English.
- Separation of Types: Never declare
interfaceortypedefinitions directly in logic files. Extract them into thesrc/types/directory.
References
For detailed guidelines on project structure, data fetching patterns, styling rules, and how TypeScript concepts map to Java, refer to: