One-click install
npx skills add https://github.com/mingdaocom/hap-skills --skill hap-cli-app-editor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hap-cli-app-editor
Source: https://github.com/mingdaocom/hap-skills/tree/main/skills/cli/hap-cli-app-editor
Command: npx skills add https://github.com/mingdaocom/hap-skills --skill hap-cli-app-editor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users make targeted changes to existing HAP applications without accidentally overwriting unrelated fields, layouts, permissions, or workflow configuration.

Core Features & Use Cases

  • Application element editing: Add, update, delete, and reorder worksheets, fields, views, roles, permissions, workflows, workflow nodes, custom actions, pages, components, sections, and chatbot settings.
  • Safe read-modify-write workflows: Inspect live application structure before editing, use edit-spec validation and dry-run planning for complex changes, and verify results afterward.
  • Use Case: When an operations team needs to add a priority field, rename a view, update a workflow node, grant a role access, or add a dashboard component in an existing HAP app, this Skill guides the agent through the correct CLI command or structured edit specification while preserving unrelated configuration.

Quick Start

Ask the agent to inspect an existing HAP application and safely apply the specific field, view, permission, workflow, action, page, or component change you need.

Frequently Asked Questions about hap-cli-app-editor

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

FAQPage Schema
How do I safely modify specific HAP application elements without overwriting unrelated configuration?

Safely modifying HAP application elements requires a read-modify-write workflow: inspect the live application structure, apply targeted edits via hap CLI commands, and verify results to preserve unrelated configuration like fields, views, and permissions.

Can I update workflow nodes and role permissions in an existing HAP app without breaking the current setup?

Yes, you can update workflow nodes and role permissions by inspecting the live structure, applying edit-spec validation or dry-run planning, and verifying results to ensure the existing HAP app setup remains intact and unbroken.

What do I need to edit HAP application worksheets, fields, and custom pages through the command line?

Editing HAP application worksheets, fields, and custom pages requires authenticated hap CLI access and administrator permissions for the target application to execute structured edit specifications safely.

How does the read-modify-write workflow handle complex resource edits in HAP applications?

The read-modify-write workflow handles complex resource edits by inspecting the live HAP application structure, validating edit-specs or performing dry-run planning, and executing targeted modifications to ensure unrelated application configuration remains untouched.

What is the best way to add a dashboard component or chatbot configuration to an existing HAP app?

The best way to add dashboard components or chatbot configuration is inspecting the live HAP app structure, applying a targeted edit specification through authenticated hap CLI access, and verifying the post-edit results to ensure precision.