plugins/plugin-dev/skills/plugin-structure/examples/minimal-plugin.md
A bare-bones plugin with a single command.
hello-world/
├── .claude-plugin/
│ └── plugin.json
└── commands/
└── hello.md
{
"name": "hello-world"
}
---
name: hello
description: Prints a friendly greeting message
---
# Hello Command
Print a friendly greeting to the user.
## Implementation
Output the following message to the user:
> Hello! This is a simple command from the hello-world plugin.
>
> Use this as a starting point for building more complex plugins.
Include the current timestamp in the greeting to show the command executed successfully.
After installing the plugin:
$ claude
> /hello
Hello! This is a simple command from the hello-world plugin.
Use this as a starting point for building more complex plugins.
Executed at: 2025-01-15 14:30:22 UTC
name fieldcommands/ directoryTo add more functionality:
.md files in commands/plugin.json with version, description, authoragents/ directory with agent definitionshooks/hooks.json for event handling