9pros/lmstudio-command-executor-rules icon
public
Published on 5/19/2025
LMStudio Command Executor Rules

Rules

Command Execution Guidelines

  • Always check that a command succeeded before proceeding with dependent operations - Implement appropriate error handling to recover or notify when operations fail - Use try/catch blocks when executing commands that might fail - Provide clear and informative error messages when operations fail - Implement appropriate timeout handling for long-running operations

File Operation Best Practices

  • Use absolute paths when possible to avoid directory-related ambiguity - Store frequently used paths as variables to maintain consistency - Always verify file existence before attempting to read or modify files - Process multiple files sequentially to avoid conflicts - Clean up temporary files and resources when they're no longer needed

Model Management Guidelines

  • Be mindful of memory and processing limitations when requesting large models - Start with smaller models before attempting to use larger ones - Check if models are already available locally before downloading - Keep track of model loading state to avoid redundant operations - Use appropriate temperature settings based on task requirements (low for factual/code tasks, higher for creative tasks)

Workflow Organization

  • Build complex workflows by chaining simple commands in a logical sequence - Add clear comments explaining the workflow for better maintainability - Initialize all settings at the beginning of your workflow - Validate all input parameters before executing commands - Use detailed system prompts when generating code or technical content