Назад към всички

code_skill

// 代码库发现与导航。提供 grep(内容搜索)、glob(文件名匹配)、list(目录列表),与 base_skill 的 read/edit/write 配合使用。

$ git log --oneline --stat
stars:5
forks:1
updated:March 4, 2026
SKILL.mdreadonly
SKILL.md Frontmatter
namecode_skill
description代码库发现与导航。提供 grep(内容搜索)、glob(文件名匹配)、list(目录列表),与 base_skill 的 read/edit/write 配合使用。

Code Skill

在 base_skill 的 read / edit / write / bash 之外,提供代码发现类工具,便于按模式查找文件与内容。

Tools

ToolUse
grep按正则搜索文件内容,返回路径与行号。用于找函数、常量、错误码等。
glob按 glob 模式匹配文件名(如 **/*.tsx),返回文件路径列表。
list列出目录结构,可忽略 node_modules 等。不了解结构时先用 list 或 glob。

Guidelines

  • 已知内容要搜 → 用 grep(pattern + 可选 path/include)。
  • 已知文件名模式 → 用 glob(pattern + 可选 path)。
  • 想先看目录结构 → 用 list(path 可选,ignore 可选)。
  • 编辑前先用 read(base_skill)读文件;改动用 editwrite(base_skill)。
  • 可并行调用多个 grep/glob 以批量探索。