mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 14:16:34 +09:00
- Introduced detailed guidelines for `apply_diff`, `read_file`, `write_to_file`, `insert_content`, and `search_and_replace` operations to prevent common errors and ensure best practices. - Created a new index for tool usage guidelines to facilitate easy navigation and reference. - Established rules for preventing apply_diff errors, emphasizing the importance of avoiding literal diff markers in code examples. - Updated `.roomodes` with new roles and instructions for various development tasks, including architecture design, coding, testing, debugging, security review, documentation, integration, and deployment monitoring.
1.1 KiB
1.1 KiB
Tool Usage Guidelines Index
To prevent common errors when using tools, refer to these detailed guidelines:
File Operations
- File Operations Guidelines - Guidelines for read_file, write_to_file, and list_files
Code Editing
- Code Editing Guidelines - Guidelines for apply_diff
- Search and Replace Guidelines - Guidelines for search_and_replace
- Insert Content Guidelines - Guidelines for insert_content
Common Error Prevention
- apply_diff Error Prevention - Specific guidelines to prevent errors with apply_diff
Key Points to Remember:
- Always include all required parameters for each tool
- Verify file existence before attempting modifications
- For apply_diff, never include literal diff markers in code examples
- For search_and_replace, always include both search and replace parameters
- For write_to_file, always include the line_count parameter
- For insert_content, always include valid start_line and content in operations array