flowstate-flowstate-platform-epicdm-flowstate-marketplace
Package-local agent skill for @epicdm/flowstate-marketplace.
Tags
Publisher
Versions
1 version published — latest: 0.1.0
- 0.1.0publishedInvalid Date
Skill
flowstate-marketplace Package Skill
Package: @epicdm/flowstate-marketplace
Repository: flowstate-platform
Path: packages/marketplace
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
FlowState Marketplace Publishing Workflow
Status: Active
Purpose: Keep marketplace listing and extension publishing behavior coherent across API, DB, storage, review, and UI surfaces.
Scope: packages/marketplace
Trigger: Listing/template APIs, extension publish pipeline, developer flows, reviews, purchases, or marketplace schema changes.
Input: Route or feature target, DB tables, manifest/archive expectations, auth role, and test scenario.
Output: Updated marketplace behavior with route/query/library tests.
Workflow
- Start with the route cluster: public reads are in
src/app/api/listings/*,src/app/api/templates/*, andsrc/app/api/extensions/*; developer writes are insrc/app/api/developer/*. - For extension publishing, preserve the order in
src/app/api/developer/extensions/publish/route.ts: developer auth, multipart check, bundle size check, manifest extraction, archive structure validation, checksum, listing ownership/version checks, R2 upload, auto-review, DB write, and cache invalidation. - Update validation in
src/lib/validation/extension-manifest.tsbefore route code when changing manifest shape. Keep semver, extension type, platform, pricing, activation event, and size constraints explicit. - Put DB behavior in query modules under
src/db/*; updatesrc/db/schema.tsonly for intentional schema changes. - Check admin consumers before exported schema changes with
rg "@epicdm/flowstate-marketplace/db/schema" packages --glob '!**/node_modules/**'. - Add tests next to the affected surface: API tests in
src/__tests__/api/*, DB tests insrc/__tests__/db/*, library tests insrc/__tests__/lib/*, and component tests insrc/__tests__/components/*.
Verification
yarn workspace @epicdm/flowstate-marketplace testyarn workspace @epicdm/flowstate-marketplace typecheck- For schema changes:
yarn workspace @epicdm/flowstate-marketplace db:generate - For deployment-sensitive changes:
yarn workspace @epicdm/flowstate-marketplace build
Red Flags
| Red flag | Required action |
|---|---|
| Upload to R2 before validation or version checks | Reorder to fail before storage side effects. |
| Manifest fields trusted without Zod validation | Update extensionManifestSchema. |
| Listing ownership skipped on existing extension | Use checkListingAccess. |
| Cache not invalidated after publish | Update CacheKeys and invalidation tests. |
Composition
- Use
auth-client-oidc-pkce-workflowfor marketplace login/callback client behavior. - Use
chrome-app-shell-workflowfor shared chrome UI composition.
Package Skill Inventory
Skill Inventory: @epicdm/flowstate-marketplace
Created Skills
| Skill | Type | Trigger |
|---|---|---|
flowstate-marketplace-publishing-workflow | Workflow | Use when changing marketplace listing, extension publishing, developer, or schema behavior. |
Candidate Future Skills
| Candidate | Reason to Split Later |
|---|---|
flowstate-marketplace-extension-archive | Archive extraction and platform bundle validation have their own limits and tests. |
flowstate-marketplace-reviews-purchases | Reviews, purchases, and install flows cross public and developer surfaces. |
flowstate-marketplace-dashboard-ui | Dashboard components are broad enough for UI-specific guidance. |
Source Evidence
src/db/schema.tsdefines templates, app versions, profiles, enrollments, publishers, reviews, purchases, support, and activity tables.src/app/api/developer/extensions/publish/route.tsimplements the publish pipeline.src/lib/validation/extension-manifest.tsdefines manifest constraints.src/__tests__/api/*,src/__tests__/db/*,src/__tests__/lib/*, and component tests cover behavior.
Review Gate
Review: @epicdm/flowstate-marketplace Skills
Result: Pass for source-backed package-local workflow guidance.
Checks
- The skill focuses on the extension/listing workflow and schema contracts rather than route enumeration.
- It cites publishing, validation, storage, schema, cache, and tests.
- It separates safe verification from heavier build/migration commands.
- It avoids modifying API code, generated
.flowstate/dojo,.next, and.open-next.
Residual Risk
Marketplace is broad. Split extension archive, public listing, and dashboard UI skills before substantial future changes in those areas.
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/marketplace/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-marketplace --target <target> --out ./skillsReplace <target> with your agent target identifier. See the CLI docs for details.