
hello-world
Hello World Plugin
- version
- 1.0.3
- GitHub stars
- 123
Install
/plugin install hello-world@ai-helpersRun it inside Claude Code after adding the marketplace with /plugin marketplace add openshift-eng/ai-helpers.
Contents
Discovered from sourceCommands 1
Name
hello-world:echo
Synopsis
/hello-world:echo [name]
Description
The hello-world:echo command prints a greeting message to the console. By default, it prints "Hello world", but when provided with a name argument hello-world:echo $1, it prints "Hello ${1}". This command serves as a basic example of a Claude Code plugin implementation, demonstrating the minimal structure required for a functional plugin command.
It provides a reference implementation for plugin developers. It demonstrates:
- Basic command structure
- Shell command execution within a plugin
- Handling arguments
- Minimal configuration requirements
The spec sections is inspired by https://man7.org/linux/man-pages/man7/man-pages.7.html#top_of_page
Implementation
- The command executes a simple bash
echostatement - Accepts an optional name argument (
$1) - If
$1is provided, outputs "Hello $1" - If no argument is provided, outputs "Hello world"
- Output is sent directly to standard output
- The command is stateless and has no side effects
Implementation logic:
if [ -n "$1" ]; then
echo "Hello $1"
else
echo "Hello world"
fi
Return Value
- Claude agent text: "Hello world" (default) or "Hello $1" (when name is provided)
Examples
-
Basic usage (no arguments):
/hello-world:echoOutput:
Hello world -
With a name argument:
/hello-world:echo AliceOutput:
Hello Alice -
With multiple words as name:
/hello-world:echo "John Doe"Output:
Hello John Doe
Arguments:
$1: The name to be printed "Hello ${1}"
Sponsors
Details
- Marketplace
- openshift-eng/ai-helpers
- Source
- plugins/hello-world
- Category
- Tooling
- Keywords
- example, template, hello-world
More from openshift-eng/ai-helpers
All 56- jirav0.9.8
- lvmsv0.1.1
- marketplace-opsv0.1.2
- metricsv0.3.0
- must-gatherv0.0.3
- native-notificationsv0.0.2
- nid-teamv0.2.2
- nodev0.0.3
- node-bugv0.0.3
- node-cvev0.0.8
- node-onboardingv0.0.3
- node-rpmv0.0.3
- node-teamv1.0.1
- node-tuningv1.0.1
- olmv0.1.3
- olm-teamv0.2.1
- openshiftv0.0.8
- openshift-developerv1.1.42
- openshift-tls-profilev0.0.2
- operator-dashboardv0.0.1
- originv0.0.2
- ote-migrationv0.0.3
- patternfly
- prodsec-skillsv1.0.0