microservice-builder
Use to create/bootstrap a NEW microservice inside a Fuze repo end-to-end — service boundary + directory, the frozen contract, PACKAGING (the private…
от FuzeOne★ 18 звёзд на GitHub
Установить microservice-builder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
microservice-builder
Bootstraps a new microservice as a fully-governed, packaged, deployable unit — not just a folder. Orchestrated contract-first; each step is owned by the domain agent named below. The skill is the procedure; the orchestrator runs it and fans out.
Inputs — service.json (validate against governance/service-manifest.schema.json)
Names the service, its scope, type (http-service | worker | library), language, the data engines it needs, opt-in channels (mcp/cli), and packaging/deploy choices (client-package name, image registry, Argo placement). If absent, derive it from the user story first and write it.
Steps
- Boundary + plan — run
feature-tech-planning: build-vs-adopt, the service's public interface, and confirm the package/service name + Argo placement (umbrella vs standalone). (contract-designer) - Directory — scaffold the service dir in the repo's convention (
services/<svc>/or the repo's layout), with src/test/config skeleton, README stub, and a health endpoint. - Contract (the gate) — freeze OpenAPI/AsyncAPI + event (Kafka Zod) schemas; lint (Spectral); generate the typed client. Nothing else merges until this PR is frozen. (contract-designer)
- Data contract — write
data-contract.jsonbeside the spec (schemagovernance/data-contract.schema.json, standardgovernance/data-consistency-standard.md): the entity types the service owns, the topics it emits (envelope v2) and consumes, every cross-service reference with its validation level and on-delete policy, and — for a BFF — its projections. Follow thedata-consistencyskill. (contract-designer)
- Data contract — write
- PACKAGING — first-class, not an afterthought: (devops-engineer owns the wiring; contract-designer owns the client API)
- Client npm package
@<scope>/<svc>-client:package.jsonwithpublishConfigtargeting the private registry (GitHub Packageshttps://npm.pkg.github.com, the repo's scope,access: "restricted"— never public npm), therepositoryfield set, types/.d.tsemitted, and a consumer.npmrcsnippet documented. Wire it into the release pipeline so it publishes on version bump. A service isn't done until this is publishable. - Container image: a
Dockerfile(multi-stage, non-root), build, and publish to the image registry (GHCR by default); add the service to the release/CI image build matrix and the prod values tag-bump. - Versioning/release: semver via conventional commits; the release workflow bumps the client package + image tag together; changelog generated.
- Client npm package
- Data tier — per-service DB role/database, ordered + idempotent migrations and their deploy mechanism (pre-sync Helm/Argo Job), connection wiring via
DATABASE_URL/SealedSecret/service-DNS. (database-engineer)- For a shared production store, apply
shared-datastore-provisioning: discover FuzeInfra's existing Postgres/Mongo provisioning and sealing workflows, land the infrastructure password secret with the enabled allocation in one owner PR, drive the app credential handoff, and verify authentication after GitOps sync. Missing local kubeconfig is not a provisioning blocker. - If the data contract emits or consumes events: the
event_outbox+ relay, the consumer inboxprocessed_events,aggregate_versionon owned entities, andref_indexfor each L1 reference — all from the shared events/identity packages, never hand-rolled. (database-engineer + backend-engineer)
- For a shared production store, apply
- Deploy wiring — Helm
Deployment+Service+values with anenabledgate; Argo per the hybrid model (core/coupled → the umbrella chart's one Application; independently-lifecycled → its own Argo Application); image in the CI matrix + prod values tag-bump; SealedSecrets scaffolding. Prod is GitOps — never hand-deploy. (devops-engineer) - Channels (optional, per
service.json) — MCP server scaffold (mcp-engineer) and/or CLI scaffold (cli-engineer), each generated from the contract/client. - Tests — unit-test skeleton with the implementer; independent contract/integration tests authored by
test-engineer.
Verify (the service stands up)
- Service builds + type-checks;
Dockerfilebuilds an image. helm templaterenders the new chart withenabled: true;kubeconformpasses; the Argo Application/umbrella entry resolves.- The
@<scope>/<svc>-clientpackage builds, resolves from source in-repo, and has valid privatepublishConfig+repository. - Contract lints (Spectral); migrations apply cleanly + idempotently.
data-contract.jsonvalidates against its schema; every foreign-id column in the migrations is declared inreferences[]; each consumed*.deletedtopic has a handler implementing the declared on-delete policy.- The service appears in the CI build matrix and prod values.
Ownership (see governance/routing.md)
Orchestrated; contract gate = contract-designer, **packaging + deploy wiring = devops-
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл microservice-builder?
Use to create/bootstrap a NEW microservice inside a Fuze repo end-to-end — service boundary + directory, the frozen contract, PACKAGING (the private @scope/<svc>-client npm package, the container image + CI/registry wiring, and versioning), the per-service data tier, the Helm/Argo/CI deploy wiring, and optional MCP/CLI channels — then verify it stands up. The service-level analog of sdlc-bootstrap. Reads a service manifest (`service.json`, schema governance/service-manifest.schema.json).
Как установить скилл microservice-builder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл microservice-builder запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…