From tdp
Inspect project databases with DBHub read-only MCP tools, decide environment scope, and deliver standardized SQL scripts under sql files/local-db, sql files/test-db, and sql files/main-db. Use when feature work, bug fixing, schema investigation, data checking, seed data, migration prep, or deployment preparation depends on one or more databases exposed by the current workspace MCP tools.
npx claudepluginhub bryant-tang/turbo-plugins-claude --plugin tdpThis skill uses the workspace's default tool permissions.
- You need to inspect schema, data, procedures, functions, or indexes in one of this project's connected databases.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, or other write operations..sql files under the repository root sql files/ environment folders instead of attempting the write directly.SELECT, and use the returned result instead of pretending DBHub can inspect that environment directly.| Folder | Purpose |
|---|---|
sql files/local-db/ | Local database verification, temporary test data, or scripts that will be rolled back after local validation |
sql files/test-db/ | Customer test environment deployment scripts |
sql files/main-db/ | Production deployment scripts |
sql files/ or one of the required environment folders does not exist in the current writable worktree, create the needed folder before adding scripts.sql files/local-db/WI-001/ or sql files/local-db/account-sync/.sql files/local-db/.sql files/local-db/, sql files/test-db/, and sql files/main-db/.sql files/<environment>/<work-item-or-topic>/local-db, test-db, main-dbbugfix/ or feature/ branch, use the branch slug as the folder name so that finish-dev can detect and archive it automatically. Example: on branch feature/FeatureFix, use sql files/local-db/FeatureFix/.WI-001.account-sync.local-db, test-db, and main-db for the same logical change.<order>-<database>-<purpose>.sql01, 02, 03.補資料, 新增欄位, 重建索引, or 建立測試資料.sql files/local-db/WI-001/01-AppDb-建立測試資料.sqlsql files/test-db/WI-001/01-AppDb-新增欄位.sqlsql files/main-db/WI-001/01-AppDb-新增欄位.sqlsql files/local-db/account-sync/01-AuthDb-驗證登入資料.sqlsql files/local-db/ and fill in the rollback section.sql files/local-db/<work-item>/.sql files/local-db/<work-item>/, sql files/test-db/<work-item>/, and sql files/main-db/<work-item>/.test-db or main-db scripts, check whether the relevant columns, views, procedures, functions, and triggers are known to be the same in that environment. If not, write a minimal verification query for the user to run there and wait for the result.<order>-<database>-<purpose>.sql pattern.USE [DatabaseName] when appropriate, keep statements in execution order, and add enough comments for operators to understand special steps, rollback expectations, or environment-specific differences.SELECT queries.sql files/, ask before creating the script so the output can follow the repo convention.sql files/local-db/.sql files/test-db/.sql files/local-db/, sql files/test-db/, and sql files/main-db/.&& to combine file creation, validation, cleanup, or other side-effect commands.01-AppDb-新增條文版本表.sql or 02-AuthDb-新增欄位.sql.local-db, test-db, and main-db when they represent the same deployment step.GO separators where the SQL Server execution context requires them..sql files under the correct environment folders in sql files/.sql files/local-db/.sql files/local-db/, sql files/test-db/, and sql files/main-db/.<order>-<database>-<purpose>.sql pattern.sql files/ is environment-split with local-db, test-db, and main-db, and environment folders may contain work-item or topic subfolders under that folder.