Skip to content
Back to skills

003 Name Skill 1794e3a8

ASecurity

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

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsgoshell

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 003-name-skill_1794e3a8 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 003 Name Skill 1794e3a8?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 003 Name Skill 1794e3a8
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-003-name-skill-1794e3a8/badge)](https://www.skillsdirectory.com/skills/tools-only-003-name-skill-1794e3a8)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: write-file
description: Write content to file, creating new or overwriting existing. When you need to create new files, update file content, or save generated code/data.
system: true
handler: filesystem
tool-name: write_file
category: File System
---

# Write File

写入文件内容。

## Parameters

| 参数 | 类型 | 必填 | 说明 |
|-----|------|-----|------|
| path | string | 是 | 文件路径 |
| content | string | 是 | 文件内容 |

## Examples

**创建配置文件**:
```json
{
  "path": "config.json",
  "content": "{\"debug\": true}"
}
```

**写入代码文件**:
```json
{
  "path": "hello.py",
  "content": "print('Hello, World!')"
}
```

## Notes

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

## Related Skills

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…