Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
google avatar

Workload Manager Basics

  • 2.4k installs
  • 15.6k repo stars
  • Updated August 4, 2026
  • google/skills

workload-manager-basics manages Google Cloud Workload Manager evaluations and validation.

About

The workload-manager-basics skill operates Google Cloud Workload Manager using public client libraries to manage evaluations, rules, scanned resources, and validation results. It helps platform teams run compliance and best-practice scans across GCP workloads and interpret validation outcomes. Agents follow documented API patterns for listing evaluations, updating rules, and reviewing scan results rather than improvising gcloud-only flows. The skill supports ongoing workload health monitoring in enterprise GCP estates. Google Cloud Workload Manager evaluations and rules management. Scanned resources and validation results interpretation. Public client library API patterns for GCP workloads. Compliance and best-practice scan workflows. Enterprise GCP workload health monitoring operations. Manage Google Cloud Workload Manager evaluations, rules, scanned resources, and validation results.

  • Google Cloud Workload Manager evaluations and rules management.
  • Scanned resources and validation results interpretation.
  • Public client library API patterns for GCP workloads.
  • Compliance and best-practice scan workflows.
  • Enterprise GCP workload health monitoring operations.

Workload Manager Basics by the numbers

  • 2,376 all-time installs (skills.sh)
  • +349 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #160 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
From the docs

What workload-manager-basics says it does

Use this skill to manage Google Cloud Workload Manager evaluations, rules, scanned resources, and validation results
SKILL.md
npx skills add https://github.com/google/skills --skill workload-manager-basics

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2.4k
repo stars15.6k
Last updatedAugust 4, 2026
Repositorygoogle/skills

How do I run or review Workload Manager evaluations and validation results?

Manage Google Cloud Workload Manager evaluations, rules, scanned resources, and validation results.

Who is it for?

GCP platform teams monitoring workload compliance and best practices.

Skip if: Skip for non-GCP clouds or apps without Workload Manager adoption.

When should I use this skill?

User manages Workload Manager evaluations, rules, or validation scans on GCP.

What you get

Workload Manager evaluations, rules, and validation outcomes via client libraries.

  • evaluation configuration
  • violation results
  • BigQuery export

By the numbers

  • Bundles eight reference documents for client library, REST, IAM, and setup
  • 157-line SKILL.md in google/skills cloud workload-manager-basics package

Files

SKILL.mdMarkdownGitHub ↗

Workload Manager Basics

Workload Manager validates enterprise workloads against Google Cloud best practices and recommendations. The public client libraries are centered on evaluations: define a resource scope, choose built-in or custom rules, run an evaluation, then inspect results and scanned resources.

Use This Flow

flowchart LR
    Rules["List rules"] --> Eval["Create or update evaluation"]
    Resources["Project, folder, or org scope"] --> Eval
    Eval --> Run["Run evaluation"]
    Run --> Results["Inspect evaluation results"]
    Results --> Remediate["Remediate findings"]
    Results --> Export["Optional BigQuery export"]

Core API Constraints

To ensure compatibility, security, and successful integration:

  • Public Surface Only: You MUST strictly interact with Workload Manager

using the official public google-cloud-workloadmanager client library or the public REST API (workloadmanager.googleapis.com/v1).

  • No Internal or Undocumented APIs: Do NOT attempt to use internal RPC

protocols, private service backends, or undocumented discovery mechanisms. They are not supported for public integrations and will fail.

  • No Service-Specific CLI: There is no public gcloud workload-manager

CLI command group. Use gcloud only for authentication, IAM role assignment, and fetching raw REST tokens.

  • Sandbox Execution Robustness (Auth/Mock Fallbacks): When gcloud

authentication or Workload Manager API calls fail in sandboxed or restricted environments (e.g., due to Context Aware Access token blocks, missing API enablement, or mock resources returning 404/403), immediately fall back to presenting example code and static findings from your references instead of entering retry loops. Present the correct client library code structure or REST API payload example, clearly explain the auth or resource limitation, and list typical rules or mock findings statically to satisfy the request.

Prerequisites

1. Enable the Workload Manager API:

    gcloud services enable workloadmanager.googleapis.com --quiet

2. Authenticate locally using Application Default Credentials (ADC) before using client libraries:

    gcloud auth application-default login

3. Ensure the Workload Manager service agent has the required roles granted in your project (mandatory for API/client library usage, see IAM & Security).

4. Grant the least-privileged role needed for the task. Start with roles/workloadmanager.viewer for read-only access to evaluation resources and use roles/workloadmanager.evaluationAdmin or roles/workloadmanager.admin only when creating, updating, running, or deleting evaluations.

Quick Client Library Example

Use the Python client library for the first working automation path:

python3 -m pip install --upgrade google-cloud-workloadmanager
from google.cloud import workloadmanager_v1

project_id = "PROJECT_ID"
location = "LOCATION"
parent = f"projects/{project_id}/locations/{location}"

client = workloadmanager_v1.WorkloadManagerClient()

rules = client.list_rules(
    request=workloadmanager_v1.ListRulesRequest(
        parent=parent,
        evaluation_type=workloadmanager_v1.Evaluation.EvaluationType.OTHER,
    )
)

for rule in rules.rules:
    print(rule.name, rule.display_name, rule.severity)

Reference Directory

  • Core Concepts: Evaluations, rules, results,

scanned resources, supported workload types, and API shape.

  • General Best Practices: Google Cloud

general best-practice posture checks, OTHER evaluation guidance, custom Rego rules, and scale/automation patterns.

  • Client Libraries: Python and Go client

library examples for listing rules, creating evaluations, running evaluations, and reading findings.

  • REST Usage: Direct REST examples for the public

Workload Manager API and operations polling.

  • Public CLI Status: No documented

service-specific gcloud workload-manager command group; use gcloud only for auth, IAM, API enablement, and REST tokens.

  • Public MCP Status: No documented public

Workload Manager MCP server; use client libraries or REST API instead.

  • Setup Prerequisites: Terraform examples

only for adjacent prerequisites such as API enablement, IAM, BigQuery export datasets, and KMS keys. This is not Workload Manager resource management.

  • IAM & Security: Workload Manager roles,

least-privilege guidance, service agents, data handling, and CMEK notes.

If product behavior or API fields are not covered here, check the current Workload Manager product documentation and client library reference before implementing.

Authoritative References

Additional Context

Related skills

How it compares

Pick workload-manager-basics for SAP or SQL Server best-practice evaluations; pick gke-basics or cloud-sql-basics for service setup without workload validation rules.

FAQ

Which GCP product?

Google Cloud Workload Manager evaluations and validation.

How are APIs accessed?

Public Google Cloud client libraries per the skill guidance.

What outputs are reviewed?

Scanned resources and validation results from evaluations.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.