claude-skills/

Anthropic公式スキル・プラグインの日本語ディレクトリ

last sync 22h ago
スキルOfficialdevelopment

🌿aidp-git

説明

ワークスペース内のGitリポジトリに対して、ネイティブGitをAIDPワークスペース上で操作します。 対応機能: ブランチ管理、チェックアウト、コミット/プッシュ、プル、マージ、リベース、リセット、差分表示、コンフリクト解消。 次のような場合に使用: - ワークスペース上のノートブックやコードをGitでバージョン管理したい - ブランチの作成・切り替えを行いたい - 変更をコミット/プッシュしたい - AIDPの内部でコンフリクトを解消したい `oci raw-request` を使用してGitService APIをプレビューできます。実行前に必ず動作確認を行ってください。

原文を表示

Operate native Git in an AIDP workspace — branches, checkout, commit/push, pull, merge, rebase, reset, diff, and conflict resolution on workspace git repositories. Use when the user wants to version workspace notebooks/code in Git, manage branches, commit/push changes, or resolve conflicts inside AIDP. Preview GitService API via `oci raw-request`; verify live first.

ユースケース

  • ノートブックやコードをバージョン管理したい
  • ブランチの作成・切り替えを行いたい
  • 変更をコミット・プッシュしたい
  • コンフリクトを解消するとき

本文(日本語訳)

aidp-git — ワークスペースのネイティブ Git 統合(プレビュー)

REST GitService API を通じて、AIDP のネイティブ Git 統合を操作します。 MCP 不要、ai-data-engineer-agent リポジトリも不要の完結型スキルです。 すべての呼び出しは、AIDP コントロールプレーンへの oci raw-request を使用します (ベース URL および認証ラダーについては references/oci-raw-request.md を参照)。

CLI のギャップ(存在しないコマンドは使用しない): 公式 aidp CLI v1.0.0 は GitService グループを完全には公開していません。 存在するのは aidp workspace create-git-folder のみです。 ブランチ / チェックアウト / コミット・プッシュ / プル / マージ / リベース / リセット / 差分 / コンフリクト解消 はすべて REST API(プレビュー、未プロビジョニングの可能性あり) で行います。 aidp git コマンドが存在すると想定しないでください — references/aidp-cli-map.md を参照。

プレビュー + 事前検証(情報の捏造禁止): GitServiceプレビュー です。 20240831 テナンシーで actions/gitOperationState へのライブ読み取りが 404 NotAuthorizedOrNotFound を返す場合、それは GitService がその環境でプロビジョニングされていない ことを意味します — パスが誤っているわけではありません。 変更を伴う操作を行う前に、ライブ読み取りで有効な API_VERSION / PATH_PREFIX を確認し、 references/rest-endpoint-map.md に記録してください。

次のような場合に使用

  • 「ワークスペースのノートブックを Git でバージョン管理したい」
  • 「ブランチを作成・チェックアウトしたい」
  • 「コミットしてプッシュしたい」
  • 「プル / マージ / リベースしたい」
  • 「変更内容を確認したい(diff)」
  • 「コンフリクトを解消したい」 — AIDP ワークスペース内での Git 操作全般。

