Agent Skillsbtcpayserver/btcpayserver › btcpayserver-migrations

btcpayserver-migrations

GitHub

指导在BTCPayServer项目中创建和审查Entity Framework数据库迁移。涵盖生成步骤、清理Designer文件、移除Down方法、强制使用PostgreSQL及命名规范,支持手动添加Raw SQL迁移。

.agents/skills/btcpayserver-migrations/SKILL.md btcpayserver/btcpayserver

Trigger Scenarios

创建EF数据库迁移 审查迁移文件 处理无法自动生成的迁移

Install

npx skills add btcpayserver/btcpayserver --skill btcpayserver-migrations -g -y
More Options

Non-standard path

npx skills add https://github.com/btcpayserver/btcpayserver/tree/master/.agents/skills/btcpayserver-migrations -g -y

Use without installing

npx skills use btcpayserver/btcpayserver@btcpayserver-migrations

指定 Agent (Claude Code)

npx skills add btcpayserver/btcpayserver --skill btcpayserver-migrations -a claude-code -g -y

安装 repo 全部 skill

npx skills add btcpayserver/btcpayserver --all -g -y

预览 repo 内 skill

npx skills add btcpayserver/btcpayserver --list

SKILL.md

Frontmatter
{
    "name": "btcpayserver-migrations",
    "description": "Use when creating or reviewing Entity Framework migrations in BTCPayServer. Contains repository-specific migration generation and cleanup rules."
}

BTCPayServer Migrations

Creating Migrations

  • Run dotnet ef migrations add <migration-name> to generate the migration.
  • Copy the class attributes from the generated .Designer.cs file to the .cs migration file.
  • Remove the generated .Designer.cs file.
  • Remove the Down() method.
  • Do not use migrationBuilder.IsNpgsql(); assume PostgreSQL is used.
  • If a migration cannot be generated through dotnet ef migrations, add a migration file prefixed by date in the Migrations folder, for example 20260525115757_passkey.cs, and use migrationBuilder.Sql to run raw SQL.
  • Follow postgres naming conventions.

Version History

  • fbf761f Current 2026-08-20 12:02

Same Skill Collection

.agents/skills/bem-conventions/SKILL.md
.agents/skills/btcpayserver-changelog/SKILL.md
.agents/skills/btcpayserver-pr-descriptions/SKILL.md
.agents/skills/playwright-test-patterns/SKILL.md

Metadata

Files
0
Version
3f770d0
Hash
0aa84324
Indexed
2026-08-20 12:02

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-03 20:36
浙ICP备14020137号-1 $bản đồ khách truy cập$