devpilot-trellolisted
Install: claude install-skill SiyuQian/devpilot
# Trello
Manage Trello boards and cards using direct REST API calls with credentials stored by the devpilot CLI.
## Setup
Run `devpilot login trello` to authenticate. This stores your API key and token at `~/.config/devpilot/credentials.json`.
If not logged in, tell the user to run `devpilot login trello` and stop.
## Reading Credentials
Extract credentials from the devpilot config:
```bash
TRELLO_KEY=$(cat ~/.config/devpilot/credentials.json | python3 -c "import sys,json; print(json.load(sys.stdin)['trello']['api_key'])")
TRELLO_TOKEN=$(cat ~/.config/devpilot/credentials.json | python3 -c "import sys,json; print(json.load(sys.stdin)['trello']['token'])")
```
Use these in all API calls as query parameters: `key=$TRELLO_KEY&token=$TRELLO_TOKEN`
## API Reference
Base URL: `https://api.trello.com/1`
| Operation | Method | Endpoint | Key params |
|-----------|--------|----------|------------|
| List boards | GET | `/members/me/boards?filter=open` | — |
| Get board | GET | `/boards/{id}?lists=open&cards=open&card_fields=name,idList,labels,due&fields=name,desc` | board ID |
| List cards in a list | GET | `/lists/{id}/cards` | list ID |
| Search cards | GET | `/search?query={q}&modelTypes=cards` | query, optional `idBoards` |
| Get card | GET | `/cards/{id}?fields=name,desc,due,labels,idList,idBoard&members=true&actions=commentCard&actions_limit=10` | card ID |
| Create card | POST | `/cards` | `idList`, `name`, optional `desc`, `due`, `idLabels` |
| Move card | PUT | `/c