google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
gcp-cli-gotchas
Use when encountering gcloud or bq CLI formatting errors, quote escaping issues, command substitution problems, or when debugging CLI commands. Provides solutions for backtick usage, heredoc syntax, timestamp filters, parameter escaping, and multiline command formatting.
Full skill instructions
Use this skill when you encounter CLI errors, need to debug command formatting, or want to avoid common escaping pitfalls with gcloud and bq commands.
Problem: Nested command substitutions with pipes fail
# ❌ This fails with parse error
bq show PROJECT:DATASET.$(bq ls | tail -n 1 | cut -d',' -f1)
Solution: Break into steps
# ✅ Store intermediate result
TABLE=$(bq ls --format=csv PROJECT:DATASET | tail -n 1 | cut -d',' -f1)
bq show --schema PROJECT:DATASET.$TABLE
Must escape quotes:
gcloud logging read \
"timestamp>=\"2024-01-01T00:00:00Z\" AND
timestamp<=\"2024-01-31T23:59:59Z\""
Or use single quotes (recommended):
gcloud logging read \
'timestamp>="2024-01-01T00:00:00Z" AND
timestamp<="2024-01-31T23:59:59Z"'
For JSON payloads:
# Single quotes outside, double quotes inside
gcloud logging read \
'resource.type=gce_instance AND
jsonPayload.message="Error occurred"'
bq query --use_legacy_sql=false 'SELECT COUNT(*) FROM `project.dataset.table`'
Quote rules:
Use heredoc for complex queries:
bq query --use_legacy_sql=false <<'EOF'
SELECT
customer_id,
SUM(amount) as total
FROM `project.dataset.orders`
WHERE date >= '2024-01-01'
GROUP BY customer_id
ORDER BY total DESC
LIMIT 10
EOF
Benefits:
<<'EOF' prevents variable expansionThree ways to specify:
# 1. Fully qualified (safest, works everywhere)
PROJECT_ID:DATASET.TABLE
# 2. With backticks in SQL (required for special chars)
`project-with-dashes.dataset_name.table_name`
# 3. Default project (only when project is set in config)
DATASET.TABLE
When to use backticks:
project-nameWhen NOT to use backticks:
bq show PROJECT:DATASET.TABLE (no backticks)bq query \
--use_legacy_sql=false \
--parameter=start_date:DATE:2024-01-01 \
--parameter=min_amount:FLOAT64:100.0 \
'SELECT * FROM `table` WHERE date >= @start_date AND amount >= @min_amount'
Benefits:
Correct backslash placement:
gcloud run deploy my-function \
--source . \
--function myEntryPoint \
--base-image python313 \
--region us-central1 \
--allow-unauthenticated
Rules:
Works (can repeat):
bq query \
--parameter=name1:TYPE:value1 \
--parameter=name2:TYPE:value2 \
--parameter=name3:TYPE:value3 \
'SELECT...'
Doesn't work (single value only):
# ❌ Second --role is ignored
gcloud projects add-iam-policy-binding PROJECT \
--member=user:email \
--role=roles/viewer \
--role=roles/editor
# ✅ Run multiple commands
gcloud projects add-iam-policy-binding PROJECT --member=user:email --role=roles/viewer
gcloud projects add-iam-policy-binding PROJECT --member=user:email --role=roles/editor
Supported formats:
# JSON output (most commands)
gcloud projects list --format=json
# Pretty JSON (bq)
bq show --format=prettyjson PROJECT:DATASET.TABLE
# CSV (some commands)
bq ls --format=csv PROJECT:DATASET
# Value extraction (gcloud)
gcloud config get-value project
Gotcha: Not all commands support all formats. Check --help first.
Verbose output:
# See detailed execution
gcloud --verbosity=debug COMMAND
# See API calls
gcloud --log-http COMMAND
Dry run (bq only):
# Validate without executing
bq query --dry_run 'SELECT...'
bq load --dry_run ...
Test incrementally:
# Start simple
bq query 'SELECT 1'
# Add complexity
bq query 'SELECT * FROM `project.dataset.table` LIMIT 1'
# Add filters
bq query 'SELECT * FROM `project.dataset.table` WHERE condition LIMIT 1'
Transfer config needs location:
# ❌ Fails - needs location
bq ls --transfer_config --project_id=PROJECT
# ✅ Works
bq ls --transfer_config --project_id=PROJECT --transfer_location=us
CSV with newlines:
bq load \
--source_format=CSV \
--allow_quoted_newlines \
--skip_leading_rows=1 \
dataset.table \
gs://bucket/file.csv
If a command requires a flag you don't have, read the error message carefully. Many commands have dependency flags that must be set together:
--transfer_config requires --transfer_location--format options only work with specific commandsProject scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.