Postgresql Planningのロゴ

Postgresql Planning

組織人気
amplifthq
postgresql-planning

Plan and implement OpenMeld PostgreSQL business persistence, schemas and migrations, transactions, Hyperdrive access, and data cutover. Use for the shared relational database transition or PostgreSQL work; not for unrelated D1 performance fixes or OpenConnector's upstream database.

概要

公開者amplifthq
リポジトリopenmeld
スキル名postgresql-planning
スター
1.4K
フォーク
81
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    amplifthqがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Postgresql Planning」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/amplifthq/openmeld/tree/main/.agents/skills/postgresql-planning
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/amplifthq/openmeld.git /tmp/openmeld
mkdir -p .claude/skills
cp -r /tmp/openmeld/.agents/skills/postgresql-planning .claude/skills/postgresql-planning
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPostgresql Planningを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にPostgresql Planningを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Postgresql Planningは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

OpenMeld PostgreSQL Planning

All OpenMeld databases belong to the Amplift PlanetScale organization (amplift), never the operator's personal organization. Pass --org amplift explicitly; login defaults are not the resource owner.

The architecture is decided: Cloudflare Hyperdrive connects Workers to PlanetScale PostgreSQL. Start from current source, not a new vendor comparison or the superseded D1 capacity threshold. Production has used PostgreSQL since the 2026-10-04 cutover. Shared staging reuses openmeld-postgresql-stg through its own Hyperdrive binding and the guarded pnpm staging:deploy workflow. The former staging D1 database is retained for historical test-data inspection. Use standard PlanetScale Postgres for this foundation. Neki preview enrollment does not change the chosen engine or authorize a sharded database migration. The staging/local baseline is PostgreSQL 18 at the latest supported stable minor. Use older versions only for a demonstrated compatibility constraint. Production capacity changes require measured demand. Keep capacity stable while isolating code-path regressions; use the current workflow's metrics and query plans before recommending a larger machine.

Shortest useful start

  1. Read physical database ownership and the applicable section of the single PostgreSQL workflow.
  2. Run pnpm pg plan to see exact targets and migration checksums. Check tooling/postgresql/resources.json; a planned name is not a created resource.
  3. Read the touched business owner's source, schema and contracts. Define who writes each fact and which readers need a transaction. Do not recreate RuntimeCoordinator authority, Space Durable Object state, or R2 file bodies.
  4. Implement in the existing owning package. Use standard PostgreSQL SQL and the supported pg driver; do not build a D1 API emulator or a cross-database framework. Preserve externally visible IDs and shared schemas.
  5. Run pnpm pg:check for database infrastructure changes. For business work, add the smallest real PostgreSQL behavior checks for its failure boundary, then exercise affected consumers. Local infrastructure acceptance is not proof of cloud connectivity, production scale, or completed business migration.

Decisions that change implementation

  • Application Hyperdrive caching is disabled. Transactions use one client from BEGIN through COMMIT/ROLLBACK. Hyperdrive transaction pooling cannot preserve session settings, temporary tables, or session advisory locks between queries.
  • Migrations and backup tools use the direct TLS endpoint on port 5432. A single migration owner and PostgreSQL advisory lock serialize changes.
  • Keep PostgreSQL baseline/migrations under packages/db/postgresql/migrations. Never convert or edit already-applied D1 history in place. Review generated SQL for SQLite assumptions, timestamp units, JSON, ordering, conflict behavior, indexes, constraints and affected query plans.
  • Runtime roles receive only owning-schema/table grants. No default postgres, broad all-data roles, CREATE, TRUNCATE, role management or migration ledger access. Tenant authorization remains an explicit owner contract, not a schema name.
  • Use the workflow's exact target and Doppler allowlist. No credentials in Git, logs, chat, command arguments, or ordinary development environments.
  • Retain historical test data where practical, but synthetic staging acceptance does not authorize exporting production data into staging.

Before applying or cutting over

Use the workflow's migration and cutover checklist rather than copying it here. Check source identity, target identity, immutable migration checksums, lock ownership, runtime grants, restore evidence, mixed-version consumers and one data authority. A completed resource creation is not a completed migration.

Stop the affected operation on a mismatched environment/branch, unknown owner, applied migration drift, failed restore, unresolved production writers, exposed credentials, or missing tenant authorization. After PostgreSQL accepts new business writes, reverting the binding to old D1 would lose data: freeze and reconcile under the recovery plan. New legal agreements and payment/identity challenges require the human. Do not request approval again for already authorized, bounded infrastructure setup.

よくある質問

AIスキル「Postgresql Planning」では何ができますか?

Plan and implement OpenMeld PostgreSQL business persistence, schemas and migrations, transactions, Hyperdrive access, and data cutover. Use for the shared relational database transition or PostgreSQL work; not for unrelated D1 performance fixes or OpenConnector's upstream database.

TypingMindでPostgresql Planningを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Postgresql Planningはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPostgresql Planningをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/amplifthq/openmeld/tree/main/.agents/skills/postgresql-planningを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Postgresql Planningを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Postgresql Planningで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPostgresql Planningを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Postgresql Planning」は無料ですか?

はい。amplifthqがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