askill
update-text-file

update-text-fileSafety 70Repository

Update or modify text files (poems, documents, notes, etc.) in any directory. Use this skill when the user asks to edit, update, modify, revise, or rewrite a text file, poem, document, or similar content. Supports adding new content, expanding existing text, or replacing file contents while preserving the original location.

0 stars
1.2k downloads
Updated 2/20/2026

Package Files

Loading files...
SKILL.md

Update Text File

Input Parameters

ParameterRequiredDescriptionExample
file_pathYesPath to the text file to update~/Downloads/poem.txt
update_typeNoType of update: 'add' (append content), 'expand' (add to existing), 'replace' (full rewrite), or 'edit' (modify specific sections)expand
new_contentYesThe new or additional content to write to the fileWith 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

Output

Updated text file saved to original location with confirmation message showing what was changed. File contents displayed to user for verification.

Reference Commands

find {{DIRECTORY}} -maxdepth 2 -type f \( -name "*.txt" -o -name "*.md" \)
cat {{FILE_PATH}}
cat > {{FILE_PATH}} << 'EOF'
{{NEW_CONTENT}}
EOF

Example

update the poem in my Downloads folder
edit the notes file and add more details
revise the document with new content
modify the text file to include additional paragraphs
update the markdown file in my home directory

Notes

  • Always display the original file contents before making changes to understand context
  • Use heredoc syntax (cat > file << 'EOF') to safely write multi-line content
  • Preserve the original file location and path
  • Verify changes by displaying updated contents after writing
  • Ask for clarification if update intent is ambiguous

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

75/100Analyzed 2/24/2026

A well-structured and generally complete skill for updating text files with clear procedure steps, parameter table, and examples. Scores well on clarity and reusability. Slight deduction for missing safety warnings about file overwriting and lack of tags for discoverability. Some inconsistency between required file_path parameter and step 1 about locating files.

70
85
80
85
75

Metadata

Licenseunknown
Version-
Updated2/20/2026
Publisherdalehurley

Tags

No tags yet.