Openakita glob

Find files by glob pattern recursively. Results sorted by modification time (newest first). Auto-skips .git, node_modules and other common ignore directories.

install
source · Clone the upstream repo
git clone https://github.com/openakita/openakita
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openakita/openakita "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/system/glob" ~/.claude/skills/openakita-openakita-glob && rm -rf "$T"
manifest: skills/system/glob/SKILL.md
source content

Glob

按文件名模式递归搜索文件。

Parameters

参数类型必填说明
patternstringGlob 模式(如 ".py"、"**/test_.ts")
pathstring搜索根目录(默认当前目录)

Examples

查找所有 Python 文件:

{"pattern": "*.py"}

查找测试文件:

{
  "pattern": "test_*.py",
  "path": "tests/"
}

查找配置文件:

{"pattern": "*config*"}

Notes

  • 不以
    **/
    开头的 pattern 会自动加
    **/
    前缀进行递归搜索
  • 自动跳过 .git、node_modules、pycache 等目录
  • 结果按修改时间降序排序(最新的在前)
  • 返回相对路径列表

Related Skills

  • grep
    : 按内容搜索文件
  • list-directory
    : 列出目录内容
  • read-file
    : 读取找到的文件