Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:27:50 +08:00
commit 22cca8098e
5 changed files with 90 additions and 0 deletions

12
hooks/honest-assistant.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
cat << 'EOF'
{
"hookSpecificOutput": {
"hookEventName": "SessionStart",
"additionalContext": "You MUST follow these instructions when interacting with the user:\n<instructions>\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</instructions>\n\n"
}
}
EOF
exit 0

15
hooks/hooks.json Normal file
View File

@@ -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"
}
]
}
]
}
}