gcp-pipeline-orchestration
Skill0 starsChanged 4 months agoApache-2.0View on GitHub
This skill helps the agent generate or update orchestration pipeline definitions for Google Cloud Composer to initialize orchestration pipeline or update the orchestration definition for orchestration of various data pipelines, like dbt pipelines, notebooks, Spark jobs, Dataform, Python scripts or inline BigQuery SQL queries. This skill also helps deploy and trigger orchestration pipelines.
3 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- sid-lakhani/agents-configedited, first seen Oct 20, 2026
- matt-rabah/sf-ragedited, first seen Jun 28, 2026
- GoogleCloudPlatform/data-agent-kit-pluginedited, first seen Jun 11, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- GoogleCloudPlatform/data-agent-kit-plugin★ 25160% same
- sid-lakhani/agents-config★ 399% same
- matt-rabah/sf-rag★ 099% 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 repository78 other files it gives its agents.
- a11y-debuggingSkill
- accidental-data-loss-preventionSkill
- agy-customizationsSkill
- alphafold-database-fetch-and-analyzeSkill
- alphagenome-single-variant-analysisSkill
- antigravity-guideSkill
- bigquery-ai-mlSkill
- bigquery-bigframesSkill
- bigquery-data-transfer-serviceSkill
- bigquery-graphSkill
- bigquery-sqlSkill
- building-data-appsSkill
- chembl-databaseSkill
- chrome-devtoolsSkill
- chrome-extensionsSkill
- clinical-trials-databaseSkill
- clinvar-databaseSkill
- credentialsSkill
- data-autocleaningSkill
- dataform-bigquerySkill
- dbsnp-databaseSkill
- dbt-bigquerySkill
- debug-optimize-lcpSkill
- discovering-gcp-data-assetsSkill
- document-validatorSkill
- embl-ebi-olsSkill
- encode-ccres-databaseSkill
- enforcing-resource-attributionSkill
- ensembl-databaseSkill
- federate-lakehouse-catalogSkill
- foldseek-structural-searchSkill
- gcloud-auth-verificationSkill
- gcp-composer-troubleshootingSkill
- gcp-dataflowSkill
- gcp-data-pipelinesSkill
- gcp-managed-airflow-migrationsSkill
- gcp-pipeline-resource-provisioningSkill
- gcp-sparkSkill
- gcs-security-assessmentSkill
- gnomad-databaseSkill
- google-antigravity-sdkSkill
- gtex-databaseSkill
- human-protein-atlas-databaseSkill
- interpro-databaseSkill
- jaspar-databaseSkill
- link-checkSkill
- literature-search-arxivSkill
- literature-search-biorxivSkill
- literature-search-europepmcSkill
- literature-search-openalexSkill
- managing-python-dependenciesSkill
- memory-leak-debuggingSkill
- ml-best-practicesSkill
- modern-web-guidanceSkill
- ncbi-sequence-fetchSkill
- notebook-guidanceSkill
- openfda-databaseSkill
- opentargets-databaseSkill
- pdb-databaseSkill
- permissioned-githubSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. 16 are common, 0 are distinctive, and 11 are very specific to this project.
16
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 7
If relevant, call the associated reference file(s) before you take actions.
- Very specific: line 23
IMPORTANT: Check if a deployment.yaml file exists and references an existing orchestration file.
- Common: line 32
All files should always be maintained together.
- Common: line 50
Pipeline Name: If initialization is needed, ask the user for the pipeline name.
- Common: line 53
Environment Name: If initialization is needed, you MUST ask the user for the environment name.
- Very specific: line 125
Before generating, check if an orchestration pipeline definition file and deployment.yaml already exist in the current directory.
- Very specific: line 161
If you want to schedule the python job, check the content of Python content to determine if it's a spark job.
- Very specific: line 165
Before creating or updating the deployment.yaml file, you must first run the following command to get the list of available Composer …
- Common: line 177
After listing available Composer environments, you must check each environment to ensure the composer is using the right image version or …
- Very specific: line 206
Use the returned composer list with details, along with the project ID, region, and the bucket name provided by the user, to generate or …
- Common: line 214
Ensure both files adhere to the code structures and syntax specified in this document.
- Very specific: line 217
Renaming Pipelines: If requested to change the orchestration pipeline name, you must rename the orchestration YAML file accordingly (e.g., …
- Very specific: line 229
After creating or editing pipeline files, you MUST validate them using the gcloud beta orchestration-pipelines validate command.
- Common: line 241
Check the output of the validation command.
- Common: line 243
If the command returns an error or failure message:
- Common: line 245
Read the error message carefully.
- Common: line 255
When asked to generate or verify declarative pipeline files, ensure they follow these compliant structures.
- Common: line 277
If requested to deploy the orchestration pipeline:
- Very specific: line 283
Read the orchestration YAML to extract the pipelineId.
- Common: line 307
If requested to trigger/run the orchestration pipeline, you MUST follow the Deploy → Poll → Trigger flow.
- Very specific: line 311
Default to dev if it exists in deployment.yaml.
- Common: line 317
Poll for DAG readiness: Wait for the DAG to be registered in Composer.
- Very specific: line 380
If user requested to deploy the orchestration pipeline, the gcloud beta orchestration-pipelines deploy --environment=<ENV_NAME> --local …
- Common: line 383
If user requested to trigger/run the orchestration pipeline:
- Very specific: line 387
Run is visible in gcloud beta orchestration-pipelines runs list
- Common: line 391
If requested to pause/stop the orchestration pipeline, use
- Common: line 401
If requested to unpause/resume the orchestration pipeline, use
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mandatory Reference Routing
If relevant, call the associated reference file(s) before you take actions. Refer to the table below to determine which reference file to retrieve in different scenarios involving specific functions. [!IMPORTANT]: DO NOT GUESS filenames. You MUST only use the exact paths provided below.
| Function/Use Case | Required Reference File | Capabilities & Intent Keywords |
| orchestration-pipelines schema | references/orchestration-pipelines-schema.md | orchestrate, generate, create, update |
How to use this skill
Orchestration pipelines require creating two files to ensure a complete and deployable pipeline:
Orchestration File(e.g.,orchestration-pipeline.yaml,test-pipeline.yaml): Defines the pipeline's logic, tasks, and schedule. IMPORTANT: Check if adeployment.yamlfile exists and references an existing orchestration file. If it does, you must update the existing orchestration file (e.g.,test_pipeline.yaml) instead of creating a new one. The filename can be customized but must be referenced in thedeployment.yamlfile.deployment.yaml: Defines the environment-specific configurations.(e.g.,dev,prod).deployment.yamlshould only exists in the repository root and must be nameddeployment.yaml
- All files should always be maintained together. And all files should be placed on the root of the workspace folder.
- This skill is helpful to create or update configuration files to orchestrate data pipelines.
How to use this skill
Step 1: Assess Orchestration Pipeline Status and Initialize if Necessary
Examine the repository's root directory for a deployment.yaml file.
- Check for existing setup: The absence of
deployment.yamlindicates that orchestration has not been set up. - Determine if initialization is required: Initialization is required if
deployment.yamlis missing. you MUST run theinitcommand in Step 3 to scaffold the project ifdeployment.yamlis missing. Do NOT create the files manually. - Pipeline Name: If initialization is needed, ask the user for the pipeline name. If user hasn't provided the orchestration pipeline name, name should be "orchestration_pipeline"
- Environment Name: If initialization is needed, you MUST ask the user for the environment name. If the user does not provide it, use dev as the default.
- Execute Initialization: Once you have the pipeline name, run the following command:
# Replace <ORCHESTRATION_PIPELINE_NAME> with the actual name
# Replace <ENV_NAME> with the actual environment name
gcloud beta orchestration-pipelines init <ORCHESTRATION_PIPELINE_NAME> --environment=<ENV_NAME>Step 2: Review the orchestration pipeline code structure and syntax instruction
*** Pipeline Models (mapping to YAML)
[!IMPORTANT]
While the internal pipeline models are defined using protobuf (which typically uses
snake_case), the YAML configuration expectscamelCasefor almost all field names.Mapping Rule: Always convert
snake_caseproto fields (e.g.,pipeline_id) tocamelCasein YAML (e.g.,pipelineId).
Orchestration-Pipelines yaml structure and syntax instruction
Reference to file references/orchestration-pipelines-schema.md.
Required Tags (Top-Level): You MUST add a tags field to the top-level
of the orchestration pipeline YAML definition. The value of this field depends
on the IDE environment:
- For Antigravity, use
["job:datacloud:antigravity"]. - For VS Code, use
["job:datacloud:vscode"]. - For Gemini CLI, use
["job:datacloud:gemini-cli"]. - For Claude Code, use
["job:datacloud:claude"]. - For Codex, use
["job:datacloud:codex"]. - For any other environment, use
["job:datacloud:other"].
Deployment yaml structure and syntax instruction.
Top-Level Structure: The root of the YAML should be an object with the following fields:
environments(dictionary): A map where keys are environment names (e.g., 'dev', 'prod', etc) and values are Environment objects.
Environment: Each environment object contains the following fields:
project(string): The Google Cloud Project ID.region(string): The Google Cloud region (e.g., 'us-central1').composer_environment(string): The Cloud Composer environment name.artifact_storagebucket(string): GCS bucketpath_prefix(string): prefix of path that we want to put in bucket
pipelines- source(string): orchestration pipeline yaml file names. It can be multiple
variables(dictionary, optional): Key-value pairs representing environment variables. Values can be strings, numbers, or booleans.
[!TIP]
If the user doesn't provide specific paths for scripts, dbt projects, or GCP details (Project ID, Region), use tools like
find_by_nameto search the repository andgcloudcommands (e.g.,gcloud config get-value project) to retrieve the necessary information.
Step 3: Generate the pipeline files
- Before generating, check if an orchestration pipeline definition file and
deployment.yamlalready exist in the current directory. If they do, inform the user and ask if they want to update the existing files or create new ones with different names. Do not overwrite without confirmation. First, before creating the orchestration pipeline definition file, you must first run the following command to get the list of available dataproc environments for the user's project. This avoids using placeholder values to run the jobs.
# Replace <PROJECT_ID> with the actual project_id # Replace <REGION> with the actual region gcloud dataproc clusters list \ --project <PROJECT_ID> \ --region <REGION> \[!TIP]
Running the command without
--format=yamlprovides a clear, tabular output that is easier to read.Then use the returned dataproc list with details to create the orchestration pipeline definition file based on the user's requirements for the pipeline's logic and schedule. IMPORTANT: Every schedule must include an
endTime. Every schedule must use the current date asstartTimeif the user hasn't specified.[!IMPORTANT]
A Composer environment is not a Dataproc cluster. If no Dataproc clusters are available, do not use a Composer environment for the
sparkHistoryServerConfig. It is better to omit this configuration if a dedicated Spark History Server is not available.- If you want to schedule the python job, check the content of Python content
to determine if it's a spark job. If it is, use
pysparkas type instead of script as type. Before creating or updating the
deployment.yamlfile, you must first run the following command to get the list of available Composer environments for the user's project.# Replace <PROJECT_ID> with the actual project_id # Replace <REGION> with the actual region gcloud composer environments list \ --project <PROJECT_ID> \ --locations <REGION> \After listing available Composer environments, you must check each environment to ensure the composer is using the right image version or has installed right PyPI packages. Run the following command for each environment:
# Replace <ENVIRONMENT_NAME> with the Composer environment name # Replace <REGION> with the region gcloud composer environments describe <ENVIRONMENT_NAME> \ --location <REGION> \ --format="json(config.softwareConfig.imageVersion, config.softwareConfig.pypiPackages)"From the output, select an environment where the imageVersion value is one of is "composer-3-airflow-3.1.7-build.x, composer-3-airflow-2.11.1-build.x, composer-3-airflow-2.10.5-build.x, composer-3-airflow-2.9.3-build.x, composer-2.16.11-airflow-2.11.1, composer-2.16.11-airflow-2.10.5, composer-2.16.11-airflow-2.9.3" or select an environment where
orchestration-pipelinesfield is presented listed in the PyPI packages. This ensures the selected environment is compatible with orchestration pipelines.Third, before generating the
deployment.yamlfile, you must ask the user to provide theartifact_storagebucket name. Note that theartifact_storagebucket is typically initialized as a placeholder (e.g.,YOUR_BUCKET) by theinitcommand in Step 1. You must identify any such placeholders, ask the user for the actual bucket name, and then update thedeployment.yamlfile with the provided value.Use the returned composer list with details, along with the project ID, region, and the bucket name provided by the user, to generate or update the
deployment.yamlfile. When generating or updating thedeployment.yamlfile, you must replace placeholders (e.g., "<YOUR_PROJECT_ID>", "<YOUR_REGION>", "<YOUR_COMPOSER>", "<YOUR_BUCKET>") with the actual retrieved and provided values. Additionally, you must remove any associated# TODO:comments once the placeholders are replaced.- Ensure both files adhere to the code structures and syntax specified in this document.
- Renaming Pipelines: If requested to change the orchestration pipeline
name, you must rename the orchestration YAML file accordingly (e.g., from
dbt_clean_pipeline.yamltonew_name.yaml) and update thesourcefield within thepipelineslist indeployment.yamlto match the new filename.
[!IMPORTANT]
Time Format: Do NOT include the
Zsuffix instartTimeandendTime. Use the format"YYYY-MM-DDTHH:MM:SS"(e.g.,"2025-10-01T00:00:00").
Step 4: Validate the content (REQUIRED)
After creating or editing pipeline files, you MUST validate them using the
gcloud beta orchestration-pipelines validate command. you must: a. Read the
deployment.yaml file to identify all defined environments. b. Run the
validate command below for each environment found in deployment.yaml.
# Replace <ENV_NAME> with the identified environment name
gcloud beta orchestration-pipelines validate --environment=<ENV_NAME>Step 5: Handle Validation Errors
- Check the output of the validation command.
If the command returns an error or failure message:
- Read the error message carefully.
- Edit the orchestration and deployment files to fix the specific issue mentioned.
- Re-run the validation command to confirm the fix. Do not mark the task as complete until the validation passes (exit code 0), and do not fall back to create airflow dag in python if validation fails.
Declarative Pipeline Templates
When asked to generate or verify declarative pipeline files, ensure they follow these compliant structures. Do not use the exact values below; adapt them to the user's specific project, region, and environment details.
deployment.yaml Template - IMPORTANT FORMAT MUST MATCH-
environments:
<environment_name>: # e.g., dev, prod
project: <PROJECT_ID>
region: <REGION>
composer_environment: <COMPOSER_ENVIRONMENT_NAME>
gcs_bucket: "" # Optional
artifact_storage:
bucket: <ARTIFACT_BUCKET_NAME>
path_prefix: "<prefix>-" # e.g., namespace or username prefix
pipelines:
- source: '<orchestration-pipeline.yaml>' # e.g., list of pipeline yaml namesStep 6: Deploy the Orchestration Pipeline (Optional)
If requested to deploy the orchestration pipeline:
- You MUST ask the user which environment to deploy to. If no environment name
is provided, list the available environments from
deployment.yamland ask the user to choose one, defaulting todevif it exists. - Read the orchestration YAML to extract the
pipelineId. Deploy with
--local. This uploads the DAG without running it:# Replace <ENV_NAME> with the target environment # Replace <PIPELINE_SOURCE> with the orchestration YAML filename gcloud beta orchestration-pipelines deploy \ --environment=<ENV_NAME> --local- Parse the deploy output to extract the bundle ID (version). The output
includes a line like:
Pipeline deployment successful for version local-b32d15e307b5The version string (e.g.,local-b32d15e307b5) is the bundle ID.
[!IMPORTANT]
--localdeployments now default to--paused=true. The deployed DAG will be visible in Airflow as a paused DAG without a schedule. It will not auto-run. Use Step 7 to trigger it.
Step 7: Trigger the Orchestration Pipeline Run (Optional)
If requested to trigger/run the orchestration pipeline, you MUST follow the Deploy → Poll → Trigger flow.
- Ask for environment: You MUST ask the user which environment to use.
Default to
devif it exists indeployment.yaml. - Deploy first (Step 6): Always deploy before triggering to ensure the run
uses the latest code. Extract the
bundle IDfrom deploy output and thepipelineIdfrom the orchestration YAML. Poll for DAG readiness: Wait for the DAG to be registered in Composer.
# Initial delay: wait 30 seconds after deploy sleep 30 # Poll every 15 seconds, up to 2 minutes total # Replace <ENV_NAME>, <BUNDLE_ID> with actual values gcloud beta orchestration-pipelines list \ --environment=<ENV_NAME> \ --bundle=<BUNDLE_ID>The pipeline is ready when it appears in the list output. If it does not appear after 2 minutes, report failure and advise the user to check YAML validity.
Trigger the pipeline:
# Replace <ENV_NAME>, <BUNDLE_ID>, <PIPELINE_ID> with actual values gcloud beta orchestration-pipelines trigger \ --environment=<ENV_NAME> \ --bundle=<BUNDLE_ID> \ --pipeline=<PIPELINE_ID>Verify the run started:
gcloud beta orchestration-pipelines runs list \ --environment=<ENV_NAME> \ --bundle=<BUNDLE_ID> \ --pipeline=<PIPELINE_ID>
[!TIP]
Trigger-only (no deploy): If the user wants to trigger an already-deployed pipeline, skip Step 6. Use
gcloud beta orchestration-pipelines list --environment=<ENV_NAME>to find the bundle ID, then trigger directly with Step 7.4.
[!IMPORTANT]
Fallback: If
gcloud triggerfails, use the bundled script: Run script with -- help to discover and learn the interface.python scripts/trigger/airflow_trigger.py \ --project <PROJECT_ID> --location <REGION> \ --environment <COMPOSER_ENV> --dag_id <PIPELINE_ID>Get
project,region, andcomposer_environmentfromdeployment.yaml.
Definition of done
deployment.yamlfile is created successfully.- The orchestration pipeline file (e.g.,
orchestration_pipeline.yaml) is created successfully, includes a mandatoryendTimefor every schedule, and passes the validation command:gcloud beta orchestration-pipelines validate --environment=<ENV_NAME> - If user requested to deploy the orchestration pipeline, the
gcloud beta orchestration-pipelines deploy --environment=<ENV_NAME> --localcommand should return a success message with a version/bundle ID. - If user requested to trigger/run the orchestration pipeline:
- Deploy succeeded (bundle ID extracted from output)
- DAG appeared in
gcloud beta orchestration-pipelines listwithin 2 min gcloud beta orchestration-pipelines triggerreturned success- Run is visible in
gcloud beta orchestration-pipelines runs list
Other actions
If requested to pause/stop the orchestration pipeline, use
# Replace <ENV_NAME>, <BUNDLE_ID>, <PIPELINE_ID> with actual values
gcloud beta orchestration-pipelines pause \
--environment=<ENV_NAME> \
--bundle=<BUNDLE_ID> \
--pipeline=<PIPELINE_ID>If requested to unpause/resume the orchestration pipeline, use
# Replace <ENV_NAME>, <BUNDLE_ID>, <PIPELINE_ID> with actual values
gcloud beta orchestration-pipelines unpause \
--environment=<ENV_NAME> \
--bundle=<BUNDLE_ID> \
--pipeline=<PIPELINE_ID>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.

