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:

  1. Assumptions & version floor — zscaler/zpa provider version (~> 4.0 minimum 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 + which microtenant_id). State assumptions explicitly if the user did not provide them.
  2. Risk category addressed — one or more of: auth misconfiguration, resource catalog mismatch, policy operand misuse, dependency / detach order, microtenant scoping, drift, secret exposure.
  3. Chosen approach & tradeoffs — what was chosen, what was traded off (e.g. data-source lookup vs hardcoded ID), why.
  4. Validation plan — exact commands: terraform fmt -check, terraform validate, terraform plan -out=tfplan, optional terraform show -json tfplan | jq to inspect operand JSON before apply.
  5. Rollback notes — for any policy-rule or segment-group change: how to undo (re-apply previous HCL, terraform state rm not 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.

Workflow

Installs
4
GitHub Stars
3
First Seen
Apr 24, 2026