# claude-howto | Luong NGUYEN | Knowledge Base | Instagit

A visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.

GitHub Stars: 8.8k

Repository: https://github.com/luongnv89/claude-howto

---

## Articles

### [Using Agent Hooks for Complex Verification in Claude Code: A Complete Guide](/luongnv89/claude-howto/using-agent-hooks-for-complex-verification-in-claude-code)

Master agent hooks in Claude Code for complex verification. Spawn sub-agents for multi-step reasoning and tool execution. Get structured JSON decisions to block or approve workflows.

- Tags: how-to-guide
- Published: 2026-03-30

### [Persisting Environment Variables Across Sessions with Claude Code Hooks: A Complete Guide](/luongnv89/claude-howto/persisting-environment-variables-across-sessions-with-claude-code-hooks)

Learn to persist environment variables across sessions using Claude Code hooks and CLAUDE_ENV_FILE. This guide shows how to export variables for continuous availability.

- Tags: how-to-guide
- Published: 2026-03-30

### [Configuring HTTP Webhooks as Hooks in Claude Code: A Complete Guide](/luongnv89/claude-howto/configuring-http-webhooks-as-hooks-in-claude-code)

Learn to configure HTTP webhooks in Claude Code. Integrate real-time with CI, monitoring, and validation services using JSON payloads for tool events.

- Tags: how-to-guide
- Published: 2026-03-30

### [Using Subagent Hooks for Validation in Claude Code: A Complete Security Guide](/luongnv89/claude-howto/using-subagent-hooks-for-validation-in-claude-code)

Secure your Claude Code with subagent hooks. This guide explains how these scripts intercept prompts and tool use, blocking dangerous operations for enhanced security.

- Tags: how-to-guide
- Published: 2026-03-30

### [Claude Code Configuration: Project-Specific vs User-Specific Settings Explained](/luongnv89/claude-howto/creating-project-specific-versus-user-specific-configurations-in-claude-code)

Master Claude Code configuration with project-specific vs user-specific settings. Understand the hierarchy and control your AI code environment effectively. Learn how settings.json and settings.local.json work.

- Tags: how-to-guide
- Published: 2026-03-30

### [Tracking Context and Token Usage with Claude Code Hooks](/luongnv89/claude-howto/tracking-context-and-token-usage-with-claude-code-hooks)

Track Claude token usage and context effortlessly with code hooks. Intercept events, calculate deltas, and output stats without workflow disruption. Learn how.

- Tags: how-to-guide
- Published: 2026-03-30

### [Configuring Claude Code Hooks for Specific Tools: A Complete Implementation Guide](/luongnv89/claude-howto/configuring-claude-code-hooks-for-specific-tools)

Implement Claude Code hooks to automate scripts for specific tools like Write, Bash, or Read. Enforce security, format code, and validate commands automatically.

- Tags: how-to-guide
- Published: 2026-03-30

### [Integrating GitHub MCP with Claude Code: Complete Setup and Usage Guide](/luongnv89/claude-howto/integrating-github-mcp-with-claude-code)

Learn to integrate GitHub MCP with Claude Code using a local stdio server for direct repository interaction via slash commands. Complete setup and usage guide available.

- Tags: how-to-guide
- Published: 2026-03-30

### [Securing Claude Code Hooks and Preventing Dangerous Commands: A Complete Guide](/luongnv89/claude-howto/securing-claude-code-hooks-and-preventing-dangerous-commands)

Learn to secure Claude Code hooks and prevent dangerous commands. This guide explains how to use validation scripts to block malicious prompts, shell commands, and leaked secrets for enhanced security.

- Tags: how-to-guide
- Published: 2026-03-30

### [Creating Prompt-Based Hooks for Task Verification in Claude Code](/luongnv89/claude-howto/creating-prompt-based-hooks-for-task-verification-in-claude-code)

Automate task verification in Claude Code using prompt-based hooks. Learn how to intercept session events and evaluate custom LLM prompts for seamless validation.

- Tags: how-to-guide
- Published: 2026-03-30

