用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/wonderslife/pdd-skills-v3 --skill expert-springcloud命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | expert-springcloud |
| description | "Spring Cloud 微服务架构专家。当项目涉及服务注册与发现、配置中心、网关路由、熔断降级、链路追踪等微服务组件时自动触发。支持中文触发:微服务、网关配置、服务注册、熔断器、链路追踪。" |
为基于 Spring Cloud / Spring Cloud Alibaba 的微服务架构项目提供专家级指导,包括:服务治理、配置管理、API 网关、熔断降级、分布式事务、链路追踪等。
核心能力:
Provides expert-level guidance for Spring Cloud / Spring Cloud Alibaba microservice architecture projects, including: service governance, config management, API gateway, circuit breaking, distributed transactions, and distributed tracing.
xxx-api 模块中R<T> 包装类/v1/, /v2/)实现xxx-dev.yml, xxx-prod.ymlxxx-api modulesR<T> wrapper class/v1/, /v2/)xxx-dev.yml, xxx-prod.yml| 问题 | 原因 | 解决方案 |
|---|---|---|
| Feign 调用 404 | 服务名拼写错误或未注册到 Nacos | 检查 spring.application.name 和 Nacos 控制台 |
| 配置不生效 | 未添加 @RefreshScope 或 Group 不匹配 | 检查注解和 Nacos 配置分组 |
| Gateway 路由失败 | 路由谓词配置错误 | 检查 predicates 和 filters 配置 |
| 分布式事务不回滚 | 未配置 Seata 全局事务管理器 | 添加 @GlobalTransactional 注解 |
| 链路追踪断裂 | 异步线程未传递 Trace Context | 使用 TraceableExecutorService 包装线程池 |
| Issue | Cause | Solution |
|---|---|---|
| Feign call 404 | Service name typo or not registered in Nacos | Check spring.application.name and Nacos console |
| Config not effective | Missing @RefreshScope or Group mismatch | Check annotation and Nacos config group |
| Gateway route failure | Route predicate misconfigured | Check predicates and filters configuration |
| Distributed TX no rollback | Seata global TX manager not configured | Add @GlobalTransactional annotation |
| Trace chain broken | Async threads not passing Trace Context | Wrap thread pools with TraceableExecutorService |
@GlobalTransactional| 版本 / Version | 日期 / Date | 变更内容 / Changes |
|---|---|---|
| 1.0 | 2026-04-28 | 初始版本 / Initial version |