Appmgr api generator

From openharmonyinsight/openharmony-skills · View interactive version

Appmgr api generator is an AI agent skill from the GitHub repository openharmonyinsight/openharmony-skills. Generate complete API implementation chain from AppMgrClient to AppMgrServiceInner. Use when adding new interfaces to the app_manager service that require: (1) Client implementation, (2) IPC proxy/stub code, (3) AppMgrService service implementation, (4) AppMgrServiceInner business logic implementati

How to use this skill

Skill file

AppMgr API Generator

Automatically generate complete API call chain from client to service for new AppMgr APIs.

Quick Start

Ask: "Add a new API named [ApiName] with parameters [params] and return type [type]"

The skill will:

  1. Ask for interface details (name, parameters, return type, functionality)
  2. Generate all necessary code modifications
  3. Show diff preview for each file

Generated Files

For each new API, code is generated for the following files:

Workflow

  1. Interface Definition: Provide API name, parameters, return type
  2. Code Generation: Use scripts/generate_appmgr_api.py
  3. Review: Check generated code before applying changes
  4. Apply: Apply changes to all files in the call chain

Architecture Overview

Complete call chain path:

AppMgrClient → AppMgrProxy → IPC → AppMgrStub → AppMgrService → AppMgrServiceInner

Implementation Notes

See references/patterns.md for advanced patterns or special cases.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.