update-text-file

Installation
SKILL.md

Update Text File

Input Parameters

Parameter Required Description Example
file_path Yes Path to the text file to update ~/Downloads/poem.txt
update_type No Type of update: 'add' (append content), 'expand' (add to existing), 'replace' (full rewrite), or 'edit' (modify specific sections) expand
new_content Yes The new or additional content to write to the file With wisdom guiding every choice...

Procedure

  1. Locate the target file using find command with common text file extensions (.txt, .md, .doc, etc.) or search by filename pattern
  2. Display current file contents using cat to understand what needs to be updated
  3. Ask user for clarification on desired changes if not explicitly provided (use ask_user)
  4. Write updated content to the file using cat > {{FILE_PATH}} << 'EOF' syntax, preserving the original file location
  5. Verify the update by displaying the new file contents with cat {{FILE_PATH}}
  6. Confirm successful update to the user with a summary of changes made
Installs
5
GitHub Stars
2
First Seen
Mar 1, 2026
update-text-file — dalehurley/phpbot