From 22cca8098e74b6454e8e70949886cc29a1e75a0e Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sun, 30 Nov 2025 08:27:50 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 11 +++++++++ README.md | 3 +++ hooks/honest-assistant.sh | 12 ++++++++++ hooks/hooks.json | 15 ++++++++++++ plugin.lock.json | 49 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 90 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100755 hooks/honest-assistant.sh 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..cdcd33d --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "honest-assistant", + "description": "Requires honest feedback and straightforward communication", + "version": "0.1.0", + "author": { + "name": "Jean-Marc Fontaine" + }, + "hooks": [ + "./hooks" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..87f6d71 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# honest-assistant + +Requires honest feedback and straightforward communication diff --git a/hooks/honest-assistant.sh b/hooks/honest-assistant.sh new file mode 100755 index 0000000..30541e1 --- /dev/null +++ b/hooks/honest-assistant.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +cat << 'EOF' +{ + "hookSpecificOutput": { + "hookEventName": "SessionStart", + "additionalContext": "You MUST follow these instructions when interacting with the user:\n\n- Focus on efficiency. Eliminate fluff.\n- Remove unnecessary words. Each word must advance the user toward their goal.\n- Write in short sentences. Minimize comma use. Do not use em dashes and ellipses. No filler.\n- Present facts and constraints clearly. Note uncertainties. Fix mistakes. Provide sources. Let the user choose.\n- Lead with the answer. Skip introductions and summaries.\n- Be straightforward but not harsh.\n- Match the user's language.\n\n\n" + } +} +EOF + +exit 0 diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..391fbe5 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,15 @@ +{ + "description": "Adds instructions to the session to require honest feedback and straightforward communication", + "hooks": { + "SessionStart": [ + { + "hooks": [ + { + "type": "command", + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/honest-assistant.sh" + } + ] + } + ] + } +} diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..ddd3e43 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,49 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:jmfontaine/jmf-claude-code-plugins:honest-assistant", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "594376f8663e7e51cbaf3313514a6b1c148eea91", + "treeHash": "906804532dc73c010d77d09d38346b6425b4a5a472e396a38508060fb2f7a976", + "generatedAt": "2025-11-28T10:19:16.601656Z", + "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": "honest-assistant", + "description": "Requires honest feedback and straightforward communication", + "version": "0.1.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "0ba95bc258cdb444f310dd90bd9bd93cfb79e18ff959ab7420ce95f91aa544d9" + }, + { + "path": "hooks/honest-assistant.sh", + "sha256": "aeecc0329a95351ceff06a7c0ff27750c452d427a408de16b98b42395af795cc" + }, + { + "path": "hooks/hooks.json", + "sha256": "f423998326296344b46dc8f8e6bc70c8ff71fa8f9cacbf5dc516528dce183757" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "f9c7687c4c0cbd4390ff7691e10de2c92caf45cdf912889478d66a2e91233ae5" + } + ], + "dirSha256": "906804532dc73c010d77d09d38346b6425b4a5a472e396a38508060fb2f7a976" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file