Back to guide/General Productivity

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.

cline-tipsframeworklanguagestyling
Edit View
Prompt
# 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

{{framework}}{{language}}{{styling}}{{database}}{{orm}}{{file_naming_convention}}{{component_pattern}}{{state_management}}{{lint_command}}{{directory_structure_summary}}

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.