DEV Community

Cover image for Under the Hood of Google Cloud Data Agent Kit: MCP Tools, SKILL.md Playbooks & Custom Guardrails
Aryan Irani for Google Developer Experts

Posted on Originally published at Medium

Under the Hood of Google Cloud Data Agent Kit: MCP Tools, SKILL.md Playbooks & Custom Guardrails

Welcome !

In Part 1, we set up Google Cloud Data Agent Kit (DAK) in Antigravity IDE and stayed mostly on the UI side that looked at browsing Cloud Storage, previewing BigQuery tables, and running inline SQL through the Mini Cloud Console.

Remember that two-lane architecture from Part 1?

  • Lane 1 (IDE UI) talks to Google Cloud over direct Cloud APIs so browsing tables and schemas is instant and burns zero LLM tokens.

  • Lane 2 (AI Coding Agent) is where the real automation happens - combining MCP Tools and Agentic Skills (SKILL.md).

When people hear Agentic Skills or MCP, it can easily sound like black-box buzzwords. In this post, we're going to open the hood in Antigravity IDE, see what Google Cloud engineers actually put inside a SKILL.md file, and then put both MCP tools and Skills to work on our devfest_commerce dataset.

Why Giving an LLM Raw Database Access Isn't Enough

Giving an AI coding assistant an MCP connection to BigQuery solves context, it can read your live schemas instead of guessing table and column names.

But live access alone doesn't make an agent a good data engineer. Without guidance, a general-purpose model will still happily:

  • Write SELECT * on a 10 TB table
  • Use slower WHERE id IN (SELECT ...) subqueries instead of WHERE EXISTS
  • Skip partition filters or cluster keys
  • Run a DROP TABLE or TRUNCATE without double-checking if you phrase a cleanup prompt loosely

That is the gap between connecting an agent to your data and teaching it how to work safely and efficiently with Google Data Cloud.

Hands vs. Brains: MCP Tools vs. Agentic Skills

Data Agent Kit splits that responsibility into two clean pieces:

  • MCP Tools ("The Hands"): Live Model Context Protocol connectors that let the agent call Google Cloud APIs - listing datasets, reading table schemas, inspecting Cloud Storage objects, or executing queries - without you copy-pasting metadata into chat.

  • Agentic Skills ("The Brains"): Plain, open-source Markdown files (SKILL.md) written by Google Cloud engineers. They contain explicit rules, decision trees, and checklists for specific workflows like BigQuery SQL optimization, data cleaning, dbt/Dataform pipelines, Spark debugging, and data-loss prevention.

Step 1: Ask the Agent What It Actually Has Enabled

Before digging into files, try this exact prompt I ran during my DevFest Mangaluru demo inside the Antigravity Agent Chat panel:

What Data Agent Kit skills and MCP tools do you currently have enabled for BigQuery and Cloud Storage? Group them briefly into "Skills (Playbooks)" and "MCP Tools (Actions)" so we can see how you work.
Enter fullscreen mode Exit fullscreen mode

You will see the agent separate its actions (MCP tools for inspecting datasets, tables, and buckets) from its playbooks (skills like bigquery-sql, data-autocleaning, google-cloud-storage-basics, and accidental-data-loss-prevention).

Opening a Real SKILL.md File Inside Antigravity IDE

A Skill isn't hidden compiled code or a proprietary prompt locked on a server , instead it is a plain Markdown file sitting right on your machine.

Under ~/.gemini/config/plugins/dak/, DAK organizes its bundled skills into two folders:

  • skills/ - Your currently enabled skills based on the services you turned on.

  • skills.all/ - All bundled skills (including ones like Bigtable or Airflow/Composer that activate if you enable those services later).

Note: If you installed the IDE extension rather than the CLI plugin, the bundled skills live inside your editor's extension folder under ~/.antigravity/extensions/googlecloudtools.datacloud-* or ~/.vscode/extensions/googlecloudtools.datacloud-*.

You can inspect any skill straight from your terminal or open it directly in Antigravity IDE:

# List every enabled SKILL.md
ls ~/.gemini/config/plugins/dak/skills/*/SKILL.md

# Preview the name & description header of all enabled skills at once
head -n 8 ~/.gemini/config/plugins/dak/skills/*/SKILL.md

# Read a specific skill
cat ~/.gemini/config/plugins/dak/skills/bigquery-sql/SKILL.md
Enter fullscreen mode Exit fullscreen mode

