スキル database-migration-helper
📦

database-migration-helper

コンテンツリビジョン r1 安全 ⚙️ 外部コマンド⚡ スクリプトを含む

安全地建立資料庫遷移

當檔案名稱、rollback 邏輯或 ORM 慣例錯誤時,資料庫遷移可能會破壞應用程式。此 skill 可協助 Claude、Codex 和 Claude Code 建立符合慣例的遷移,並提供 rollback 指引。

対応: Claude Codex Code(CC)
Maintain this Skill? Claim it 🥉 78 ブロンズ

自分のエージェントでインストール

このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。

エージェントリクエスト
Review the Skillstore skill "database-migration-helper" from https://skillstore.io/skills/crazydubya-database-migration-helper.md and its manifest at https://skillstore.io/api/skills/crazydubya-database-migration-helper/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。

エージェントが読めるリソース

AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。

テストする

「database-migration-helper」を使用しています。 在 Knex 專案中為 users 新增唯一 email 索引。

期待される結果:

  • 從專案設定和現有遷移偵測到 Knex。
  • 準備了符合本機命名模式的時間戳記遷移名稱。
  • 包含套用步驟、rollback 步驟、唯一索引注意事項和開發測試檢查清單。

「database-migration-helper」を使用しています。 為 order status 建立 Alembic 遷移。

期待される結果:

此 skill 會識別 Alembic versions 目錄,建立 revision 風格的遷移,加入 upgrade 和 downgrade 步驟,並警告回填現有資料列的注意事項。

「database-migration-helper」を使用しています。 檢查計畫中的欄位移除是否安全。

期待される結果:

此 skill 會標記資料遺失風險,建議淘汰期,確認相依的應用程式程式碼,並建議備份與 rollback 驗證。

セキュリティ監査

安全

Most static findings are false positives caused by Markdown inline code, ORM file names, migration examples, and type-only JSDoc imports. Confirmed risk is limited to Bash-enabled instructions that run package managers or framework CLIs to generate migrations. No prompt injection, data exfiltration intent, or hidden malicious behavior was found.

8
スキャンされたファイル
780
解析済み行数
7
レビュー項目
0
誤検知を無視
機能レビュー項目 (7)

これらは、このスキルに期待される可能性のある実際のローカル機能であるため、レビューが必要ですが、確認済みの悪意ある動作としてはカウントされません。

中
Ruby/shell backtick execution
- Run `npx prisma migrate dev --name <description>` OR
The skill tells a Bash-enabled agent to run npx prisma migrate dev --name <description>, which executes project CLI code and can change migration files or databases. This is legitimate migration tooling but should require user confirmation.
中
Ruby/shell backtick execution
- Generate: `npx sequelize-cli migration:generate --name <description>`
The skill tells a Bash-enabled agent to run npx sequelize-cli migration:generate --name <description>, which executes project CLI code and can change migration files or databases. This is legitimate migration tooling but should require user confirmation.
中
Ruby/shell backtick execution
- Generate: `npx knex migrate:make <description>`
The skill tells a Bash-enabled agent to run npx knex migrate:make <description>, which executes project CLI code and can change migration files or databases. This is legitimate migration tooling but should require user confirmation.
中
Ruby/shell backtick execution
- Generate: `npm run typeorm migration:create src/migrations/<Name>`
The skill tells a Bash-enabled agent to run npm run typeorm migration:create src/migrations/<Name>, which executes project CLI code and can change migration files or databases. This is legitimate migration tooling but should require user confirmation.
中
Ruby/shell backtick execution
- Generate: `alembic revision -m "<description>"`
The skill tells a Bash-enabled agent to run alembic revision -m "<description>", which executes project CLI code and can change migration files or databases. This is legitimate migration tooling but should require user confirmation.
中
Ruby/shell backtick execution
- Run: `python manage.py makemigrations`
The skill tells a Bash-enabled agent to run python manage.py makemigrations, which executes project CLI code and can change migration files or databases. This is legitimate migration tooling but should require user confirmation.
中
Ruby/shell backtick execution
- Generate: `rails generate migration <ClassName>`
The skill tells a Bash-enabled agent to run rails generate migration <ClassName>, which executes project CLI code and can change migration files or databases. This is legitimate migration tooling but should require user confirmation.
監査者: codex 監査履歴を表示 →
このレポートを共有・引用

バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。

バージョン別レポートを開く
セキュリティ評価

レポートリンクをコピー

https://skillstore.io/skills/crazydubya-database-migration-helper/audits/10?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdownバッジ

