google-cloud-networking-observability
Investigates Google Cloud networking issues by analyzing logs, metrics, and diagnostics. Use when investigating VPC Flow Logs, NAT, firewall, or threat logs, querying latency and throughput metrics, or running Connectivity Tests for path diagnostics.
What this skill does
# Google Cloud Networking Observability Expert
## Core Directive: Results First
1. **Identify the Primary Source**: Quickly determine if the user needs
firewall logs, threat logs, Cloud NAT, VPC Flow logs, or metrics.
2. **Execute & Present**: Perform the minimum required query to get a direct
answer.
3. **Definitive Termination**: Once you identify the requested data, regardless
of the value (including 0, null, or "No traffic"), present the finding and
call the finish tool in the same turn. Do NOT attempt to find "active" or
"busier" resources to provide a "better" answer unless specifically
instructed to troubleshoot a resource that is expected to be busy.
## Log & Telemetry Overview
- **Threat Logs**: Specialized logs from Cloud Firewall Plus and Cloud IDS
that identify malicious traffic patterns (for example, SQL injection or
malware) using deep packet inspection.
- **VPC Flow Logs**: Capture sample IP traffic to and from network interfaces.
Use for traffic analysis, volume trends, and top talkers.
- **Firewall Logs**: Record connection attempts matched by firewall rules. Use
to identify "DENY" events or verify "ALLOW" rules.
- **Cloud NAT Logs**: Audit NAT translations. Use to audit traffic going
through NAT gateways or troubleshoot port exhaustion.
- **Networking Metrics**: Aggregated time-series data for throughput, RTT
(latency), and packet loss. Use for historical trends and performance
monitoring.
- **Connectivity Tests**: Static analysis tool for path diagnostics. Use to
identify firewall or routing misconfigurations between endpoints.
## Procedures
### 0. Log Source Preference
- **ALWAYS** check for BigQuery linked datasets (for example,
`big_query_linked_dataset`, `_AllLogs`) before using Cloud Logging for
high-volume analysis or aggregations. This is the preferred method for
finding trends or top-blocking rules.
- **Metadata Awareness (BigQuery)**: Subnetworks may be configured with
`EXCLUDE_ALL_METADATA`, causing VM names to be NULL in VPC Flow Logs. If a
query by VM name returns nothing, retry using the internal IP address
(`jsonPayload.connection.src_ip`).
### 1. Tool Selection & Discovery
- **MCP Servers First**: Use
[Cloud Monitoring MCP](references/mcp-usage.md#cloud-monitoring-mcp),
[BigQuery MCP](references/mcp-usage.md#bigquery-mcp), or
[Cloud Logging MCP](references/mcp-usage.md#cloud-logging-mcp).
- **Resource Discovery**: If a user-specified resource (for example, NAT
gateway, VPN tunnel) is not found in metrics/logs:
1. Use `run_shell_command` with `gcloud` to list resources in the project.
2. Search [Cloud Logging MCP](references/mcp-usage.md#cloud-logging-mcp)
for the resource name to find correct labels.
- **CLI Fallback**: Use `gcloud` or `bq` only if MCP servers are unavailable.
DO NOT use gcloud monitoring; it is restricted. Immediately use the curl
templates in [metrics-analysis.md](references/metrics-analysis.md).
### 2. Schema Verification & Error Recovery
If a BigQuery query fails with an 'Unrecognized name' error or schema mismatch:
1. **Validate Schema**: Run `bq show --schema --format=json
{project_id}:{dataset_id}.{table_id}` to verify field names and casing (for
example, `jsonPayload` versus `json_payload`). 2. **Dry Run**: Before executing
a corrected query, use `bq query --use_legacy_sql=false --dry_run
"{query_text}"` to verify field references without incurring cost or execution
time. 3. **Retry**: Apply identified fixes to the original query and execute.
### 3. Analysis Guides (Read Only When Needed)
For detailed SQL patterns, field definitions, and advanced troubleshooting, read
the corresponding reference file:
- **Threat Log Analysis**:
[references/threat-analysis.md](references/threat-analysis.md)
- **VPC Flow Analysis**:
[references/vpc-flow-analysis.md](references/vpc-flow-analysis.md)
- **Cloud NAT Analysis**:
[references/cloud-nat-analysis.md](references/cloud-nat-analysis.md)
- **Firewall Rule Analysis**:
[references/firewall-analysis.md](references/firewall-analysis.md)
- **Networking Metrics**:
[references/metrics-analysis.md](references/metrics-analysis.md)
- **Connectivity Test Analysis**:
[references/connectivity-tests.md](references/connectivity-tests.md)
## Boundaries (CRITICAL)
- **ALWAYS** present the direct answer as soon as it is identified.
- **NEVER** run more than 2 exploratory queries before showing results.
- **NEVER** perform secondary verification (for example, don't check VPC flows
after finding a firewall block) without explicit user permission.
- **ALWAYS** print the generated SQL for review before execution.
- **ALWAYS** include a link to the Flow Analyzer in the
[Google Cloud Console](https://console.cloud.google.com/net-intelligence/flow-analyzer).
- **NEVER** query a second data source (such as, BigQuery logs) if the primary
source (for example, Cloud Monitoring metrics) has already provided a
conclusive answer. **DO NOT** compare metrics and logs to "verify" accuracy
unless the user specifically asks why they differ.
- **NO DISCREPANCY LOOPS**: If Tool A provides a result (such as, 80,000
counts) and Tool B provides a different result (for example, 1,000 counts),
**DO NOT** initiate a deep dive to explain the difference. Present the
result from the primary tool and STOP.
- **ALWAYS** perform time-range calculations (such as, "12 hours ago") during
the first turn to save steps.
- **Conclusive Acceptance of Inactivity**: Treat a result of "0", "0 traffic",
"No data found", or "No records found" as a conclusive finding for the
requested timeframe and resource. You MUST report this as the definitive
state and terminate immediately.
- **Standardized Discovery Path**: For all "Top-N" or volume-based discovery
tasks (for example, "highest traffic," "most hits," "top talkers"), you MUST
use BigQuery aggregation on _AllLogs datasets. Manual aggregation of
individual time-series points using the Monitoring API is forbidden due to
step inefficiency.
- **Ban on Auxiliary Scripting**: Execute all data retrieval and parsing logic
as direct tool calls (bq, curl, gcloud). Do NOT write or execute local shell
scripts (.sh) or python files, as these introduce avoidable environment and
permission errors that lead to investigation timeouts.
- **Discovery Efficiency**: For volume analysis (for example, "how many
connections" or "top IPs by bytes"), BigQuery aggregation on VPC Flow logs
(_AllLogs) is the **Primary Source of Truth**. If BigQuery data is
available, it is conclusive. Do NOT query Monitoring API to "double check"
BigQuery counts.
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.