flowstate-flowstate-platform-epicdm-flowstate-admin
Package-local agent skill for @epicdm/flowstate-admin.
Tags
Publisher
Versions
1 version published — latest: 0.1.0
- 0.1.0publishedInvalid Date
Skill
flowstate-admin Package Skill
Package: @epicdm/flowstate-admin
Repository: flowstate-platform
Path: packages/admin
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
Admin Cross-Service Queries
Status: Active
Purpose: Keep admin data access pointed at the correct service database and enum model.
Scope: packages/admin/src/lib/db.ts, admin pages, and query tests.
Trigger: Admin page data, filters, counts, search, joins, or status displays change.
Input: Service domain, desired fields, pagination/filter needs.
Output: Query behavior backed by the right DB helper and test evidence.
Source Map
| Domain | Helper or Evidence |
|---|---|
| Identity/users | getIdentityDb, src/__tests__/user-profiles.test.ts |
| LMS/content | getLmsDb, src/__tests__/content-queries.test.ts |
| Templates | getTemplatesDb, src/__tests__/content-queries.test.ts |
| Directory | getDirectoryDb, src/__tests__/directory-queries.test.ts |
| Compliance | getComplianceDb, src/__tests__/compliance-queries.test.ts |
| Platform/payments | getPlatformDb, src/__tests__/payments-queries.test.ts |
Workflow
- Pick the data domain before writing SQL or Drizzle calls.
- Use the matching helper from
src/lib/db.ts; do not reuse another helper because the page shape is similar. - Check the relevant query test for status values, pagination shape, and escaping expectations.
- Use
escapeLikefromsrc/lib/escape-like.tsfor LIKE search input. - Keep returned fields minimal and aligned with the page display.
Example
For a compliance controls list, start with getComplianceDb, inspect src/app/compliance/controls/page.tsx, and extend src/__tests__/compliance-queries.test.ts for any new status or TSC category filter.
Verification
yarn workspace @epicdm/flowstate-admin test --runInBandyarn workspace @epicdm/flowstate-admin typecheck
Created: 2026-06-30
Package Skill Inventory
Skill Inventory: @epicdm/flowstate-admin
Review date: 2026-06-30
Skills
| Skill | Type | Use When | Source Anchors |
|---|---|---|---|
flowstate-admin-dashboard | Orchestrator | Working on the admin console routes, shared UI, or package verification | src/app, src/components, package.json |
flowstate-admin-cross-service-queries | Workflow | Adding or debugging admin queries across identity, LMS, templates, directory, compliance, or platform data | src/lib/db.ts, src/app/*, src/__tests__/*queries*.test.ts |
flowstate-admin-session-audit | Workflow | Changing privileged auth/session behavior or admin audit events | src/lib/auth.ts, src/lib/sessions.ts, src/lib/audit.ts, src/middleware.ts |
Composition Notes
- Use
flowstate-admin-dashboardfirst to orient on package boundaries. - Invoke
flowstate-admin-cross-service-queriesbefore editing data fetches or filters. - Invoke
flowstate-admin-session-auditbefore changing auth redirects, cookies, session invalidation, or audit rows.
Deferred Skills
- A separate teardown-operation skill is deferred until destructive admin operations grow beyond
src/components/TeardownButton.tsx.
Review Gate
Package Skills Review: @epicdm/flowstate-admin
Review date: 2026-06-30 Status: Pass for local agent use
Checks
- Skills are source-backed by package routes, libs, tests, and package scripts.
- Skills avoid generated feature-list structure and group route metadata into real admin workflows.
- Skills include verification commands and cross-package cautions.
- Files were written only under
packages/admin/.flowstate/skills.
Pressure Scenario
Scenario: "Add an admin page for a new compliance list and wire the query."
Expected agent behavior with skills: load flowstate-admin-dashboard, then flowstate-admin-cross-service-queries; reuse Layout, Pagination, status badges, getComplianceDb, and add query-shape coverage near src/__tests__/compliance-queries.test.ts.
Remaining Risk
The package has privileged operations but limited end-to-end route tests. Agents should run package-local tests and typecheck after auth, session, or DB query changes.
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/admin/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-admin --target <target> --out ./skillsReplace <target> with your agent target identifier. See the CLI docs for details.