/database-sqlserver:view-conventionsfrom database-sqlserver
Use when writing or reviewing SQL Server view (CREATE VIEW) scripts, or user says "檢視表慣例", "view 命名規則", "怎麼建 view", "view convention". Provides a convention framework for view file structure, SELECT column formatting, JOIN style, and naming. 觸發:撰寫 `View/**/*.sql` DDL 時。
Ships in database-sqlserver. 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.
None: SKILL.md is the whole skill.
此為一套可調整的慣例框架。專案若已有自訂標準,以專案標準為準;沒有時可直接沿用下列預設。
SET ANSI_NULLS ON 和 SET QUOTED_IDENTIFIER ON 開頭CREATE OR ALTER VIEW 語法,欄位名 AS 英文名AS 映射為 PascalCase 英文名稱-- 訂單、-- 時間)範例:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE OR ALTER VIEW [Sales].[SalesOrderView]
AS
SELECT
-- 訂單
ORD_MST.ORD_NO AS OrderId -- 訂單編號 (ORD_NO)
,ORD_MST.CUST_NO AS CustomerId -- 客戶編號 (CUST_NO) [CUST]
-- 時間
,ORD_MST.OK_DATE AS CompletedDate -- 完成日期 (OK_DATE)
FROM ORD_MST WITH(NOLOCK)
LEFT JOIN CUST WITH(NOLOCK) -- 客戶
ON ORD_MST.CUST_NO = CUST.CUST_NO
GO
WITH(NOLOCK)LEFT JOINView 後綴(如 SalesOrderView)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kerryhuang/kerryhuang-plugins --plugin database-sqlserver6 skills in this plugin
/ef-migrationUse when 建立 / 套用 / 回復 EF Core migration、跑 `dotnet ef` 指令、切換目標資料庫連線、migration 失敗診斷。管理 SQL Server 上的 Entity Framework Core 資料庫 Migration。觸發:「建 migration」「套用 migration」「回滾 migration」「dotnet ef」「migration 失敗」。/generating-table-descriptionUse when generating table description documentation from SQL view files. Use when user says "產生資料表描述", "文件化檢視表", "更新 TableDescription", "由 view 產欄位對照". Use when user wants to document view-to-table field mappings for a SQL Server database./migration-troubleshootUse when diagnosing special EF Core migration situations — ModelSnapshot 衝突、歷史紀錄遺失、資料庫已套用但 migration 對不上、生產緊急回滾判斷。一般失敗修復循環走 ef-migration skill。觸發:「migration 對不上」「snapshot 衝突」「緊急回滾」「migration 診斷」。Other plugins' skills for the same job