Custom Instructions Template
A comprehensive custom instructions file acts as a persistent context for every Cline session. Paste this into Cline's custom instructions setting and it will follow your conventions automatically.
# Project Custom Instructions for Cline\n\n## Tech Stack\n- Framework: {{framework}}\n- Language: {{language}} (strict mode)\n- Styling: {{styling}}\n- Database: {{database}}\n- ORM: {{orm}}\n\n## Code Conventions\n- File naming: {{file_naming_convention}}\n- Component pattern: {{component_pattern}}\n- State management: {{state_management}}\n- Error handling: Always use try/catch, never swallow errors silently\n\n## Rules\n- Never use \`any\` type — find or create the proper type\n- Always add JSDoc comments for exported functions\n- Never modify files outside the scope of the current task\n- Run {{lint_command}} after any code change\n- Prefer editing existing files over creating new ones\n- Ask before installing new dependencies\n\n## Project Structure\n{{directory_structure_summary}}
Variables to customize
Why this prompt works
A comprehensive custom instructions file acts as a persistent context for every Cline session. Paste this into Cline's custom instructions setting and it will follow your conventions automatically.
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.