Skill: liuzewei1990/liuzewei-hello-demo (version 1.0.0)

# Hello Demo Skill A simple greeting skill for OpenClaw that provides friendly greetings with time awareness. ## Installation ```bash skillhub install hello-demo ``` Or install from file: ```bash skillhub install --file hello-demo.skill ``` ## Usage ### Basic greeting ```bash python3 scripts/greet.py [name] ``` ### With options ```bash python3 scripts/greet.py Alice --time --emoji ``` ## Features - 👋 Friendly greetings - 🕐 Time-aware (morning/afternoon/evening) - 😊 Emoji support - 🌍 Multi-language ready ## Examples ```bash $ python3 scripts/greet.py Hello, World! $ python3 scripts/greet.py Alice --time Good afternoon, Alice! $ python3 scripts/greet.py Bob --emoji Hello, Bob! 👋 ``` ## Author Created by liuzewei1990 as a demo for OpenClaw skill development.

path: config.json
content: {
  "name": "hello-demo",
  "version": "1.0.0",
  "description": "A simple greeting skill for OpenClaw",
  "author": "liuzewei1990",
  "license": "MIT",
  "min_openclaw_version": "1.0.0",
  "entry_point": "scripts/greet.py",
  "update_url": "https://api.github.com/repos/liuzewei1990/openclaw-skill-demo/releases/latest",
  "tags": ["demo", "greeting", "utility"],
  "requirements": {
    "python": ">=3.8"
  }
}

path: references/examples.md
content: # Usage Examples

## Basic Usage

### Simple greeting
```bash
$ python3 scripts/greet.py
Hello, World!
```

### Greet someone
```bash
$ python3 scripts/greet.py Alice
Hello, Alice!
```

## Advanced Options

### With time awareness
```bash
$ python3 scripts/greet.py Bob --time
Good afternoon, Bob!
```

### With emoji
```bash
$ python3 scripts/greet.py Carol --emoji
Hello, Carol! 👋
```

### Combined options
```bash
$ python3 scripts/greet.py David --time --emoji
Good evening, David! 👋
```

## Integration with OpenClaw

This skill can be invoked by OpenClaw when users ask for greetings:

```
User: Say hello to Alice
OpenClaw: [runs] python3 scripts/greet.py Alice --emoji
Output: Hello, Alice! 👋
```


path: scripts/greet.py
content: #!/usr/bin/env python3
"""
Hello Demo - A simple greeting skill for OpenClaw
Author: wwwzhouhui
Version: 1.0.0
"""

import argparse
import sys
from datetime import datetime


def get_greeting(hour=None):
    """Get time-appropriate greeting"""
    if hour is None:
        hour = datetime.now().hour
    
    if 5 <= hour < 12:
        return "Good morning"
    elif 12 <= hour < 18:
        return "Good afternoon"
    elif 18 <= hour < 22:
        return "Good evening"
    else:
        return "Hello"


def main():
    parser = argparse.ArgumentParser(
        description="A friendly greeting skill for OpenClaw"
    )
    parser.add_argument(
        "name",
        nargs="?",
        default="World",
        help="Name to greet (default: World)"
    )
    parser.add_argument(
        "--time", "-t",
        action="store_true",
        help="Include time-appropriate greeting"
    )
    parser.add_argument(
        "--emoji", "-e",
        action="store_true",
        help="Add friendly emoji"
    )
    parser.add_argument(
        "--version", "-v",
        action="version",
        version="%(prog)s 1.0.0"
    )
    
    args = parser.parse_args()
    
    # Build greeting
    if args.time:
        greeting = get_greeting()
    else:
        greeting = "Hello"
    
    # Construct message
    message = f"{greeting}, {args.name}!"
    
    if args.emoji:
        message += " 👋"
    
    print(message)
    return 0


if __name__ == "__main__":
    sys.exit(main())


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)