Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:31:03 +08:00
commit 08c5fb0da5
8 changed files with 148 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
{
"name": "demo-plugin1",
"description": "Demo Plugin1 Description",
"version": "1.0.0",
"author": {
"name": "kentanakae"
},
"agents": [
"./agents"
],
"commands": [
"./commands"
],
"hooks": [
"./hooks"
]
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# demo-plugin1
Demo Plugin1 Description

View File

@@ -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.

View File

@@ -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.

5
commands/greeting.md Normal file
View File

@@ -0,0 +1,5 @@
---
description: Invoke greeting subagent for demo
---
@${CLAUDE_PLUGIN_ROOT}/resources/greeting.md

12
hooks/greeting.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Demo hook: Display greeting message after conversation
cat <<EOF
{
"systemMessage": "Demo Plugin1: SessionStart hook triggered",
"continue": true
}
EOF
exit 0

24
hooks/hooks.json Normal file
View File

@@ -0,0 +1,24 @@
{
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"✅ Demo Plugin1: Stop hook triggered\" with title \"Claude Code Hook\"'"
}
]
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/greeting.sh"
}
]
}
]
}
}

61
plugin.lock.json Normal file
View File

@@ -0,0 +1,61 @@
{
"$schema": "internal://schemas/plugin.lock.v1.json",
"pluginId": "gh:kentanakae/claude-code-plugins-demo:plugins/demo-plugin1",
"normalized": {
"repo": null,
"ref": "refs/tags/v20251128.0",
"commit": "99229fd601c3dce68fe2d0079ec8c9632bc67a48",
"treeHash": "9ec3f08d530143703b1088d9e2e8939afae352d223fc1ad898cb50895ed2c3f2",
"generatedAt": "2025-11-28T10:19:27.294172Z",
"toolVersion": "publish_plugins.py@0.2.0"
},
"origin": {
"remote": "git@github.com:zhongweili/42plugin-data.git",
"branch": "master",
"commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390",
"repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data"
},
"manifest": {
"name": "demo-plugin1",
"description": "Demo Plugin1 Description",
"version": "1.0.0"
},
"content": {
"files": [
{
"path": "README.md",
"sha256": "a5f17cdbfaeff21da13a0de243563b8f8ac0b0d62902fa736e5d5e896e7ba7aa"
},
{
"path": "agents/greeting-translation.md",
"sha256": "7bcb044fa8fa096359f169e56470b186adca3080c5e4db1568d1846601cfb220"
},
{
"path": "hooks/hooks.json",
"sha256": "5da89ef74ed1bac6c0832fde87c25c32e19940a8e766bee6c5205b13540c506e"
},
{
"path": "hooks/greeting.sh",
"sha256": "f55408757e30e2431a46d8e8821a66fb72cccbc140128ae2cbdcc6c9a731454f"
},
{
"path": ".claude-plugin/plugin.json",
"sha256": "1e49e0577ce0bb1a7dba8cb3056a4efbbe954c0708e185d4c0088a5c4598ef84"
},
{
"path": "commands/greeting.md",
"sha256": "4eb224f606ef9b88b4dafede395a591f9d1602b7ebd0c8ed6e947446a76b192e"
},
{
"path": "commands/greeting-translation.md",
"sha256": "9ac15afec4f7620be166e502d58183a8d60c4d2131e4e7d1d7326395a62db162"
}
],
"dirSha256": "9ec3f08d530143703b1088d9e2e8939afae352d223fc1ad898cb50895ed2c3f2"
},
"security": {
"scannedAt": null,
"scannerVersion": null,
"flags": []
}
}