# Skills Quickstart

Pionex Skills are high-level behavioral playbooks for AI agents, enabling them to safely perform market data queries, balance lookups, and spot trading operations via the `pionex-trade-cli` command line.

### Prerequisites

* Node.js >= 18

### Installation

#### 1. Install the CLI

```bash
npm install -g @pionex/pionex-ai-kit
```

This installs both `pionex-trade-cli` and `pionex-ai-kit` commands.

#### 2. Configure API Credentials

```bash
pionex-ai-kit onboard
```

Enter your Pionex API Key and Secret when prompted. Credentials are saved to `~/.pionex/config.toml`.

> You can create an API Key at <https://www.pionex.com/my-account/api>.
>
> [API Key Guide](https://www.pionex.com/docs/api-docs/references/api-key-guide)

> If you only need market data, you can skip this step.

#### 3. Install Skills

```bash
npx skills add pionex-official/pionex-skills
```

#### 4. Verify the Installation

```bash
# Test market data (no API key needed)
pionex-trade-cli market tickers --symbol BTC_USDT

# Test account query (API key required)
pionex-trade-cli account balance
```

### Upgrade

```bash
npm update -g @pionex/pionex-ai-kit @pionex/pionex-trade-mcp
```

### Verify Skills Are Working

Type the following prompt in your AI client:

> "Use the Pionex skills to show the order book depth 5 for BTC\_USDT."

If the agent successfully calls `pionex-trade-cli` and returns order book data, Skills are installed correctly.

### Next Steps

* See the [Skills User Guide](/docs/ai-kit-docs/skills/skills-guides.md) for full skill features and usage details


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.pionex.com/docs/ai-kit-docs/skills/skills-quickstart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
