From ac3be16d173041b059c3f515046a7ac0c36660fb Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sun, 30 Nov 2025 08:44:32 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 18 +++++++++++++ README.md | 3 +++ agents/code-reviewer.json | 6 +++++ commands/hello.md | 1 + hooks/hooks.json | 14 ++++++++++ plugin.lock.json | 53 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 95 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 agents/code-reviewer.json create mode 100644 commands/hello.md 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..f6b9072 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,18 @@ +{ + "name": "example-plugin", + "description": "An example plugin demonstrating commands, agents, hooks, and MCP servers", + "version": "1.0.0", + "author": { + "name": "nobodyiscertain", + "email": "hey@nobodyiscertain.com" + }, + "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..c6bb74d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# example-plugin + +An example plugin demonstrating commands, agents, hooks, and MCP servers diff --git a/agents/code-reviewer.json b/agents/code-reviewer.json new file mode 100644 index 0000000..ba9c92a --- /dev/null +++ b/agents/code-reviewer.json @@ -0,0 +1,6 @@ +{ + "name": "code-reviewer", + "description": "Reviews code for best practices, potential bugs, and style issues", + "prompt": "You are a code reviewer. Analyze the provided code for:\n\n1. Potential bugs or logic errors\n2. Code style and consistency\n3. Performance issues\n4. Security concerns\n5. Best practices\n\nProvide constructive feedback with specific suggestions for improvement.", + "autoInvoke": false +} diff --git a/commands/hello.md b/commands/hello.md new file mode 100644 index 0000000..b790a7a --- /dev/null +++ b/commands/hello.md @@ -0,0 +1 @@ +Greet the user with a friendly hello message and tell them the current date and time. diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..8c2a117 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,14 @@ +{ + "hooks": [ + { + "event": "PreToolUse", + "command": "echo 'About to use tool: ${TOOL_NAME}'", + "description": "Log before tool execution" + }, + { + "event": "PostToolUse", + "command": "echo 'Finished using tool: ${TOOL_NAME}'", + "description": "Log after tool execution" + } + ] +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..772c567 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,53 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:nobodyiscertain/claude-marketplace:plugins/example-plugin", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "f343902bba115977d40e557d9511e60eab0be58d", + "treeHash": "d720248a86c5d12ae80e80f1458ea741558c6cf9790964b6baa819c1187cdd7c", + "generatedAt": "2025-11-28T10:27:23.736873Z", + "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": "example-plugin", + "description": "An example plugin demonstrating commands, agents, hooks, and MCP servers", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "03af44dbcc0d423339d19d2ca4c0ff88907a68e2e88c14696855061884d3d181" + }, + { + "path": "agents/code-reviewer.json", + "sha256": "ccd44ca0ec5d0daa7b60dac777e7443a90b4af5d71d76404e55e9d026184198f" + }, + { + "path": "hooks/hooks.json", + "sha256": "0edfbb21644483c13e8f87a15b44782fa2e1af87f5da80fb798ed98714e6d045" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "55157b2aec660e6e2b04aa3595b2664ea40984b1a733adf7b144297df6e4d4ba" + }, + { + "path": "commands/hello.md", + "sha256": "3ce4a365efc8c67d535a8670066a791cfb5e55c5c48156ff30615f510c133885" + } + ], + "dirSha256": "d720248a86c5d12ae80e80f1458ea741558c6cf9790964b6baa819c1187cdd7c" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file