jpskill.com
🛠️ 開発・MCP コミュニティ

dbcraft

Open and operate the local DB Craft visual schema studio at D:\DBdesigner. Use it to design or edit MySQL 8, PostgreSQL 14, SQLite, and MSSQL models, generate tables with AI, import CREATE TABLE scripts, validate schema structure, save workspace models, export SQL, and prepare migration-ready artifacts for a separate deployment workflow.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o dbcraft.zip https://jpskill.com/download/19572.zip && unzip -o dbcraft.zip && rm dbcraft.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19572.zip -OutFile "$d\dbcraft.zip"; Expand-Archive "$d\dbcraft.zip" -DestinationPath $d -Force; ri "$d\dbcraft.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して dbcraft.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → dbcraft フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
9

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

DB Craft

概要

DB Craftは、ローカルで動作する視覚的なデータベースモデリングワークスペースです。手書きのスキーマメモよりも高速で具体的なフローが必要な場合に使用します。アプリを開き、ブラウザでテーブルとリレーションシップを形成し、モデルをアクティブなワークスペースに保存し、デザインが完成したらSQLまたは引き渡し準備ができた成果物をエクスポートできます。

コア・ルール

  • 同じワークスペース/プロジェクトに関するすべての会話において、テーブルの作成とテーブルの変更は現在のダイアグラム/モデルに反映される必要があります。
  • 「建表」と「改表」をテキストのみの出力として扱わないでください。ダイアグラムがプロジェクトの進行中の会話と同期するように、アクティブな *.dbmodel.json モデルを更新してください。

クイックスタート

  1. ユーザーがDB Craftを開くように要求したら、まず http://127.0.0.1:3000 がすでにアプリを提供しているかどうかを確認します。
    • すでに起動している場合は、その実行中のサービスを再利用し、既存のサービスでページを開いていることをユーザーに伝えます。
    • 起動していない場合は、scripts/launch-dbdesigner.ps1 を実行してローカルサーバーを起動し、サービスを開始してページを開いていることをユーザーに伝えます。 ランチャーは現在、DB Craftを開く際に現在のシェル作業ディレクトリをデフォルトのプロジェクトワークスペースヒントとして使用します。
  2. ブラウザで http://127.0.0.1:3000 を開きます。
  3. タスクがブラウザデモの場合は、ユーザーが追跡できるように、ヘッドモードと最大化されたウィンドウを優先してください。
  4. ユーザーがAIテーブル生成を必要とする場合は、OPENAI_API_KEY が現在の環境で利用可能であることを確認するか、ユーザーに Settings -> AI Config でキーを入力してもらいます。
  5. ユーザーがメニュー名、ショートカット、または操作のヒントを必要とする場合は、references/usage.md を参照してください。
  6. ユーザーがセットアップの期待値またはマーケットプレイスのインストール詳細を必要とする場合は、references/install-prerequisites.md を参照してください。
  7. ユーザーがプライバシー、データフロー、またはAIプロバイダーの開示詳細を必要とする場合は、references/data-security.md を参照してください。
  8. ユーザーが最終リリースゲートまたは提出概要を必要とする場合は、references/marketplace-submission-checklist.md を参照してください。
  9. ユーザーがマーケットプレイスリリース用のビジュアルアセット計画を必要とする場合は、references/icon-and-screenshot-checklist.md を参照してください。

起動

  • D:\DBdesigner をソースアプリケーションディレクトリとして扱います。
  • そのディレクトリで node server.js を使用してアプリを起動します。信頼性のためにバンドルされたPowerShellランチャーを使用してください。
  • 開く動作は常にこの順序に従う必要があります。
    1. http://127.0.0.1:3000 がすでに到達可能かどうかを確認します。
    2. 到達可能な場合は、重複を生成する代わりに実行中のサービスを再利用します。
    3. 到達可能でない場合は、サービスを開始し、到達可能になるまで待ちます。
    4. 既存のサービスを再利用したのか、新しいサービスを開始したのか、どちらのケースが発生したかをユーザーに伝えます。
    5. その後、ページを開きます。
  • PowerShellランチャーは WorkspacePath を現在のシェルディレクトリにデフォルト設定するため、DB Craftはアクティブなワークスペースパスがワークスペースヒントとして事前入力された状態で開きます。
  • ユーザーのためにDB Craftを開いた後、モデルファイルがこのプロジェクトで使用しているアクティブなワークスペースディレクトリに保存されることを明示的に思い出させてください。
  • DB Craftが dbcraft-codex-handoff.md をアクティブなプロジェクトディレクトリに書き込む場合、それをデザイナーからの会話を継続するための推奨される引き渡し成果物として扱います。
  • デフォルトアドレス: http://127.0.0.1:3000
  • ポート 3000 がすでにアプリを提供している場合は、重複を生成する代わりにそれを再利用します。
  • node が見つからない場合、またはページが表示されない場合は、停止してブロッカーを明確に報告してください。

