Command Palette

Search for a command to run...

Назад к скиллам
скилл № 18011

microservice-readiness

Use to audit whether an existing microservice is fully ready across ALL production dimensions — backend, DB, frontend, npm packages (TS + Python), tests, SDK…

БесплатноБез исполняемых скриптов
FuzeOneот FuzeOne★ 18 звёзд на GitHub

Установить microservice-readiness в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

microservice-readiness

Audits an existing microservice against the full FuzeFront production-readiness checklist. Run this after sprint closure, before flipping enabled: true in Helm/feature-flag, and as part of any pre-release gate. The audit produces a status table (Complete / Gap / Missing) plus a fix list — every gap is a required fix, not a suggestion.

Inputs

  • <service> — the service name exactly as it appears in services/<service>/ and values.yaml (e.g. selection-list-service)
  • <slug> — the camelCase key in values.yaml (e.g. selectionListService)
  • <flag> — the feature flag key (e.g. fuzefront.selection-lists.service)
  • <ts-client-pkg> — the published TypeScript client package name (e.g. @fuzeone/selection-list-client)
  • <ui-pkg> — the published UI package name if any (e.g. @fuzeone/selection-lists-ui)

Checklist (run every item, report every finding)

1. Backend service

Look in services/<service>/src/:

  • Entry point (app.ts) mounts routes in correct order (health before auth, auth before business)
  • All resource routes present (lists.ts, items.ts, etc. matching OpenAPI paths)
  • Auth middleware (middleware/auth.ts) — stateless JWT verify, no DB round-trip on every request
  • Authz middleware (middleware/authz.ts) — Security-API-backed ReBAC (Permit.io via @fuzefront/auth); test-mode no-op; flag kill-switch present
  • Service layer extracted from route handlers (not inline controller logic)
  • Health endpoint returning { status: "ok" } at /health
  • Dockerfile is multi-stage, non-root, copies all workspace packages it imports (check package.json for @fuzefront/* and @fuzeone/* deps; each must have a COPY packages/<pkg>/ stage before npm install)

Fix if missing: Implement the missing slice; ensure Dockerfile COPY mirrors packages/identity/ + packages/feature-flags/ pattern.


2. Database

Look in services/<service>/src/db/migrations/:

  • Core tables migration (resources with typed IDs, org_id isolation, unique constraints)
  • All referenced join/junction tables have migrations
  • Indexes migration (separate, applied after data migrations)
  • All migrations are ordered (YYYYMMDD_NNNNNN_description.ts) and idempotent (createTableIfNotExists / CREATE TABLE IF NOT EXISTS)
  • Knex config at src/db/knexfile.ts (or equivalent)
  • Migration runner at src/db/migrate.ts — called on pod start or via Helm pre-sync Job

Fix if missing: Add the missing migration in the next numbered slot; test that it runs twice without error.


3. Frontend UI package

Look in packages/<service>-ui/:

  • Package exists with a real package.json (name, version, publishConfig → GitHub Packages, access: "restricted")
  • Exports actual React components (not export {} placeholder stubs)
  • Vite config present with lib mode + tsconfig.build.json for .d.ts emission
  • All flows from design/frames/<feature>/manifest.json are implemented (compare frame inventory vs exported components)
  • App.tsx (shell) imports from this package and uses real components, gated by useFlag('<flag>', false)
  • Shell nav item (SidePanel.tsx or equivalent) is also flag-gated

Fix if missing: Implement missing flows; add FederatedAppErrorBoundary wrapper on each route; ensure <Navigate to="/dashboard" replace /> when flag is OFF.


4. npm Packages (TypeScript + Python)

TypeScript client (<ts-client-pkg> at <ts-client-dir>/):

  • package.json has name, version, publishConfig.registry: "https://npm.pkg.github.com", publishConfig.access: "restricted", repository field
  • src/client.ts covers all OpenAPI operations (verify against spec path count)
  • src/types.ts matches OpenAPI schemas
  • src/errors.ts maps HTTP status codes to typed error classes
  • package.json has a lint:contract script running Spectral against the service OpenAPI spec
  • Published in release.yml on version bump (or dedicated publish workflow)

Python client (packages/<service>-client-py/ or similar):

  • Present if the service is consumed by any Python workloads
  • Has a dedicated PyPI publish workflow triggered on tag <pkg>/v*

Fix if missing: Add the missing package; wire its publish into packages-publish.yml or a dedicated workflow.


5. Tests

Service unit tests (services/<service>/tests/):

  • Test files cover all route handlers + middleware + service layer
  • package.json test script runs them
  • Wired into CI (ci.yml or service-tests.yml) — must be a required gate, not just present on disk

Contract/acceptance integration tests (tests/<service>/):

  • Independent test package @fuzefront/<service>-tests
  • Covers all API paths from the OpenAPI spec (contract tests)
  • Security tests: authz boundary tests (403 for unpermitted cal
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл microservice-readiness?

Use to audit whether an existing microservice is fully ready across ALL production dimensions — backend, DB, frontend, npm packages (TS + Python), tests, SDK client, OpenAPI spec, MCP tools, user/org global event handling, Helm deploy, CI gating, and feature flag registration. Returns a per-dimension status table with concrete gap findings and the fix action required for each gap. Not for building new services — see microservice-builder.

Как установить скилл microservice-readiness?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл microservice-readiness запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить microservice-readiness с