Skip to content

hcp

Claude Code plugin for hcpctl — the CLI for Optum's HCP Platform Resource Manager (PRM). Provides safe read/write/inspect/apply workflows over hundreds of resource kinds spanning Azure, GCP, AWS, and on-prem infrastructure with mandatory dry-run safety on writes.

v11.3.0
Claude Code

By Thomas Hudak ([email protected])

Plugin Structure

🤖
0
Agents
0
Skills
⌨️
5
Commands
🪝
0
Hooks
📋
0
Rules

Installation

Install this plugin using the Claude Code CLI:

claude plugin install hcp@otc-awesome-llm

Verification

After installation, verify the plugin is loaded:

claude plugin list

Documentation

hcp

Claude Code plugin for HCP Platform Resource Manager — the CLI for HCP's Platform Resource Manager (PRM), managing hundreds of resource kinds across Azure, GCP, AWS, and on-prem infrastructure.

hcpctl is a kubectl-like CLI for Optum's Healthcare Cloud Platform (HCP). This HCP plugin teaches Claude how to use hcpctl for infrastructure discovery, resource management, and operational tasks.

Prerequisites

  • hcpctl binary installed (v1.1.24+) — locate with which hcpctl (path varies by platform/install method)
  • Authenticated to PRM via hcpctl login (Azure AD OAuth2)

Commands

CommandDescription
/hcp-exploreExplore resource kinds, search by name, view schemas
/hcp-searchList and filter resources by kind, namespace, labels, state
/hcp-inspectDeep inspection — details, history, permissions, actions, cost
/hcp-applyCreate/update resources with mandatory dry-run safety
/hcp-contextManage authentication and PRM context switching

Resource Kind Categories

CategoryExamplesCount
API Gateway / Stargatestargate.api.v1, hcp.workspace.v1~21
Kafka & Streamingkafka-cluster-v1, topic-v1~14
HCC Data Platformhcc-dataplatform-kafka-topic-v1~14
HCDP Identitieshcdp-identity-v2-kafka, hcdp-subscription-v2-snowflake~25
Snowflake / SDRPsdrp.compute.database.v1, sdrp.common.warehouse.v1~34
Kuberneteskubernetes-namespace-v1, naas-v1~15
Elasticsearchelasticsearch-cluster-v1, elasticsearch-platform-saas-deployment-v1~10
Cassandra / CosmosDBcassandra-cluster-v1, cosmosdb-database-v1~8
Databasesdb-mysql.v1, atlas-cluster.v1, gcp-cloudsql.v1~12
Compute / VMscompute-vm.v1, azure-vm.v1, vdi.desktop-kind.v1~11
Cloud Accountscloud-account.v2, dce.v1, azure-rg-v1~9
Networkingnet.vpc.v1, dns.record.v1, fw.traffic.v1~12
CAS Networkingcas.network.azu.vnet.v1, cas.managed-network.gcp.vpc.v2~26
CAS Ingresscas.ingress.load-balancer.v1, cas.ingress.waf.v1~8
Security / Certscertificate-v2, secret.v2, sso-azure.v1~13
HCP Auth / Policyhcp.auth.functional.role.v1, hcp.auth.policy.bundle.v1~10
HCP Eventshcp.event.v1, hcp.event.subscription.v1~14
Observabilityalert-definition-v1, prometheus-v1~7
Entity Builderentity-builder-v3, ebaas-deploy-v1~25
Databricks (UDLP)udlp.dbw.v1, udlp.dbw-cluster.v1~12
DevOps Toolingghec.repo.v2, tfe.workspace.v1~7
App Middlewarenginx.v1, azure.appservice.v1, jenkins-v1~9
Storageobject-storage.v1, nas-storage.v1~4
+ 12 more categoriesBDPaaS, CDC, TDSaaS, CAIP, FDS, PowerBI, etc.~60

Usage Examples

Explore available resource kinds

/hcp-explore kafka

List Kubernetes namespaces in a specific namespace

/hcp-search kubernetes-namespace-v1 -n my-team

Inspect a resource

/hcp-inspect abc-123-def --history

Create a resource with safety

/hcp-apply my-resource.yaml

This will automatically dry-run first, show what will change, and ask for confirmation.

Switch PRM context

/hcp-context switch prm-stage

Safety Model

All write operations (create, apply, patch, rm, action) enforce a dry-run-first workflow:

  1. Claude always runs --dry-run before any write
  2. Results are shown to the user for review
  3. Only after explicit confirmation is the real operation executed
  4. Dangerous operations (--hard-delete, --hard-update) require additional confirmation

Authentication

hcpctl uses Azure AD OAuth2 by default. Run hcpctl login to authenticate (opens browser). The plugin checks auth status before operations and guides re-authentication when tokens expire.

ContextEnvironment
prm-prodProduction (prm.optum.com)
prm-stageStaging (prm-stg.optum.com)
prm-devDevelopment (prm-dev.optum.com)