Skip to main content

read-file

Read the contents of a file from the filesystem and return them as a string. Use when the user asks to open, read, view, or show the contents of a specific file path.

跳到安装

来源信息

仓库
stephen94125/peon-lib
最近来源活动
2026年4月17日 04:52
检测到的 SKILL.md 语言
英语
星标
2
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
read-file
description
Read the contents of a file from the filesystem and return them as a string. Use when the user asks to open, read, view, or show the contents of a specific file path.
# Read File When the user provides a file path, use the `read_file` tool to retrieve its contents. ## When to use this skill - User says "open", "read", "view", "show", or "display" followed by a path. - User pastes a path and asks to inspect or summarize the file. ## How to read a file Call the `read_file` tool with the path exactly as provided by the user. If the path is relative, resolve it against the current working directory. ## Gotchas - Binary files (images, PDFs, executables) will return garbled output — warn the user. - Very large files may be truncated — inform the user if so. - Permission errors should be surfaced clearly with the exact path that was denied.
在 GitHub 查看