Openakita write-file

Write content to file, creating new or overwriting existing. When you need to create new files, update file content, or save generated code/data.

install
source · Clone the upstream repo
git clone https://github.com/openakita/openakita
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openakita/openakita "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/system/write-file" ~/.claude/skills/openakita-openakita-write-file && rm -rf "$T"
manifest: skills/system/write-file/SKILL.md
source content

Write File

写入文件内容。

Parameters

参数类型必填说明
pathstring文件路径
contentstring文件内容

Examples

创建配置文件:

{
  "path": "config.json",
  "content": "{\"debug\": true}"
}

写入代码文件:

{
  "path": "hello.py",
  "content": "print('Hello, World!')"
}

Notes

  • 会覆盖已存在的文件
  • 自动创建父目录(如果不存在)
  • 使用 UTF-8 编码

Related Skills

  • read-file
    : 读取文件
  • run-shell
    : 执行脚本