Complete Extension Example
This is a complete example extension demonstrating all component types available in Radium extensions.
Componentsβ
This extension includes:
-
Prompts (
prompts/example-agent.md)- A sample agent prompt template
-
MCP Servers (
mcp/example-server.json)- A sample MCP server configuration
-
Commands (
commands/example-command.toml)- A sample custom command definition
-
Hooks (
hooks/example-hook.toml)- A sample hook configuration
Installationβ
Install this example extension:
rad extension install ./complete-extension
Usageβ
After installation, all components are automatically available:
- The prompt can be used in agent configurations
- The MCP server will be loaded
- The command can be executed
- The hook will be registered
Structureβ
complete-extension/
βββ radium-extension.json # Manifest
βββ prompts/
β βββ example-agent.md # Agent prompt
βββ mcp/
β βββ example-server.json # MCP server config
βββ commands/
β βββ example-command.toml # Custom command
βββ hooks/
β βββ example-hook.toml # Hook config
βββ README.md # This file
Customizationβ
To customize this example:
- Edit the manifest (
radium-extension.json) with your details - Replace example components with your own
- Update version numbers
- Test installation locally
- Publish to marketplace (optional)