本文へ移動
cccskills
無料GitHub で公開

sqlx-migration

Create SQLx migration files with `sqlx migrate add <name>`. Use when asked to add, create, or generate a sqlx/sqlx-cli database migration.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

SQLx Migration

Use the SQLx CLI to create migration files instead of manually creating timestamped files.

Instructions

  1. Identify the project or crate root where SQLx migrations should live.

    • Prefer the directory that contains an existing migrations/ directory.
    • If there are multiple crates/projects, ask the user which one unless the target is obvious.
  2. Convert the requested migration description to a short snake_case name, for example create_users_table.

  3. Run just setup_test_envs from the project root

  4. Run the SQLx CLI from crates/macro_db_client folder:

    cargo sqlx migrate add name_of_migration
    

    Replace name_of_migration with the actual snake_case migration name.

  5. Do not manually add timestamps or hand-create migration filenames; sqlx migrate add generates the correct timestamped file.

  6. After the command succeeds, read the generated migration file and add the requested SQL changes there.

  7. If sqlx is not installed or not on PATH, stop and tell the user to install sqlx-cli rather than manually creating the migration file.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Wrap a new backend endpoint in the TypeScript SDK (packages/sdk), or record it as skipped. Use when `just coverage` fails, or after adding an endpoint to a Rust service.

日本語の概要は準備中です。原文の説明を表示しています。

macro-inc/macro4,6262026年10月11日 更新

add-tour

無料

Add or change an in-app feature tour (a view's guided flyover) in the web app. Use when adding a tour to a view, adding or editing tour steps, pointing a step at a new control, or when a step's target needs something opened first.

日本語の概要は準備中です。原文の説明を表示しています。

macro-inc/macro4,6262026年10月11日 更新

Enforce hexagonal architecture in the Rust backend. Use before modifying crates or Rust services, especially inbound axum/tool/listener adapters, domain services/ports, outbound adapters, authorization, permissions, database access, or external clients.

日本語の概要は準備中です。原文の説明を表示しています。

macro-inc/macro4,6262026年10月11日 更新

Enforce hexagonal architecture in the Rust backend. Use before modifying crates/ or Rust services, especially inbound axum/tool/listener adapters, domain services/ports, outbound adapters, authorization, permissions, database access, or external clients.

日本語の概要は準備中です。原文の説明を表示しています。

macro-inc/macro4,6262026年10月11日 更新

Use when adding collaborative markdown, notes, or descriptions to a feature with collab surfaces. Covers parent entities, service entry points, authorization, content storage, and lifecycle.

日本語の概要は準備中です。原文の説明を表示しています。

macro-inc/macro4,6262026年10月11日 更新

Build a new AI tool end-to-end — Rust implementation, toolset wiring, infra, schema generation, and frontend UI.

日本語の概要は準備中です。原文の説明を表示しています。

macro-inc/macro4,6262026年10月11日 更新

macro-inc のスキルをすべて見る

このスキルの問題を報告する