Capabilities
- Project structure analysis: Understand Nuxt 3/4 directory conventions (
server/api,components,pages)。 - Symbol resolution: Locate the definitions of components, auto-imported composables, and TypeORM entities (usually in
server/entities)。 - Dependency checking: Read
package.jsonto verify installed packages and versions.
Instructions
- Read the structure: Use directory listing tools to understand the layout, ignoring
node_modulesand.output。 - Identify backend directories: Identify
server/as backend logic, including APIs (server/api), entities (server/entities), utility libraries (server/utils), and database configuration (server/database)。 - Identify frontend directories: Identify
pages/components/composables/layoutsas the frontend. - Trace logic: Search broadly for symbol definitions to understand how data flows between backend entities (Entities) and frontend components (Components).
- Dependencies: Check
package.jsonbefore suggesting imports to learn which libraries are available (such asdayjs,lodash-es,fs-extra)。
Usage Example
Input: "Analyze the current user authentication flow."
Action: Read server/api/auth/*, lib/auth.ts, middleware/auth.global.ts and pages/login.vue to map the flow.