doc-author
Write, edit, and maintain documentation. Use for collaborative drafting, autonomous writing,…
Use this skill when contributing to InsForge's shared dashboard package. This is for maintainers editing `packages/dashboard`, which ships in `self-hosting` and `cloud-hosting` modes, and the local `frontend/` shell used for `self-hosting` in this repo.
$ npx -y skills add InsForge/InsForge --skill dashboard --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/dashboardContext preview
The summary Claude sees to decide when to auto-load this skill.
Use this skill when contributing to InsForge's shared dashboard package. This is for maintainers editing `packages/dashboard`, which ships in `self-hosting` and `cloud-hosting` modes, and the local `frontend/` shell used for `self-hosting` in this repo.
name: dashboard description: Use this skill when contributing to InsForge's shared dashboard package. This is for maintainers editing `packages/dashboard`, which ships in `self-hosting` and `cloud-hosting` modes, and the local `frontend/` shell used for `self-hosting` in this repo.
Use this skill for dashboard work in the InsForge repository.
1. Respect the shared-package versus host-app boundary.
2. Preserve dashboard data-flow conventions.
3. Reuse the existing component layers.
4. Keep the package surface aligned with shared contracts.
Use the lowest test layer that covers the risk. Add one focused regression test for bug fixes when practical.
| Change type | Test layer | Location | Command | | --- | --- | --- | --- | | Pure helper, parser, formatter, state reducer | Unit | `packages/dashboard/src/**/__tests__/*.test.ts` | `npm --workspace @insforge/dashboard run test:unit` | | React component behavior, forms, dialogs, conditional rendering | Component | `packages/dashboard/src/**/__tests__/*.test.tsx` | `npm --workspace @insforge/dashboard run test:component` | | Routing, auth redirects, host-mode integration, browser-only behavior | UI smoke | `packages/dashboard/tests/ui/*.spec.ts` | `npm --workspace @insforge/dashboard run test:ui` |
Conventions:
**Use when** previewing UI gated on `useIsCloudHostingMode()`, `isInsForgeCloudProject()`, or a PostHog feature flag (e.g. the CTest dashboard variant, `dashboard-v3-experiment === 'c_test'`, the CLI connect panel) while running the local `frontend/` self-hosting shell.
The lowest-friction approach is to **temporarily hardcode** the three gates below to `true`/the new branch, then restart the Vite dev server. These edits bypass real host/project detection and MUST be fully reverted before committing — landing them breaks both self-hosting and cloud-hosting users.
1. `packages/dashboard/src/lib/config/DashboardHostContext.tsx` — `useIsCloudHostingMode()` → `return true;` (was `useDashboardHost().mode === 'cloud-hosting'`). 2. `packages/dashboard/src/lib/utils/utils.ts` — `isInsForgeCloudProject()` → `return true;` (was the `.insforge.app` hostname check). 3. If the UI is also feature-flag-gated, hardcode the consumer. For CTest: `AppRoutes.tsx` → `const DashboardHomePage = CTestDashboardPage;` and, if relevant, the matching branch in `AppLayout.tsx` for `<ConnectDialogV2>`.
Mark every hardcode with a trailing `// LOCAL DEBUG: <original expression>` comment so revert is a mechanical search.
1. `git grep -n "LOCAL DEBUG" packages/dashboard/src/` returns zero matches. 2. Each gate is restored to its **original expression**, not just an equivalent value (the `mode === 'cloud-hosting'` comparison, the hostname check, the `getFeatureFlag(...)` call must all be back). 3. Any imports deleted during debug (commonly `DashboardPage`, `getFeatureFlag`, `ConnectDialog`) are restored. 4. `cd packages/dashboard && npm run lint && npm run typecheck` both pass. 5. `git diff` of the four files above shows only intended changes — no `return tru
The all-in-one, open-source backend platform for agentic coding. InsForge gives your coding agent database, auth, storage, compute, hosting, and AI gateway to ship full-stack apps end-to-end.
Repo: InsForge/InsForge
Write, edit, and maintain documentation. Use for collaborative drafting, autonomous writing,…
Use this skill set when contributing to the InsForge monorepo itself. This is for InsForge…
Use this skill when contributing to InsForge's backend package. This is for maintainers…
Use this skill when contributing to InsForge's product documentation in this repository. This…
Use this skill when an InsForge maintainer has finished an OSS repo change and is ready to…
Use this skill when contributing to InsForge's shared schema package. This is for maintainers…