Tagged articles

PreToolUse

2 articles · Page 1 of 1
Su San Talks Tech
Su San Talks Tech
Jun 16, 2026 · Artificial Intelligence

Mastering Claude Code Hooks and SDK: A Step‑by‑Step Guide

This article explains how Claude Code hooks work, walks through configuring PreToolUse and PostToolUse hooks, shows concrete JSON and Node.js examples for protecting sensitive files, automating type checks, preventing duplicate queries, and demonstrates how the Claude Code SDK can be integrated into larger AI‑driven development workflows.

AI automationClaude CodeHooks
0 likes · 20 min read
Mastering Claude Code Hooks and SDK: A Step‑by‑Step Guide
Java One
Java One
Mar 31, 2026 · Artificial Intelligence

Master Claude Code Hooks: PreToolUse & PostToolUse for Secure AI Workflows

This guide explains how to use Claude Code hooks—PreToolUse and PostToolUse—to run custom commands before or after tool execution, configure them in global or project settings, and implement practical examples such as blocking .env file access, type‑checking TypeScript, and preventing duplicate queries.

AI automationClaude CodeHooks
0 likes · 20 min read
Master Claude Code Hooks: PreToolUse & PostToolUse for Secure AI Workflows