bigquery-data-transfer-service
Skill240 starsChanged 5 months agoApache-2.0View on GitHub
Discovers and inspects BigQuery Data Transfer Service (DTS) configurations.
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- sid-lakhani/agents-configedited, first seen Oct 20, 2026
- matt-rabah/sf-ragword for word, first seen Jun 28, 2026
Other versions2 projects use a version of this.
Word for word · 1
- matt-rabah/sf-rag★ 0100% same
Edited · 1
- sid-lakhani/agents-config★ 2100% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- accidental-data-loss-preventionSkill
- bigquery-ai-mlSkill
- bigquery-bigframesSkill
- bigquery-graph-authorSkill
- bigquery-graph-querySkill
- bigquery-observabilitySkill
- bigquery-optimizationSkill
- bigquery-troubleshootingSkill
- bigtable-basicsSkill
- building-data-appsSkill
- cloud-databases-onboardingSkill
- dak-setupSkill
- data-autocleaningSkill
- dataform-bigquerySkill
- dbt-bigquerySkill
- discovering-gcp-data-assetsSkill
- enforcing-resource-attributionSkill
- federate-lakehouse-catalogSkill
- gcp-composer-troubleshootingSkill
- gcp-dataflowSkill
- gcp-data-pipelinesSkill
- gcp-managed-airflow-dag-authoringSkill
- gcp-managed-airflow-migrationsSkill
- gcp-managed-airflow-recommendationsSkill
- gcp-managed-spark-upgradesSkill
- gcp-pipeline-orchestrationSkill
- gcp-pipeline-resource-provisioningSkill
- gcp-spark-observabilitySkill
- gcp-sparkSkill
- gcp-spark-troubleshootingSkill
- gcs-security-assessmentSkill
- google-cloud-storage-basicsSkill
- google-cloud-storage-bucket-architectSkill
- google-cloud-storage-fuseSkill
- managing-python-dependenciesSkill
- ml-best-practicesSkill
- notebook-guidanceSkill
- resolving-mcp-region-configsSkill
- schema-mappingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 14 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Before generating configurations, discover the actual values for the target project and region.
- Distinctive: line 55
Before assuming a new transfer is needed, check for existing ones in the target region.
- Very specific: line 70
Check if the transfer has at least one successful run: bq ls --transfer_run --transfer_config=<RESOURCE_NAME>
- Distinctive: line 72
If found: Use existing transfer config.
- Distinctive: line 73
If not found: Confirm with user if it's ok to trigger the transfer run.
- Distinctive: line 79
Ask user to confirm.
- Distinctive: line 83
Ask user if they want to enable it or create a new one.
- Distinctive: line 92
If creating a new transfer, discover the required parameters using the REST API and validate them with the user.
- Very specific: line 105
Run Discovery Script: Use the bigquery_dts.py script to inspect Data Source parameters via the REST API.
- Very specific: line 130
If any parameters are related to authentication, explicitly ask the user to provide the Secret Manager Resource ID (e.g., …
- Distinctive: line 135
Ask for verification of assets/tables to be ingested.
- Distinctive: line 150
After the transfer is deployed via the resource provisioning framework, you MUST ensure there is at least a single successful run before …
- Distinctive: line 154
Trigger a Manual Run: If no successful runs or ongoing runs are found, or the transfer was just created, trigger a manual run for the …
- Distinctive: line 170
Success: If the run completes successfully, proceed with the rest of the pipeline.
- Distinctive: line 172
Failure: If the run fails, analyze the logs and ask the user for help.
- Distinctive: line 174
Timeout (5 mins): If the run is still in progress after 5 minutes,
- Distinctive: line 180
Wait for User Guidance: Do NOT proceed until the user confirms ingestion is complete or provides guidance.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
BigQuery Data Transfer Service (DTS)
Mandatory Guidelines
[!IMPORTANT]
All new BigQuery Data Transfer Service (DTS) configurations MUST be provisioned through the gcp pipeline resource provisioning framework, which includes generating a
deployment.yaml.
- Do NOT use imperative CLI commands (e.g.,
bq mkorgcloud) to create or update configurations.- CLI commands are permitted only for discovery (listing/showing) and triggering manual runs.
This guide enables the discovery of existing ingestion resources and provides metadata related to ingestion when needed.
Workflow
Step 0: Discover Environment Parameters
Before generating configurations, discover the actual values for the target project and region.
[!TIP]
If
deployment.yamlalready exists in the repository root, prioritize extractingprojectandregionfrom the target environment configuration (e.g.,dev).
- Project:
gcloud config get project - Region:
gcloud config get compute/region
[!TIP]
Use these commands to replace placeholders like
<PROJECT_ID>with actual values. Always remove associated comments that start with TODO once replaced.
Step 1: Check for Existing Transfers
Before assuming a new transfer is needed, check for existing ones in the target region.
List Transfers:
bq ls --transfer_config \ --transfer_location=<REGION> \ --project_id=<PROJECT_ID>Analyze Existing Transfers:
Single Transfer Found:
- Check if the transfer has at least one successful run:
bq ls --transfer_run --transfer_config=<RESOURCE_NAME> - If found: Use existing transfer config.
- If not found: Confirm with user if it's ok to trigger the transfer run.
- Check if the transfer has at least one successful run:
Multiple Transfers Found:
- Attempt to guess the correct one based on context.
- Ask user to confirm.
Disabled Transfers Found:
- Ask user if they want to enable it or create a new one.
- To Enable: Instruct the user to update the transfer configuration
within their
deployment.yamlfile by setting thedisabledfield tofalsefor the specific transfer resource.
- No Transfers Found: Proceed to create new if needed.
Step 2: Discover & Validate Parameters (New Transfers)
If creating a new transfer, discover the required parameters using the REST API and validate them with the user.
[!TIP]
If
<DATA_SOURCE_ID>is unknown, run the discovery script without<DATA_SOURCE_ID>argument to list available source IDs (e.g.,google_cloud_storage). It uses the derived project and location from Step 0.
python3 scripts/bigquery_dts.py --project_id=<PROJECT_ID>Run Discovery Script: Use the
bigquery_dts.pyscript to inspect Data Source parameters via the REST API.# Passes the derived project and region to the script. python3 scripts/bigquery_dts.py --project_id=<PROJECT_ID> <DATA_SOURCE_ID> <REGION>[!IMPORTANT]
Run this command every time a new transfer is being planned.
[!CAUTION]
Mandatory User Questionnaire (CRITICAL):
- Explicitly identify ALL specific parameters returned by the discovery script. You MUST NOT generalize or vaguely summarize them.
- OAuth Authorization (Google Data Sources): For Google ecosystem data
sources (Google Ads, Youtube, etc.), if the user is not using a service
account to configure the DTS transfer config (meaning the user is using
End User Credentials or EUC to configure the transfer config), then
generate an OAuth URI. Ask the user to visit this URL to authorize. Once
the user provides the versionInfo code, use the code as
definition.versionInfoindeployment.yamland then you can proceed. - If any parameters are related to authentication, explicitly ask the user to provide the Secret Manager Resource ID (e.g., projects/my-project/secrets/my-secret) for these parameters
- Present every required parameter to the user BEFORE generating config files.
- Ask for verification of assets/tables to be ingested.
- Wait for User Response: You MUST NOT proceed until parameters are confirmed.
Step 3: Extract Transfer Config Data
Retrieve the configuration details for the selected transfer.
bq show --format=prettyjson --transfer_config <RESOURCE_NAME>Step 4: Trigger and Verify Transfer
After the transfer is deployed via the resource provisioning framework, you MUST ensure there is at least a single successful run before proceeding with the rest of the tasks.
Trigger a Manual Run: If no successful runs or ongoing runs are found, or the transfer was just created, trigger a manual run for the current time.
bq mk --transfer_run \ --transfer_config=<RESOURCE_NAME> \ --run_time=$(date -u +"%Y-%m-%dT%H:%M:%SZ")Poll for Completion (5-Minute Rule): Attempt to check the status of the run every 30-60 seconds for up to 5 minutes.
bq ls --format=prettyjson --transfer_run --transfer_config=<RESOURCE_NAME>- Success: If the run completes successfully, proceed with the rest of the pipeline.
- Failure: If the run fails, analyze the logs and ask the user for help.
- Timeout (5 mins): If the run is still in progress after 5 minutes, STOP and ask the user: "The Data Transfer Service ingestion is still in progress. Please provide 'proceed guidance' once the ingestion has finished so that I can continue building the rest of the data pipeline using the ingested schema and samples."
- Wait for User Guidance: Do NOT proceed until the user confirms ingestion is complete or provides guidance.
- Once user confirms to proceed, start work on rest of the tasks.
Definition of Done
- A BigQuery DTS transfer configuration has been discovered or provisioned
declaratively (via gcp pipeline resource provisioning with a generated
deployment.yaml). - Mandatory datasource parameters have been identified and confirmed with the user.
- A manual transfer run has been triggered and monitored.
- The transfer run has completed successfully OR the user has provided "proceed guidance" for a long-running transfer.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

