Update Text File
This skill updates content within existing text files, streamlining document revisions and saving time on manual edits.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add update-text-file npx -- -y @trustedskills/update-text-file
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"update-text-file": {
"command": "npx",
"args": [
"-y",
"@trustedskills/update-text-file"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows an AI agent to modify existing text files. It can be used to add, remove, or replace lines within a file based on provided instructions. The skill is designed to work with plain text files and supports basic editing operations.
When to use it
- Automating repetitive edits: Quickly update configuration files with new settings.
- Generating log entries: Append timestamped messages to a log file.
- Updating data in simple databases: Modify records stored in comma-separated value (CSV) or similar text formats.
- Creating dynamic reports: Generate reports by adding information to an existing template file.
Key capabilities
- File modification
- Line addition
- Line removal
- Line replacement
Example prompts
- "Append 'Error message' to the end of my_log.txt."
- "Replace the line containing 'old value' with 'new value' in config.ini."
- "Remove the line starting with '#comment' from settings.txt."
Tips & gotchas
The skill requires a clear understanding of the file structure and the exact lines to be modified. Incorrect instructions can lead to unintended changes, so always double-check your prompts before execution.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.