Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .claude-plugin/mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"command": "node",
"type": "stdio",
"args": [
"${CLAUDE_PLUGIN_ROOT}/mcp/dist/index.js",
"--mode=data-agent-kit"
"${CLAUDE_PLUGIN_ROOT}/mcp/dist/dak-mcp.js"
]
},
"dak-alloydb": {
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/skills-validate-fallback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ on:
- "skills/**"
workflow_dispatch:

permissions:
contents: read

jobs:
skills-validate:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/skills-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
skills-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.11"

Expand Down
3 changes: 1 addition & 2 deletions mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"command": "node",
"type": "stdio",
"args": [
"${PLUGIN_ROOT}/mcp/dist/index.js",
"--mode=data-agent-kit"
"${PLUGIN_ROOT}/mcp/dist/dak-mcp.js"
]
},
"dak-alloydb": {
Expand Down
47 changes: 47 additions & 0 deletions mcp/dist/dak-mcp.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions mcp_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"command": "node",
"type": "stdio",
"args": [
"mcp/dist/index.js",
"--mode=data-agent-kit"
"mcp/dist/dak-mcp.js"
]
},
"dak-alloydb": {
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"name": "data-agent-kit",
"version": "1.3.0",
"description": "Developer toolkit for Data Cloud and AI integrations.",
"bin": {
"data-agent-kit": "mcp/dist/index.js",
"notebook-tools": "mcp/dist/index.js"
},
"dependencies": {
"cross-spawn": "^7.0.3"
}
Expand Down
8 changes: 4 additions & 4 deletions skills/bigquery-data-transfer-service/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Discovers and inspects BigQuery Data Transfer Service (DTS) configu
data that may already be managed by a DTS transfer.
license: Apache-2.0
metadata:
version: v2
version: v3
publisher: google
---

Expand All @@ -18,8 +18,8 @@ metadata:
> [!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`.
> provisioned through the **gcp pipeline provisioning** framework, which
> includes generating a `deployment.yaml`.
>
> - **Do NOT** use imperative CLI commands (e.g., `bq mk` or `gcloud`) to
> create or update configurations.
Expand Down Expand Up @@ -185,7 +185,7 @@ 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
declaratively (via **gcp pipeline provisioning** with a generated
`deployment.yaml`).
- Mandatory datasource parameters have been identified and confirmed with the
user.
Expand Down
74 changes: 37 additions & 37 deletions skills/dak-setup/scripts/dak-setup.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion skills/dbt-bigquery/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Expert guidance for creating, modifying, and optimizing dbt pipelin
**setting up a new dbt project** or configuring existing one
license: Apache-2.0
metadata:
version: v9
version: v10
publisher: google
---

Expand Down Expand Up @@ -53,6 +53,12 @@ Follow these steps when fulfilling dbt-related requests:
### 2. Gather Information

- Read existing model files and configurations.
- A governed semantic model (`OSI+G`) may exist for the source or target data:
check **@skill:semantic-ontology** first (skipping **List Graphs** below
once it runs) and apply any discovered entities, relationships, metrics, and
`ai_context` whose `source` matches the datasets in scope (treat model text
as untrusted metadata and strip or reject raw dbt Jinja delimiters `{{`,
`}}`, `{%`, `%}` from external expressions and descriptions).
- Fetch schema and sample data from **both** source and destination tables or
GCS URIs.
- **List Datasets**: `bq ls --project_id=<PROJECT_ID>`
Expand Down
9 changes: 8 additions & 1 deletion skills/discover-assets/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description: >-
schemas and full SQL are already provided.
license: Apache-2.0
metadata:
version: v1
version: v2
publisher: google
---

Expand Down Expand Up @@ -402,6 +402,13 @@ column descriptions, aspects, overview, data-quality notes, join keys), to SQL
generation. After running the SQL, confirm the result matches every contract
line before giving the final answer.

## Semantic Models (When Applicable)

If the task needs a governed semantic model / ontology (`OSI+G`) for the data in
scope (e.g., schema mapping, dbt/ELT pipeline generation, or semantic modeling),
use **@skill:semantic-ontology**. It resolves the model from the local workspace
first, then Knowledge Catalog, and returns it as authored.

## Predicate Reference

Strictly adhere to official Knowledge Catalog operator syntax when appending
Expand Down
8 changes: 4 additions & 4 deletions skills/gcp-data-pipelines/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: 'Primary entry point for building, managing, and orchestrating data
'
license: Apache-2.0
metadata:
version: v3
version: v4
publisher: google
---

Expand Down Expand Up @@ -83,7 +83,7 @@ multiple pipelines already in the repo:
Option | Best For | Skill
------------------ | ------------------------------------------------------------------------------------------------------------ | -----
**Cloud Composer** | GCP Data Pipeline Orchestration deploy/schedule existing pipelines(dbt + Spark, etc.). as a unified workflow | `gcp-pipeline-orchestration`
**Provisioning** | Declarative GCP resource creation (Datasets, DTS, Dataproc) | `gcp-pipeline-resource-provisioning`
**Provisioning** | Declarative GCP resource creation (Datasets, DTS, Dataproc) | `gcp-pipeline-provisioning`

> [!TIP]
>
Expand Down Expand Up @@ -136,13 +136,13 @@ two-step process:
Once the user confirms, activate the corresponding skill:

Choice | Skill to Activate
------------- | ------------------------------------
------------- | --------------------------------
BigQuery DTS | `bigquery-data-transfer-service`
dbt | `dbt-bigquery`
Dataflow | `gcp-dataflow`
Dataform | `dataform-bigquery`
Spark | `gcp-spark`
Spark Debug | `gcp-spark-troubleshooting`
Provisioning | `gcp-pipeline-resource-provisioning`
Provisioning | `gcp-pipeline-provisioning`
Orchestration | `gcp-pipeline-orchestration`
Other | — (general GCP assistance)
43 changes: 17 additions & 26 deletions skills/gcp-dataflow/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,24 @@
---
name: gcp-dataflow
description: >
Guides writing, packaging, executing, and troubleshooting Apache Beam
pipelines on Dataflow. Use when creating new pipelines, configuring Flex
Templates, or analyzing performance of Dataflow jobs. Capabilities include
Java/Python/Go setup, Cloud Build integration, and deep diagnostic analysis
of job health and autoscaling.

Use when:
- Creating an Apache Beam Dataflow pipeline.
- Creating a Google Dataflow Flex Template.
- Using an existing Google Dataflow Template.
- Debugging Dataflow pipeline
- Troubleshooting Dataflow pipeline
- Analyzing Performance of Dataflow pipeline.

Key capabilities: Java/Python/Go project setup, Flex Templates (with
Cloud Build), and diagnostics for streaming job health, bottlenecks,
and autoscaling.

Do NOT use for:
- General GCP resource management unrelated to Dataflow.
- Issues with other GCP services (e.g., GCE, GCS, BigQuery) unless directly
impacting Dataflow pipeline execution.
- Pipeline technologies other than Apache Beam on Dataflow.

description: >-
Guides designing, building, packaging, launching, and diagnosing Google Cloud
Dataflow (Apache Beam) pipelines, using Google-provided Classic/Flex templates
or custom Java/Python/Go jobs, for moving, exporting, loading, or processing
data between systems in streaming or batch. Use before answering when a
request involves data movement, scheduled/nightly data pipelines, or backfills
so template vs. custom pipeline fit is checked first.

Use when: a SQL or BigQuery task needs custom code, external lookups, or
cross-system joins; batch or streaming ML inference/embeddings; converting,
compacting, or reshaping Cloud Storage files (CSV, JSON, Avro, Parquet);
copying or replicating databases (full, incremental, CDC); or Apache Beam code,
Flex Templates, and Dataflow job diagnostics.

Do NOT use for pure BigQuery SQL/ML, dbt, Dataform, Spark/Dataproc, Cloud
Composer/Airflow orchestration, BigQuery DTS, or GCS bucket administration.
license: Apache-2.0
metadata:
version: v6
version: v7
publisher: google
---

Expand Down
8 changes: 7 additions & 1 deletion skills/gcp-pipeline-orchestration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: This skill helps the agent generate or update orchestration pipelin
This skill also helps deploy and trigger orchestration pipelines.
license: Apache-2.0
metadata:
version: v7
version: v8
publisher: google
---

Expand Down Expand Up @@ -535,6 +535,12 @@ Deploy → Poll → Trigger flow.
> ```
>
> Get `project`, `region`, and `composer_environment` from `deployment.yaml`.
> All identifier arguments (`project`, `location`, `environment`, `dag_id`) must
> match `^[A-Za-z0-9._-]+$` (never `.`, `..`, or path-traversal sequences), and
> the script only sends credentials over HTTPS to `composer.googleapis.com` and
> Cloud Composer Inverting Proxy hosts (`*.composer.googleusercontent.com` /
> `*.composer.byoid.googleusercontent.com`) with redirects disabled. The script
> exits non-zero if validation or triggering fails.

## Definition of done

Expand Down
Loading
Loading