Skip to content

Claude Code Prompts Guide

This guide provides best practices for writing effective prompts in Claude Code. Full translation in progress.

Key Principles

  1. Be Specific: Clear and detailed prompts yield better results
  2. Provide Context: Include relevant file references and project details
  3. Use Structured Approach: Break complex tasks into steps
  4. Iterate and Refine: Adjust prompts based on results

Common Prompt Patterns

Code Analysis

Analyze the code in @file.js and identify potential issues

Refactoring

Refactor @component.tsx to use modern React patterns while maintaining functionality

Documentation

Generate comprehensive documentation for the functions in @utils.py

Full translation coming soon...