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.
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
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.
Related prompts
Forcing the agent to plan before acting prevents premature execution and wasted steps. Explicit dependency mapping enables parallel execution and catches logical gaps early.
Tool Selection AgentThe ReAct pattern (Reason + Act) creates an explicit reasoning trace that improves tool selection accuracy. The error-handling rule prevents infinite retry loops.
Prompt CompressorExplicitly requiring all functional requirements to be preserved prevents the model from over-compressing and losing critical instructions.
Memory Management AgentExplicit memory read/write instructions create agents that improve over time. Categorization keeps memories organized, and the deduplication rule prevents context bloat.