AgentSkillsCN

load-context

从任意路径读取一个或多个文件,并将文件内容纳入对话,以供随时查阅。

SKILL.md
--- frontmatter
name: load-context
description: Read one or more files from any path and pull their contents into the conversation for reference.
user-invocable: true
disable-model-invocation: true
allowed-tools: Read, Glob, Bash
argument-hint: <path> [path2] [path3...]
agent: planner

Read the specified files and add their contents to the conversation context.

Arguments: $ARGUMENTS

For each argument:

  1. If the path is a file, read it in full.
  2. If the path is a directory, list its contents and read any README or documentation files inside it.
  3. If the path contains a glob pattern (e.g. ~/.config/**/*.toml), expand it and read matching files.
  4. Expand ~ to the user's home directory.

After reading, provide a brief summary of what was loaded (file names, line counts) so the user knows what's now in context. Do not editorialize on the file contents unless asked.