hedera-plugin-creationlisted
Install: claude install-skill nickthelegend/xorv
# Creating Hedera Agent Kit Plugins
This skill provides guidance for creating custom plugins that extend the Hedera Agent Kit. Plugins allow adding new tools for Hedera network interactions—token operations, account management, consensus service, smart contracts, and custom integrations.
## Quick Start
To create a Hedera plugin in 5 steps:
1. **Install dependencies**: Set up a TypeScript project with `@hashgraph/hedera-agent-kit` and `@hiero-ledger/sdk`
2. **Create plugin structure**: Create an `index.ts` with the plugin definition and a `tools/` directory
3. **Define tools**: Each tool is a class extending `BaseTool` — this opts the tool into the hooks/policies lifecycle
4. **Export properly**: Export the plugin object and tool name constants
5. **Register with agent**: Import and pass the plugin in the toolkit `configuration.plugins` array
## Plugin Interface
Every Hedera plugin implements this interface from `@hashgraph/hedera-agent-kit`:
```typescript
import { Plugin } from '@hashgraph/hedera-agent-kit';
export interface Plugin {
name: string; // Unique kebab-case identifier
version?: string; // Semantic version (e.g., "1.0.0")
description?: string; // Brief explanation of plugin purpose
tools: (context: Context) => Tool[]; // Factory returning tools
}
```
The `tools` function receives a `Context` object containing network configuration and returns an array of `Tool` objects. `BaseTool` itself implements `Tool`, so a `BaseTool` subclass