write-file
星标12
分支0
更新时间2026年4月3日 18:13
Write content to a file, creating it if it doesn't exist
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Write content to a file, creating it if it doesn't exist
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Search the web for up-to-date information using Tavily API
Press a combination of keys simultaneously (e.g., Ctrl+C, Alt+Tab)
Press a single key on the keyboard
Perform a mouse left-click at specified screen coordinates
Perform a mouse double-click at specified screen coordinates
Perform a mouse right-click at specified screen coordinates
| name | write-file |
| description | Write content to a file, creating it if it doesn't exist |
| context | same |
| args | [{"name":"file_path","description":"Path to the file to write","required":true},{"name":"content","description":"Content to write to the file","required":true},{"name":"append","description":"If true, append to file instead of overwriting","required":false}] |
| tags | ["file","write","create"] |
| category | system |
| version | 1.0.0 |
| author | cognitrix |
| allowed-tools | ["Write"] |
| safety | {"risk-level":"medium"} |
Write content to a file at $(arg file_path) using the Write tool.
<filepath> content="Hello world"
<filepath> content="Line 1\nLine 2\nLine 3"
<filepath> content="New content" append=true
~ for home directory paths