supaschema init, inspect the generated config and install manifest, then run schema commands through that same manager’s local runner. Install the raw agent bundle only after the user explicitly approves AI-agent enforcement.
Agent workflow
Install the package
Install
supaschema in the package or workspace that owns the schema
workflow. Do not clone the supaschema repository into the project unless you
are intentionally developing supaschema itself.Review optional context
Default setup leaves raw agent files under
node_modules/supaschema/agent-bundle/. Read agent-bundle/INSTALL.md and
install them only when the user asks for AI-agent enforcement.Edit schema intent
Change the configured declarative SQL tree, such as
database/schemas/**,
neon/schemas/**, aws-postgresql/schemas/**, or supabase/schemas/**.Run one command
Run
diff through the local runner from the install prompt. The command
extracts both sides, plans the change, renders the migration, and refreshes
configured TypeScript and Zod outputs.Optional agent context
The public npm package includes the consumer-safe raw surfaces needed for that workflow:Install prompt
Copyable setup instructions for another coding agent.
Rule
Durable migration policy: generated files are not hand-edited, destructive
intent must be explicit, and apply is config-gated.
Skill
The repeatable schema-change workflow for agents that support skills.
Hooks
Write-time guardrails that block generated migration edits, run diff or
config-gated sync after schema edits, and sync installed LLM surfaces.
Optional discovery surfaces
Use these only when the agent or documentation client supports them.Hosted skill
Public agent skill metadata for clients that can read
https://supaschema.com/docs/skill.md.llms.txt
Compressed docs context for agents that load
https://supaschema.com/docs/llms.txt.MCP docs
Mintlify MCP endpoint for documentation-aware clients at
https://supaschema.com/docs/mcp.npx skills
Installs reusable skill context only; project setup still comes from the
package manager plus
supaschema init.The npm package is the project integration path.
npx skills is useful for
reusable agent context, but it cannot replace project config,
path-confirmation state, or the optional reviewed agent-bundle install.