操作

  • これらの主要なタスクにアプリを使用します。
  • MySQL 8PostgreSQL 14SQLite、または MSSQL 用の新しいモデルを作成します。
  • アプリのワークスペースフローを通じて *.dbmodel.json ファイルを開いたり保存したりします。
  • テーブルを手動で追加したり、AIで生成したり、CREATE TABLE SQLからインポートしたりします。
  • ユーザーが検証を要求した場合は、エクスポート前に構文チェックを実行します。
  • 組み込みのエクスポートフローを通じて生成されたSQLをエクスポートします。
  • references/usage.md のメニューパスとショートカットを使用して、ユーザーがUIを操作するのを支援します。
  • ユーザーがDB Craftの引き渡しから続行すると言った場合、まずアクティブなプロジェクトディレクトリで dbcraft-codex-handoff.md を確認し、ユーザーに手動で何かを貼り付けるように依頼する前にそれを読むことを優先します。
  • 同じワークスペース内で、テーブル作成を増分モデリングとして扱います。新しく要求/生成された各テーブルを、分離された例を作成するのではなく、現在のアクティブなモデルに追加します。
  • 同じワークスペース内で、テーブルの編集も同様に扱います。ユーザーがフィールド、インデックス、コメント、リレーションシップ、またはテーブル名を変更した場合、その変更を現在のモデルに適用し、ダイアグラムが最新の状態を反映するようにします。
  • アクティブなワークスペースの既存の *.dbmodel.json を更新することを優先し、そのワークスペースのすべてのテーブルがユーザーが再開できる1つのモデルにまとまるようにします。
  • テーブルをインポートまたは作成する際に、アクティブなテンプレートがデフォルトフィールドを追加する場合、ユーザーが明示的に削除を要求しない限り、それらのテンプレートフィールドを保持します。
  • ユーザーが自分のブラウザセッションで結果を表示する必要がある場合は、*.dbmodel.json ファイルを保存またはエクスポートし、そのセッションで開かせます。ある自動化されたブラウザセッションのインメモリ状態が別のブラウザセッションで表示されると仮定しないでください。
  • ユーザー向けの製品トーンを優先します。DB Craftは、ユーザーがアイデア -> モデル -> SQLへと最小限の摩擦で移行するのを支援します。

移行への引き渡し

  • ユーザーが設計されたテーブルを実際のデータベース管理システムで作成するように言った場合、DB Craftでの設計/モデル/エクスポート作業を完了し、その後、別の移行またはデプロイスキルに引き渡します。
  • ワークフロー:
    1. DB Craftを開き、まずモデルを更新します。
    2. モデルをアクティブなワークスペースに保存します。
    3. 現在のモデルからSQLをエクスポートまたは生成し、同じワークスペースに保存します。
    4. モデルと生成されたSQLを一緒に保持し、別のスキルまたはワークフローがレビュー、移行生成、またはデプロイを継続できるようにします。
  • この一般公開スキルでは、データベース実行をデフォルトの動作にしないでください。DB Craftはモデルの段階で停止すべきです。

(原文がここで切り詰められています)

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

DB Craft

Overview

DB Craft is a local visual database modeling workspace. Use it when the user wants a faster, more concrete flow than hand-writing schema notes: open the app, shape tables and relationships in the browser, keep the model saved in the active workspace, and export SQL or handoff-ready artifacts when the design is ready.

Core Rule

  • In all conversations for the same workspace/project, table creation and table changes must be reflected back into the current diagram/model.
  • Do not treat "建表" and "改表" as text-only outputs. Update the active *.dbmodel.json model so the diagram stays in sync with the project's ongoing conversations.

Quick Start

  1. When the user asks to open DB Craft, first check whether http://127.0.0.1:3000 is already serving the app.
    • If it is already up, reuse that running service and tell the user you are opening the page on the existing service.
    • If it is not up, run scripts/launch-dbdesigner.ps1 to start the local server, then tell the user you started the service and are opening the page. The launcher now uses the current shell working directory as the default project workspace hint when opening DB Craft.
  2. Open http://127.0.0.1:3000 in the browser.
  3. If the task is a browser demo, prefer headed mode and a maximized window so the user can follow along.
  4. If the user needs AI table generation, confirm OPENAI_API_KEY is available in the current environment or let the user fill the key in Settings -> AI Config.
  5. If the user needs menu names, shortcuts, or operating tips, read references/usage.md.
  6. If the user needs setup expectations or marketplace install details, read references/install-prerequisites.md.
  7. If the user needs privacy, data flow, or AI-provider disclosure details, read references/data-security.md.
  8. If the user needs a final release gate or submission summary, read references/marketplace-submission-checklist.md.
  9. If the user needs visual asset planning for marketplace release, read references/icon-and-screenshot-checklist.md.

