hap-cli-environments

Select and confirm HAP CLI profiles for environment-safe operations.

13|2|Updated Jun 8, 2026
One-click install
npx skills add https://github.com/mingdaocom/hap-skills --skill hap-cli-environments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hap-cli-environments
Source: https://github.com/mingdaocom/hap-skills/tree/main/skills/cli/hap-cli-environments
Command: npx skills add https://github.com/mingdaocom/hap-skills --skill hap-cli-environments

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents HAP CLI operations from being executed against the wrong environment, account, organization, or production system when multiple profiles are authorized.

Core Features & Use Cases

  • Environment and Account Selection: Inspect authorized HAP profiles and identify the active environment, account, organization, and login address.
  • Safe Profile Switching: Choose a profile for an entire session or scope one command to a specific profile without manually moving credentials.
  • Destructive-Action Guardrails: Require clarification when a destructive or high-impact operation has an ambiguous target, such as deleting data, publishing changes, or modifying permissions.
  • Use Case: When a user says to test a change in a staging account or avoid production, match the request to the available HAP profiles and confirm the target before running commands.

Quick Start

Use the hap-cli-environments skill to identify the correct HAP profile for the requested operation and confirm the target before executing it.

Frequently Asked Questions about hap-cli-environments

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent HAP CLI from executing commands against the wrong production environment?

To prevent HAP CLI from executing commands against the wrong production environment, the skill inspects authorized profiles and matches user intent to profile metadata. It requires confirmation before running destructive actions when the target environment is ambiguous.

Can I scope a single HAP CLI command to a specific profile without switching my entire session?

Yes, you can scope a single HAP CLI command to a specific profile without switching your entire session. The skill enables safe profile switching by allowing you to choose a profile for one command or an entire session without manually moving credentials.

What safeguards exist for destructive HAP CLI operations like publishing changes or modifying permissions?

Safeguards for destructive HAP CLI operations like publishing changes or modifying permissions include built-in guardrails that require explicit clarification. The skill ensures safe execution by requesting confirmation when high-impact operations have an ambiguous target environment.

How do I switch HAP CLI accounts safely when working across multiple staging and production profiles?

To switch HAP CLI accounts safely across multiple staging and production profiles, the skill identifies the active environment, account, and organization. It matches your request to available profiles and confirms the target before running any commands.

When do I need to verify my HAP CLI profile before running bulk writes?

You need to verify your HAP CLI profile before running bulk writes whenever multiple profiles are authorized. The skill prevents accidental bulk writes to incorrect environments by inspecting authorized profiles and matching user intent to profile metadata.

Does the HAP CLI environments skill support identifying the active organization and login address?

Yes, the HAP CLI environments skill supports identifying the active organization and login address. It inspects authorized HAP profiles to display the current environment, account, organization, and login address before executing any targeted commands.