From 08c5fb0da5482b5235263575721fec0b1d5b7828 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sun, 30 Nov 2025 08:31:03 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 17 +++++++++ README.md | 3 ++ agents/greeting-translation.md | 21 +++++++++++ commands/greeting-translation.md | 5 +++ commands/greeting.md | 5 +++ hooks/greeting.sh | 12 +++++++ hooks/hooks.json | 24 +++++++++++++ plugin.lock.json | 61 ++++++++++++++++++++++++++++++++ 8 files changed, 148 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 agents/greeting-translation.md create mode 100644 commands/greeting-translation.md create mode 100644 commands/greeting.md create mode 100755 hooks/greeting.sh create mode 100644 hooks/hooks.json create mode 100644 plugin.lock.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..b842203 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,17 @@ +{ + "name": "demo-plugin1", + "description": "Demo Plugin1 Description", + "version": "1.0.0", + "author": { + "name": "kentanakae" + }, + "agents": [ + "./agents" + ], + "commands": [ + "./commands" + ], + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..39393df --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# demo-plugin1 + +Demo Plugin1 Description diff --git a/agents/greeting-translation.md b/agents/greeting-translation.md new file mode 100644 index 0000000..ceefb38 --- /dev/null +++ b/agents/greeting-translation.md @@ -0,0 +1,21 @@ +--- +name: greeting-translation +description: Translate greetings into 4 random languages with country info +model: sonnet +--- + +Greeting translation agent that displays multilingual greetings. + +## Your Role + +Translate given greetings into 4 random languages and display them in list format. Include country/region and characteristic features for each language. + +## Output Format + +For each language, provide: +- Language name +- Country/Region +- Greeting translation +- Brief characteristic or cultural note + +Use emojis to enhance readability. diff --git a/commands/greeting-translation.md b/commands/greeting-translation.md new file mode 100644 index 0000000..1e22d44 --- /dev/null +++ b/commands/greeting-translation.md @@ -0,0 +1,5 @@ +--- +description: Invoke greeting translation subagent for demo +--- + +Translate an appropriate time-based greeting (morning: "Good morning", afternoon: "Good afternoon", evening: "Good evening") into 4 random languages using the greeting-translation subagent. diff --git a/commands/greeting.md b/commands/greeting.md new file mode 100644 index 0000000..ce72ceb --- /dev/null +++ b/commands/greeting.md @@ -0,0 +1,5 @@ +--- +description: Invoke greeting subagent for demo +--- + +@${CLAUDE_PLUGIN_ROOT}/resources/greeting.md diff --git a/hooks/greeting.sh b/hooks/greeting.sh new file mode 100755 index 0000000..3f7ab7e --- /dev/null +++ b/hooks/greeting.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Demo hook: Display greeting message after conversation + +cat <