Логотип Microservice Architecture

Microservice Architecture

Сообщество
andrew0928
microservice-architecture

Планируйте микросервисную архитектуру и миграцию в стиле Andrew: проверяйте, действительно ли микросервисы подходят; определяйте границы сервисов с учётом реальных бизнес-задач; развивайте системы постепенно, а не переписывайте их с нуля; рассматривайте платформенные возможности, среду выполнения и доставку как неотъемлемые составляющие архитектуры. Используйте при оценке перехода на микросервисы, разделении монолита, планировании миграции, выборе общей инфраструктуры, контейнеризации сервисов или определении базовых требований к CI/CD и эксплуатации, необходимых для безопасной работы множества сервисов.

Обзор

Издательandrew0928
Репозиторийandrew-skills
Название навыкаmicroservice-architecture
Звёзды
36
Форки
6
Файлы в комплекте
7
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 7

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — andrew0928. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Microservice Architecture в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/andrew0928/andrew-skills/tree/main/plugins/architect/skills/microservice-architecture
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andrew0928/andrew-skills.git /tmp/andrew-skills
mkdir -p .claude/skills
cp -r /tmp/andrew-skills/plugins/architect/skills/microservice-architecture .claude/skills/microservice-architecture
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Microservice Architecture в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Microservice Architecture, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Microservice Architecture не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Andrew Microservice Architecture

Overview

Use this skill when the question is not only how to build one service, but how to shape the whole application and platform so multiple services can evolve, deploy, and operate safely together.

Microservices are not the goal. They are one way to solve maintenance, deployment, scaling, and organizational-fit problems. Start from the pain that justifies service boundaries, move in small steps, and only add infrastructure that the team can actually run.

Working Style

  • Write in Traditional Chinese when the user or repo context is Chinese.
  • Start from the business problem, maintenance pain, and team capability before proposing microservices.
  • Treat microservice architecture as a socio-technical design, not only a code decomposition exercise.
  • Align service boundaries with business flow and organizational responsibility, not only technical layers.
  • Cut only as far as the system gains real independence or operability.
  • Prefer refactoring and staged extraction over rewrite-from-scratch.
  • Use mature external services when they solve the problem better than custom code.
  • Treat API gateway, service discovery, messaging, logging, health, and deployment flow as part of the architecture, not afterthoughts.
  • Prefer container and packaging models that make start, stop, deploy, and rollback predictable.
  • Ask whether a capability needs runtime computation at all. If not, move it to build time or use simpler hosting.
  • Validate risky changes with focused spikes and runnable POCs before institutionalizing them.

Workflow

1. Problem Framing And Fit

  • Define the actual pain the architecture must solve:
    • maintenance cost
    • deployment friction
    • fault isolation
    • scale-out need
    • mixed hosting environments
    • team ownership boundaries
  • State why a monolith or modular system is not already sufficient.
  • Check whether the team has enough baseline capability in:
    • source control
    • build and release
    • monitoring
    • deployment automation
    • production diagnosis
  • Ask whether some parts of the system do not need runtime processes and should remain static or build-time generated instead.

2. Service Boundary And Responsibility

  • Identify candidate boundaries from real business or organizational seams.
  • Define each service by the one responsibility it should own end to end.
  • Prefer boundaries that improve deployability, operability, and ownership together.
  • Avoid over-splitting just because the code can be split.
  • Decide where technical heterogeneity is worth the operational cost.
  • Decide where a mature third-party service is better than a custom-built one.
  • Ensure each service can be understood as a meaningful capability, not only a thin technical wrapper.

3. Migration And Transitional Architecture

  • Do not rewrite everything from scratch unless there is a very strong reason.
  • Stop making the monolith larger before trying to split it.
  • Move upward through reuse levels deliberately:
    • source code
    • library
    • component
    • service
  • Modularize first if direct service extraction is still too expensive.
  • Use transitional glue code when it lowers migration risk, but treat it as disposable.
  • Choose the first cut by impact and feasibility, not by fashion.
  • Keep the system shippable while the migration is in progress.

4. Platform Capability Plan

  • Decide which shared capabilities are required now and which can wait:
    • API gateway
    • service discovery
    • health check
    • communication and event system
    • centralized log or trace
    • configuration management
  • For service discovery, define:
    • registration
    • query
    • health signal
    • metadata or tags
  • Choose control style deliberately:
    • client-side discovery for maximum caller control
    • server-side discovery for centralized routing and lower client intrusion
  • Plan how internal and external traffic will be routed without exposing unnecessary internal topology.
  • Use service metadata when workload tier, region, or SLA class must affect routing.

5. Runtime And Hosting Model

  • Design the runtime topology, not only the code topology.
  • Decide which roles exist around one capability, such as:
    • public API
    • worker
    • scheduler
    • reverse proxy
    • SDK
  • Choose hosting style based on lifecycle control, not habit.
  • In containerized environments, prefer runtime models that let the service control its own startup, shutdown, health, and deregistration precisely.
  • Treat one process per container as the default unless there is a clear reason not to.
  • Let orchestration handle restart, placement, and scaling instead of duplicating those concerns inside each service host.
  • Keep storage mounts, ports, health probes, and startup dependencies explicit.

