context-analyzer

分析项目上下文、Nuxt 3 结构和依赖项,用于规划和调试。

⭐3stars🔀0forks📁View on GitHub🕐Updated Jan 10, 2026

When & Why to Use This Skill

The Context Analyzer is a specialized Claude skill designed for Nuxt 3 and Nuxt 4 environments, streamlining project planning and debugging. It provides deep insights into project structures, dependency trees, and complex logic flows, specifically optimized for modern frameworks including Better-Auth integration and TypeORM entities. By automating the mapping of frontend components to backend APIs, it helps developers maintain architectural integrity and accelerate the development lifecycle.

Use Cases

  • Project Onboarding: Quickly map out the directory structure and architectural conventions of a complex Nuxt 3/4 application to understand the codebase layout.
  • Authentication Debugging: Trace the integration of Better-Auth across server-side logic, client-side clients, and global middleware to resolve login or permission issues.
  • Feature Planning: Analyze existing TypeORM entities and frontend components to design data flows for new features while ensuring compatibility with the current architecture.
  • Dependency Audit: Scan package.json and project imports to verify installed versions and identify missing or redundant libraries before major updates.
namecontext-analyzer
description分析项目上下文、Nuxt 结构和依赖项,用于规划和调试。
version1.0.0
authorGitHub Copilot
applyTo"**/*.{ts,vue,json,md}"

Context Analyzer Skill (上下文分析技能)

能力 (Capabilities)

  • 项目结构分析: 理解 Nuxt 目录约定 (server/api, components, pages) 以及 Nuxt 4 特性。
  • 符号解析: 定位组件、自动导入的可组合函数 (composables) 和 TypeORM 实体的定义。
  • 认证流程分析: 深入理解 Better-Auth 的集成,包括 lib/auth.ts (服务端), lib/auth-client.ts (客户端), middleware/auth.global.ts (全局中间件)。
  • 依赖检查: 读取 package.json 以验证已安装的包和版本。

指令 (Instructions)

  1. 读取结构: 使用目录列表工具了解布局,忽略 node_modules 和 .output。
  2. 识别 Nuxt 类型: 将 server/api 识别为后端定义,将 pages/components 识别为前端。
  3. 追踪逻辑: 广泛搜索符号定义,以理解数据如何在后端实体 (Entities) 和前端组件 (Components) 之间流动。
  4. 身份验证感知: 在处理受保护路由或用户数据时,务必检查 server/api/auth/* 和 middleware/auth.global.ts。
  5. 依赖项: 在建议导入之前检查 package.json 以了解可用的库。

使用示例 (Usage Example)

输入: "分析当前的用户认证流程。" 动作: 读取 server/api/auth/*, lib/auth-client.ts, middleware/auth.global.ts 和 pages/login.vue 来映射流程。