> For the complete documentation index, see [llms.txt](https://docs.bullpen.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bullpen.fi/bullpen-cli/ai-agent-skills.md).

# AI Agent Skills

Let Claude Code or Codex CLI trade Polymarket for you. Ask in plain English, and it handles the rest.

## AI Agent Skills

Bullpen ships AI agent skills for Claude Code and Codex CLI. Ask in plain English, and the assistant maps that request to Bullpen CLI commands.

### Setup

```
bullpen skill install
```

Restart Claude Code or Codex CLI. That's it.

If you haven't installed the CLI yet:

```
brew install bullpenfi/tap/bullpen
bullpen skill install
bullpen login
```

### What You Can Ask

* *"Buy $10 of Yes on will-bitcoin-hit-100k"*
* *"Show me trending crypto prediction markets"*
* *"What are my open positions and P\&L?"*
* *"Set a limit order to sell my Trump shares at 65 cents"*
* *"Alert me when whales trade on crypto markets"*
* *"Who are the top traders this week?"*
* *"Cancel all my open orders"*
* *"Fill my March Madness bracket picking Duke to win it all"*

The AI assistant runs Bullpen CLI commands on your behalf. All trades go through your authenticated session.

### Update

```
bullpen upgrade
```

Updates both the CLI and skills.

### Troubleshooting

| Problem                                 | Fix                                                           |
| --------------------------------------- | ------------------------------------------------------------- |
| Assistant doesn't know Bullpen commands | Restart Claude Code / Codex CLI after `bullpen skill install` |
| "Not authenticated"                     | Run `bullpen login`                                           |
| "Market not found"                      | Use slugs from `bullpen polymarket search`                    |
| "Insufficient balance"                  | Run `bullpen portfolio balances`                              |
| Skills out of date                      | Run `bullpen upgrade`                                         |

### Remove Skills

```
bullpen skill uninstall --yes
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.bullpen.fi/bullpen-cli/ai-agent-skills.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
