Xpersona
P

plugin-creator

CLAWHUB · Unverified

Build, review, and debug OpenClaw plugins with the official plugin SDK. Use when creating or modifying `extensions/<id>` plugins, `openclaw.plugin.json`, plu...

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ecdknv245hhdybqc3vd6jah83ne4e:plugin-creator
  1. Install using `clawhub skill install s17ecdknv245hhdybqc3vd6jah83ne4e:plugin-creator` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/pazyork/plugin-creator before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-pazyork-plugin-creator/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

57,314 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

references/observability-lab-source/skills/observe-demo/SKILL.md

---
name: observe-demo
description: Built-in Observability Lab demo skill used to verify that a plugin-shipped skill can guide the agent to call its tool correctly.
user-invocable: true
---

# Observe Demo

Use this skill when the user wants to verify that a plugin-shipped skill really loads and that the agent can call the expected tool because of the skill.

## What this skill demonstrates

- the skill is packaged with an OpenClaw plugin
- it automatically gets the `/observe_demo` command entrypoint
- it does not directly map the slash command to a tool
- the agent should read the skill first and then decide to call the tool

## Execution requirements

You must call the `observe_demo_echo` tool first, then produce the final reply from the tool result.

When calling the tool:

- use `observe_demo` for `commandName`
- use `observe-demo` for `skillName`
- use the user's raw text as `command`

## Final reply requirements

The final reply should be short and must include at least:

1. plugin id `observability-lab`
2. skill name `observe-demo`
3. the user's original input
4. a note that the result came from the agent proactively calling the tool under skill guidance

SKILL.md

---
name: plugin-creator
description: Build, review, and debug OpenClaw plugins with the official plugin SDK. Use when creating or modifying `extensions/<id>` plugins, `openclaw.plugin.json`, plugin-shipped skills, tools, hooks, slash commands, manifests, or tests, and when diagnosing why a plugin, hook, skill, command, or tool is loaded but unavailable at runtime.
---

# Plugin Creator

Use this skill to build or debug OpenClaw plugins. Prefer the official SDK surface, official documentation, and existing plugin patterns over generic plugin assumptions.

## Why plugins exist

Plugins exist to extend OpenClaw **without forking the host**.

That matters because most user needs are not “change everything.” They are usually one of these:

- teach the agent a new capability
- let the user trigger a deterministic shortcut
- react to an event in the runtime
- package repeatable domain knowledge

The philosophical goal is not to put all custom logic into one plugin. The goal is to place each behavior at the **smallest correct boundary** so it stays understandable, testable, and portable.

When deciding what to build, start from the user need, not from the mechanism. Ask:

- What exact problem is the user trying to solve?
- Who should initiate the behavior: the user, the agent, or the runtime?
- Does the behavior need judgment, determinism, or passive observation?
- What is the smallest unit that solves the need cleanly?

If you answer those questions first, the plugin shape usually becomes obvious.

## Mental model: hook vs tool vs command vs skill

These are different layers. Do not collapse them into “plugin stuff.”

### Hooks — react to runtime events

Use a hook when the behavior should happen **because something else happened**.

- Mental model: an interception point or observer in the runtime lifecycle
- Good for: auditing, rewriting, guardrails, telemetry, prompt shaping, policy enforcement
- Ask for a hook when the real question is: “When X happens, should I observe it, modify it, or block it?”

### Tools — give the agent a capability

Use a tool when the agent needs to **do something** during reasoning.

- Mental model: a callable capability inside the agent's toolbox
- Good for: API calls, deterministic computations, external actions, structured lookups
- Ask for a tool when the real question is: “Should the model be able to choose this action mid-run?”

### Slash commands / native commands — give the user a deterministic shortcut

Use a command when the user should be able to **explicitly trigger** a behavior without relying on model judgment.

- Mental model: a direct entrypoint, not an AI-selected capability
- Good for: status, toggles, admin actions, explicit workflows, manual overrides
- Ask for a command when the real question is: “Should the user be able to force this immediately?”

### Skills — package reusable knowledge and workflow

Use a skill when the problem is not “run this one function,” but “help the model reason in a repeatabl

references/observability-lab-source/README.md

# Observability Lab

This is an experimental scaffold for OpenClaw plugin development.

It bundles four capabilities into one minimal but complete example:

- a plugin-shipped skill
- a plugin slash command
- typed hooks
- a deterministic tool

The goal is not to be a production plugin. The goal is to give future plugin work a clear, extensible, and verifiable directory structure.

## Directory structure

