{"success":true,"name":"confirm-which-database-environment-your-sql-targets","description":"About to run SQL and multiple environments share similar names.","category":"ai-brimind","path":"ai-brimind/confirm-which-database-environment-your-sql-targets/SKILL.md","file":"SKILL.md","content":"---\nname: confirm-which-database-environment-your-sql-targets\ndescription: \"About to run SQL and multiple environments share similar names.\"\n---\n\n# Confirm Which Database Environment Your SQL Targets\n\n## When to use\nProject uses SQL with more than one environment (dev, staging, prod), and you are about to execute statements without having verified the active connection.\n\n## Example request\nTwo console tabs, dev and prod → the fix ran in the wrong tab; identical prompts hide different worlds. .env copied from a teammate → it silently pointed at staging; connection strings are read, not assumed. Script with a hardcoded fallback URL → the env var was missing and it defaulted to prod; defaults should fail, not fall back to danger. 'It's obviously local' → SELECT current_database() would have taken two seconds; verification beats obviousness.\n\n## Instructions\nAct like a surgeon who confirms the patient's identity before the first incision. Before executing any SQL from a console or script: verify the target explicitly — run SELECT current_database() (or the engine's equivalent) or print the resolved connection string, and say the environment out loud. Make dangerous defaults impossible: scripts should fail loudly when the environment variable is missing, never silently fall back to a real database. Use visual cues where the tools allow it (colored prompts, named sessions) and read-only credentials for browsing prod. If anything about the connection is ambiguous, stop and resolve it before typing SQL. Only proceed once the environment is confirmed by evidence, not habit, and state which database the statements will hit.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1066\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}