/dev-workflow:db-engineeringfrom dev-workflow
Universal database engineering rules covering migration discipline, audit logging, soft delete, performance, and data integrity. This skill MUST be loaded before any database work, and MUST NOT be skipped because a schema change looks small or obvious. Triggers on: 任何資料庫相關工作, 建表, 改 schema, 寫 migration, DB design, database development, 設計資料庫, 改 DB 結構, 加欄位, 加索引, 改 table, SQL, 寫 trigger, 設計 API 的 DB 層, 查詢很慢, N+1, 效能優化, 資料完整性, CASCADE, 外鍵, 新增 table, 刪除資料, backup, 環境分離, dev prod 分開
Ships in dev-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
維護資料庫結構、效能與資料完整性。依本次工作讀取相關參考文件,遵守既有設計政策,不因小改動省略受影響的安全檢查。
先確認資料庫引擎、目前環境、既有結構與 migration 工具,以及本次改動範圍。預設 development,正式環境操作須有使用者明確同意。
| 工作 | 必讀內容與執行重點 |
|---|---|
| 初始化、設計或調整 schema | 讀 設計政策。涉及表拆分、欄位歸屬或關係調整時,先畫 ER model,再決定拆分與正規化。 |
| 初始化環境 | 讀 環境分離,設定 dev/prod、環境變數與 migration 工具,建立 extensions 與稽核資料表,驗證本機可完整套用 migration。 |
| 結構變更 | 讀 migration 紀律。migration 檔必須納入版本控制,已提交或套用的 migration 保持不可變。 |
| 建立或修改資料表 | 讀 資料慣例,落實標準欄位、updated_at trigger 與軟刪除。 |
| 修改 DB 相關程式或 schema | 讀 完整性檢查 與 效能檢查,核對本次影響的讀寫路徑、外鍵、稽核與查詢。 |
| 查詢效能調查 | 讀 效能檢查,依實際查詢與量測結果定位問題。 |
| 規劃或調整稽核 | 讀 log 架構 與 保留與清理,核對紀錄內容、保留期及歷史值。 |
| 正式環境操作 | 讀 正式環境安全,確認影響、授權、開發環境驗證及備份,執行前檢查待套用內容,完成後驗證狀態並恢復預設開發連線。 |
政策中的雙實例隔離、預設開發環境、軟刪除、雙層稽核、索引、外鍵刪除行為、標準欄位、歷史值快照及 BCNF/3NF 限制維持。具體要求以相應參考文件為準。
提供實際改動的 migration、相關程式或設定,以及驗證結果。說明資料影響、尚未完成的部分與下一步。單純查詢或調查只交付結果與依據。
assets/starter-migrations/0003_audit_log.sql (opens in a new tab)assets/starter-migrations/0004_request_log.sql (opens in a new tab)references/data-conventions.md (opens in a new tab)references/db-integrity-checklist.md (opens in a new tab)references/design-policies.md (opens in a new tab)references/environments.md (opens in a new tab)references/logging-architecture.md (opens in a new tab)references/logging-retention.md (opens in a new tab)references/migrations.md (opens in a new tab)references/performance-pitfalls.md (opens in a new tab)references/production-safety.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timlai666/skills --plugin dev-workflowOther plugins' skills for the same job
4 skills in this plugin
/openclaw-agent-builderCreate, configure, and edit OpenClaw agents from a host machine (locally or over SSH). This skill MUST be used whenever the user wants to add a new OpenClaw agent, build an agent for a business or organization (customer service, internal helpdesk, booking bot, etc.), scaffold agent workspace files (SOUL.md / AGENTS.md / IDENTITY.md / USER.md), wire channels (LINE / WhatsApp / Discord / Telegram / Slack and others) and bindings, set up an agent knowledge base (RAG), harden an agent against prompt injection and identity confusion, or edit / reconfigure / retune an existing OpenClaw agent. MUST trigger on any mention of OpenClaw agents, openclaw.json, agent bindings, agent workspace, "add an agent", "build a bot", "編一個 agent", "做一個客服 bot" — and also whenever ~/.openclaw or an openclaw.json file is present in the working host even if OpenClaw is not named./openclaw-opsOperate, configure, and debug a running OpenClaw installation from a host machine (locally or over SSH). Covers the whole runtime surface **except** building agent personalities/workspaces — channels, gateway, daemon/service, config (`openclaw.json`), models + auth, cron, hooks, plugins, sandbox, sessions, security audit, doctor, reset, uninstall. This skill MUST be invoked on any mention of `openclaw` CLI commands, `~/.openclaw`, `openclaw.json`, "restart gateway", "add a channel", "check why my bot isn't responding", "openclaw doctor", "channels status", "ssh into the OpenClaw box", and similar — also whenever a host has `~/.openclaw/openclaw.json` and OpenClaw work is implied even if not named. MUST hand off to **openclaw-agent-builder** for any work that creates or edits an agent's workspace files (SOUL.md / AGENTS.md / IDENTITY.md / USER.md / RAG knowledge / `agents.list[]` entries / `bindings[]`).