AgentSkillsCN

skill-file-read

读取与技能捆绑的文件(来自references/、scripts/或assets/目录)。当技能说明中引用了你需要读取的外部文件时使用,例如:“请参阅references/FORMS.md以获取字段定义”。

SKILL.md
--- frontmatter
name: skill-file-read
description: >
  Read a file bundled with a skill (from its references/, scripts/, or assets/ directory).
  Use when a skill's instructions reference an external file you need to read, e.g.
  "see references/FORMS.md for field definitions".
license: Apache-2.0
metadata:
  tier: builtin
  mutating: "false"
  confirmation-required: "false"
  params: '{"skill": {"type": "string", "description": "The skill name (kebab-case)"}, "path": {"type": "string", "description": "Relative path within the skill directory, e.g. references/FORMS.md"}}'

Instructions

Read a file from a skill's auxiliary directory (references/, scripts/, or assets/).

Parameters

  • skill (string, required): The skill name in kebab-case (e.g. memory-read)
  • path (string, required): Relative path within the skill directory (e.g. references/FORMS.md)

Behavior

  • Validates the path stays within the skill directory (no .. traversal)
  • Returns the file contents as plain text
  • Returns a clear error if skill or file is not found

Example

  • "What fields does the form have?" -> read references/FORMS.md from the relevant skill