atomic

flowstate-epic-flowstate-community-epicdm-flowstate-rxdb-d1

Package-local agent skill for @epicdm/flowstate-rxdb-d1.

Tags

Publisher

Versions

1 version published — latest: 1.0.8

  • 1.0.8
    publishedInvalid Date

Skill

flowstate-rxdb-d1 Package Skill

Package: @epicdm/flowstate-rxdb-d1 Repository: epic-flowstate-community Path: packages/flowstate-rxdb-d1 Version: 1.0.8

Use this published Dojo skill as the package-level entrypoint. For detailed workflows, use the package-local skills listed below.

Primary Package Workflow

Auth Tenant ACL

Use this skill when Worker behavior depends on who is calling, which org/workspace they can access, and which fields they can read or write.

Auth Paths

The Worker supports:

  • JWT token parsing and revocation checks.
  • internal service auth with x-internal-secret.
  • peer callback/shared-secret paths for selected /peers/* routes.
  • service tokens with data scopes for internal operations.

Authorization Layers

Check these together:

  • org/workspace tenancy
  • collection scope requirements
  • class-level permissions
  • record ACL filters
  • protected fields
  • service-account org grants

Watch Outs

  • Internal secrets should be long enough and compared with timing-safe helpers.
  • Peer shared-secret logic is security-sensitive and can become expensive as active peers grow.
  • Do not bypass tenant filtering for convenience in aggregate/query paths.
  • Protected field lists should use the most specific matching grantee before wildcard defaults.

Package Skill Inventory

Package Skill Inventory: @epicdm/flowstate-rxdb-d1

Package path: packages/flowstate-rxdb-d1.

Skill Map

SkillTypeTriggerTeachesDojo
flowstate-rxdb-d1orchestratorUse when a task touches D1 replication, Worker REST contracts, sync, schema generation, peers, or deploymentPackage entry points, public npm API versus repo runtime surface, routinglocal-only
flowstate-rxdb-d1-client-replicationworkflowUse when wiring replicateCloudflareD1, WsManager, pull/push, live sync, modifiers, or token refreshRxDB replication plugin, HTTP pull, WebSocket push/live, leader electionready-after-review
flowstate-rxdb-d1-worker-rest-contractsworkflow/referenceUse when changing Worker REST routes, query/get/set/delete/aggregate behavior, JSON fields, or errorsREST path contract, D1 dispatch, protected fields, fast path versus DO pathready-after-review
flowstate-rxdb-d1-auth-tenant-aclreferenceUse when changing token parsing, internal auth, peer auth, CLP, ACL, scopes, protected fields, or tenant filtersAuth paths, service scopes, tenancy enforcement, security watch outsready-after-review
flowstate-rxdb-d1-schema-migrationsmaintenanceUse when changing Drizzle tables, migrations, rollbacks, generated RxDB/Zod schemas, or D1-only tablesSchema source of truth, generator sequence, migration checksready-after-review
flowstate-rxdb-d1-virtual-collectionsreferenceUse when changing records-backed VCA routing, dynamic schema lookup, aliases, or table resolutionVirtual routing points and resolver syncready-after-review
flowstate-rxdb-d1-peer-syncworkflowUse when changing peer invite/accept/status/config/resync APIs or peer secrets/checkpoints/peers/* API contracts and internal service integrationready-after-review
flowstate-rxdb-d1-durable-object-synctroubleshooting/referenceUse when debugging WebSocket auth, pull/push conflicts, broadcasts, reconnect, or hibernationDurable Object sync lifecycle and failure modesready-after-review

Anti-Sprawl Decision

Do not create one skill per Drizzle table, Worker handler, or generated schema. The package should be taught through operational surfaces: client replication, Worker REST, auth/tenant/ACL, schema/migration tooling, virtual collections, peer sync, and Durable Object sync.

Review Gate

Package Skill Review: @epicdm/flowstate-rxdb-d1

Package path: packages/flowstate-rxdb-d1.

Review Result

Status: drafted, source-backed, verified, pending publication.

The skillset distinguishes public npm replication APIs from repo-local Worker/runtime/schema surfaces, and it groups the package into operational skills.

Checks

  • Source review: completed from package exports, client replication source, Worker routing, Drizzle layout, peer sync review, and generated artifact drift.
  • Skill inventory: completed.
  • Skill files: completed.
  • ASCII/frontmatter scan: passed.
  • Package typecheck: passed.
  • Package tests: passed, 57 suites and 781 tests, with 3 suites and 64 tests skipped.
  • Package lint: passed with 18 existing warnings.
  • Package build: passed.
  • Generated Dojo replacement: pending.
  • Cloud Dojo publication: pending.

Verification Commands

Run before publication:

yarn workspace @epicdm/flowstate-rxdb-d1 typecheck
yarn workspace @epicdm/flowstate-rxdb-d1 test --runInBand
yarn workspace @epicdm/flowstate-rxdb-d1 lint
yarn workspace @epicdm/flowstate-rxdb-d1 build

Optional runtime checks:

yarn workspace @epicdm/flowstate-rxdb-d1 build:worker
yarn workspace @epicdm/flowstate-rxdb-d1 test:e2e:d1

Publication Gate

Do not publish existing .flowstate/dojo artifacts until they are rebuilt from reviewed package skills.

Usage

Start with this skill to understand the package purpose, then use the package-local focused skills for specific workflows. Keep this Dojo version aligned with packages/flowstate-rxdb-d1/package.json. Do not treat generated feature lists as lessons; use workflow evidence from CODE-REVIEW.md, SKILL-INVENTORY.md, and REVIEW.md.

Install

Run this in your project to install via CLI:

fscloud dojo skill install flowstate-epic-flowstate-community-epicdm-flowstate-rxdb-d1 --target <target> --out ./skills

Replace <target> with your agent target identifier. See the CLI docs for details.