Terminal Command Execution
Sequential execution with error handling prevents Cline from blindly running a chain of commands where a failure in step 1 makes step 2 destructive. The pause instruction gives you control.
Run the following commands to {{goal}}:\n\n1. {{command_1}}\n2. {{command_2}}\n3. {{command_3}}\n\nFor each command:\n- Show me the command before running it\n- If the command fails, show the error output and suggest a fix before retrying\n- Do NOT run the next command until the previous one succeeds\n\nIf any command requires user input or confirmation, pause and ask me.\n\nEnvironment notes:\n- Working directory: {{working_directory}}\n- OS: {{operating_system}}\n- Required tools already installed: {{installed_tools}}
Variables to customize
Why this prompt works
Sequential execution with error handling prevents Cline from blindly running a chain of commands where a failure in step 1 makes step 2 destructive. The pause instruction gives you control.
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.