dalehurley/phpbot

create-text-file

Create and write text content to a file in a specified directory.

First seen Mar 1, 2026

Installation

$ npx skills add dalehurley/phpbot --skill create-text-file

Summary

  • Create and write text content to a file in a specified directory.
  • Use this skill when the user asks to create a file, write content to a file, save text, generate a document, or write a poem, story, script, or any text-based content to disk.
  • Supports any text format and custom file paths.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from dalehurley/phpbot · top by installs.

npx skills add dalehurley/phpbot

Browse all from dalehurley/phpbot

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2
License MIT
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,878 B
  • docs SUMMARY.md 313 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 6 installs

SKILL.md

Create Text File

Input Parameters

Parameter Required Description Example
file_path Yes Full path where the file should be created, including filename and extension ~/Downloads/poem.txt
content Yes The text content to write to the file In circuits deep and code so bright...

Procedure

  1. Get the target directory path and file name from user if not provided (use ask_user)
  2. Get the text content to write from user if not provided (use ask_user)
  3. Create the file with content using: cat > {{FILE_PATH}} << 'EOF'\n{{CONTENT}}\nEOF
  4. Verify file creation and display file details: ls -lh {{FILEPATH}} && wc -l {{FILEPATH}}
  5. Report success with file location, size, and line count to user

Output

A text file created at the specified path. Returns file location, size in bytes, and line count.

Reference Commands

cat > {{FILE_PATH}} << 'EOF'
{{CONTENT}}
EOF
ls -lh {{FILE_PATH}} && wc -l {{FILE_PATH}}

Example

create a poem in the Downloads directory
write a short story and save it to my documents folder
generate a script file and save it to the home directory
create a text file with my notes
save this content to a file in Downloads

Notes

  • Ensure the target directory exists before creating the file
  • Use tilde (~) for home directory paths
  • File extension determines the file type (.txt, .md, .py, etc.)
  • Content with special characters should be properly escaped or use heredoc syntax