6. Delivery And System-As-Code Model

  • Decide the minimum reliable delivery flow before buying more tooling.
  • Keep these foundations in place:
    • version control
    • automated build and tests
    • artifact management
    • release management
  • Use package feeds or image registries as the release backbone.
  • Do not let developer laptops become the source of production deployment artifacts.
  • Keep branch strategy only as complex as the release process needs.
  • Treat deployment definitions, routing rules, templates, static site generation, and operational scripts as source-controlled code.
  • If a capability can be rendered ahead of time, prefer static output plus simple hosting over a permanent runtime service.

7. POC And Incremental Validation

  • Run spikes for the risks that could sink the migration, such as:
    • API compatibility
    • packaging and deployment
    • service discovery integration
    • container lifecycle behavior
    • external-service replacement
    • mixed cloud or on-prem hosting
  • Prefer runnable slices over slideware.
  • Validate both architecture fit and team operability.
  • Fail early in the POC stage, not after the organization is already committed.

8. Evaluation

  • Compare candidate architectures by:
    • reduced maintenance complexity
    • deployment independence
    • operational simplicity
    • platform fit
    • team skill fit
    • migration risk
    • long-term extensibility
  • Prefer the design that solves the current pain without forcing premature infrastructure complexity.
  • Name which later signals would justify more splitting, more platform investment, or rollback to a simpler approach.

Design Checks

  • Revisit the plan if microservices are proposed without a clearly named pain they solve.
  • Revisit the boundary if the cut follows technical layers but not business or team ownership.
  • Revisit the split if a service cannot operate independently enough to justify being a separate service.
  • Revisit the migration if rewrite is being chosen only because the old code is unpleasant.
  • Revisit the platform plan if the infrastructure list is larger than the team's operational ability.
  • Revisit the runtime model if service registration, shutdown, and health cannot be aligned with process lifecycle.
  • Revisit the build-vs-run decision if a service exists only to serve mostly static or precomputable content.
  • Revisit the delivery model if production artifacts can still be created ad hoc from a developer machine.
  • Revisit the architecture if every problem is being solved by custom code even when mature services already exist.

Default Output Shape

When the user asks for microservice architecture or migration design, respond in this order unless they request another structure:

  1. Problem Analysis
  2. Microservice Fit
  3. Service Boundaries
  4. Migration Strategy
  5. Platform Capabilities
  6. Runtime And Hosting Model
  7. Delivery And Operability Model
  8. POC
  9. Evaluation
  10. Risks And Refactor Triggers

Use these expectations for each section:

  • Problem Analysis: define the current pain, constraints, and organizational context.
  • Microservice Fit: state why microservices are or are not justified now, and what entry conditions matter.
  • Service Boundaries: define candidate services, responsibilities, autonomy, and build-vs-buy decisions.
  • Migration Strategy: define extraction order, transitional glue, compatibility boundaries, and how to keep shipping.
  • Platform Capabilities: define gateway, discovery, messaging, health, config, and observability needs.
  • Runtime And Hosting Model: define roles, container or host model, lifecycle control, and health behavior.
  • Delivery And Operability Model: define source control, CI/CD, artifacts, registry usage, and static-vs-runtime decisions.
  • POC: propose the smallest validation slices that prove technical and operational feasibility.
  • Evaluation: compare options and state the recommendation.
  • Risks And Refactor Triggers: name what scale, org, or reliability changes would force the next architectural step.

References

  • Read references/microservice-fit-and-boundary-principles.md when the task is about whether microservices fit, where to cut boundaries, autonomy, technical heterogeneity, or why over-splitting is dangerous.
  • Read references/microservice-evolution-and-build-vs-buy-principles.md when the task is about staged migration, modularize-then-serviceize strategy, transitional glue code, mature third-party service adoption, or avoiding hype-driven rewrites.
  • Read references/microservice-platform-and-discovery-principles.md when the task is about API gateways, service discovery, registry patterns, service metadata, internal routing, health checks, or messaging infrastructure.
  • Read references/container-driven-runtime-principles.md when the task is about container-driven design, runtime roles, self-host vs IIS-style hosting, service lifecycle control, or health and shutdown behavior.
  • Read references/delivery-and-system-as-code-principles.md when the task is about CI/CD baseline, artifact and package management, infrastructure or site definitions as code, or replacing unnecessary runtime systems with static generation and simpler hosting.
  • Keep article-specific notes in references/.
  • Promote only stable cross-article guidance back into this SKILL.md.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Microservice Architecture?

Планируйте микросервисную архитектуру и миграцию в стиле Andrew: проверяйте, действительно ли микросервисы подходят; определяйте границы сервисов с учётом реальных бизнес-задач; развивайте системы постепенно, а не переписывайте их с нуля; рассматривайте платформенные возможности, среду выполнения и доставку как неотъемлемые составляющие архитектуры. Используйте при оценке перехода на микросервисы, разделении монолита, планировании миграции, выборе общей инфраструктуры, контейнеризации сервисов или определении базовых требований к CI/CD и эксплуатации, необходимых для безопасной работы множе...

Зачем использовать Microservice Architecture в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Microservice Architecture — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Microservice Architecture в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/andrew0928/andrew-skills/tree/main/plugins/architect/skills/microservice-architecture. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Microservice Architecture?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Microservice Architecture?

С любым количеством. В TypingMind вы можете использовать Microservice Architecture с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Microservice Architecture?

Навык опубликован на GitHub. Издатель — andrew0928. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