Launch

  • Treat D:\DBdesigner as the source application directory.
  • Start the app with node server.js in that directory. Use the bundled PowerShell launcher for reliability.
  • Opening behavior must follow this order every time:
    1. Check whether http://127.0.0.1:3000 is already reachable.
    2. If reachable, reuse the running service instead of spawning a duplicate.
    3. If not reachable, start the service and wait for it to become reachable.
    4. Tell the user which case happened: reused existing service or started a new one.
    5. Then open the page.
  • The PowerShell launcher defaults WorkspacePath to the current shell directory so DB Craft opens with the active workspace path prefilled as the workspace hint.
  • After opening DB Craft for the user, explicitly remind them that the model files are saved under the active workspace directory they are using for this project.
  • When DB Craft writes dbcraft-codex-handoff.md into the active project directory, treat it as the preferred handoff artifact for continuing the conversation from the designer.
  • Default address: http://127.0.0.1:3000.
  • If port 3000 is already serving the app, reuse it instead of spawning duplicates.
  • If node is missing or the page does not come up, stop and report the blocker clearly.

Operate

  • Use the app for these main tasks:
  • Create a new model for MySQL 8, PostgreSQL 14, SQLite, or MSSQL.
  • Open or save *.dbmodel.json files through the app workspace flow.
  • Add tables manually, generate them with AI, or import them from CREATE TABLE SQL.
  • Run syntax checks before export when the user asks for validation.
  • Export generated SQL through the built-in export flow.
  • Help the user operate the UI with menu paths and shortcuts from references/usage.md.
  • When the user says to continue from DB Craft handoff, first check the active project directory for dbcraft-codex-handoff.md and prefer reading it before asking the user to paste anything manually.
  • Within the same workspace, treat table creation as incremental modeling: append each newly requested/generated table to the current active model instead of creating isolated examples.
  • Within the same workspace, treat table edits the same way: when the user changes fields, indexes, comments, relationships, or table names, apply the change back into the current model so the diagram reflects the latest state.
  • Prefer updating the existing *.dbmodel.json in the active workspace so all tables for that workspace stay together in one model the user can reopen.
  • When importing or creating a table and the active template adds default fields, keep those template fields unless the user explicitly asks to remove them.
  • If the user needs the result to appear in their own browser session, save or export a *.dbmodel.json file and have that session open it. Do not assume in-memory state from one automated browser session is visible in another browser session.
  • Favor a user-facing product tone: DB Craft helps users move from idea -> model -> SQL with minimal friction.

Handoff To Migration

  • If the user says to create the designed tables in a real database management system, finish the design/model/export work in DB Craft and then hand off to a separate migration or deployment skill.
  • Workflow:
    1. Open DB Craft and update the model first.
    2. Save the model under the active workspace.
    3. Export or generate SQL from the current model into the same workspace.
    4. Keep the model and generated SQL together so another skill or workflow can continue with review, migration generation, or deployment.
  • Do not make database execution the default behavior for this public-facing skill. DB Craft should stop at model + SQL + handoff unless the surrounding environment explicitly wires in a separate deployment skill.

AI Table Generation

  • The app supports AI table generation from Model -> AI Build Table / Alt+L.
  • Prefer the API key saved in Settings -> AI Config; fall back to the server environment variable OPENAI_API_KEY.
  • The app defaults to model name gpt-5-codex when none is provided.
  • Report API errors as returned by the page or server instead of guessing.

Browser Use

  • When the user asks to open and use the tool, do not blindly start a new service.
  • First check whether the service is already running.
  • If it is already running, tell the user you are reusing it and then open the page.
  • If it is not running, tell the user you are starting the service, wait until it is ready, and then open the page.
  • When the user wants a visual walkthrough, use a headed browser and maximize the window.
  • When the app requires manual directory picking or other browser permissions, let the user complete that step and continue afterward.
  • Do not claim to have saved or exported files unless the browser flow actually completed.
  • If you create or modify a model only inside the automation session, explain clearly that the changes stay in that browser session until saved.

Resources

  • scripts/launch-dbdesigner.ps1: Start the local DBdesigner server, wait until it is reachable, and optionally open the browser.
  • references/install-prerequisites.md: Windows support, local Node requirement, first-launch behavior, and what happens when the service is not running.
  • references/data-security.md: Local data storage, AI-provider disclosure, API key handling, and Codex handoff file behavior.
  • references/marketplace-submission-checklist.md: Final submission gate for marketplace release readiness.
  • references/icon-and-screenshot-checklist.md: Icon, screenshot, and demo asset planning for marketplace submission.
  • references/usage.md: Menu paths, shortcuts, supported databases, and task-oriented operating notes.
  • references/marketplace-copy.md: Marketplace-facing listing copy, positioning, and concise selling points.
  • references/example-prompts.md: Example user prompts and usage patterns for DB Craft.

Guardrails

  • Keep the skill thin. Do not copy the entire D:\DBdesigner app into the skill unless the user explicitly asks for a packaged clone.
  • Reuse the existing app directory so future app updates remain effective without reworking the skill.
  • If the user asks to change DBdesigner features, edit the source app under D:\DBdesigner, not the skill, unless the request is specifically about skill behavior.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。