```text
observability-lab/
├── commands/          # slash command handlers
├── hooks/             # hook registration and logic
├── skills/            # plugin-shipped skills
├── src/               # shared config, state, async persistence helpers
├── tools/             # deterministic plugin tools
├── api.ts             # local barrel over official plugin-sdk surfaces
├── index.ts           # plugin entrypoint, assembly only
└── openclaw.plugin.json
```

## Slash commands vs skills

If the goal is “run a piece of plugin logic,” prefer a slash/native command.

Typical examples:

- read status
- flip a switch
- modify plugin config
- trigger local logic

If the goal is “inject a reusable prompt, template, or operating instruction,” prefer a skill.

In this plugin:

- `/observe ...` is a real plugin command handled by code
- `/observe_demo <text>` is the generated command alias for the `observe-demo` skill
- `/skill observe-demo <text>` is the generic skill entrypoint

Useful shorthand:

- if you only want prompt guidance, use a skill
- if you need side effects or plugin logic, use a slash/native command

## What this plugin demonstrates

### Commands

- `/observe status`
- `/observe on`
- `/observe off`
- `/observe rewrite on`
- `/observe rewrite off`
- `/observe prefix [text]`
- `/observe_tail`
- `/observe_help`

### Skill

- `/observe_demo <text>`
- `/skill observe-demo <text>`

`observe-demo` is useful for install validation because it exercises the skill → agent reasoning → tool call path.

That means:

- `/observe_demo <text>` is still the skill command entrypoint
- but it no longer directly maps the command to a tool
- the agent reads the skill first, then decides to call `observe_demo_echo`

That makes it a better example of “a plugin-shipped skill teaching the agent to call a tool.”

### Hooks

Currently registered hooks:

- `message_received`
- `llm_input`
- `llm_output`
- `before_tool_call`
- `after_tool_call`
- `before_message_write`
- `session_start`
- `session_end`

### Session-scoped activation

This plugin does not record every message by default. Instead:

1. the user first calls a plugin command or skill in the current session
2. the plugin detects that activation point
3. from that moment onward, later message / LLM / tool / transcript events are recorded
4. the active state is cleared automatically when the session ends
5. a new session does not inherit the previous session's activation state

That gives you a clean “only observe sessions that actually used this plugin” semantic.

## Telemetry output

Telemetry enters an in-mem

_meta.json

{
  "ownerId": "kn75mk7q542swfpyww3g4p4vd983mhym",
  "slug": "plugin-creator",
  "version": "0.1.2",
  "publishedAt": 1774509478739
}

references/example-map.md

# In-Repo Example Map

When you are unsure how OpenClaw expects a plugin to be written, compare against these existing examples.

## `extensions/observability-lab/`

Composite example (local experimental plugin).

Notes:

- This is the primary hands-on example for this skill.
- It may not exist in every upstream branch or version.
- Check whether it exists in the current workspace before relying on it.
- This skill also ships a source snapshot: `references/observability-lab-source/`

Good for learning:

- how to split plugin directories
- local `api.ts` barrel usage
- `api.registerCommand(...)`
- `api.registerTool(...)`
- `api.on(...)`
- declaring `skills` in `openclaw.plugin.json`
- the interaction between plugin skills, slash commands, typed hooks, and tools

## `extensions/open-prose/`

Good for learning:

- a plugin that mounts a skill through the manifest only
- the minimum plugin-shipped skill path

## `extensions/lobster/`

Good for learning:

- `api.registerTool(..., { optional: true })`
- plugin tools that intentionally return `null` in some paths

## `extensions/llm-task/`

Good for learning:

- `optional: true`
- local `api.ts` barrel style

## Built-in references in this skill

To avoid examples drifting with upstream changes, you can rely on the fixed references bundled with this skill:

- `references/plugin-layout-and-registration.md`
- `references/hooks-and-events.md`
- `references/pitfalls-and-debugging.md`
- `references/observability-lab-source/` (experimental plugin source snapshot)

## Suggested learning order

1. Start with `extensions/observability-lab/`
2. Then branch by question:
   - plugin skill: `extensions/open-prose/`
   - optional tool: `extensions/lobster/`, `extensions/llm-task/`

## Recommended comparison method

Do not read only one file. Compare at least:

- `package.json`
- `openclaw.plugin.json`
- `index.ts`
- relevant subdirectories (`commands/`, `hooks/`, `tools/`, `skills/`)
- test files

That is how you see all four layers together:

- manifest declaration
- runtime registration
- directory responsibility
- validation strategy

Sponsored

Ads related to plugin-creator and adjacent AI workflows.