Commands
/magic:connect
Connect to a database and verify the connection is healthy.
Read the magic-data-loading SKILL.md ## Database Loading section for connection guidance.
On entry:
- Ask user for connection details if not provided:
- Environment variable name (default:
DATABASE_URL) - Or help them construct a connection string for their dialect
- Environment variable name (default:
- Run
connect_database.py --env-var ENV_VARto establish connection - Run health check (
SELECT 1) - List all tables with row counts via
inspect_schema.py - Update
workspace_state.mdData Source section with connection info - Suggest next steps: "explore schema", "extract data", or "profile a table"
Important: Connection is read-only by default. If user needs to write data, guide them to /magic:deliver instead.
Was this page helpful?
Edit on GitHub
Last updated on