agentleFS
thomashartmthomashartm/dev-claude-skills/skills/gcp-cloudbuild/SKILL.md

gcp-cloudbuild

Skill1 starsChanged 11 months agoMITView on GitHub

Manage Google Cloud Build jobs and triggers. Use when the user wants to list Cloud Build triggers/jobs, view trigger details and configurations, check build history, monitor running builds, or start new builds. Handles authentication verification and project context. Triggers on phrases like "list cloud build jobs", "show build triggers", "build history", "running builds", "start build", "deploy with cloud build", "cloudbuild status".

The file

Files
SKILL.md

GCP Cloud Build Management

Manage Cloud Build triggers, view build history, monitor running builds, and start new builds.

Prerequisites

Requires authenticated gcloud CLI and jq. Use the unified gcp-build-tool script for all operations.

Quick Reference

gcp-build-tool auth                    # Verify auth & show project
gcp-build-tool list                    # List all triggers
gcp-build-tool details <trigger>       # Show trigger configuration
gcp-build-tool history [trigger]       # Show build history
gcp-build-tool running                 # Show active builds
gcp-build-tool start <trigger> [opts]  # Start a build

Workflow

1. Always Verify Authentication First

gcp-build-tool auth

If authentication fails, tell user to run:

gcloud auth login
gcloud config set project PROJECT_ID

If targeting a different project: User must authenticate to that project first. Tell user the command above.

2. Operations

List triggers:

gcp-build-tool list

View trigger details (name or ID):

gcp-build-tool details my-deploy-trigger

View build history:

gcp-build-tool history                     # All builds
gcp-build-tool history my-deploy-trigger   # Filter by trigger

Check running builds:

gcp-build-tool running

Start a build:

gcp-build-tool start my-trigger
gcp-build-tool start my-trigger --branch main
gcp-build-tool start my-trigger --sub _ENV=prod --sub _VERSION=1.2.3
gcp-build-tool start my-trigger --dry-run  # Preview only

Error Handling

ErrorUser Action
Not authenticatedgcloud auth login
No project setgcloud config set project PROJECT_ID
API not enabledgcloud services enable cloudbuild.googleapis.com
Permission deniedNeed cloudbuild.builds.viewer or cloudbuild.builds.editor role

Build Statuses

SUCCESS ✅ | FAILURE ❌ | WORKING 🔄 | QUEUED ⏳ | TIMEOUT ⏱️ | CANCELLED 🚫

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.