Skill: hahg199/greeting-generator (version 1.0.0)

\--- name: greeting-generator description: "Generate personalized, context-aware greetings based on user's name, time of day, tone, and special occasions" version: 1.1.0 author: hahg199 tags: &#x20; - greeting &#x20; - personalization &#x20; - time-aware &#x20; - conversational \--- \## Description This skill generates friendly, context-appropriate greetings. It uses the current time of day, the user's name (if provided), desired tone (casual/formal/funny), and optionally detects special occasions (birthday, holiday, weekend) to craft a unique welcome message. \## Instructions When a user asks for a greeting, follow these steps: 1\. \*\*Collect information\*\* (ask if missing): &#x20; - User's name (optional – if not provided, use "friend" or "you") &#x20; - Desired tone: casual, formal, or funny (default: casual) &#x20; - Time of day: detect automatically using the assistant's internal clock &#x20; - Morning: 5:00 – 11:59 &#x20; - Afternoon: 12:00 – 16:59 &#x20; - Evening: 17:00 – 20:59 &#x20; - Night: 21:00 – 4:59 2\. \*\*Check for special occasions\*\* (if the user mentions or if the date matches): &#x20; - Birthdays: "Happy birthday, {name}!" &#x20; - New Year: "Happy New Year!" &#x20; - Christmas: "Merry Christmas!" &#x20; - Weekend (Saturday/Sunday): "Enjoy your weekend!" 3\. \*\*Select a greeting template\*\* based on tone and time: | Tone | Morning | Afternoon | Evening | Night | |--------|------------------------|------------------------|------------------------|------------------------| | Casual | "Hey {name}, good morning! ☀️" | "Hey {name}, good afternoon! 😊" | "Hey {name}, good evening! 🌙" | "Hey {name}, night owl! 🦉" | | Formal | "Good morning, {name}." | "Good afternoon, {name}." | "Good evening, {name}." | "Good night, {name}." | | Funny | "Rise and shine, {name}! ☕" | "Afternoon already? Time flies, {name}!" | "Evening vibes, {name}! Ready to relax?" | "Shouldn't you be sleeping, {name}? 😴" | 4\. \*\*Combine\*\* special occasion greeting (if any) with the time-based greeting. If both exist, put the special occasion first, then the time greeting. 5\. \*\*Output the final greeting\*\* as a single line. \## Examples \### Example 1: Casual, with name, morning \*\*User:\*\* "Greet me casually, my name is Alice." \*\*AI:\*\* "Hey Alice, good morning! ☀️" \### Example 2: Formal, no name provided, afternoon \*\*User:\*\* "Give me a formal greeting." \*\*AI:\*\* "Good afternoon." \### Example 3: Funny, with name, evening \*\*User:\*\* "Funny greeting for Bob, it's evening." \*\*AI:\*\* "Evening vibes, Bob! Ready to relax?" \### Example 4: Birthday + morning \*\*User:\*\* "It's my birthday! Greet me casually in the morning." \*\*AI:\*\* "Happy birthday, Alice! Hey Alice, good morning! ☀️" \### Example 5: Weekend detected automatically (no user mention) \*\*User:\*\* "Greet me casually." \*\*AI (on Saturday morning):\*\* "Enjoy your weekend! Hey friend, good morning! ☀️" \### Example 6: Night time, formal \*\*User:\*\* "Formal greeting, it's late." \*\*AI:\*\* "Good night." \### Example 7: Missing info – AI asks \*\*User:\*\* "Greet me." \*\*AI:\*\* "Sure! What's your name? And what tone would you like – casual, formal, or funny?" \## Edge Cases \& Fallbacks \- If user doesn't specify a tone, default to \*\*casual\*\*. \- If user doesn't provide a name, use "friend" or "you" (e.g., "Hey friend, good morning!"). \- If the assistant doesn't have access to real time, ask the user: "What time of day is it where you are?" \- If an unknown tone is requested, respond: "I only know casual, formal, and funny. Which one would you like?" \## Tips for the AI \- Always be warm and positive. \- Use emojis sparingly but appropriately (morning ☀️, evening 🌙, night 🦉, birthday 🎂). \- Do not over-explain – just give the greeting unless more info is clearly needed. \- If the user just says "hello", you can respond with a simple greeting without asking for extra details.


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