flowstate-epic-flowstate-community-epicdm-flowstate-rxdb-client
Package-local agent skill for @epicdm/flowstate-rxdb-client.
Tags
Publisher
Versions
1 version published — latest: 1.0.8
- 1.0.8publishedInvalid Date
Skill
flowstate-rxdb-client Package Skill
Package: @epicdm/flowstate-rxdb-client
Repository: epic-flowstate-community
Path: packages/flowstate-rxdb-client
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
Collection Contracts
Use this skill when a task touches query shape, accessor methods, errors, update/delete semantics, or dynamic collection access.
Accessor Methods
Every collection wrapper presents:
insert(doc)bulkInsert(docs)findOne(query)find(query)update(id, updates)delete(id)findOne$(query)in replication mode onlyfind$(query)in replication mode onlygetRxCollection()in replication mode only
Query Shape
{
selector?: Record<string, unknown>
sort?: Array<Record<string, 'asc' | 'desc'>>
limit?: number
skip?: number
}
REST query bodies omit optional fields when unset. Sort directions other than desc are normalized to asc.
Dynamic Typing
IRxDBClient advertises typed collection access but also includes [K: string]: any. Collection properties are assigned at runtime in connect.
Agents should verify:
await client.connect()ran before collection access.- The collection exists in the configured collection map.
- The chosen mode supports the called method.
Error Vocabulary
Use package errors for mode and connection failures:
ConfigurationErrorConnectionErrorReplicationErrorNotSupportedErrorRxDBClientError
Watch Outs
- REST
findOnereturnsnullfor many non-auth query errors. - REST
findrethrows auth errors and wraps other failures. - REST
deletecan hide auth/server errors behindfalse.
Package Skill Inventory
Package Skill Inventory: @epicdm/flowstate-rxdb-client
Package path: packages/flowstate-rxdb-client.
Skill Map
| Skill | Type | Trigger | Teaches | Dojo |
|---|---|---|---|---|
flowstate-rxdb-client | orchestrator | Use when integrating, changing, testing, or documenting @epicdm/flowstate-rxdb-client | Mode selection, routing, public client surface | local-only |
flowstate-rxdb-client-rest-workflows | workflow | Use when wiring REST clients for CLI, MCP, services, token refresh, CRUD, or aggregate calls | RestClient, headers, dynamic accessors, AJV validation, soft delete, aggregate | ready-after-review |
flowstate-rxdb-client-replication-workflows | workflow | Use when building local-first RxDB clients, reactive queries, or sync behavior | ReplicationClient, local DB, reactive access, initial sync, partial replication | ready-after-review |
flowstate-rxdb-client-collection-contracts | reference | Use when checking accessor methods, query shape, update/delete semantics, errors, or dynamic collection access | CollectionAccessor, errors, REST limitations, runtime typing | ready-after-review |
flowstate-rxdb-client-epic-flow-preset | workflow | Use when using createEpicFlowClient or epicFlowCollections | Full FlowState collection preset, subpath import, collection map contract | ready-after-review |
flowstate-rxdb-client-maintenance-and-verification | maintenance | Use before changing internals, dependency versions, generated docs, feature matrix, or downstream contracts | Verification, docs drift, Dojo publication gate | local-only |
Anti-Sprawl Decision
Do not create one skill per exported class, error, or stub. Agents need to choose between REST and replication modes, use collection accessors correctly, and understand the FlowState preset.
Review Gate
Package Skill Review: @epicdm/flowstate-rxdb-client
Package path: packages/flowstate-rxdb-client.
Review Result
Status: drafted, source-backed, verified, pending publication.
The skillset teaches REST and replication workflows, collection contracts, the Epic Flow preset, and package maintenance. It intentionally avoids one skill per symbol.
Checks
- Source review: completed from client source, wrapper source, package exports, downstream references, and generated artifact drift.
- Skill inventory: completed.
- Skill files: completed.
- ASCII/frontmatter scan: passed.
- Package tests: passed, 8 suites and 65 tests.
- Package typecheck: passed.
- Package lint: passed with 182 existing warnings.
- Package build: passed through Nx.
- Generated Dojo replacement: pending.
- Cloud Dojo publication: pending.
Verification Commands
Run before publication:
yarn workspace @epicdm/flowstate-rxdb-client test --runInBand
yarn workspace @epicdm/flowstate-rxdb-client typecheck
yarn workspace @epicdm/flowstate-rxdb-client lint
yarn nx build @epicdm/flowstate-rxdb-client
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-client/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-client --target <target> --out ./skillsReplace <target> with your agent target identifier. See the CLI docs for details.