From c0aa3682eaa85fa3beccaab99c289f6a344fa416 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sat, 29 Nov 2025 17:57:25 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 13 +++++++++++ README.md | 3 +++ hooks/hooks.json | 32 +++++++++++++++++++++++++++ plugin.lock.json | 45 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 93 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..b9dfa2a --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,13 @@ +{ + "name": "code-quality-enforcement-hooks", + "description": "code-quality-enforcement 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..ac683b2 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# code-quality-enforcement-hooks + +code-quality-enforcement automation hooks for development workflow diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..a076b08 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,32 @@ +{ + "hooks": { + "PostToolUse": [ + { + "matcher": "Write|Edit|MultiEdit", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/code-quality-reporter.py", + "description": "Report code quality metrics" + }, + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/universal-linter.py", + "description": "Universal code linting" + } + ] + } + ], + "SessionStart": [ + { + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/pnpm-enforcer.py", + "description": "Enforce pnpm usage" + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..25fac71 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:AojdevStudio/dev-utils-marketplace:code-quality-enforcement-hooks", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "47e8e673db995885b419a0cbe8b9dcbab1fdeb04", + "treeHash": "21943d58b0c7edb47f2940a6a5e84652619c29ebf213dfa9df1b0e921020c781", + "generatedAt": "2025-11-28T10:24:55.478289Z", + "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": "code-quality-enforcement-hooks", + "description": "code-quality-enforcement automation hooks for development workflow", + "version": "3.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "86f1acfff3cbe8bae835e1b4b2a49ed2962f20c6a960aee07d9185bfd5a3941b" + }, + { + "path": "hooks/hooks.json", + "sha256": "55565dbddf6825b772d6ab1442170ba7937b087de3fb3440892d7ca759f808a2" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "2c3bb45adeea08dd2078130f879100cd72cd6883a9d3e6b18ecb6d2197579a77" + } + ], + "dirSha256": "21943d58b0c7edb47f2940a6a5e84652619c29ebf213dfa9df1b0e921020c781" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file