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
- 01Nuxt directory structure analysis
- 02Component and composable lookup
- 03TypeORM entity tracing
- 04Better-Auth flow analysis
- 05Package and version checks
Use cases
- 01Mapping a user authentication flow
- 02Locating component or entity definitions
- 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-analyzerAfter installing, type/context-analyzerin Claude Code to confirm it loaded.
Details
From the project READMEContext 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)
- 读取结构: 使用目录列表工具了解布局,忽略
node_modules和.output。 - 识别 Nuxt 类型: 将
server/api识别为后端定义,将pages/components识别为前端。 - 追踪逻辑: 广泛搜索符号定义,以理解数据如何在后端实体 (Entities) 和前端组件 (Components) 之间流动。
- 身份验证感知: 在处理受保护路由或用户数据时,务必检查
server/api/auth/*和middleware/auth.global.ts。 - 依赖项: 在建议导入之前检查
package.json以了解可用的库。
使用示例 (Usage Example)
输入: "分析当前的用户认证流程。"
动作: 读取 server/api/auth/*, lib/auth-client.ts, middleware/auth.global.ts 和 pages/login.vue 来映射流程。
Comments
Markdown supported