Skip to content
Writing
Hook

Hooks

What awesome-claude-output-styles runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
awesome-claude-output-styles
1331 skill1 command1 hook
Install
$ npx -y skills add smixs/awesome-claude-output-styles --agent claude-code

Ships with awesome-claude-output-styles. Installing the plugin gets these hooks.

Where it lives

  • hooks/style-reminder.shGitHub
    Read the script
    #!/bin/sh
    # style-reminder — a UserPromptSubmit hook that keeps custom output styles enforced.
    #
    # Claude Code injects a per-turn reminder ("<Name> output style is active.
    # Remember to follow the specific guidelines for this style.") ONLY for its
    # built-in styles (Proactive, Explanatory, Learning). Custom styles are placed
    # in the system prompt once and never reinforced, so their voice fades in long
    # sessions. This hook emits the exact same reminder line for whatever custom
    # style is active, closing that gap.
    #
    # Install: install.sh --enforce   (or copy this file and register it under
    # hooks.UserPromptSubmit in ~/.claude/settings.json)
    
    settings="${CLAUDE_DIR:-$HOME/.claude}/settings.json"
    [ -f "$settings" ] || exit 0
    
    if command -v python3 >/dev/null 2>&1; then
      style=$(python3 -c 'import json,sys
    try:
        print(json.load(open(sys.argv[1])).get("outputStyle") or "")
    except Exception:
        pass' "$settings")
    else
      style=$(sed -n 's/.*"outputStyle"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' "$settings" | head -1)
    fi
    
    # Built-ins already get this reminder from Claude Code itself.
    case "$style" in
      ""|default|Proactive|Explanatory|Learning) exit 0 ;;
    esac
    
    echo "$style output style is active. Remember to follow the specific guidelines for this style."
    

Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.

Ships withawesome-claude-output-styles

Make Claude talk like a human: 17 installable output styles for Claude Code, built on credited methodologies

Get the whole plugin
Stats
133
Stars
9
Forks
Maintained
Maintenance
Python
Language
2mo ago
Last commit
2mo ago
Created
7h ago
Added

Repo: smixs/awesome-claude-output-styles