エンドポイント(ワークスペース + リポジトリスコープ;プレビュー — デフォルト 20240831、プレフィックス dataLakes

ベース: https://aidp.<region>.oci.oraclecloud.com/20240831/dataLakes/<DATALAKE_OCID>/…

  • GET|PUT /workspaces/{ws}/gitRepositories/{repo} · POST|GET …/gitBranches
  • アクション: POST …/actions/checkOutBranch|commitPush|merge|pull|rebase|reset|resetState|resolveConflicts
  • 状態読み取り: GET …/actions/gitOperationState|gitDiff|gitDiffDetails

デフォルトは 20240831(このテナンシーで動作確認済みのバージョン)を使用してください。 20260430 は将来の GA ターゲットとして扱い、テナンシーのアップグレード後にのみ試みてください。想定ではなくプローブで確認すること。

エントリーポイント — リポジトリの登録 / クローン(CreateGitFolderDetails

ブランチ操作やコミット操作を行う前に、git フォルダーが必要です。 これは実際の CLI コマンドが存在する 唯一 の Git 操作です (CLI README「workspace create-git-folder」参照):

aidp workspace create-git-folder <DATALAKE_OCID> <WORKSPACE-KEY> --body <JSON>

リクエストボディ(SDK create_git_folder_details.py:46-62):

フィールド(ワイヤー名) 必須 備考
folderPath 作成する git フォルダーの絶対パス
gitRepositoryUrl クローンするリポジトリの URL
branchName クローン / チェックアウトするブランチ
credentialKey 保存済み git 認証情報のキー(GIT_ACCOUNT ユーザー設定 — aidp-user-settings 参照、または credentialStore エントリー — aidp-credentials 参照)
gitProviderKey プロバイダーテーブル内の git プロバイダーキー
description リポジトリの短い説明

例 — .aidp/payloads/create-<name>-git-folder.json に保存してから確認すること:

{
  "folderPath": "/Workspace/repos/my-repo",
  "gitRepositoryUrl": "https://github.com/org/my-repo.git",
  "branchName": "main",
  "credentialKey": "<CREDENTIAL_KEY>"
}

フィールド は確認済みです(SDK attribute_map + CLI README)。 CLI コマンド自体は workspaces/{ws} を対象とし、ここで文書化されているパスです。 GitService のその他の操作(ブランチ / コミットなど)は引き続き 事前検証が必要なプレビュー扱いです (…/gitRepositories への GET が 404 を返した場合 = この環境では未プロビジョニング — references/rest-endpoint-map.md 参照)。

ワークフロー

  1. ベース URL + 認証ラダー(references/oci-raw-request.md)を確認。 GET …/actions/gitOperationState疎通確認 を行う。 ここで 404 NotAuthorizedOrNotFound が返る場合 = この 20240831 環境で GitService プレビューが 未プロビジョニング → 処理を中断し、ユーザーに有効化を促すこと。成功を捏造しないこと。
  2. ブランチ: gitBranches(一覧取得 / 作成)→ actions/checkOutBranch
  3. 検査: コミット前に actions/gitDiff / gitDiffDetails で差分を確認。
  4. コミット / プッシュ: actions/commitPush(ボディにメッセージを含める)。 統合: pull / merge / rebase
  5. コンフリクト: actions/resolveConflicts で解消; 不正な状態からの回復には reset / resetState を使用(事前確認必須)。
  6. 長時間の操作は非同期(202)になる場合があります — references/oci-raw-request.md の共通規約に従ってポーリングしてください。

ガードレール

  • reset / resetState / 強制系の操作は 破壊的 です — 失われるものを提示してからユーザーに確認を取ること。
  • シークレットや .env ファイルをコミットしないこと。
  • 変更を伴う操作(commitPush / merge / rebase / reset / resolveConflicts)では、 リクエストボディを .aidp/payloads/ に保存してから実行すること — references/payloads.md 参照。

参考資料

原文(English)を表示

aidp-git — native Git in the workspace (Preview)

Drive AIDP's native Git integration over the REST GitService API. Self-contained — no MCP and no ai-data-engineer-agent repo required. All calls are oci raw-request against the AIDP control plane (base URL + auth ladder in references/oci-raw-request.md).

CLI gap (no invented commands): the official aidp CLI v1.0.0 does not expose a full GitService group — only aidp workspace create-git-folder exists. Branch / checkout / commit-push / pull / merge / rebase / reset / diff / conflict-resolution all stay on the REST API (Preview, may be unprovisioned). Do not assume an aidp git command exists — see references/aidp-cli-map.md.

Preview + verify-first (no-fabrication): GitService is Preview. A live read (actions/gitOperationState) returning 404 NotAuthorizedOrNotFound in a 20240831 tenancy means GitService is not provisioned for that env — not that the path is wrong. Confirm the working API_VERSION/PATH_PREFIX with a live read before any mutating op and record it in references/rest-endpoint-map.md.

When to use

  • "Version my workspace notebooks in Git", "create/checkout a branch", "commit & push", "pull/merge/rebase", "what changed (diff)", "resolve conflicts" — inside the AIDP workspace.

Endpoints (workspace + repo scoped; Preview — default 20240831, prefix dataLakes)

Base: https://aidp.<region>.oci.oraclecloud.com/20240831/dataLakes/<DATALAKE_OCID>/…

  • GET|PUT /workspaces/{ws}/gitRepositories/{repo} · POST|GET …/gitBranches
  • Actions: POST …/actions/checkOutBranch|commitPush|merge|pull|rebase|reset|resetState|resolveConflicts
  • Read state: GET …/actions/gitOperationState|gitDiff|gitDiffDetails

Default to 20240831 (the live-verified version for this tenancy). Treat 20260430 as a future GA target — only try it after a tenancy upgrade, and probe rather than assume.

Entry point — register/clone the repo (CreateGitFolderDetails)

Before any branch/commit op you need a git folder. This is the one git operation with a real CLI command (CLI README "workspace create-git-folder"): aidp workspace create-git-folder <DATALAKE_OCID> <WORKSPACE-KEY> --body <JSON>. Body (SDK create_git_folder_details.py:46-62):

Field (wire) Req Notes
folderPath absolute path of the git folder to create
gitRepositoryUrl repo URL to clone
branchName branch to clone/check out
credentialKey key of stored git credentials (a GIT_ACCOUNT user-setting — see aidp-user-settings — or a credentialStore entry — see aidp-credentials)
gitProviderKey key of the git provider in the provider table
description short repo description

Example — persist to .aidp/payloads/create-<name>-git-folder.json and confirm first:

{
  "folderPath": "/Workspace/repos/my-repo",
  "gitRepositoryUrl": "https://github.com/org/my-repo.git",
  "branchName": "main",
  "credentialKey": "<CREDENTIAL_KEY>"
}

Field names are confirmed (SDK attribute_map + CLI README). The CLI command itself targets workspaces/{ws} and is the documented path here; the rest of GitService (branch/commit/…) stays verify-first Preview (…/gitRepositories GET returned 404 = not provisioned in this env — references/rest-endpoint-map.md).

Workflow

  1. Base URL + auth ladder (references/oci-raw-request.md). Verify with GET …/actions/gitOperationState. A 404 NotAuthorizedOrNotFound here = GitService Preview not provisioned in this 20240831 env → stop and tell the user to enable it; do not fabricate success.
  2. Branch: gitBranches (list/create) → actions/checkOutBranch.
  3. Inspect: actions/gitDiff / gitDiffDetails before committing.
  4. Commit/push: actions/commitPush (message in body). Integrate: pull/merge/rebase.
  5. Conflicts: actions/resolveConflicts; recover bad state with reset/resetState (confirm first).
  6. Long ops may be async (202) — poll per the shared conventions in references/oci-raw-request.md.

Guardrails

  • reset/resetState/force-style ops are destructive — show what will be lost and confirm.
  • Don't commit secrets/.env.
  • For mutating ops (commitPush / merge / rebase / reset / resolveConflicts), persist the request body to .aidp/payloads/ and confirm first — see references/payloads.md.

References

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。