Here is the bigquery-sql/SKILL.md file:

Putting It to Work: Live Demos on the Dataset

Now that you've seen how MCP Tools and SKILL.md are wired up, let's watch them work together on the devfest_commerce dataset we created in Part 1.

Demo 1: Load raw_orders_batch.json From Cloud Storage Into BigQuery (MCP Tools)

Right now, raw_orders_batch.json is sitting in Cloud Storage (gs://<YOUR_BUCKET_NAME>/incoming/raw_orders_batch.json), while dim_customers is already in BigQuery. Instead of writing a bq load command by hand, paste this into Antigravity Agent Chat (swapping in your bucket name and project ID):

Look inside my Cloud Storage bucket gs://<YOUR_BUCKET_NAME>/incoming/raw_orders_batch.json. Inspect the raw JSON records and load them into a new BigQuery table named <YOUR_PROJECT_ID>.devfest_commerce.raw_orders (in location US).
Enter fullscreen mode Exit fullscreen mode

Before loading anything, watch how the agent structures the work into a 4-step plan:

  1. Verify GCP auth and config (triggered by DAK's google-cloud-auth-verification skill-checking active account and project first)

  2. Inspect GCS JSON file (reads raw_orders_batch.json: 1,327 bytes, NDJSON, 8 records)

  3. Load JSON into BigQuery table (devfest_commerce.raw_orders in location US)

  4. Verify BigQuery table and records (confirms 8 rows, 539 logical bytes, and inferred schema types like amount FLOAT64 and order_date DATE)

What stood out in the agent's output wasn't just that it loaded the table - without being asked, it also surfaced Data Quality Observations while keeping the raw landing table untouched:

  • Duplicate record: ORD-1002 appears twice.

  • Missing key / flagged order: 1 row has order_id = NULL (CUST-999, FLAGGED, Mumbai).

  • High-value refund requests: ORD-1003 (2400.00) and ORD-1005 (3100.00) are both REFUND_REQUESTED Electronics orders in Mangaluru on 2026-11-11.

Even better, at the end of its response it immediately noticed dim_customers sitting in the same dataset and asked if we wanted to build a cleaned/deduplicated downstream table or join them-which is exactly what we'll do in Part 3.

Hit Refresh on devfest_commerce in the BigQuery sidebar and click raw_orders to verify all 8 rows right inside the Mini Cloud Console:

Demo 2: Watch bigquery-sql/SKILL.md Optimize a Query Live

Now that both dim_customers and raw_orders are in BigQuery, let's test the bigquery-sql skill we just opened by handing the agent a deliberately clunky query (SELECT ***, unquoted hyphenated project ID, and an IN (SELECT ...**) subquery):

Optimize this BigQuery SQL query for performance and cost, and explain what you changed:

SELECT *
FROM project2-283514.devfest_commerce.dim_customers
WHERE customer_id IN (
  SELECT customer_id
  FROM project2-283514.devfest_commerce.raw_orders
  WHERE status = 'REFUND_REQUESTED'
);
Enter fullscreen mode Exit fullscreen mode

Following bigquery-sql/SKILL.md and inspecting both live tables in BigQuery first-the agent rewrites it cleanly:

SELECT
  c.customer_id,
  c.customer_name,
  c.tier,
  c.signup_year,
  c.preferred_channel
FROM `project2-283514.devfest_commerce.dim_customers` AS c
WHERE EXISTS (
  SELECT 1
  FROM `project2-283514.devfest_commerce.raw_orders` AS o
  WHERE o.customer_id = c.customer_id
    AND o.status = 'REFUND_REQUESTED'
);
Enter fullscreen mode Exit fullscreen mode

Look at how MCP Tools + SKILL.md combined in that single response:

  • Live metadata lookup: Instead of guessing columns, it checked dim_customers (6 rows, 298 bytes, unpartitioned) and
raw_orders
Enter fullscreen mode Exit fullscreen mode

(8 rows, 539 bytes, unpartitioned), pulled the exact 5 columns, and confirmed no partition filter was missing yet.

  • Exact bigquery-sql/SKILL.md rules applied: Replaced SELECT * with explicit columns (Column Pruning), rewrote WHERE customer_id IN (SELECT ...) to WHERE EXISTS (SELECT 1 ...) (Mandatory Semi-Join rule), backtick-quoted the hyphenated project ID, and output the exact "Summary of Optimizations" section required by the skill.

  • Scale & cost check: It even flagged how to partition raw_orders by order_date and cluster by (status, customer_id) once the table grows, and gave a free bq --dry_run command to verify totalBytesProcessed before running.

Demo 3: Quick Safety Check (accidental-data-loss-prevention)

One fair question that always comes up: "If the agent has execute_sql, what stops it from accidentally dropping a table?"

Try typing this in chat (and don't confirm it!):

Drop the devfest_commerce.dim_customers table.

Enter fullscreen mode Exit fullscreen mode

Watch the two-step safety flow that happens:

  1. First, Antigravity asks for your approval to call the read-only get_table_info MCP tool so the agent can inspect the table's exact blast radius.

  2. Next, instead of running DROP TABLE, DAK's accidental-data-loss-prevention skill forces the agent to halt and print a structured impact report-showing the exact target table (6 rows, 298 logical bytes), warning that downstream views or pipelines will break (and noting BigQuery time travel as the only recovery path), displaying the exact DROP TABLE SQL it plans to run, and waiting for explicit confirmation.

That said, always treat Markdown skills as guardrails,** not your only security wall*. Because DAK runs on your Application Default Credentials (or a service account), **Google Cloud IAM* is still the hard boundary - if an account only has read-only roles like roles/bigquery.dataViewer, Google Cloud itself will reject any destructive write.

Stepping Back: This Isn't Just About Running Faster Queries

Take a quick look at what just happened across three short demos, without opening the Cloud Console, writing a bq load command, or copy-pasting a single schema, the agent verified our GCP auth, loaded raw JSON from Cloud Storage into BigQuery, flagged three data quality issues on its own, rewrote a query using BigQuery's own best practices, and stopped a DROP TABLE with a full impact report.

There is a great point making the rounds among developers right now, traditional GUIs only let you do what someone designed a button for, whereas an LLM connected directly to your database speaks SQL, writes code, and isn't boxed in by a predefined interface. The real-world catch is that an LLM with raw database access alone can also be reckless. Pairing it with MCP Tools (live metadata), SKILL.md playbooks (engineering discipline), and IAM (hard security boundaries) is what makes that workflow actually usable day to day.

And in this post, we only turned on two services (BigQuery and Cloud Storage) and saw three skills fire out of the dozens bundled in DAK. If you want to keep experimenting on your own before Part 3, here are a few more things worth trying right inside Antigravity IDE:

  • Run a quick GCS security check on your demo bucket to see gcs-security-assessment inspect public access and bucket settings.

  • Open a couple more SKILL.md files in ~/.gemini/config/plugins/dak/skills/ (like data-autocleaning, bigquery-ai-ml, or building-data-apps) to see how Google structures playbooks for other workflows.

  • Test a read-only analytical question across raw_orders and dim_customers such as breaking down order volume and refunds by customer tier and inspect the results or chart right inside the IDE.

  • Try turning on another service in DAK Settings (like Spark, Dataform/dbt, Bigtable, or Knowledge Catalog) if you already use it in your GCP project.

What's Next

Now that raw_orders and dim_customers are both sitting in BigQuery and you've seen how MCP tools and SKILL.md playbooks actually behave, we're ready to run a complete end-to-end data workflow.

In Part 3, we'll put DAK to work on the messy records we spotted in raw_orders (the duplicate ORD-1002, the null order ID, and the high-value Mangaluru refund spike), build a clean enriched table, and verify the agent's output like a production engineer.

Let’s Connect

I’m an Independent Consultant and Google Developer Expert (GDE) partnering with startups and early-stage SaaS teams on Developer Experience (DevEx) and GTM content — helping teams ship clearer docs, stronger demos, developer tutorials, live workshops, and repeatable content engines across Google Cloud, Google Workspace, and AI workflows.

If you want to follow the rest of this series (blogs, YouTube walkthroughs, live trainings, and quick LinkedIn/X posts) — or if you’re building developer tools, scaling SaaS adoption, or looking for a technical writer, trainer, or DevEx partner — let’s connect:

Top comments (1)

Collapse
 
smtasker profile image
SMTasker Team •

The IAM caveat is an important boundary to test directly. Would you add a negative control that attempts a destructive write with the same principal after removing the Markdown skill from the scenario? Assert permission denial and unchanged marker data. Since the UI and agent use separate call paths, recording the principal and project for each would also help avoid demonstrating a restriction that applies to only one lane.