glob

Locate and list files by glob patterns using Go's filepath.Glob semantics.

6|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/Acosmi/CrabClaw --skill glob
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glob
Source: https://github.com/Acosmi/CrabClaw/tree/main/docs/skills/tools/fs/glob
Command: npx skills add https://github.com/Acosmi/CrabClaw --skill glob

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Glob-based file discovery helps locate and list files quickly in a workspace without opening contents, reducing manual searches and time spent scrolling directories.

Core Features & Use Cases

  • Non-recursive glob matching: locate files by pattern in the specified base directory.
  • Workspace-scoped listing: returns relative file paths suitable for quick audits and batch operations.
  • Use Case: quickly identify all source files in a module or locate assets matching a naming convention.

Quick Start

Use a glob pattern to locate and list files within the workspace.

Frequently Asked Questions about glob

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I list files by extension in a workspace without reading file contents?

To list files by extension without reading contents, use glob pattern matching to locate and return relative file paths. This approach quickly identifies file paths in the workspace for batch operations without opening the files themselves.

What is the best way to find all Go files in a specific directory?

The best way to find all Go files in a directory is using non-recursive glob matching. By providing a mandatory pattern and an optional base path, it locates source files in a module and returns up to 200 relative file paths.

Does glob file search support recursive directory traversal?

No, glob file search does not support recursive directory traversal. It relies on Go's filepath.Glob semantics for non-recursive glob matching, meaning it only locates files by pattern within the explicitly specified base directory.

What are the limitations of using glob patterns for file discovery?

Limitations of using glob patterns include a maximum of 200 returned results and non-recursive matching restricted to the base directory. It also returns relative paths only and does not read or filter based on file contents.

Can I use glob matching to locate assets and then access their contents?

Yes, you can use glob matching to locate assets matching a naming convention and then integrate with read_file for content access. It returns the relative paths needed to quickly identify files before reading their contents.