devpilot-trello
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:
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 | /cards/{id} |
idList (new list) |
| Add comment | POST | /cards/{id}/actions/comments |
text |
| Get board labels | GET | /boards/{id}/labels |
board ID |
| Get board members | GET | /boards/{id}/members |
board ID |
Workflows
"Show me my boards"
curl -s "https://api.trello.com/1/members/me/boards?filter=open&key=$TRELLO_KEY&token=$TRELLO_TOKEN"
"What's on the Sprint board?"
- List boards to find the board ID
- Get the board with lists and cards:
curl -s "https://api.trello.com/1/boards/{boardId}?lists=open&cards=open&card_fields=name,idList,labels,due&fields=name,desc&key=$TRELLO_KEY&token=$TRELLO_TOKEN"
"Find cards about authentication"
curl -s "https://api.trello.com/1/search?query=authentication&modelTypes=cards&key=$TRELLO_KEY&token=$TRELLO_TOKEN"
"Create a bug card on the Backend board in To Do"
- List boards → find Backend board ID
- Get board → find "To Do" list ID
- Create card:
curl -s -X POST "https://api.trello.com/1/cards?idList={listId}&name=Bug+title&desc=Description&key=$TRELLO_KEY&token=$TRELLO_TOKEN"
"Move the login fix card to Done"
- Search cards for "login fix" → get card ID
- Get board → find "Done" list ID
- Move card:
curl -s -X PUT "https://api.trello.com/1/cards/{cardId}?idList={doneListId}&key=$TRELLO_KEY&token=$TRELLO_TOKEN"
"Add a comment on the deploy card: PR merged"
- Search cards for "deploy" → get card ID
- Add comment:
curl -s -X POST "https://api.trello.com/1/cards/{cardId}/actions/comments?text=PR+merged&key=$TRELLO_KEY&token=$TRELLO_TOKEN"
Name Resolution
Users refer to boards, lists, and cards by name. Always resolve names to IDs first:
- Boards: list all boards, match by name
- Lists: get board with
lists=open, match by name - Cards: search by keyword or get board with
cards=open, match by name
More from siyuqian/devpilot
devpilot-scanning-repos
Use when the user asks to scan, audit, or sweep an entire GitHub repository for issues and file them as tickets — "scan this repo", "audit the codebase", "find bugs/security holes/missing tests", "check the docs are still accurate", "/repo-scan", "open issues for all the problems you find". Scans security, edge cases, testing coverage, and doc/code drift (CLAUDE.md, AGENTS.md, README.md and the docs they link to) without assuming business logic. Do NOT use for reviewing a single PR (use devpilot-pr-review) or language-specific style review (use devpilot-google-go-style).
9devpilot-resolve-issues
Use when the user wants to resolve, fix, work through, or burn down open GitHub issues in a repository — "fix all the issues", "resolve these tickets", "work through the repo-scan issues", "clear the backlog", "fix issue #42", "/resolve-issues", "解决所有issue", "修复这些issue", "处理issue backlog". Runs as a loop over matching issues until none remain; each REAL issue is fixed in its own `git worktree` so the main checkout stays untouched. Do NOT use for creating issues (use devpilot-scanning-repos) or for reviewing a PR the user already has open (use devpilot-pr-review).
9devpilot-pr-creator
>
8devpilot-content-creator
SEO-optimized blog and content writing skill. Use this skill whenever the user wants to write a blog post, create content for their website, improve SEO rankings, do keyword research, or plan content strategy. Triggers on any mention of blog writing, SEO content, keyword research, content marketing, "写博客", "写文章", "内容创作", "SEO优化", or when the user wants to create any form of long-form content for a website or product. Even if the user just says "write something about X for our site", use this skill.
3devpilot-google-go-style
>
2devpilot-prompt-review
Review and improve prompts for Claude (system prompts, CLAUDE.md files, SKILL.md files, API prompts, or any LLM instruction text). Use this skill whenever the user wants to review a prompt, improve prompt quality, check prompt best practices, audit instructions for Claude, optimize a system prompt, or asks "is this prompt good?". Also trigger when the user shares a prompt and asks for feedback, or when they mention prompt engineering, prompt optimization, or prompt hygiene. Even if they just paste a prompt and say "thoughts?" — use this skill.
2