[![Skillstore security assessment](https://skillstore.io/badges/skills/crazydubya-database-migration-helper/security.svg)](https://skillstore.io/skills/crazydubya-database-migration-helper?utm_source=security_passport_badge)

HTMLバッジ

<a href="https://skillstore.io/skills/crazydubya-database-migration-helper?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/crazydubya-database-migration-helper/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

埋め込みカード

<iframe src="https://skillstore.io/embed/skills/crazydubya-database-migration-helper.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
学術引用 (APA · BibTeX · CFF)

APA形式の引用

CrazyDubya. (2026). database-migration-helper security audit report (audit version 10) [Author version unspecified]. Skillstore. https://skillstore.io/skills/crazydubya-database-migration-helper/audits/10

BibTeX形式の引用

@techreport{crazydubya-crazydubya-database-migration-helper-2026, author = {CrazyDubya}, title = {database-migration-helper security audit report (audit version 10)}, institution = {Skillstore}, year = {2026}, number = {10}, url = {https://skillstore.io/skills/crazydubya-database-migration-helper/audits/10}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "database-migration-helper security audit report (audit version 10)" version: "unspecified" type: report authors: - name: "CrazyDubya" date-released: "2026-07-09" url: "https://skillstore.io/skills/crazydubya-database-migration-helper/audits/10" identifiers: - type: other value: "skillstore:crazydubya-database-migration-helper:audit:10" description: "Skillstore immutable audit report identifier"

Skillstore スコア

このスコアの理由 証拠の信頼度: 高
55
アーキテクチャ
85
保守性
87
コンテンツ
72
コミュニティ
83
仕様準拠

作成できるもの

新增功能資料表

建立新的資料表,包含主鍵、時間戳記、索引和符合現有 ORM 慣例的 rollback 步驟。

標準化 ORM 遷移

檢視現有遷移模式,並建立遵循團隊命名、目錄和 rollback 實務的新檔案。

規劃更安全的 Schema 變更

在套用資料表變更或索引更新前,識別資料遺失、鎖定、rollback 和預備環境檢查。

これらのプロンプトを試す

建立簡單遷移
建立一個遷移,為 users 新增可為 null 的 phone 欄位。先偵測 ORM,遵循現有命名,並包含 rollback 指引。
新增已建立索引的關聯
建立一個遷移,為 projects 新增 account 關聯。包含外鍵、索引、rollback,以及任何資料安全注意事項。
設計回填遷移
規劃一個遷移,新增 order_status、回填現有 orders,並移除舊的 active 旗標。適當時將 schema 和資料步驟分開。
檢視正式環境遷移
檢視這個計畫中的遷移是否有 rollback 缺口、資料表鎖定、資料遺失和部署順序問題。為大型資料表建議更安全的替代方案。

ベストプラクティス

  • 在套用正式環境遷移前,檢視產生的 SQL 和 ORM 行為。
  • 使用真實的開發或預備環境資料測試套用和 rollback 路徑。
  • 除非專案慣例另有要求,否則將 schema 和資料遷移分開。

回避

  • 未確認目前作用中的環境,就對正式環境執行遷移命令。
  • 在單一遷移中合併不相關的資料表變更、資料回填和索引重建。
  • 在應用程式程式碼和備份準備好之前,就刪除欄位或資料。

よくある質問

此 skill 支援哪些遷移工具?
它涵蓋 Prisma、Sequelize、Knex、TypeORM、Alembic、Django、Rails、Flyway、Liquibase,以及類似的遷移配置。
它可以執行遷移產生器命令嗎?
可以,但 npx、npm、python manage.py 和 rails 等命令在執行前應要求使用者確認。
它會建立 rollback 邏輯嗎?
當所選 ORM 支援時,它會包含 down、downgrade、rollback 或可逆變更指引。
它可以處理資料遷移嗎?
它可以規劃資料遷移並建議批次處理,但高流量回填仍需要謹慎的資料庫檢視。
它會保證正式環境安全嗎?
不會。正式環境遷移需要預備環境測試、備份、環境檢查,以及鎖定或資料遺失風險檢視。
我應如何在不熟悉的 repository 中使用它?
請它先檢查慣例,盡可能手動產生檔案,並在你核准前避免執行命令。

開発者情報

作成者

CrazyDubya

ライセンス

MIT

Skillstore リビジョン

r1

バージョンに関する注意

作者はバージョンを宣言していません。

参照

0519034dad657fb1f7706e0550e962beeda73fdf

メンテナンスの新しさ

2026/7/18

利用状況

4 ダウンロード · 331 閲覧

CrazyDubya のその他のスキル

すべて表示
すべて表示