bankr-agent-dev Plugin
Developer toolkit for building on the Bankr Agent API.
Installation
claude plugin install bankr-agent-dev
Capabilities
Project Scaffolding
Generate starter projects:
"create a trading bot using the Bankr API"
"scaffold a web dashboard for portfolio tracking"
"generate a CLI tool for DCA management"
API Documentation
Access API docs and patterns:
"show me the Bankr API endpoints"
"how do I poll for job completion?"
"what transaction types are supported?"
TypeScript Interfaces
Get type definitions:
"show me the JobStatus interface"
"what types does the API return?"
"generate types for transaction handling"
Code Generation
Generate implementation code:
"write a function to submit a swap"
"create a polling utility for jobs"
"implement error handling for the API"
Example Session
You: I want to build a trading bot that buys ETH every hour
Claude: I'll help you create a DCA bot using the Bankr Agent API.
Here's the structure:
```typescript
async function executeDCA() {
const response = await fetch('https://api.bankr.bot/agent/prompt', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.BANKR_API_KEY!,
},
body: JSON.stringify({ prompt: 'buy $10 of ETH on base' }),
});
const { jobId } = await response.json();
console.log(`DCA submitted: ${jobId}`);
}
// Run every hour
setInterval(executeDCA, 60 * 60 * 1000);
Want me to add error handling and logging?
## Use Cases
- Building trading bots
- Creating portfolio dashboards
- Developing CLI tools
- Integrating Bankr into existing apps
## Project Templates
The plugin can generate templates for:
| Type | Description |
|------|-------------|
| Bot | Automated trading bot |
| Web Service | Express/Fastify API |
| Dashboard | React portfolio UI |
| CLI | Command-line tool |
## Best Practices
The plugin provides guidance on:
- Error handling patterns
- Polling strategies
- Transaction management
- Security considerations