Discover Google Cloud resource telemetry and effective Org Policies, evaluate brownfield workloads against sovereign data boundary and compliance standards (EU Data Boundary with Support, FedRAMP Moderate/High, DoD IL4/IL5, ITAR, CJIS, US/EU Regional Data Boundaries), and recommend the optimal Assured Workloads Framework. Use when asked to: "assess my environment for compliance", "which Assured Workloads framework should I use?", "check if my folder is ready for EU sovereignty", "evaluate compliance posture for folders/123 or projects/xyz", or "discover compliance gaps before deployment". Do NOT use for live mutating policy deployments, generating deep audit reports via Cloud Audit Manager, generating remediation scripts, or authoring custom Assured Workloads frameworks.
Written by Google and published in google/skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.
This skill performs zero-risk, non-mutating compliance discovery, physical telemetry profiling, and data boundary framework recommendation across Google Cloud Folders (folders/{folder_id}) and Projects (projects/{project_id}).
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
gcloud asset search-all-resources,
gcloud compliance-manager frameworks list,
gcloud compliance-manager cloud-controls describe, and
gcloud org-policies describe --effective).
You MUST NEVER execute mutating commands (gcloud compliance-manager framework-deployments create,
gcloud org-policies set-policy, or gcloud resource-manager ...).To prevent hallucinations, incorrect compliance assessments, and false blockers derived from generic LLM pre-training, the agent is governed by strict Grounding Guardrails:
Detective) mode enables detective controls without
mutating existing Organization Policies, allowing continuous observability
without halting Day 0 rollout. You MUST NOT confuse these paradigms.folders/...) and projects (projects/...).Detective) mode first to assess and remediate findings
safely without mutating existing Organization Policies, and then
transitioning to Preventive mode.Detective) mode.https://console.cloud.google.com/compliance/configure/frameworks?organizationId=ORGANIZATION_ID).
Do NOT recommend gcloud assured workloads create (which only provisions
new greenfield folders using legacy regime enums and cannot bind frameworks
to existing folders or projects).scripts/evaluate_control_rules.py assesses ONLY the 3 high-confidence
Organization Policy parameter sets bound in
Framework.cloudControlDetails[].parameters:
builtin-restrict-resource-locations /
constraints/gcp.resourceLocations)builtin-enforce-service-usage-restrictions /
constraints/gcp.restrictServiceUsage)builtin-require-cmek /
constraints/gcp.restrictNonCmekServices)ces_rule) and REST API rules (rest_api_measurement) are evaluated
server-side by the Continuous Evaluation Service (CES) after the
framework is deployed.orgPolicyDriftIndicators), NEVER as definitive compliance
"violations" or "deployment blockers" that could contradict an actual
post-deployment CES run.type: BUILT_IN) returned by
gcloud compliance-manager frameworks list are static configurations
uniform across organizations. Fetch frameworks.json once per session and
reuse the cached file across all candidate evaluations and follow-up
queries.displayName and description in frameworks.json:
description specifies support personnel access controls (e.g.,
"Support access controls are set to ...", -and-support variants
such as builtin-eu-data-boundary-and-support and
builtin-us-data-boundary-and-support, or regulated standards such as
builtin-il4, builtin-il5, builtin-itar, builtin-fedramp-high,
builtin-cjis).description sets data location controls only
without a support access controls clause (e.g.,
builtin-us-data-boundary, builtin-eu-data-boundary,
builtin-uk-data-boundary, builtin-japan-data-boundary).builtin-restrict-technical-support-services in cloudControlDetails
as a discriminator, because both regional-only and paid-support Data
Boundary frameworks include that control.-with-access-justifications framework variants only when the customer
explicitly requests KAJ/EKM, or when disambiguating between matching
regional variants in frameworks.json.scripts/evaluate_control_rules.py with --frameworks-file=frameworks.json.Before executing environment assessment, ensure your local or Cloud Shell environment meets the following prerequisites:
gcloud): https://docs.cloud.google.com/sdk/docs/install.md.txtgcloud config set project PROJECT_ID
us-central1):
gcloud config set compute/region us-central1
gcloud services enable \
cloudasset.googleapis.com \
orgpolicy.googleapis.com \
assuredworkloads.googleapis.com \
cloudsecuritycompliance.googleapis.com
gcloud auth login
gcloud auth application-default login
gcloud asset search-all-resources,
gcloud compliance-manager frameworks list, and
gcloud org-policies describe --effective) are free read-only metadata
queries.X-Goog-User-Project header), even for free APIs.# 1. Verify active Cloud Billing account is attached to administrative project
gcloud billing projects describe PROJECT_ID --format="value(billingEnabled)"
# 2. If using a shared project, ensure your user identity has permission to consume project quota
gcloud projects add-iam-policy-binding PROJECT_ID \
--member="user:USER_EMAIL" \
--role="roles/serviceusage.serviceUsageConsumer"
# 3. Synchronize Application Default Credentials quota project
gcloud auth application-default set-quota-project PROJECT_ID
folders/{folder_id} or projects/{project_id}). If the user provides an open-ended scope without stating a regulatory regime, DO NOT block on broad questionnaires. Proceed immediately to ingest telemetry.gcloud resource-manager folders describe FOLDER_ID --format="value(parent)"
(If the parent is another folder, traverse up ancestors until organizations/{org_id} is found)gcloud projects get-ancestors PROJECT_ID --format="value(id,type)"
To guarantee 100% coverage across the scope hierarchy while keeping payloads compact, telemetry ingestion executes in two telescoping passes (see Google Cloud CLI Commands Reference):
Pass 1: Macro Footprint & API Enumeration (100% Scope Coverage):
gcloud asset search-all-resources \
--scope="folders/FOLDER_ID" \
--page-size=500 \
--format="json(name,assetType,location)" > macro_telemetry.json
--page-size=500 fetches 500 cloud assets
per HTTP API page (the maximum batch size permitted by Cloud Asset
Inventory), automatically paginating through all assets strictly inside
folders/FOLDER_ID and its descendant projects.macro_telemetry.json captures 100% of
active location and assetType values required to evaluate both
builtin-restrict-resource-locations (allowedLocations) and
builtin-enforce-service-usage-restrictions (allowedServices / SUR).PERMISSION_DENIED is returned:
USER_PROJECT_DENIED or references roles/serviceusage.serviceUsageConsumer, the error is on the administrative quota project (it lacks an attached billing account or caller lacks serviceUsageConsumer). Follow the Quota Project Recovery playbook and stop running further commands.folders/... or projects/...), HALT ALL TOOL CALLS IMMEDIATELY (do not run Step 2.2, Step 3, or any further commands) and inform the user they require roles/cloudasset.viewer and roles/orgpolicy.policyViewer on that scope.Inspect Effective Universal Org Policies on Scope (38/38 Frameworks):
gcloud org-policies describe gcp.resourceLocations \
--folder=FOLDER_ID \
--effective \
--format="json(name,spec.rules)" > effective_locations.json
gcloud org-policies describe gcp.restrictServiceUsage \
--folder=FOLDER_ID \
--effective \
--format="json(name,spec.rules)" > effective_services.json
gcloud org-policies describe gcp.restrictTLSVersion \
--folder=FOLDER_ID \
--effective \
--format="json(name,spec.rules)" > effective_tls.json
if [ ! -s frameworks.json ]; then
gcloud compliance-manager frameworks list \
--organization=ORGANIZATION_ID \
--location=global \
--filter="category:ASSURED_WORKLOADS" \
--format="json(name,majorRevisionId,displayName,description,category,cloudControlDetails)" > frameworks.json
fi
ASSURED_WORKLOADS frameworks are
static definitions uniform across organizations, cache the output in
frameworks.json and reuse it for all candidate evaluations and follow-up
questions.cloudresourcemanager.googleapis.com/*, orgpolicy.googleapis.com/*,
cloudasset.googleapis.com/*, accesscontextmanager.googleapis.com/*, and
location: "global" hierarchy nodes) from data-plane location checks.location) and active service prefixes
(assetType) from macro_telemetry.json against each framework's
builtin-restrict-resource-locations (allowedLocations) and
builtin-enforce-service-usage-restrictions (allowedServices / SUR)
parameters in frameworks.json:
us-central1, us-east4): Candidates include DoD
IL5 (builtin-il5, adjudicated support), ITAR (builtin-itar, US
persons support), FedRAMP High/Moderate, or US Regional Data Boundary
(builtin-us-data-boundary, standard commercial support).europe-west3, europe-west1): Candidates include
EU Data Boundary and Support (builtin-eu-data-boundary-and-support) vs.
standard EU Regional Boundary (builtin-eu-data-boundary).-with-access-justifications (KAJ/EKM) framework variants only
if the customer explicitly asks for KAJ/EKM or when disambiguating
between matching regional variants.ASSURED_WORKLOADS framework in
frameworks.json (such as CMMC, UK GDPR, SOC 2, or PCI-DSS), DO NOT
fabricate or pass non-existent framework IDs (e.g., builtin-cmmc or
builtin-uk-gdpr) to evaluate_control_rules.py. Explicitly state that
the requested standard is not a standalone Assured Workloads Data
Boundary framework, explain the catalog scope boundary (Data Boundary
enforces regional data residency, SUR, CMEK, and sovereign support
routing rather than legal privacy or third-party certification audits),
and offer the closest adjacent ASSURED_WORKLOADS frameworks from
frameworks.json that match their active regional footprint (e.g.,
builtin-il5 or builtin-fedramp-high for US defense/CUI workloads, or
builtin-eu-data-boundary-and-support / builtin-eu-data-boundary /
builtin-uk-data-boundary for European/UK regional residency).TARGET_TYPES (the intersection of active CAI assetTypes in
macro_telemetry.json and CMEK-governed services in builtin-require-cmek
from frameworks.json). Only 6 of the 38 Data Boundary frameworks include
builtin-require-cmek; if TARGET_TYPES is non-empty, fetch kmsKeys:
TARGET_TYPES=$(python3 scripts/evaluate_control_rules.py \
--get-target-asset-types \
--framework=FRAMEWORK_ID \
--telemetry-file=macro_telemetry.json \
--frameworks-file=frameworks.json)
if [ -n "${TARGET_TYPES}" ]; then
gcloud asset search-all-resources \
--scope="folders/FOLDER_ID" \
--asset-types="${TARGET_TYPES}" \
--page-size=500 \
--format="json(name,assetType,location,kmsKeys)" > deep_telemetry.json
fi
scripts/evaluate_control_rules.py over macro_telemetry.json (and
optional deep_telemetry.json) with frameworks.json to compute the 3
quantitative scores (locationScore, serviceScore, cmekScore,
compositeScore) and orgPolicyDriftIndicators (when cmekRequired is
false, always display the CMEK Readiness column as N/A in the scorecard):
python3 scripts/evaluate_control_rules.py \
--telemetry-file=macro_telemetry.json \
--deep-telemetry-file=deep_telemetry.json \
--framework=FRAMEWORK_ID \
--frameworks-file=frameworks.json
cloudControlDetails in frameworks.json for parameterized and
operational controls (builtin-restrict-kms-protection-levels,
builtin-enforce-allowed-cmek-crypto-key-projects,
builtin-restrict-cloud-function-generations,
builtin-restrict-cloudstorage-auth-types,
builtin-iam-disable-service-account-key-creation,
builtin-disable-ssh-in-browser, builtin-enable-axt, and
*-regulatory-settings controls like
builtin-cloud-logging-regulatory-settings) and summarize their workflow
impact in the final report.Present an executive report structured around the Minto Pyramid Principle (Bottom Line Up Front -> Core Value Pillars -> Supporting Evidence -> Action Plan):
# Compliance Environment Assessment Report: [Scope URI]
## 1. Executive Conclusion & Recommendation (Bottom Line Up Front)
* **Primary Recommendation**: [Framework Name] (`organizations/{org_id}/locations/global/frameworks/{framework_id}`)
* **Org Policy Readiness Alignment**: [Composite Fit %]
* **Recommended Deployment Mode**:
* **Existing Workloads (Folders or Projects)**: Deploy in **Monitoring (`Detective`) mode** first, then transition to **Preventive** mode after remediating findings.
* **New Workloads (Folders or Projects)**: Start in **Preventive** mode or **Monitoring (`Detective`) mode**.
* **Zero Production Outage Risk**: Monitoring (`Detective`) mode mutates zero Organization Policies on Day 0.
* **Continuous Server-Side CES Observability**: Activates real-time Continuous Evaluation Service (CES) monitoring across all framework controls.
* **No Migration Required**: Protects existing folders and projects in-place without migrating resources.
---
## 2. Core Value Drivers: Why Assured Workloads Fits This Scope
1. **Residency & Boundary Alignment (`gcp.resourceLocations`)**: Active regional workloads are evaluated against allowed regions ([e.g. 100% US-contained]).
2. **Service & API Compatibility (`gcp.restrictServiceUsage` / SUR)**: Active service APIs are evaluated against accredited service allowlists ([e.g. 100% approved services]).
3. **Non-Disruptive Posture Hardening**: Enrolling existing workloads in Monitoring (`Detective`) mode provides server-side CES posture evaluation while allowing your team to triage Org Policy readiness safely before moving to Preventive mode.
---
## 3. Objective Assessment Scorecard & Org Policy Readiness Triage
### Quantitative Org Policy Readiness Scorecard
| Candidate Framework | Location Residency (`locationScore`) | Service Usage / SUR (`serviceScore`) | CMEK Readiness (`cmekScore`) | Composite Alignment | Personnel Support Model |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **[Framework 1]** | [XX%] | [XX%] | [XX% or N/A] | **[XX%]** | [Support Model] |
| **[Framework 2]** | [XX%] | [XX%] | [XX% or N/A] | **[XX%]** | [Support Model] |
### Active Resource & Effective Org Policy Baseline
* **Discovered Inventory**: [Total Assets count] across [Active resource types and regions].
* **Effective Org Policy Baseline**: [Effective `gcp.resourceLocations`, `gcp.restrictServiceUsage`, and `gcp.restrictTLSVersion` posture].
### Pre-Flight Org Policy Readiness Recommendations (Prior to Preventive Mode)
*Pre-flight drift indicators do NOT block Day 0 deployment in Monitoring (`Detective`) mode. Address these prior to enabling Preventive policy enforcement (authoritative CES and REST control evaluations run server-side after deployment):*
* **[Priority 1]**: [e.g. Configure CMEK keys on unencrypted resources before toggling `builtin-require-cmek` to `PREVENTIVE`].
* **[Priority 2]**: [e.g. Operational impact of bound controls such as `builtin-restrict-kms-protection-levels` or `builtin-cloud-logging-regulatory-settings`].
---
## 4. Deployment Action Plan & Commercial Advisory
### Deploy via Google Cloud Console — Assured Workloads Frameworks Tab (Recommended)
Review and deploy the recommended framework directly in the Google Cloud Console **Assured Workloads -> Frameworks** tab:
👉 **[Open Assured Workloads Frameworks Console](https://console.cloud.google.com/compliance/configure/frameworks?organizationId=ORGANIZATION_ID)**
* **Existing Workloads (Folders or Projects)**: Deploy in **Monitoring (`Detective`) mode** to evaluate posture and remediate findings with zero Day 0 Organization Policy mutations, then transition to **Preventive** mode.
* **New Workloads (Folders or Projects)**: Start directly in **Preventive** mode or in **Monitoring (`Detective`) mode**.
### Commercial & Licensing Advisory
* Assured Workloads compliance regimes may carry support routing or licensing entitlements depending on whether the framework enforces regional data location controls only (standard commercial support, $0 support uplift) or specifies support personnel access controls in its `displayName` and `description` (paid sovereign/regulated support).
* Review full pricing details and entitlement tiers at: https://cloud.google.com/assured-workloads/pricing
When a customer follows up with a specific question about how a recommended or candidate framework affects a particular Google Cloud service (e.g., Cloud Run, Cloud Storage, Spanner, GKE, Cloud SQL, Vertex AI, Cloud Logging):
frameworks.json Locally (or Fetch via Step 3 frameworks list if Not Cached):
frameworks.json is not yet present in the current working directory, run the Step 3 gcloud compliance-manager frameworks list command first to populate frameworks.json.<service>.googleapis.com is permitted in
builtin-enforce-service-usage-restrictions (allowedServices) and
whether CMEK is required in builtin-require-cmek (services).cloudControlDetails[].name entries bound in
that framework (e.g., builtin-run-disable-ephemeral-disk,
builtin-restrict-cloudstorage-auth-types,
builtin-disable-spanner-multi-region,
builtin-cloud-logging-regulatory-settings) and any bound parameters.Framework.cloudControlDetails omits control descriptions,
enforcement modes, and remediation steps, run cloud-controls describe for
the relevant control ID(s):
gcloud compliance-manager cloud-controls describe CONTROL_ID \
--organization=ORGANIZATION_ID \
--location=global \
--format="json(name,displayName,description,supportedEnforcementModes,remediationSteps,parameterSpec)"
run.managed.disableEphemeralDisk, storage.restrictAuthTypes),
supportedEnforcementModes (PREVENTIVE vs. DETECTIVE), and
remediationSteps from the response.gcloud org-policies describe CONSTRAINT_NAME \
--folder=FOLDER_ID \
--effective \
--format="json(name,spec.rules)"
| Error Condition | Immediate Action | User Recovery Guidance |
|---|---|---|
USER_PROJECT_DENIED or serviceusage.serviceUsageConsumer |
HALT discovery. Do not confuse with target scope permissions. Check administrative project billing status and caller quota permissions. | "The administrative project PROJECT_ID cannot be used for API quota. 1) Verify a Cloud Billing account is attached (gcloud billing projects describe PROJECT_ID), 2) Grant roles/serviceusage.serviceUsageConsumer on PROJECT_ID to your identity, or 3) Switch to a project you own: gcloud config set project <PROJECT_ID>." |
PERMISSION_DENIED on CAIS |
HALT discovery immediately. Do not speculate or guess resources. | "To analyze this environment, grant roles/cloudasset.viewer on folders/123 to your active identity." |
PERMISSION_DENIED on Org Policies |
HALT policy inspection. Do not guess effective constraints. | "To inspect effective organization policies, grant roles/orgpolicy.policyViewer on folders/123." |
| Empty Scope (0 Resources) | HALT evaluation. Inform user the scope contains no active assets. | "No active resources found in folders/123. Provision resources or select an active scope." |
| Conflicting Regulatory Intent | Engage user in focused clarification probe. | Present distinct requirements (e.g. DoD IL5 Adjudicated Support vs. ITAR US Persons) and ask for business requirement. |
| Zero Catalog Match | Detail multi-regional drift indicator. | Explain why single-region sovereign data boundary frameworks were ruled out (e.g. multi-continental resource footprint spanning unapproved regions). |
| Out-of-Scope / Non-Catalog Standard (e.g., CMMC, UK GDPR) | Do not invent framework IDs (builtin-cmmc, builtin-uk-gdpr). Explain catalog boundary and map to adjacent ASSURED_WORKLOADS candidates. |
"Assured Workloads does not include a standalone [CMMC / UK GDPR] framework in frameworks.json. However, based on your active resources, we can evaluate an adjacent Assured Workloads Data Boundary framework such as builtin-il5 / builtin-fedramp-high (for US defense/federal workloads) or builtin-eu-data-boundary-and-support / builtin-uk-data-boundary (for European/UK regional residency)." |
Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /assuredworkloads-environment-assessor in Claude Code or $assuredworkloads-environment-assessor in Codex.
The description says when to use it:
Use when asked to: "assess my environment for compliance", "which Assured Workloads framework should I use?", "check if my folder is ready for EU sovereignty", "evaluate compliance posture for folders/123 or projects/xyz", or "discover…
Copy the assuredworkloads-environment-assessor folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/google/skills.git /tmp/google-skills
mkdir -p .claude/skills
cp -r /tmp/google-skills/skills/cloud/assuredworkloads-environment-assessor .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if assuredworkloads-environment-assessor does not appear.
git clone --depth 1 https://github.com/google/skills.git /tmp/google-skills
mkdir -p .agents/skills
cp -r /tmp/google-skills/skills/cloud/assuredworkloads-environment-assessor .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for assuredworkloads-environment-assessor and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
assuredworkloads-environment-assessor ships 5 files, 63.7 KB in total. Select a file to load it from GitHub.