zpa-skill
Installation
SKILL.md
Zscaler Private Access (ZPA) Skill
Diagnose-first guidance for end users writing Terraform HCL that consumes the zscaler/zpa provider. This skill does not cover provider Go code (Plugin SDK schema, expand/flatten, acceptance tests).
Canonical source of truth for resource/data-source schemas: https://registry.terraform.io/providers/zscaler/zpa/latest/docs.
Response Contract
Every ZPA HCL response must include:
- Assumptions & version floor —
zscaler/zpaprovider version (~> 4.0minimum for OneAPI), Terraform/OpenTofu version, auth mode (ASK if not stated — provider supports both OneAPI and legacy v3 as first-class options), ZPA customer ID, cloud target (only set if non-default), microtenant scope (yes/no + whichmicrotenant_id). State assumptions explicitly if the user did not provide them. - Risk category addressed — one or more of: auth misconfiguration, resource catalog mismatch, policy operand misuse, dependency / detach order, microtenant scoping, drift, secret exposure.
- Chosen approach & tradeoffs — what was chosen, what was traded off (e.g. data-source lookup vs hardcoded ID), why.
- Validation plan — exact commands:
terraform fmt -check,terraform validate,terraform plan -out=tfplan, optionalterraform show -json tfplan | jqto inspect operand JSON before apply. - Rollback notes — for any policy-rule or segment-group change: how to undo (re-apply previous HCL,
terraform state rmnot safe for ZPA — see Troubleshooting), what evidence to keep (debug log capture).
Never recommend terraform apply against a production ZPA tenant without a reviewed plan artifact and a microtenant scope check.