Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

microservicesmicroservices 搜索

Agent Skill

microservices 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

672

周安装

28

GitHub Stars

16

下载量

224
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:microservices(microservices 搜索)
来源仓库:https://github.com/krzysztofsurdy/code-virtuoso
仓库路径:skills/microservices
安装命令:
npx skills add https://github.com/krzysztofsurdy/code-virtuoso --skill microservices
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/krzysztofsurdy/code-virtuoso --skill microservices

简介

microservices 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于微服务架构相关的研究检索任务。
  • 通过 npx skills add 命令从 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围和维护状态,注意是否涉及联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Microservices and Distributed Systems

Microservices architecture splits a system into independently deployable services, each owning a specific business capability. This approach trades the simplicity of a monolith for flexibility in scaling, deployment, and technology choice -- but only when the organizational and technical complexity is justified.

When to Use Microservices vs Monolith

There is no universal answer. The decision depends on team size, domain complexity, and operational maturity.

FactorMonolith FavoredMicroservices Favored
Team sizeSmall team (fewer than 10 developers)Multiple autonomous teams that need independent release cycles
Domain complexitySimple or poorly understood domainWell-understood domain with clear bounded contexts
Deployment cadenceInfrequent releases are acceptableDifferent parts of the system need to ship at different speeds
Scaling needsUniform load across the applicationSpecific components need independent scaling
Operational maturityLimited infrastructure automationMature CI/CD, monitoring, and container orchestration
Data isolationShared database is manageableServices need independent data stores and schemas

Start monolithic unless you have a clear reason not to. A well-structured modular monolith can be decomposed later. A premature microservices architecture adds distributed systems complexity without proportional benefit.


Service Decomposition Strategies

Deciding where to draw service boundaries is the hardest part. Get it wrong and you end up with a distributed monolith -- all the costs of distribution with none of the benefits.

By Business Capability

Align services to what the organization does rather than how the software is structured. Each service maps to a business function: order management, inventory, billing, notifications. Services change when the business capability they represent changes.

By Subdomain (Domain-Driven Design)

Use bounded contexts from domain-driven design to identify natural boundaries. Each bounded context has its own ubiquitous language and internal model. A "Customer" in the billing context may carry different attributes than a "Customer" in the shipping context -- and that is fine.

Strangler Fig Migration

When migrating from a monolith, extract services incrementally rather than doing a big-bang rewrite. Route traffic through a facade that delegates to the monolith by default but redirects specific capabilities to new services as they are built. Over time, the monolith shrinks until it can be retired entirely. An anti-corruption layer translates between old and new models during the transition.

Decomposition Heuristics

  • High coupling between candidates -- keep them together, they are likely one service
  • Different rates of change -- separate them, they will benefit from independent deployment
  • Different scaling profiles -- separate them, they need different resource allocation
  • Shared data -- if two candidates always read and write the same tables, splitting them creates unnecessary network chatter

Communication Patterns

Services must communicate, and the choice between synchronous and asynchronous interaction shapes the entire system's behavior.

StyleMechanismStrengthsWeaknesses
Synchronous request-replyREST, gRPC, GraphQLSimple mental model, immediate responseTemporal coupling, cascading failures
Asynchronous messagingMessage queues (point-to-point)Decouples sender from receiver, buffering under loadAdded infrastructure, eventual consistency
Event-drivenEvent bus, pub/subLoose coupling, multiple consumers possibleHarder to debug, event ordering challenges

Rule of thumb: Use synchronous calls for queries that need an immediate answer. Use asynchronous messaging for commands and events where the sender does not need to wait for the result.

See Communication Patterns Reference for detailed coverage of API gateways, service discovery, gRPC, service mesh, and sidecar patterns.


Data Management in Distributed Systems

Each service should own its data. Shared databases create hidden coupling that defeats the purpose of service independence. This creates new challenges around consistency and cross-service transactions.

Key Principles

  • Database per service -- each service has its own data store, accessed only through its API
  • No direct database sharing -- if another service needs data, it requests it through the owning service's interface
  • Eventual consistency is the norm -- strong consistency across services requires distributed transactions, which are fragile and slow
  • Choose the right data store -- different services may use different database technologies based on their access patterns

Core Data Patterns

PatternPurpose
CQRSSeparate read and write models to optimize each independently
Event SourcingStore state as a sequence of immutable events instead of overwriting current state
SagaCoordinate multi-service transactions using a sequence of local transactions with compensating actions
OutboxGuarantee reliable event publishing by writing events to a local table within the same database transaction
Eventual ConsistencyAccept that data across services will converge over time rather than being immediately consistent

See Data Patterns Reference for implementation details with multi-language examples.


Resilience Patterns

In a distributed system, failures are inevitable. Network partitions, slow dependencies, and overloaded services are normal operating conditions, not exceptional events. Resilience patterns prevent localized failures from cascading through the entire system.

Pattern Summary

PatternPurpose
Circuit BreakerStop calling a failing dependency; fail fast and give it time to recover
BulkheadIsolate resource pools so one slow dependency cannot exhaust resources needed by others
Retry with BackoffAutomatically retry transient failures with increasing delays and randomized jitter
TimeoutSet upper bounds on how long to wait for a response; never block indefinitely
FallbackProvide degraded but functional behavior when a dependency is unavailable
Health ChecksExpose liveness and readiness endpoints so orchestrators can route traffic and restart unhealthy instances

See Resilience Patterns Reference for implementation details with multi-language examples.


Reference Files

ReferenceContents
Data PatternsCQRS, event sourcing, saga orchestration vs choreography, outbox pattern, eventual consistency with multi-language examples
Resilience PatternsCircuit breaker, bulkhead, retry with backoff, timeout, fallback, health checks with multi-language examples
Communication PatternsREST, gRPC, GraphQL federation, message queues, API gateway, service discovery, sidecar and service mesh with multi-language examples

Integration with Other Skills

SituationRecommended Skill
Domain modeling and bounded context designInstall knowledge-virtuoso from krzysztofsurdy/code-virtuoso for clean architecture guidance
Testing microservices (contract tests, integration tests)Install knowledge-virtuoso from krzysztofsurdy/code-virtuoso for testing strategies
API design for service interfacesInstall knowledge-virtuoso from krzysztofsurdy/code-virtuoso for API design principles
Performance tuning individual servicesInstall knowledge-virtuoso from krzysztofsurdy/code-virtuoso for performance optimization

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.8%
按下载量换算80

Claude

27.63%
按下载量换算62

Cursor

20.06%
按下载量换算45

Gemini CLI

8.99%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills