Agent skill
insforge-dev
Use this skill set when contributing to the InsForge monorepo itself. This is for InsForge maintainers and contributors editing the platform, the shared dashboard package, the self-hosting shell, the UI library, shared schemas, tests, or docs.
Install this agent skill to your Project
npx add-skill https://github.com/InsForge/InsForge/tree/main/.agents/skills/insforge-dev
SKILL.md
InsForge Dev
Use this skill set for work inside the InsForge repository.
Then use the narrowest package skill that matches the task:
backenddashboarduishared-schemasdocs
Core Rules
-
Identify the package boundary before editing.
backend/: API, auth, database, providers, realtime, schedulespackages/dashboard/: publishable dashboard package that supportsself-hostingandcloud-hostingmodesfrontend/: local React + Vite shell that mountspackages/dashboard/inself-hostingmodepackages/shared-schemas/: cross-package contractspackages/ui/: reusable design-system primitivesdocs/: product and agent-facing documentation
-
Put code in the narrowest correct layer.
- Contract change:
packages/shared-schemas/first, then consumers. - Backend behavior: route -> service -> provider/infra.
- Shared dashboard behavior, routes, features, exports, and host contracts:
packages/dashboard/. - Self-hosting-only bootstrap, env wiring, and shell styling:
frontend/. - Reusable primitive:
packages/ui/first.
- Contract change:
-
Preserve repo conventions.
- Backend TS source uses ESM-style
.jsimport specifiers. - Backend success responses usually return raw JSON, not
{ data }. - Backend validation commonly uses shared Zod schemas plus
AppError. - Dashboard data access goes through
apiClientand React Query. - Shared payloads belong in
@insforge/shared-schemas. - Never use the TypeScript
anytype. Prefer precise types, schema-derived types,unknown, or generics.
- Backend TS source uses ESM-style
-
Do not confuse repo development with app development on InsForge.
- This repo contains the platform, the publishable dashboard package, and a local shell for self-hosting mode.
- Keep guidance focused on maintaining InsForge itself.
Finish Rules
- Run the smallest validation that gives confidence for the change.
- Use repo-level checks like
npm run lint,npm run build, andnpm testwhen the change crosses package boundaries. npm run typecheckdoes not coverpackages/dashboard/orpackages/shared-schemas/, so run package-specific validation when either package changes.- Use the package-specific validation steps in the child skill when the work is isolated to one package.
- When reporting back, state what changed, what you validated, and what you could not validate.
Pre-PR Checklist (Mandatory Before Pushing to a PR)
Before opening a PR or pushing new commits to an existing PR branch, run all of the following from the repo root and do not proceed while any of them fail on files your change touches:
npx turbo run typecheck— must pass across all packages.npx turbo run lint— must pass. If the failure is pre-existing inmainand unrelated to your change, scope it:- Run
npx eslint <your-changed-files>and confirm your files are clean. - Call out the pre-existing debt in the PR body so reviewers know it is not yours.
- Auto-fixable prettier/eslint errors in your own diff must be fixed (
npx eslint --fix <file>ornpm run format).
- Run
npx turbo run test(or the package-specific test command) — all tests must pass, including any new tests you added for the change.npx turbo run buildif routing, config, schemas, or cross-package exports changed.
Never push with failing checks on files you touched, even if CI would catch them later. CI failures slow reviewers down and the lint fix almost always takes less than a minute locally.
Didn't find tool you were looking for?