MI

microservice-infrastructure

Guidance on core microservice infrastructure like event-driven design, service communication, and logging.

Install

mkdir -p .claude/skills/microservice-infrastructure && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2052" && unzip -o skill.zip -d .claude/skills/microservice-infrastructure && rm skill.zip

Installs to .claude/skills/microservice-infrastructure

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

处理 BK-CI 微服务底层基础设施时使用,例如条件配置、事件驱动、服务间通信、国际化与日志规范。当用户要搭多环境配置、异步事件、Feign 调用或统一 i18n/日志时优先使用。
90 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Configure multi-environment profiles and feature toggles
  • Implement event-driven or MQ asynchronous processing
  • Manage service-to-service communication with Feign calls
  • Handle degradation and timeout control for service calls
  • Process internationalization text and standardize logging

How it works

This skill addresses microservice infrastructure by guiding the setup of conditional configurations, event-driven architectures, service communication mechanisms, and internationalization/logging standards.

Inputs & outputs

You give it
Requirements for microservice infrastructure, e.g., multi-environment configuration or asynchronous communication
You get back
Configured microservice infrastructure components like conditional configuration, event-driven architecture, or standardized logging

When to use microservice-infrastructure

  • Configure multi-environment profiles
  • Implement event-driven asynchronous communication
  • Setup Feign client calls
  • Standardize logging and i18n

About this skill

微服务基础设施

适用场景

  • 配置多环境、多 profile、特性开关
  • 实现事件驱动或 MQ 异步处理
  • 做服务间通信、Feign 调用、降级和超时控制
  • 处理国际化文案和日志规范

不适用场景

  • 只是 AOP、分布式锁、重试、参数校验这类横切实践
  • 只是使用 JWT、表达式解析、线程池等工具组件
  • 只是某个模块自己的业务逻辑

快速指导

  1. 这个 skill 关注的是“微服务底座能力”,不是单模块业务规则。
  2. 如果问题更像“服务怎么互相通信、配置怎么分环境、事件怎么解耦”,通常落在这里。
  3. 先按主题进入对应参考文档:
    • 条件配置:reference/1-conditional-config.md
    • 事件驱动:reference/2-event-driven.md
    • 服务间通信:reference/3-service-communication.md
    • 国际化与日志:reference/4-i18n-logging.md
  4. 如果你要的是框架级横切实践,切到 common-technical-practices;如果你要的是具体工具类,切到 utility-components

高信号规则

  • 多环境配置、事件、Feign、日志/i18n 都属于平台级基础设施
  • 这类能力的核心是稳定性、可维护性和跨模块一致性
  • 服务间调用要同时考虑超时、降级、循环依赖和可观测性
  • 事件驱动要优先考虑幂等和异步一致性

关键陷阱

  • 把微服务基础设施和横切实践混在一起
  • 只写调用逻辑,不处理超时、降级和链路追踪
  • 只接入 MQ,不处理幂等、重放和事件顺序
  • 日志和 i18n 没有统一规范,导致跨模块行为割裂

延伸阅读

  • 条件配置:reference/1-conditional-config.md
  • 事件驱动:reference/2-event-driven.md
  • 服务间通信:reference/3-service-communication.md
  • 国际化与日志:reference/4-i18n-logging.md
  • 如果你需要横切实践:再看 common-technical-practices
  • 如果你需要工具组件:再看 utility-components

When not to use it

  • Only AOP, distributed locks, retries, or parameter validation
  • Only using JWT, expression parsing, or thread pool tools
  • Only a specific module's business logic

Limitations

  • Does not cover only AOP, distributed locks, retries, or parameter validation
  • Does not cover only JWT, expression parsing, or thread pool tools
  • Does not cover only a specific module's business logic

How it compares

This skill focuses on foundational microservice capabilities like inter-service communication and multi-environment configuration, distinct from single-module business rules or general technical practices.

Compared to similar skills

microservice-infrastructure side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
microservice-infrastructure (this skill)43moNo flagsIntermediate
java-pro344moNo flagsAdvanced
backend-microservice-development23moNo flagsIntermediate
common-technical-practices23moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by TencentBlueKing

View all by TencentBlueKing

project-module-architecture

TencentBlueKing

Project 项目管理模块架构指南,涵盖项目 CRUD、成员管理、项目配置、标签管理、项目迁移。当用户开发项目管理功能、处理项目成员、配置项目属性或实现项目相关逻辑时使用。

612

artifactory-module-architecture

TencentBlueKing

Artifactory 制品库模块架构指南,涵盖制品上传下载、存储后端适配、制品元数据、清理策略、权限控制。当用户开发制品库功能、处理制品存储、配置清理策略或实现制品管理时使用。

419

frontend-vue-development

TencentBlueKing

前端 Vue 开发规范,涵盖 Vue 2/3 组件开发、Vuex 状态管理、路由配置、组件通信、样式规范、国际化。当用户进行前端开发、编写 Vue 组件、处理状态管理或实现页面交互时使用。

38

unit-testing

TencentBlueKing

单元测试编写指南,涵盖 JUnit5/MockK 使用、测试命名规范、Mock 技巧、测试覆盖率要求、TDD 实践。当用户编写单元测试、Mock 依赖、提高测试覆盖率或进行测试驱动开发时使用。

319

worker-module-architecture

TencentBlueKing

Worker 构建执行器模块架构指南,涵盖插件执行引擎、任务分发、日志上报、制品上传、Worker 生命周期。当用户开发 Worker 功能、实现插件执行、处理任务分发或优化执行器性能时使用。

37

agent-module-architecture

TencentBlueKing

Agent 构建机模块架构指南(Go 语言),涵盖 Agent 启动流程、心跳机制、任务领取执行、升级更新、与 Dispatch 交互。当用户开发 Agent 功能、修改心跳逻辑、处理任务执行或实现 Agent 升级时使用。

23

You might also like

java-pro

sickn33

Master Java 21+ with modern features like virtual threads, pattern matching, and Spring Boot 3.x. Expert in the latest Java ecosystem including GraalVM, Project Loom, and cloud-native patterns. Use PROACTIVELY for Java development, microservices architecture, or performance optimization.

3492

backend-microservice-development

TencentBlueKing

后端微服务开发规范,涵盖目录结构、分层架构(API/Service/DAO)、依赖注入、配置管理、Spring Boot 最佳实践。当用户进行后端开发、创建新微服务、编写 Kotlin/Java 代码或设计服务架构时使用。

213

common-technical-practices

TencentBlueKing

通用技术实践指南,涵盖 AOP 切面、分布式锁、重试机制、参数校验、性能监控、定时任务、审计日志等后端开发中的常见技术实践。当用户需要实现横切关注点、处理并发控制、配置重试策略、添加性能监控或实现审计功能时使用。

26

spring-boot-4-conventions

loiane

Spring Framework 7 / Spring Boot 4 idioms and defaults. Use when writing or reviewing controllers, services, configuration, HTTP clients, async/virtual-thread code, or anything touching Spring's programming model.

00

clean-architecture

darshanchaudharii

Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven Design in Java 21+ Spring Boot 3.5+ applications. Use when structuring layered architectures, separating domain logic from frameworks, implementing ports and adapters, creating entit

00

Context7 MCP Rule

dlwlrmjlo

Always use the Context7 MCP server when foundational planning or architecture decisions are being made.

00

Search skills

Search the agent skills registry