Controller Call Chain Analysis
本技能用于分析 Java 微服务项目中 Controller 层的完整调用链路,能够自动追溯到 Service、Mapper、Repository 层,并提取完整的 SQL 语句。最终生成结构化的 JSON 文件,便于 API 文档生成、代码审计或架构理解。
Install
/plugin marketplace add dvcrn/openclaw-skills-marketplaceThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add dvcrn/openclaw-skills-marketplace --skill controller-call-chain-analysisgit clone --depth 1 https://github.com/dvcrn/openclaw-skills-marketplace.git /tmp/openclaw-skills-marketplace
mkdir -p ~/.claude/skills
cp -r /tmp/openclaw-skills-marketplace/plugins/14686039--controller-call-chain-analysis/skills/controller-call-chain-analysis ~/.claude/skills/controller-call-chain-analysisPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
---
name: controller-call-chain-analysis
description: 本技能用于分析 Java 微服务项目中 Controller 层的完整调用链路,能够自动追溯到 Service、Mapper、Repository 层,并提取完整的 SQL 语句。最终生成结构化的 JSON 文件,便于 API 文档生成、代码审计或架构理解。
---
# Java Controller 调用链路分析 Skill
## 简介
本技能用于分析 Java 微服务项目中 Controller 层的完整调用链路,能够自动追溯到 Service、Mapper、Repository 层,并提取完整的 SQL 语句。最终生成结构化的 JSON 文件,便于 API 文档生成、代码审计或架构理解。
## 适用场景
- 需要快速了解某个 Controller 接口背后的业务逻辑和数据流向
- 自动化生成 API 调用链路文档
- 审计 SQL 语句或分析数据库访问模式
- 批量分析整个模块的接口实现细节
## 输入参数
| 参数名 | 类型 | 必填 | 说明 |
|--------|------|------|------|
| `controllerPath` | string | 是 | Controller 源文件的相对路径,例如 `src/main/java/org/ssh/boot/itemSupply/controller/pham/TDrugdictController.java` |
| `outputPath` | string | 否 | 输出 JSON 文件的目录,默认为 `docs/api_analysis/`。如果目录不存在,会自动创建。 |
## 输出
在指定的输出目录下生成一个以 Controller 类名命名的 JSON 文件(例如 `TDrugdictController.json`),文件内容遵循固定的 JSON 结构(详见下文)。该文件包含了从 Controller 方法到 Service 实现、再到 Mapper/Repository 以及最终 SQL 语句的完整调用链路信息。
## 工作流程
### 1. 读取 Controller 文件
- 解析 Java 源文件,提取:
- 类名、包名
- 类级别的 `@RequestMapping` 路径
- 类级别的 `@Api` 或 `@ApiOperation` 注解(接口描述)
- 每个方法的 HTTP 方法注解(`@GetMapping`、`@PostMapping` 等)及路径
- 方法参数列表(包括参数名、类型、是否必填、`@ApiParam` 描述等)
### 2. 追溯 Service 实现类
- 根据 Controller 中注入的 Service 字段类型,定位对应的 Service 接口
- 查找接口的实现类 Search(pattern: "implements 接口名称", path: "项目地址")
- 读取实现类,识别每个方法内部调用的 Mapper 或 Repository 方法
- 读取实现类,识别每个方法内部方法(该方法可能存在Mapper 或 Repository 方法调用)
- 根据代码,输出方法介绍
### 3. 追溯 Mapper 层(MyBatis)
- 查找与 Service 中调用的 Mapper 接口(通常在 `mapper/` 目录下)Details
- Skill name
controller-call-chain-analysis- Repository
- dvcrn/openclaw-skills-marketplace
- Path
plugins/14686039--controller-call-chain-analysis/skills/controller-call-chain-analysis/SKILL.md- Repo updated
- 29 August 2026
FAQ
What does the Controller Call Chain Analysis skill do?
本技能用于分析 Java 微服务项目中 Controller 层的完整调用链路,能够自动追溯到 Service、Mapper、Repository 层,并提取完整的 SQL 语句。最终生成结构化的 JSON 文件,便于 API 文档生成、代码审计或架构理解。
How do I install the Controller Call Chain Analysis skill?
Claude Code plugin: /plugin marketplace add dvcrn/openclaw-skills-marketplace. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Controller Call Chain Analysis popular?
It lives in dvcrn/openclaw-skills-marketplace, which has 33 GitHub stars and 17 forks.
Related skills
0protocol
33dvcrn/openclaw-skills-marketplace
Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.
0xarchive
33dvcrn/openclaw-skills-marketplace
Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user asks about crypto market data, orderbooks, trades, funding rates, or historical prices on Hyperliquid, Lighter.xyz, or HIP-3.
Aaas Roi Calculator
33dvcrn/openclaw-skills-marketplace
Calculate ROI for AI-as-a-Service (managed AI agents). Estimates cost savings, efficiency gains, and payback period for deploying AI agents across business operations. Use when evaluating whether managed AI agents make financial sense for a company.
Engineering Manager OS
33dvcrn/openclaw-skills-marketplace
Complete engineering management system — team building, 1:1s, performance, hiring, architecture decisions, incident management, and scaling. From IC-to-manager transition through director-level operations.
Coda Packs
33dvcrn/openclaw-skills-marketplace
Manage Coda Packs via REST API v1. Supports listing, creating, updating, and deleting private Packs. Requires CODA_API_TOKEN. Delete requires confirmation. Note: Builds, Gallery submission, Analytics, and Collaborators require Coda's Pack SDK CLI, not available via REST API.
Executive Coaching & Leadership Development Engine
33dvcrn/openclaw-skills-marketplace
Complete executive coaching system — leadership assessment, 360° feedback, coaching engagements, leadership development plans, team effectiveness, executive presence, and succession planning. Use for leadership coaching, executive development programs, team building, performance breakthroughs, and career transitions.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.