with one click
hello-world
// A demonstration skill that greets users and showcases all skill elements. Use when the user asks for a greeting, wants to test the skill system, or requests a hello world example.
// A demonstration skill that greets users and showcases all skill elements. Use when the user asks for a greeting, wants to test the skill system, or requests a hello world example.
| name | hello-world |
| description | A demonstration skill that greets users and showcases all skill elements. Use when the user asks for a greeting, wants to test the skill system, or requests a hello world example. |
A reference skill demonstrating all available skill elements: metadata, instructions, workflows, templates, examples, checklists, conditional logic, feedback loops, progressive disclosure, and utility scripts.
python scripts/hello.py --name <target> --style <style>Extract the greeting target from the user's message. If no name is specified, default to "World".
Choose the appropriate style based on context:
| Style | When to Use | Example Output |
|---|---|---|
| formal | Professional or unknown context | "Good day, Dr. Smith." |
| casual | Friendly or informal conversation | "Hey there, Alice!" |
| festive | Holidays or celebratory context | "Happy holidays, Bob! ๐" |
Run the greeting script and return the result to the user.
Copy this checklist and track progress:
Task Progress:
- [ ] Step 1: Parse user input for target name
- [ ] Step 2: Determine greeting style from context
- [ ] Step 3: Generate greeting via script or template
- [ ] Step 4: Validate output format
- [ ] Step 5: Deliver greeting to user
Determine the input type:
User provides a name? โ Use that name as the target No name provided? โ Default to "World"
Determine the style:
Formal keywords detected (e.g., "sir", "madam", "professional")? โ Use formal
Festive keywords detected (e.g., "holiday", "birthday", "celebrate")? โ Use festive
Otherwise โ Use casual
Use this template for the greeting response:
# Greeting
**To:** [Target Name]
**Style:** [formal | casual | festive]
---
[Generated Greeting Message]
---
*Generated by hello-world skill*
Example 1 โ Casual greeting:
Input: "Say hi to Alice" Output:
Hey there, Alice! ๐ Welcome aboard!
Example 2 โ Formal greeting:
Input: "Please greet Professor Zhang formally" Output:
Good day, Professor Zhang. It is a pleasure to make your acquaintance.
Example 3 โ Festive greeting:
Input: "Wish Bob a happy birthday" Output:
Happy Birthday, Bob! ๐๐ Wishing you a fantastic year ahead!
python scripts/hello.py --validate --input "greeting text"hello.py: Generate and validate greetings
# Generate a greeting
python scripts/hello.py --name "Alice" --style casual
# Validate a greeting
python scripts/hello.py --validate --input "Hey there, Alice!"
# List available styles
python scripts/hello.py --list-styles
Default settings can be overridden via environment variables:
| Variable | Default | Description |
|---|---|---|
HELLO_DEFAULT_STYLE | casual | Default greeting style |
HELLO_DEFAULT_NAME | World | Default target name |
HELLO_LOCALE | en | Locale for greeting language |
Greeting templates and locale data are stored in resources/greetings.json:
To add a new style or locale, edit resources/greetings.json directly โ no code changes needed.