---
allowed-tools: Bash
argument-hint: [message or commands]

description: Use the x-cmd tool. x-cmd: Bootstrap 1000+ command line tools in seconds.
---

## Objective

Based on the user-provided argument `$ARGUMENTS`, generate a suggested x-cmd command for execution.

## Plan

1. **Parse User Argument**
   - Analyze `$ARGUMENTS` to determine the target module and subcommands.
   - Identify optional flags and parameters.
   - Prepare the command structure template.

2. **Get x-cmd Module Overview**
  - Execute:
    ```bash
    x-cmd --help  # Get module overview
    ```
  - Optionally include the output in the context or display it to the user for guidance.

3. **Retrieve Help Documentation**
   - Execute:
    ```bash
    x-cmd help -m <module> <subcommand>...  # Retrieve detailed help for specific module or subcommand
    ```
   - Include relevant documentation in the context or display it to the user for guidance.

4. **Generate Interactive Command Suggestions**
   - Construct a **list of possible commands** based on the parsed argument, for example:
     - `x <module> <subcommand> [options]`
     - `x <module> <subcommand> --example-flag`
   - Return the suggestions in a **selectable format** (e.g., numbered list or bullet points).
   - **Do not execute** commands directly; only provide options for user review.
   - Include brief explanations or usage tips for each suggested command.
