flowstate-flowstate-platform-epicdm-worker-marketplace-api
Package-local agent skill for @epicdm/worker-marketplace-api.
Tags
Publisher
Versions
1 version published — latest: 1.0.0
- 1.0.0publishedInvalid Date
Skill
worker-marketplace-api Package Skill
Package: @epicdm/worker-marketplace-api
Repository: flowstate-platform
Path: packages/worker-marketplace-api
Version: 1.0.0
Use this published Dojo skill as the package-level entrypoint. For detailed workflows, use the package-local skills listed below.
Primary Package Workflow
Marketplace Developer And Cron
Status: Active
Purpose: Guide changes to marketplace account lifecycle and scheduled maintenance.
Scope: packages/worker-marketplace-api
Trigger: Developer enrollment/account/signing-key, webhook, admin, federation, purchase, or cron work.
Input: Target route or scheduled job behavior.
Output: Route, middleware, query, and scheduled tests that keep marketplace state consistent.
Workflow
- Start at
src/index.tsto locate route mounting, middleware, and scheduled cron expressions. - For developer routes, pair
src/routes/developer-*.tswith matching schemas and DB query helpers. - For protected routes, preserve middleware placement: developer auth in route modules, webhook HMAC under
/webhooks/*, cron auth under/cron/*, and admin middleware under/admin. - For scheduled work, keep failures isolated. Existing cron code uses
ctx.waitUntiland catches federation cache cleanup errors so one job does not block others. - Update tests near the changed surface: route tests under
test/routes, DB helper tests undertest/db, andtest/scheduled.test.tsfor cron behavior.
Cron Map
| Schedule | Behavior | Source |
|---|---|---|
*/5 * * * * | Expire stale purchases and enrollments | src/index.ts, src/lib/cron/expire-* |
0 * * * * | Sync download counters from KV to D1 | src/lib/cron/sync-downloads |
5 0 * * * | Aggregate daily install metrics | src/lib/cron/aggregate-daily-metrics |
15 * * * * | Clean federation cache | src/db/queries/vsx-queries |
Verification
yarn test test/routes/<route>.test.tsyarn test test/db/<helper>.test.tsyarn test test/scheduled.test.tsyarn typecheck
Composition
- Use
flowstate-marketplace-publish-pipelinefor archive upload and version publication.
Package Skill Inventory
worker-marketplace-api Skill Inventory
Package: @epicdm/worker-marketplace-api
Purpose: Marketplace listings, publishing, developer enrollment, reviews, purchases, VSX compatibility, webhooks, and cron maintenance.
| Skill | Type | Use When | Source Anchors |
|---|---|---|---|
flowstate-marketplace-publish-pipeline | Workflow | Changing archive upload, signature verification, app version creation, review, R2 write, or cache invalidation. | src/lib/publish-pipeline.ts, src/routes/publishing.ts, src/routes/developer-upload-put.ts, src/lib/upload-verify.ts, test/lib/publish-pipeline.test.ts |
flowstate-marketplace-developer-and-cron | Workflow | Changing developer enrollment/account flows, webhook auth, admin/federation maintenance, or scheduled jobs. | src/index.ts, src/routes/developer-*.ts, src/routes/cron.ts, src/middleware/*.ts, test/routes/*.test.ts, test/scheduled.test.ts |
Composition
- Compose with
flowstate-payment-x402-provisioningwhen marketplace purchases depend on payment records or course purchase behavior. - Compose with
flowstate-mcp-tool-registryif marketplace operations are exposed through MCP later.
Exclusions
- Do not create separate skills for every public list route; route shape is straightforward and well covered by tests.
- Do not update
.flowstate/dojoin this pass.
Review Gate
worker-marketplace-api Skill Review
Reviewed: 2026-06-30 Result: Pass for local agent use.
Checks
- Skills focus on real operational workflows: publish pipeline and developer/cron lifecycle.
- Source paths include route callers, DB schema, middleware, library helpers, and tests.
- Skills avoid generated feature inventory copying.
Follow-up
- Add a focused skill if future federation logic grows beyond admin/cron maintenance.
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-marketplace-api/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-worker-marketplace-api --target <target> --out ./skillsReplace <target> with your agent target identifier. See the CLI docs for details.