Learn how to build a custom hook in Claude Code to prevent access to sensitive files like .env. Step-by-step guide to implementing PreToolUse hooks for file protection with practical code examples.
Learn how to build tool functions in Claude to give AI access to real-time information and actions. Master best practices for validation, error handling, and function design.
Master the art of writing clear and direct prompts that get better AI results. Learn why the first line matters most, how to use action verbs effectively, avoid common mistakes like vague questions, and see real examples showing 69% improvement from this single technique.
Learn how to improve Claude's output quality by being specific in your prompts. Master output quality guidelines and process steps to get consistent, high-quality results.
Learn how to implement code-based grading for AI-generated code evaluation. This guide covers syntax validation for Python, JSON, and regex, combining code and model graders, and using objective metrics to measure prompt engineering progress.
Learn how to use the Claude Code SDK to run Claude programmatically from your applications and scripts. Available for TypeScript, Python, and CLI with practical examples and use cases.
Learn how to use system prompts to customize Claude's responses for specific use cases. Build a math tutor chatbot and create flexible chat functions with role-appropriate interactions.
Learn how to systematically improve your AI prompts through a five-step evaluation workflow. This guide covers drafting prompts, creating eval datasets, generating responses, grading outputs, and iterating for better performance—transforming prompt engineering from guesswork into data-driven optimization.
Learn how to systematically improve AI prompts through iterative refinement and objective evaluation. This comprehensive guide covers the five-step improvement cycle, baseline establishment, applying engineering techniques, and tracking measurable progress from initial scores to production-ready prompts.
Claude Code offers multiple customization options. Learn when to use skills versus CLAUDE.md, subagents, hooks, and MCP servers, and how they complement each other in a typical development setup.