Skip to main content
A profClaw plugin is a standard npm package with a profclaw field in package.json and a default export using definePlugin.

Package Structure

package.json Manifest

The profclaw.pluginId must be unique on ClawHub. The keywords array must include "profclaw-plugin" for the plugin to appear in search results.

Plugin Manifest Fields

Build Configuration

Build Script

Dependencies

Keep dependencies minimal. Avoid bundling:
  • profclaw (declare as peerDependency)
  • zod (available from profClaw peer)
  • Large AI SDKs (prefer HTTP calls)
Bundled dependencies increase install size and can conflict with the host’s versions.

Entry Point

src/index.ts must have a default export:
profClaw imports your plugin with import(packageName) and accesses default.

Testing Your Plugin Locally

Then register in settings: Settings > Plugins > Install from local path.

Scaffolding

Use the built-in scaffolder to bootstrap a new plugin:
This generates the package structure with TypeScript config, a sample definePlugin call, and a test file.