SuperAPI AI Directory

context-analyzer

General & other

View repository

Updated 10-16 09:35

About this skill

Context Analyzer Skill (Context Analyzer Skill)

Capabilities (Capabilities)

  • Project structure analysis: Understand Nuxt directory conventions (server/api, components, pages) as well as Nuxt 4 features.
  • Symbol resolution: Locate the definitions of components, auto-imported composables, and TypeORM entities.
  • Authentication flow analysis: Deeply understand the integration of Better-Auth, including lib/auth.ts (server-side), lib/auth-client.ts (client-side), middleware/auth.global.ts (global middleware).
  • Dependency checking: Read package.json to verify installed packages and versions.

Instructions (Instructions)

  1. Read the structure: Use directory listing tools to understand the layout, ignoring node_modules and .output。
  2. Identify Nuxt types: Identify server/api as backend definitions, and identify pages/components as the frontend.
  3. Trace logic: Search extensively for symbol definitions to understand how data flows between backend entities (Entities) and frontend components (Components).
  4. Authentication awareness: When handling protected routes or user data, always check server/api/auth/* and middleware/auth.global.ts。
  5. Dependencies: Before suggesting imports, check package.json to learn about the available libraries.

Usage Example (Usage Example)

Input: "Analyze the current user authentication flow." Action: Read server/api/auth/*, lib/auth-client.ts, middleware/auth.global.ts and pages/login.vue to map the flow.