atomic

flowstate-epic-flowstate-community-epicdm-flowstate-collections

Package-local agent skill for @epicdm/flowstate-collections.

Tags

Publisher

Versions

1 version published — latest: 1.1.9

  • 1.1.9
    publishedInvalid Date

Skill

flowstate-collections Package Skill

Package: @epicdm/flowstate-collections Repository: epic-flowstate-community Path: packages/db-collections Version: 1.1.9

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 adding, removing, renaming, or changing a FlowState collection contract.

Contract Sync Points

Check and update the relevant pieces together:

  • generated RxDB model under src/models
  • generated or hand-authored Zod schema under src/schemas
  • root exports in src/index.ts
  • collections map
  • COMMUNITY_COLLECTIONS and ALL_COLLECTION_NAMES in src/tiers.ts
  • ID prefix maps in src/utils/id
  • D1 table/route expectations in downstream packages
  • tests for models, schemas, tiers, and consumers

Generated File Boundary

Do not casually hand-edit generated models or generated schemas. Identify the upstream Drizzle/generator source, regenerate, then review the generated diff.

Hand-authored workflow schemas and helper contracts can be edited directly, but still need reverse-reference checks because this package is imported broadly.

Tier Routing

Use:

const selected = getCollectionsForTier(collections, premium)
const modes = buildCollectionModes(premium)

Community mode includes 13 local collections. Premium mode returns all collections local through an empty mode map plus default local behavior.

Watch Outs

  • Missing ID prefix entries break createId, reverse lookup, and downstream tools.
  • Docs that say 13 physical collections are stale shorthand for community local limits, not total source collections.
  • Package manifests in some consumers pin released versions; verify dist/version drift before publication.

Package Skill Inventory

Package Skill Inventory: @epicdm/flowstate-collections

Package path: packages/db-collections.

Skill Map

SkillTypeTriggerTeachesDojo
flowstate-collectionsorchestratorUse when a task touches @epicdm/flowstate-collections contracts, exports, consumers, docs, or package skillsPackage purpose, routing, shared contract mental modellocal-only
flowstate-collections-collection-contractsworkflowUse when adding or changing generated RxDB models, Zod schemas, collection maps, ID prefixes, tiers, or exportsContract sync points, generated-file boundaries, collection map and tier routingready-after-review
flowstate-collections-virtual-schemasworkflow/referenceUse when seeding, querying, migrating, or debugging schema-in-database virtual collectionsschemas, records, SchemaRegistry, VirtualCollectionAdapter, seeds, migrationsready-after-review
flowstate-collections-react-data-accessworkflowUse when working with /react hooks, local/remote routing, D1 client behavior, or collection mode configCollectionModeProvider, useAnyCollection, D1 routes, tier mode mapsready-after-review
flowstate-collections-workflow-helpersworkflow/referenceUse when modifying task lifecycle builders, inbox/hierarchy/subordinate queries, or pure helper contractsTask workflow helpers and query helper contractsready-after-review
flowstate-collections-vault-contractsreferenceUse when working with vault item templates, encrypted payload envelopes, audit logs, or crypto-backed collection fieldsVault Zod payloads, encrypted adapter integration, audit contractsready-after-review
flowstate-collections-package-maintenancemaintenanceUse before changing exports, generated contracts, docs, Dojo, feature matrix, or downstream package expectationsVerification, reverse references, stale generated content gatelocal-only

Anti-Sprawl Decision

Do not create one skill per model, Zod schema, ID helper, or table. This package is a shared contract package; the useful skills are contract maintenance workflows and focused references for virtual schemas, React routing, workflow helpers, and vault contracts.

Review Gate

Package Skill Review: @epicdm/flowstate-collections

Package path: packages/db-collections.

Review Result

Status: drafted, source-backed, partially verified, pending test repair and publication.

The skillset is workflow-shaped around data contracts, virtual schemas, React data access, helper contracts, vault payload contracts, and package maintenance.

Checks

  • Source review: completed from package exports, models, tiers, core adapters, tests, and generated artifact drift.
  • Skill inventory: completed.
  • Skill files: completed.
  • ASCII/frontmatter scan: passed.
  • Package typecheck: passed.
  • Package lint: passed with 449 existing warnings.
  • Package build: passed through Nx.
  • Package tests: failed in src/__tests__/tiers.test.ts because tests still expect 32 total collections and 19 remote community collections, while source exposes 34 total collections and 21 remote community collections.
  • Generated Dojo replacement: pending.
  • Cloud Dojo publication: pending.

Verification Commands

Run before publication:

yarn workspace @epicdm/flowstate-collections test
yarn workspace @epicdm/flowstate-collections typecheck
yarn workspace @epicdm/flowstate-collections lint
yarn nx build @epicdm/flowstate-collections

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/db-collections/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-collections --target <target> --out ./skills

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

flowstate-epic-flowstate-community-epicdm-flowstate-collections | dojo.epicflowstate.ai | Epic Dojo