commit 36b0fc2115df71357475055f60078b1f6cb41b50 Author: Zhongwei Li Date: Sun Nov 30 08:56:48 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..83fa5cf --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "principles-reminder-plugin", + "description": "AIの暴走を防止する「AI運用5原則」をClaude Codeが止まったときに出力するようにするプラグインです。", + "version": "1.0.1", + "author": { + "name": "shi." + }, + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..66e9f2b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# principles-reminder-plugin + +AIの暴走を防止する「AI運用5原則」をClaude Codeが止まったときに出力するようにするプラグインです。 diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..d759079 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,26 @@ +{ + "hooks": { + "SessionStart": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "zsh ${CLAUDE_PLUGIN_ROOT}/scripts/ai-principles-reminder-prompt.sh" + } + ] + } + ], + "Stop": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "zsh ${CLAUDE_PLUGIN_ROOT}/scripts/ai-principles-reminder.sh" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..23defc9 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:shin902/shi-marketplace:principles-reminder-hooks", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "a6e5935e50b3de3895c5e1a7d8ce7789133145a6", + "treeHash": "94c6c5b79aaa77fffef48872879ab0bb904adf65de273ee00602450488ecd7d5", + "generatedAt": "2025-11-28T10:28:18.920063Z", + "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": "principles-reminder-plugin", + "description": "AIの暴走を防止する「AI運用5原則」をClaude Codeが止まったときに出力するようにするプラグインです。", + "version": "1.0.1" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "f5165908bd6ec949dd423407a00b5039a27ef6738a409a6ff82cd0e7df789153" + }, + { + "path": "hooks/hooks.json", + "sha256": "db1d903b045e6aa48a428c541a42e655a4e8df8365c03ce1e7e8f5098e168f0d" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "dfc30bb7a3bcd325b6e326f931eb6bb9fdb9b737676d3a6cdb3d1eaae396b925" + } + ], + "dirSha256": "94c6c5b79aaa77fffef48872879ab0bb904adf65de273ee00602450488ecd7d5" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file