flowstate-flowstate-platform-epicdm-flowstate-provisioning
Package-local agent skill for @epicdm/flowstate-provisioning.
Tags
Publisher
Versions
1 version published — latest: 0.1.0
- 0.1.0publishedInvalid Date
Skill
flowstate-provisioning Package Skill
Package: @epicdm/flowstate-provisioning
Repository: flowstate-platform
Path: packages/worker-provisioning
Version: 0.1.0
Use this published Dojo skill as the package-level entrypoint. For detailed workflows, use the package-local skills listed below.
Primary Package Workflow
Provisioning Queue Lifecycle
Status: Active
Purpose: Keep queue-driven tenant infrastructure changes ordered and recoverable.
Scope: packages/worker-provisioning
Trigger: Work on provisioning queue messages, handlers, Cloudflare helpers, tenant worker template, or job statuses.
Input: Lifecycle change and expected tenant infrastructure effect.
Output: Handler changes with retry-safe job behavior and tests.
Workflow
- Start at
src/index.tsto understand queue dispatch, job status changes, retry backoff, and dead-letter behavior. - For provision behavior, follow
src/handlers/provision.tsin order: D1, schema SQL, KV, Vectorize, dispatch worker, seed data, credit bucket, tenant row, optional OBS project, active status, job completion. - For suspend/resume/delete, use matching files in
src/handlersand Cloudflare helper modules. - Update
src/cloudflare/*.tshelpers when API shape changes.createCfClientthrows onsuccess: false; tests should assert thrown errors. - Keep optional integrations non-blocking when source already treats them that way, especially OBS project creation in provision.
- Do not acknowledge failed messages after max attempts; the worker intentionally leaves them for Cloudflare Queues dead-letter handling.
Verification
yarn test __tests__/handlers/provision.test.tsyarn test __tests__/handlers/suspend.test.ts __tests__/handlers/resume.test.ts __tests__/handlers/delete.test.tsyarn test __tests__/cloudflare/*.test.tsyarn typecheck
Composition
- Use
flowstate-provisioning-subscription-cronfor jobs created by subscription expiry. - Use
flowstate-rxdb-d1-rest-rbacwhen tenant schema or worker behavior is involved.
Package Skill Inventory
worker-provisioning Skill Inventory
Package: @epicdm/flowstate-provisioning
Purpose: Queue-driven tenant infrastructure lifecycle on Cloudflare plus subscription lifecycle enforcement.
| Skill | Type | Use When | Source Anchors |
|---|---|---|---|
flowstate-provisioning-queue-lifecycle | Workflow | Changing provision, suspend, resume, delete, Cloudflare API calls, tenant worker template, queue retry, or job status behavior. | src/index.ts, src/handlers/*.ts, src/cloudflare/*.ts, src/lib/template.ts |
flowstate-provisioning-subscription-cron | Workflow | Changing renewal_due, past_due, expired, suspend enqueue, webhook, or orphaned job behavior. | src/cron/subscription-check.ts, __tests__/cron/subscription-check.test.ts |
Composition
- Compose with
flowstate-payment-x402-provisioningwhen jobs are enqueued from paid provisioning. - Compose with
flowstate-rxdb-d1-rest-rbacwhen tenant worker template or D1 schema behavior changes. - Compose with
flowstate-obs-ingestion-streamingwhen OBS project setup changes.
Review Gate
worker-provisioning Skill Review
Reviewed: 2026-06-30 Result: Pass for local agent use.
Checks
- Skills capture handler sequence, retry semantics, and subscription cron behavior.
- Source paths and tests are concrete.
- No API/source or Dojo files were modified.
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/worker-provisioning/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-flowstate-platform-epicdm-flowstate-provisioning --target <target> --out ./skillsReplace <target> with your agent target identifier. See the CLI docs for details.