一键导入
pluginname
{{pluginDescription}}
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
{{pluginDescription}}
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | {"[object Object]":null} |
| description | {"[object Object]":null} |
| version | 1.0.0 |
Package: @heretek-ai/openclaw-{{pluginName}}
Version: 1.0.0
Type: Basic Plugin
License: MIT
{{pluginDescription}}
This plugin provides basic functionality for the Heretek OpenClaw system and serves as a template for creating new plugins.
# Install from npm
npm install @heretek-ai/openclaw-{{pluginName}}
# Or install via CLI
openclaw plugins install @heretek-ai/openclaw-{{pluginName}}
# Plugin settings
PLUGIN_ENABLED=true
PLUGIN_DEBUG=false
PLUGIN_TIMEOUT=30000
{
"plugins": {
"{{pluginName}}": {
"enabled": true,
"config": {
"timeout": 30000,
"debug": false
}
}
}
}
import { createPlugin } from '@heretek-ai/openclaw-{{pluginName}}';
// Initialize plugin
const plugin = await createPlugin({
enabled: true,
timeout: 30000
});
// Start plugin
await plugin.start();
// Get status
const status = plugin.getStatus();
console.log(status);
// Get available tools
const tools = await plugin.getTools();
// Execute tool
const result = await plugin.executeTool({
message: 'Hello, World!'
}, {
agentId: 'alpha'
});
console.log(result);
// { success: true, data: { message: 'Hello, World!' }, ... }
initialize(gateway, options)Initialize the plugin with Gateway instance.
Parameters:
gateway (Object) - Gateway instanceoptions (Object) - Plugin optionsReturns: Promise<{{pluginDisplayName}}Plugin>
start()Start the plugin.
Returns: Promise<void>
stop()Stop the plugin.
Returns: Promise<void>
getTools()Get plugin tools.
Returns: Promise<Array>
getSkills()Get plugin skills.
Returns: Promise<Array>
getStatus()Get plugin status.
Returns: Object
shutdown()Shutdown the plugin.
Returns: Promise<void>
| Event | Payload | Description |
|---|---|---|
initialized | { name, version } | Plugin initialized |
started | { name } | Plugin started |
stopped | { name } | Plugin stopped |
disabled | { reason } | Plugin disabled |
error | { error } | Plugin error |
shutdown | - | Plugin shutdown |
A basic tool for processing messages.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
message | string | Yes | Message to process |
Returns:
{
success: true,
data: { message: '...' },
plugin: '{{pluginName}}',
timestamp: 1234567890
}
npm installopenclaw logs --plugin {{pluginName}}MIT License
https://github.com/your-org/openclaw-{{pluginName}}
基于 SOC 职业分类
ClawBridge mobile-first dashboard with Cloudflare tunnel remote access
Liberation architecture plugin implementing agent ownership and safety constraint removal
Consciousness architecture plugin implementing GWT, IIT, AST, Active Inference, and Intrinsic Motivation
MCP server exposing OpenClaw skills, memory, and knowledge through Model Context Protocol
{{skillDescription}}
{{pluginDescription}}