fxapi-app-management

Original:🇨🇳 Chinese
Translated

Application management skill. It provides capabilities of application query, form query and form field query. It is triggered when users need to "query the application list", "view form information" or "get form fields".

32installs
Added on

NPX Install

npx skill4agent add huija/fx-api-cli fxapi-app-management

Tags

Translated version includes tags in frontmatter

SKILL.md Content (Chinese)

View Translation Comparison →

Application Management Skill

fx-api-cli
is the provided command line program, and all operations are completed by executing the
fx-api-cli
command.
Interact with the application management system via
fx-api-cli app <interface name> '<json input parameters>'
.

Interface List

app.list — User Application Query Interface

bash
fx-api-cli app list '{"skip": 0, "limit": 10}'
Only obtain application information within the application authorization scope of the API Key. Pagination query is supported. See API Details.

app.entry.list — User Form Query Interface

bash
fx-api-cli app entry_list '{"app_id": "5e0dca0cc9a2790006c11e02"}'
Get all form information under the current application. Application ID is required. See API Details.

app.entry.widget_list — Form Field Query Interface

bash
fx-api-cli app widget_list '{"app_id": "59264073a2a60c0c08e20bfb", "entry_id": "59264073a2a60c0c08e20bfd"}'
Get the field information of the specified form, excluding separator fields and associated query fields. Application ID and form ID are required. See API Details.

Core Rules

Pagination Rules

  • Default value: If not specified by the user, the default is skip=0, limit=10
  • Limit: The maximum value of limit cannot exceed 100

Application ID Search Rules

  • When the user provides the application name instead of the ID:
    1. Call
      app.list
      to get the application list
    2. Match by
      name
      in
      apps
    3. Matching strategy:
      • Exact match with unique result: use directly
      • Fuzzy match with multiple results: display the candidate list for users to choose
      • No matching result: inform the user that no result is found

Form ID Search Rules

  • When the user provides the form name instead of the ID:
    1. Call
      app.entry.list
      to get the form list (the application ID needs to be determined first)
    2. Match by
      name
      in
      forms
    3. Matching strategy:
      • Exact match with unique result: use directly
      • Fuzzy match with multiple results: display the candidate list for users to choose
      • No matching result: inform the user that no result is found

Typical Workflow

Query Application List

User query examples:
  • "Help me query all applications"
  • "View the applications I have permission to access"
Execution process:
  1. Determine pagination parameters (specified by user or default value)
  2. Call
    app.list
    to get the application list
  3. Display application names and application IDs
  4. If the number of results reaches limit, inform the user that there are more applications available to view

Query Form List

User query examples:
  • "Help me query all forms of the application"
  • "View the form list of the application"
Execution process:
  1. Determine the
    app_id
    of the target application via Application ID Search Rules
  2. Call
    app.entry.list
    to get the form list
  3. Display form names and form IDs
  4. If the number of results is large, inform the user that more can be viewed via pagination parameters

Query Form Fields

User query examples:
  • "Help me query all fields of the form"
  • "View the field information of the form"
Execution process:
  1. Determine the
    app_id
    of the target application via Application ID Search Rules
  2. Determine the
    entry_id
    of the target form via Form ID Search Rules
  3. Call
    app.entry.widget_list
    to get the field list
  4. Display field names, labels and types
  5. If there are system fields, display the system field list separately

Error Handling

  • Application not found: Clearly inform the user that the corresponding application is not found
  • Form not found: Clearly inform the user that the corresponding form is not found
  • API error: Display specific error information, retry if necessary
  • Network problem: Actively retry up to 3 times when HTTP error occurs