mcpField
C
context-analyzer

context-analyzer

github.com/caomeiyourenDevelopment1248 installsUpdated today
Repository

About context-analyzer

A project-analysis skill for Nuxt applications, intended for developers tracing structure, symbols, dependencies, and authentication flows. It accounts for Nuxt conventions and Better-Auth integration points.

Key features

  1. 01Nuxt directory structure analysis
  2. 02Component and composable lookup
  3. 03TypeORM entity tracing
  4. 04Better-Auth flow analysis
  5. 05Package and version checks

Use cases

  1. 01Mapping a user authentication flow
  2. 02Locating component or entity definitions
  3. 03Checking whether a dependency is installed

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/caomeiyouren/momei --skill context-analyzer

After installing, type/context-analyzerin Claude Code to confirm it loaded.

Details

From the project README

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 来映射流程。

Comments

Markdown supported