smithery/tikazyq

microservice-thinking

提供微服务分布式架构思考框架,涵盖服务拆分、通信机制、基础设施、治理策略、可观测性五大维度。当需要设计微服务系统、评审分布式架构、或需要?

Installation

$ npx skills add smithery/tikazyq --skill microservice-thinking

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/tikazyq · top by installs.

npx skills add smithery/tikazyq

Browse all from smithery/tikazyq

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,727 B
  • docs SUMMARY.md 406 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Microservice Thinking Skill

Scope: SPECIAL(用户自定义)

版本: 0.1.0(占位)| 创建日期: 2025-11-27


概述

微服务架构整体思考维度:

┌─────────────────────────────────────────────────────┐
│              🔷 Microservice Architecture           │
├─────────────┬─────────────┬─────────────────────────┤
│  Services   │   Infra     │      Governance         │
│  ─────────  │  ─────────  │  ─────────────────────  │
│  • Domain   │  • Gateway  │  • Service Discovery    │
│  • API      │  • MQ       │  • Config Center        │
│  • Data     │  • K8s      │  • Circuit Breaker      │
│  • Events   │  • Mesh     │  • Observability        │
└─────────────┴─────────────┴─────────────────────────┘

思考维度

1. 服务拆分

  • 领域边界(DDD Bounded Context)
  • 服务粒度(避免过细/过粗)
  • 数据归属(每服务独立数据库)
  • API 契约

2. 服务通信

  • 同步通信(REST/gRPC)
  • 异步通信(消息队列)
  • 事件驱动(Event Sourcing/CQRS)
  • API 版本管理

3. 基础设施

  • API Gateway(Kong/Nginx)
  • 服务发现(Consul/Eureka)
  • 配置中心(Nacos/Apollo)
  • 容器编排(K8s/Docker Swarm)

4. 服务治理

  • 熔断降级(Hystrix/Sentinel)
  • 限流控制
  • 负载均衡
  • 服务网格(Istio/Linkerd)

5. 可观测性

  • 分布式追踪(Jaeger/Zipkin)
  • 日志聚合(ELK/Loki)
  • 指标监控(Prometheus/Grafana)
  • 告警策略

6. 数据一致性

  • 分布式事务(Saga/TCC)
  • 最终一致性
  • 幂等性设计
  • 补偿机制

分级思考深度

L1-STREAMLINED

  • 每维度选择 1 个关键决策
  • 快速架构评审(30-60 分钟)
  • 适用:简单微服务、3-5 个服务

L2-BALANCED

  • 每维度覆盖 2-3 个决策点
  • 标准架构评审(2-4 小时)
  • 包含组件选型对比
  • 适用:中型微服务、5-15 个服务

L3-RIGOROUS

  • 全维度深入分析(6 维度 × 4 子项)
  • 完整架构评审(1-2 天)
  • 包含容量规划/故障演练/成本分析
  • 生成服务依赖图 + ADR
  • 适用:企业级微服务、15+ 个服务

>> 命令

>>microservice_review_l1   # 微服务架构快速审视
>>microservice_checklist   # 生成检查清单

相关 Skills

  • 设计: component-boundary, interface-contract(服务边界和接口)
  • 原则: principle-soc, principle-solid(分离与设计原则)
  • 技术: tech-selection(中间件选型)
  • 同类: web-app-thinking(单体 vs 微服务对比)

TODO: 待细化各组件选型对比和最佳实践