flowstate-flowstate-platform-epicdm-worker-dashboard-api
Package-local agent skill for @epicdm/worker-dashboard-api.
Tags
Publisher
Versions
1 version published — latest: 0.0.1
- 0.0.1publishedInvalid Date
Skill
worker-dashboard-api Package Skill
Package: @epicdm/worker-dashboard-api
Repository: flowstate-platform
Path: packages/worker-dashboard-api
Version: 0.0.1
Use this published Dojo skill as the package-level entrypoint. For detailed workflows, use the package-local skills listed below.
Primary Package Workflow
Dashboard API Worker
Status: Active
Purpose: Add dashboard API behavior while preserving route-local auth and OpenAPI contracts.
Scope: packages/worker-dashboard-api
Trigger: Route, schema, DB, auth, or scheduled-handler changes.
Input: Endpoint path, auth requirement, Zod schema, DB or downstream dependency.
Output: Route implementation, schema updates, and tests.
Workflow
- Start at
src/index.tsto confirm where the route group is mounted. - For authenticated user routes, apply
requireAuth()inside the route module. - Define request/response schemas under
src/schemas/and usecreateRoutefor OpenAPI routes. - Use
getDb(c.env.DB)for dashboard D1 access. - Add tests under
test/routes,test/lib, ortest/middlewarematching the changed layer. - Regenerate OpenAPI with
yarn workspace @epicdm/worker-dashboard-api generate:openapiwhen route schema changes.
Verification
- Run
yarn workspace @epicdm/worker-dashboard-api test. - Run
yarn workspace @epicdm/worker-dashboard-api typecheck.
Package Skill Inventory
Skill Inventory: @epicdm/worker-dashboard-api
Package Role
@epicdm/worker-dashboard-api provides dashboard profile, billing proxy, checkout, cloud management, onramp, media, email webhook, and cron APIs.
Skills
| Skill | Type | Use When | Source Backing |
|---|---|---|---|
dashboard-api-worker | Workflow | Adding or changing dashboard routes, auth, OpenAPI schemas, or scheduled behavior. | src/index.ts, src/routes/*, src/schemas/*, tests |
dashboard-proxy-and-hooks | Pattern | Working on billing proxies, SendGrid webhooks, cron routes, media, or CDP onramp. | src/routes/billing.ts, src/middleware/sendgrid-webhook.ts, src/middleware/cron.ts, src/lib/onramp.ts |
Composition Notes
- Compose with
@epicdm/flowstate-api-corepatterns forcreateApiApp,ok,err, and auth. - Compose billing work with payment API contracts.
- Keep public/media and webhook auth separate from user JWT auth.
Review Gate
Review Gate: @epicdm/worker-dashboard-api Skills
Result
Pass.
Checks
- Skills are backed by worker entrypoint, routes, middleware, library code, and tests.
- Per-route auth and public/webhook/cron boundaries are explicit.
- Verification commands are package-local.
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-dashboard-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-dashboard-api --target <target> --out ./skillsReplace <target> with your agent target identifier. See the CLI docs for details.