Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:44:32 +08:00
commit ac3be16d17
6 changed files with 95 additions and 0 deletions

View File

@@ -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"
]
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# example-plugin
An example plugin demonstrating commands, agents, hooks, and MCP servers

View File

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

1
commands/hello.md Normal file
View File

@@ -0,0 +1 @@
Greet the user with a friendly hello message and tell them the current date and time.

14
hooks/hooks.json Normal file
View File

@@ -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"
}
]
}

53
plugin.lock.json Normal file
View File

@@ -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": []
}
}