### [Debugging Issues with Claude Code Hook Execution: A Complete Troubleshooting Guide](/luongnv89/claude-howto/debugging-issues-with-claude-code-hook-execution)

Fix Claude Code hook execution errors by verifying JSON configuration, script executability, and stdin/JSON handling. Learn troubleshooting steps for common issues.

- Tags: how-to-guide
- Published: 2026-03-30

### [Running Claude Code in Headless or CI Mode: The Complete Print Mode Guide](/luongnv89/claude-howto/running-claude-code-in-headless-or-ci-mode)

Master running Claude Code in headless or CI mode using the Print mode with the claude -p command. Execute prompts non-interactively for automation and CI/CD pipelines.

- Tags: how-to-guide
- Published: 2026-03-30

### [Setting Up Background Tasks in Claude Code: Complete Configuration Guide](/luongnv89/claude-howto/setting-up-background-tasks-in-claude-code)

Master background tasks in Claude Code with this configuration guide. Run tests, builds, and deployments asynchronously without blocking your chat.

- Tags: how-to-guide
- Published: 2026-03-30

### [How to Enable and Use Planning Mode in Claude Code: A Complete Guide](/luongnv89/claude-howto/how-to-enable-and-use-planning-mode-in-claude-code)

Master Claude Code planning mode a powerful two-phase workflow. Generate detailed implementation plans and approve file changes before execution. Get the complete guide today.

- Tags: how-to-guide
- Published: 2026-03-30

### [Understanding Checkpoints and Rewind Functionality in Claude Code: A Complete Guide](/luongnv89/claude-howto/understanding-checkpoints-and-rewind-functionality-in-claude-code)

Master Claude Code's checkpoint and rewind functionality. Learn how to save and restore development sessions automatically with this complete guide from luongnv89/claude-howto.

- Tags: deep-dive
- Published: 2026-03-30

### [How to Create and Utilize Skills in Claude Code: A Complete Guide](/luongnv89/claude-howto/how-to-create-and-utilize-skills-in-claude-code)

Learn how to create and utilize skills in Claude Code. Build reusable expertise packages that auto-invoke or respond to manual commands with this comprehensive guide.

- Tags: how-to-guide
- Published: 2026-03-30

### [Creating Custom Subagents for Specific Tasks in Claude Code: A Complete Guide](/luongnv89/claude-howto/creating-custom-subagents-for-specific-tasks-in-claude-code)

Learn to create custom subagents in Claude Code for specific tasks. Split complex workflows with isolated context, custom prompts, and restricted tools for efficient AI assistance. Read our complete guide.

- Tags: how-to-guide
- Published: 2026-03-30

### [Using MCP Servers with Claude Code: Configuration, Workflows, and Security Best Practices](/luongnv89/claude-howto/using-mcp-servers-with-claude-code)

Learn to integrate MCP servers with Claude Code for live access to GitHub, databases, and Slack. Discover configuration, workflows, and security best practices in this technical guide.

- Tags: how-to-guide
- Published: 2026-03-30

### [How to Write and Configure Claude Code Hooks: A Complete Developer Guide](/luongnv89/claude-howto/how-to-write-and-configure-claude-code-hooks)

Master Claude Code hooks. This guide details writing and configuring hooks for event interception, validation, formatting, and security using JSON contracts and multiple execution types. Boost your Claude integrations.

- Tags: how-to-guide
- Published: 2026-03-30

### [Setting Up Claude Code Project Memory Using CLAUDE.md](/luongnv89/claude-howto/setting-up-claude-code-project-memory-using-claude-md)

Learn to set up Claude Code project memory using CLAUDE.md for persistent, version-controlled AI standards. Ensure consistent team assistance across all sessions effortlessly.

- Tags: how-to-guide
- Published: 2026-03-30

### [How to Make Custom Slash Commands in Claude Code: A Complete Guide to the Skills Architecture](/luongnv89/claude-howto/how-to-make-custom-slash-commands-in-claude-code)

Learn how to make custom slash commands in Claude Code by building Skills. This guide covers the Skills architecture and implementation for custom commands, enhancing your workflow.

- Tags: how-to-guide
- Published: 2026-03-30

