prompt engineering hooks

51 tagged prompt engineering, measured the same way as everything else here.

Browse within: roadmap 5

PreToolUse

01

promptfoo/promptfoo

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From promptfoo/promptfoo.

25k 2d ago A tokens not measured original MIT

PostToolUse

02

promptfoo/promptfoo

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, running an inline shell check. From promptfoo/promptfoo.

25k 2d ago A tokens not measured original MIT

SessionStart

03

0xmariowu/AgentLint

Hook

Runs when a session starts, running an inline shell check. From 0xmariowu/AgentLint.

53 1mo ago A tokens not measured original MIT

PostToolUse

04

xiaobei930/cc-best

Hook

Runs after a tool call finishes for Write, Edit, Write, Edit, Write, Edit, Bash, Write, Edit, Write and Edit tool calls, executing format-file.js, auto-archive.js, observe-patterns.js, suggest-compact.js, check-console-log.js and typescript-check.js via node (6 commands). From xiaobei930/cc-best.

50 2mo ago A tokens not measured original MIT

UserPromptSubmit

05

xiaobei930/cc-best

Hook

Runs when you submit a prompt, before the agent sees it, executing user-prompt-submit.js via node. From xiaobei930/cc-best.

50 2mo ago A tokens not measured original MIT

SessionStart

06

xiaobei930/cc-best

Hook

Runs when a session starts, executing session-check.js via node. From xiaobei930/cc-best.

50 2mo ago A tokens not measured original MIT

SessionStart

07

rp1-run/rp1

Hook

Runs when a session starts, executing check-update.sh with --no-open and --format (2 commands). From rp1-run/rp1.

38 26d ago A tokens not measured original Apache-2.0

SessionStart

08

V-Songbird/foreman

Hook

Runs when a session starts on ^(startup and clear)$, executing session-start.js via node. From V-Songbird/foreman.

33 2d ago A tokens not measured original MIT

PreToolUse

09

V-Songbird/foreman

Hook

Runs before the agent uses a tool for ^(Edit and Write)$ tool calls, executing guard-roadmap-edit.js via node. From V-Songbird/foreman.

33 2d ago A tokens not measured original MIT

PostToolUse

10

V-Songbird/foreman

Hook

Runs after a tool call finishes for ^(Bash, PowerShell)$, ^(Read, Edit and Write)$ tool calls, executing post-commit.js, context-fill.js and ledger-recall.js via node (3 commands). From V-Songbird/foreman.

33 2d ago A tokens not measured original MIT

UserPromptSubmit

11

nidhinjs/prompt-mini

Hook

Runs when you submit a prompt, before the agent sees it, executing evaluate-prompt.py via python3. From nidhinjs/prompt-mini.

29 5mo ago A tokens not measured original MIT

PostToolUse

12

TomasHer/prompting-blueprints

Hook Claude Code

Runs after a tool call finishes for Bash tool calls, executing build-recent-additions.py with --quiet. From TomasHer/prompting-blueprints.

20 yesterday A tokens not measured original MIT

Stop

13

lizhiyao/oh-my-knowledge

Hook Claude Code

Runs when the agent finishes a response, running an inline shell check. From lizhiyao/oh-my-knowledge.

18 yesterday A tokens not measured original MIT

PreToolUse

15

GreatMark/fable-field-guide-skills

Hook

Runs before the agent uses a tool for Bash tool calls, executing merge-gate.sh. From GreatMark/fable-field-guide-skills.

9 23d ago A tokens not measured original MIT

SessionStart

16

DYAI2025/Plumbline

Hook Claude Code

Runs when a session starts, executing session-start.sh. From DYAI2025/Plumbline.

6 9d ago A tokens not measured

PostToolUse

17

justinjdev/fellowship

Hook Claude Code

Runs after a tool call finishes for Edit, Write, NotebookEdit and Bash tool calls, running shire rebuild --stdin. From justinjdev/fellowship.

5 18d ago A tokens not measured original Apache-2.0

SessionStart

18

justinjdev/fellowship

Hook

Runs when a session starts on startup and resume, executing ensure-binary.sh. From justinjdev/fellowship.

5 18d ago A tokens not measured original Apache-2.0

PreToolUse

19

justinjdev/fellowship

Hook

Runs before the agent uses a tool for Edit, Write, NotebookEdit, Edit, Write, Bash, Agent, Skill, NotebookEdit, SendMessage and TaskUpdate tool calls, running an inline shell check (4 commands). From justinjdev/fellowship.

5 18d ago A tokens not measured original Apache-2.0

SessionStart

20

baek-labs/hames

Hook Claude Code

Runs when a session starts, executing session_capture.js via node. From baek-labs/hames.

5 1mo ago A tokens not measured original MIT

PreToolUse

21

baek-labs/hames

Hook Claude Code

Runs before the agent uses a tool for Write, Edit, MultiEdit, NotebookEdit, Bash, Write, Edit, MultiEdit, NotebookEdit, Bash, Write, Edit, Bash, Write, Edit, MultiEdit, NotebookEdit, Bash and Write tool calls, executing context_verifier.js, workspace_guard.js, compliance_auditor.js, task_contract_guard.js and…

5 1mo ago A tokens not measured copy · 47% MIT

PostToolUse

22

baek-labs/hames

Hook Claude Code

Runs after a tool call finishes for Edit, Write, Edit, Write, Write, Edit, MultiEdit, NotebookEdit, Bash, Write and Edit tool calls, executing verify_edit_surgery.js, verify_tasks.js, update_arsenal_permissions.js, task_contract_evidence.js and session_logger.js via node (5 commands). From baek-labs/hames.

5 1mo ago A tokens not measured original MIT

UserPromptSubmit

23

Soumya7681/prompt-fixer

Hook

Runs when you submit a prompt, before the agent sees it, executing prompt-check.sh. From Soumya7681/prompt-fixer.

3 2mo ago A tokens not measured

PreToolUse

24

ralfyishere/rules-with-receipts

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, executing hygiene-gate.sh. From ralfyishere/rules-with-receipts.

2 1mo ago A tokens not measured original MIT