constructive-hooks

Installation
SKILL.md

Constructive Hooks

Generated React Query hooks are an optional convenience for custom-domain applications with a stable schema and fixed endpoint boundary. Console Kit uses runtime discovery and adapters, standalone Data introspects through Sheets, and the other standalone feature packs receive resources and actions from their host.

When to Apply

Use this skill when:

  • The project already generates React Query hooks for its domain schema.
  • Implementing generated query or mutation hooks, invalidation, optimistic updates, or pagination.
  • Reviewing whether a generated hook layer is safe for a fixed deployment.

Do not use this skill to wire a dynamic tenant console. If endpoint or identity can change at runtime, prefer the Blocks adapter/runtime or a request function scoped to the mounted tenant.

Isolation Rule

A generated hook layer is safe only when its transport cannot leak between tenants, users, or server requests. Do not mutate process-wide endpoint or header state from application startup, sign-in effects, or tenant switching logic.

If the generated output exposes only mutable module-global transport, restrict it to a client application with one immutable endpoint and one well-defined credential transport, or regenerate/use a per-instance data layer. Never share that singleton across server requests.

Installs
3
First Seen
Jun 19, 2026
constructive-hooks — constructive-io/constructive-skills