Back to guide/General Productivity

Context Management

Pre-loading context files and verifying comprehension ensures Cline understands the existing patterns before writing new code. This produces consistent output that matches your codebase.

cline-tipsfile_1why_file_1file_2
Edit View
Prompt
Before starting, read these files to understand the context:\n\n1. {{file_1}}{{why_file_1}}\n2. {{file_2}}{{why_file_2}}\n3. {{file_3}}{{why_file_3}}\n\nAfter reading, confirm your understanding by answering:\n- What is the purpose of each file?\n- How do they relate to each other?\n- What patterns/conventions do they follow?\n\nThen, using this context, {{task_description}}.\n\nImportant: The code you write must follow the same patterns you observed in the existing files — same naming conventions, same error handling style, same import patterns. If you're unsure about a convention, ask rather than guessing.

Variables to customize

{{file_1}}{{why_file_1}}{{file_2}}{{why_file_2}}{{file_3}}{{why_file_3}}{{task_description}}

Why this prompt works

Pre-loading context files and verifying comprehension ensures Cline understands the existing patterns before writing new code. This produces consistent output that matches your codebase.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.