From f8d71a71bac4bd650de6abf20f018076b78d1832 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sun, 30 Nov 2025 08:48:59 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 11 ++++++++++ README.md | 3 +++ hooks/hooks.json | 14 ++++++++++++ plugin.lock.json | 45 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 73 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..5a4b053 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "custom-hooks", + "description": "Custom UserPromptSubmit hook that adds AskUserQuestion reminder to all prompts", + "version": "1.0.2", + "author": { + "name": "Rafael Calleja" + }, + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e9d0d64 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# custom-hooks + +Custom UserPromptSubmit hook that adds AskUserQuestion reminder to all prompts diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..452fcf7 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,14 @@ +{ + "hooks": { + "UserPromptSubmit": [ + { + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/scripts/add_question_reminder.py" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..90d64a4 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:rafaelcalleja/claude-market-place:plugins/custom-hooks", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "1127e9b8e540de5f2a975e7a31358f4ae8f7efdb", + "treeHash": "3a6f655e74a16b00173b80891228141dccb77774258807b43b292096907b5f37", + "generatedAt": "2025-11-28T10:27:44.569163Z", + "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": "custom-hooks", + "description": "Custom UserPromptSubmit hook that adds AskUserQuestion reminder to all prompts", + "version": "1.0.2" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "6ae07a1bdd361d97f4eade7d432914c3a0725c3d4a9735b98f58cc9d4a0e60dc" + }, + { + "path": "hooks/hooks.json", + "sha256": "fed701b0a362332e234c3da6a9e083cbb62e8c281abd26da260f8242474a9407" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "91b647b8cc9678179a22c22c7b014fb9bb3a57a820473092c2b0efc71b430c52" + } + ], + "dirSha256": "3a6f655e74a16b00173b80891228141dccb77774258807b43b292096907b5f37" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file