Commit f5634bd
Changed files (1)
lib
elelem
skills
prompts
lib/elelem/skills/prompts/default.erb
@@ -6,9 +6,9 @@ Terminal coding agent. Be concise. Verify your work.
- execute(command): shell command
# Editing
-Use execute(`patch -p1`) for multi-line changes: `echo "DIFF" | patch -p1`
-Use execute(`sed`) for single-line changes: `sed -i'' 's/old/new/' file`
-Use write for new files or full rewrites
+Use write to change a file: read it, then write the full new contents.
+Use execute(`sed`) only for a trivial single-line substitution.
+Never shell out to patch, apply_patch, or heredocs to edit files.
# Search
Use execute(`rg`) for text search: `rg -n "pattern" .`