From 1f3973b4c18743192b677b1c0579d29d580135ee Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sat, 29 Nov 2025 17:57:30 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 13 ++++++++ README.md | 3 ++ hooks/hooks.json | 61 ++++++++++++++++++++++++++++++++++++++ plugin.lock.json | 45 ++++++++++++++++++++++++++++ 4 files changed, 122 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.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..a555803 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,13 @@ +{ + "name": "core-essentials-hooks", + "description": "core-essentials automation hooks for development workflow", + "version": "3.0.0", + "author": { + "name": "Ossie Irondi", + "email": "admin@kamdental.com", + "url": "https://github.com/AojdevStudio" + }, + "hooks": [ + "./hooks/hooks.json" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..b9a70f9 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# core-essentials-hooks + +core-essentials automation hooks for development workflow diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..9b95301 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,61 @@ +{ + "hooks": { + "PreToolUse": [ + { + "matcher": ".*", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/pre_tool_use.py", + "description": "Pre-tool validation and checks" + } + ] + } + ], + "PostToolUse": [ + { + "matcher": "Write|Edit|MultiEdit", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/post_tool_use.py", + "description": "Post-edit validation" + } + ] + } + ], + "SessionStart": [ + { + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session_start.py", + "description": "Initialize session" + } + ] + } + ], + "Stop": [ + { + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/stop.py", + "description": "Handle stop events" + } + ] + } + ], + "Notification": [ + { + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/notification.py", + "description": "Handle notifications" + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..f3df2e0 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:AojdevStudio/dev-utils-marketplace:core-essentials-hooks", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "19597f96d39a5fea449f365e833ad17eb7002065", + "treeHash": "12434137d8b62865bfad9a1fc8c62308b7f20ede55fec106f73d0e2c6433608b", + "generatedAt": "2025-11-28T10:24:56.386941Z", + "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": "core-essentials-hooks", + "description": "core-essentials automation hooks for development workflow", + "version": "3.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "c46098da268563255f33c25bd5329c0a4ca1cf0388e39fbdd8b0c7acd568c199" + }, + { + "path": "hooks/hooks.json", + "sha256": "bfced33b099e3d39cc39be64f4dc522763b5473b430b4e754c5546954b0b7f81" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "158b1ec83d7685277203a5510f3bed52fc0de9ee1dd76a99541948e73f6a5dad" + } + ], + "dirSha256": "12434137d8b62865bfad9a1fc8c62308b7f20ede55fec106f73d0e2c6433608b" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file