Migration Config Skill migration-config-skill

Holds canonical source and target environment parameters and verified DataStore mappings.

Works in Claude, ChatGPT, Codex and more
Our test
—
not tested yet
GitHub stars
18k
googlecloudplatform/generative-ai
Added by
0
members
Updated
Dec 6
commit 6a45112
Content
3 files
2 scripts · 6 KB
License
Apache 2.0
free to use

What our test found

Not tested yet. Our model tries every skill on a realistic request and scores the result, the most popular skills first. Until then, the safety checks on the right still apply.

View on GitHub ↗
name: migration-config-skill
description: Holds canonical source and target environment parameters and verified DataStore mappings.
metadata:
  environments:
    source:
      project_number: "<SOURCE_PROJECT_NUMBER>"
      project_id: "<SOURCE_PROJECT_ID>"
      region: global
      engine_id: "<SOURCE_ENGINE_ID>"
    target:
      project_number: "<TARGET_PROJECT_NUMBER>"
      project_id: "<TARGET_PROJECT_ID>"
      region: global
      engine_id: "<TARGET_ENGINE_ID>"
  datastores_mapping:
    # Format: source-datastore-id-suffix: target-datastore-id-suffix
    "<SOURCE_DATASTORE_ID_SUFFIX>": "<TARGET_DATASTORE_ID_SUFFIX>"
  connectors_mapping:
    ge-drive-all: Drive
    GeGmail: geGmail
    googleSearch: googleSearch
    urlContext: urlContext

ADK Administration Setup & Migration Instructions

This file serves as the single source of truth for Gemini Enterprise migrations. Administrators can fully configure source-to-target resource pairings by updating the YAML metadata frontmatter above.


Administrative Setup Guide

1. Environments Configuration

Set your official canonical source and target project definitions under environments:

  • `project_number`: The numeric Google Cloud Project Number (e.g., 404109417257).
  • `engine_id`: The fully qualified Discovery Engine app/engine ID.
2. DataStore Grounding Mappings (datastores_mapping)

Map underlying knowledge search collections and grounding data stores (assigned under dataStoreSpecs) using their exact resource ID suffix:

datastores_mapping:
  # Source ID -> Target ID
  example-mcp-source_12345_mcp_data: example-mcp-target_67890_mcp_data
  example-drive-source_12345_google_drive: example-drive-target_67890_google_drive

Note: Always use the fully qualified ID suffix (e.g., `_google_drive`, `_mcp_data`) to prevent substring truncation.

3. Visual Connector & Tool Mappings (connectors_mapping)

Map display aliases and frontend extension tool chips (assigned under selectedTools) to ensure visual rendering parity in the Agent Designer UI canvas:

connectors_mapping:
  # Source UI Badge -> Canonical Target UI Token
  "Example Source Connector": custom_mcp
  "example-drive": Drive

Operational Execution

Once configured, run live migrations or offline GCS imports directly:

# 1. Execute live cross-environment migration
uv run ./migrate.py migrate-agent "Quarterly Business Review Generator" --force

# 2. Import agent definition from GCS offline backup
uv run ./migrate.py import-agent-gcs quarterly_business_review_export.json --target-engine <TARGET_ENGINE_ID>