複数のアプリやMCPホストからブランド画像・動画を生成、調整、書き出し、挿入する作業を支援します。ライブラリ選択や修正依頼も扱います。
- スライド用のブランド画像を作りたいとき
- 既存素材をフィードバックに合わせて直したいとき
- 動画素材を生成して書き出したいとき
PostgreSQLの共通SQLとNitro・H3の仕組みに沿って、特定のホスティング環境に依存しないテンプレートやサーバー処理を設計するスキルです。
How to keep template code PostgreSQL-specific and hosting-agnostic. Use when defining schemas, writing raw SQL, or creating server routes.
実行スコア 未検証
インストール方法を見るテンプレートのデータベース処理とサーバー構成を、特定のホスティング環境に縛られない形で設計するための基準を示します。データベースにはPostgreSQLのスキーマとクエリを使い、通常の読み書きはDrizzleのPostgreSQL用APIで表現します。手書きSQLを使う場面は、マイグレーションやヘルスチェック、高度なクエリなどに限ります。サーバー処理ではNitroとH3のパターンを使い、Expressやサーバールート内のNode.js APIに依存しない実装を促します。
新しいテンプレートのスキーマやSQLを決めるとき、サーバールートを追加するとき、ローカル開発と本番環境で同じSQLの動作を保ちたいときに役立ちます。PGliteは開発用、共有・本番環境では永続化できるホスト型PostgreSQLを使う、という使い分けも確認できます。
本番や共有環境では、永続化されたホスト型PostgreSQLのDATABASE_URLが必要です。テンプレートのサーバーはNitroとH3を前提とし、特定サービス向けの設定ファイルをCLI用テンプレートに含めない方針です。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Templates use one PostgreSQL schema and query contract. Local PGlite and hosted PostgreSQL share the same SQL semantics.
Use Drizzle's PostgreSQL exports directly for schemas and its query builder for reads/writes:
import { sql } from "drizzle-orm";
import {
boolean,
doublePrecision,
integer,
pgTable,
text,
} from "drizzle-orm/pg-core";
export const meals = pgTable("meals", {
id: text("id").primaryKey(),
name: text("name").notNull(),
calories: integer("calories").notNull(),
weight: doublePrecision("weight"),
archived: boolean("archived").notNull().default(false),
createdAt: text("created_at").notNull().default(sql`now()`),
});
| Export | Purpose |
|---|---|
pgTable | Defines a PostgreSQL table |
text | Defines a text column, with optional enum values |
integer | Defines an integer column |
boolean | Defines a boolean column |
doublePrecision | Defines a double-precision column |
sql | Builds SQL expressions such as now() |
Use @agent-native/core/db/schema only for framework-owned sharing helpers such
as ownableColumns() and createSharesTable().
Use Drizzle's PostgreSQL query builder for app code:
import { and, desc, eq } from "drizzle-orm";
const rows = await db
.select()
.from(meals)
.where(and(eq(meals.ownerEmail, userEmail), eq(meals.archived, false)))
.orderBy(desc(meals.createdAt));
Avoid db.execute(...), getDbExec(), and handwritten SQL in actions, handlers, and stores when Drizzle can express the query. Raw SQL should be limited to additive migrations, health checks, carefully reviewed advanced queries, or one-off maintenance scripts. For timestamps in Drizzle schemas, use .default(now()); for migration SQL, use runMigrations().
getDbExec() — executes parameterized PostgreSQL SQLBIGINT directly in raw SQL.When writing docs, say "PostgreSQL" or "PGlite" precisely.
Use Postgres syntax deliberately in advanced queries and migrations, and prefer Drizzle APIs or framework helpers for ordinary application code.
When giving deployment guidance, be precise about durability: local PGlite is for development, while shared and production environments need a persistent hosted PostgreSQL DATABASE_URL.
The server runs on Nitro with H3 as the HTTP framework. Templates must be deployable to any Nitro-supported target.
All server code uses H3/Nitro: defineEventHandler, readBody, getMethod, setResponseHeader, etc. Express is not a dependency. If you see Express types or patterns anywhere, replace them with H3 equivalents.
Files like netlify.toml, wrangler.toml, vercel.json, and netlify/functions/ must NOT appear in the CLI scaffold source (packages/core/src/templates/) — apps generated for users stay hosting-agnostic, with platform configuration living in CI/hosting dashboards.
This monorepo's own first-party deployed apps keep platform configuration in app-specific hosting manifests such as templates/*/netlify.toml; this rule only applies to the CLI scaffold source.
Never use fs, child_process, or path in server routes and plugins. Use Nitro abstractions. (Actions in actions/ run in Node.js and can use Node APIs freely.)
Never assume a persistent server process. Use the SQL database for all state.
storing-data — Schema patterns and the core SQL storesserver-plugins — Framework routes and H3 handler patternssecurity — SQL injection prevention via parameterized queriesまだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
複数のアプリやMCPホストからブランド画像・動画を生成、調整、書き出し、挿入する作業を支援します。ライブラリ選択や修正依頼も扱います。
特定の顧客企業について、契約と製品利用の数値を照らし合わせ、根拠や不足情報を明記した健全性レポートをまとめます。
アプリの操作をエージェントと画面の両方から呼び出せるアクションとして実装し、API連携や画面のデータ取得を一貫した形で追加するスキルです。
新機能をUI・エージェント用アクション・説明資料・画面状態の4領域でそろえ、利用者とエージェントのどちらからも一貫して使えるようにするチェックリストです。
複数のデータソースを照合して、傾向や指標、根拠をまとめた分析結果を作成します。必要に応じて、再実行できるダッシュボードとして保存できます。
Analyticsの管理画面で、機能フラグの状態確認と切り替え、ダッシュボード利用状況の調査、接続先アプリのデータベース管理を行います。