Glob

Find files matching a glob pattern in the workspace

tashfeenahmed Updated

File contents

Glob Skill

Find files matching a glob pattern in the workspace.

When to Use

Use the glob skill for:

  • Finding files by extension: **/*.ts, **/*.test.ts
  • Locating config files: **/tsconfig.json, **/.env*
  • Scoped searches: Find files within a subdirectory
  • Multiple extensions: **/*.{ts,js,tsx,jsx}

Input Format

{
  "pattern": "**/*.ts",
  "path": "src"
}

Parameters

Parameter Type Required Default Description
pattern string Yes - Glob pattern (*, **, ?, {a,b} supported)
path string No . Directory to search in

Output Format

{
  "success": true,
  "output": "src/index.ts\nsrc/utils/helper.ts",
  "exitCode": 0
}

Limitations

  • Maximum 200 results returned
  • Respects .gitignore rules
  • Skips .git/, node_modules/, and binary files

tashfeenahmed/scallopbot/tree/main/src/skills/bundled/glob commit aa440fdf96

Frequently asked questions

npx skillmds@latest add tashfeenahmed/glob