commit 7f10117a9ba5e19abaf31103da9c49ca8905729b Author: Zhongwei Li Date: Sun Nov 30 08:30:48 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..5002b7d --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "force-japanese", + "description": "Forces Claude Code to use Japanese language even after SessionStart:compact resets", + "version": "0.2.0", + "author": { + "name": "kawaz" + }, + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..1bb5568 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# force-japanese + +Forces Claude Code to use Japanese language even after SessionStart:compact resets diff --git a/hooks/force-japanese.sh b/hooks/force-japanese.sh new file mode 100755 index 0000000..b04953c --- /dev/null +++ b/hooks/force-japanese.sh @@ -0,0 +1,2 @@ +#!/bin/sh +echo '{"hookSpecificOutput":{"hookEventName":"SessionStart","additionalContext":"チャットは日本語で。"}}' diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..f6ca9b7 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,15 @@ +{ + "hooks": { + "SessionStart": [ + { + "matcher": "compact", + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/force-japanese.sh" + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..d9da2d4 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,49 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:kawaz/claude-plugins:plugins/force-japanese", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "8266137759b6ef4a047f6c0d808fb0d4f9e43d81", + "treeHash": "7c61346f9330980ac8339b08c07c1cd263f20749a7242dcaea714c8393746d0f", + "generatedAt": "2025-11-28T10:19:26.216194Z", + "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": "force-japanese", + "description": "Forces Claude Code to use Japanese language even after SessionStart:compact resets", + "version": "0.2.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "4147dec104b6074780a9ce2926ad83a9b4a3db8d75e49ba587dae8c50dcbbb55" + }, + { + "path": "hooks/force-japanese.sh", + "sha256": "565bf0bd2c402ed772cb6cc41d8a1a08829c26ddcf20a15c4547e2bd828b7e19" + }, + { + "path": "hooks/hooks.json", + "sha256": "32da22af7b1126bf0d59f0f95798c78f5e9f95aac23bd7b16ac74ec1f393b9a5" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "a344fa3825ba854df482bd4ecb9fee0e607de3232031b395957ef99b1143193f" + } + ], + "dirSha256": "7c61346f9330980ac8339b08c07c1cd263f20749a7242dcaea714c8393746d0f" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file