think-short-setup
Think-Short
Installer/configurator skill. It wires three self-contained hooks (SessionStart, UserPromptSubmit, SubagentStart) that inject a terse-output prompt — or configures/removes them. No profiles and no project-level config: the only state is the copied
think-short-prompt.mdplus an ephemeral per-session counter in the OS temp dir (os.tmpdir()/brewtools-think-short/<session_id>.think-short-counter), auto-pruned. The hooks own all runtime behavior. This skill only decides mode and project vs global, then delegates the file work to thebrewcode:hook-creatoragent following the runbook.
What the hooks do (informational — skill does NOT implement)
| Hook | Behavior |
|---|---|
| SessionStart | inject the full terse prompt + reset the per-session counter |
| UserPromptSubmit | inject the full prompt every 10th user prompt (10/20/30…, not the 1st) |
| SubagentStart | inject the full terse prompt into spawned subagents (additionalContext accumulates across hooks — no coexistence/yield logic needed) |
All three read think-short-prompt.md from their OWN directory and emit {} when it cannot be read. There is no enabled flag and no config file to add one to — so disable renames the copied prompt to think-short-prompt.md.disabled: the hooks stay wired, find no prompt, and every event becomes a genuine no-op. enable renames it back. This is the hooks' existing fail-open path, not new machinery.
think-short-prompt.mdis copied into the target at install — an existing install keeps its old text forever. After the prompt changes (incl. a brewtools update), runupgradeon that target to pick it up.