بنقرة واحدة
file-create
A skill for reliably creating files using shell commands
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
A skill for reliably creating files using shell commands
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use for math calculations.
Use for date/time.
Rules to minimize token usage
Native macOS built-in screen capture. Saves directly to ~/Desktop using exact system timestamp naming, so agent can automatically detect and read the latest screenshot without manual file paths. macOS only.
Maintain a living context document (plan.md) as a self-note to preserve the original agenda, track progress, and prevent context drift during complex tasks
A meta-skill to create new skills in the default skill directory with proper YAML front matter
| name | file-create |
| description | A skill for reliably creating files using shell commands |
Reliably create files via shell commands, avoiding quoting/escaping/redirection pitfalls.
Use this when a tool's
createorwriteprimitive isn't available, or when content has special characters that break redirection.
Method 1: tee (recommended — handles special chars, quotes, newlines)
process:
command: "tee"
args: ["/path/to/file.txt"]
stdin: "file content here"
Method 2: here-doc (alternative for multiline content)
process:
command: "sh"
args: ["-c", "cat > /path/to/file.txt << 'EOF'\ncontent here\nEOF"]
Method 3: printf (for escape sequences / precise formatting)
process:
command: "sh"
args: ["-c", "printf '%s' '$CONTENT' > /path/to/file.txt"]
Create parent dirs first with -p:
process:
command: "mkdir"
args: ["-p", "/parent/dir"]
# 1. Create directory
process:
command: "mkdir"
args: ["-p", "~/.agents/skills/my-skill"]
# 2. Write file
process:
command: "tee"
args: ["~/.agents/skills/my-skill/SKILL.md"]
stdin: "# my-skill\n\n## Usage\n..."
# 3. Verify
process:
command: "ls"
args: ["-la", "~/.agents/skills/my-skill/"]