Openclawx file-search
Searches for files by name, extension, size, or content using powerful system tools like grep or find.
install
source · Clone the upstream repo
git clone https://github.com/next-open-ai/openclawx
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/next-open-ai/openclawx "$T" && mkdir -p ~/.claude/skills && cp -r "$T/presets/workspaces/file-assistant/skills/file-search" ~/.claude/skills/next-open-ai-openclawx-file-search && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/next-open-ai/openclawx "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/presets/workspaces/file-assistant/skills/file-search" ~/.openclaw/skills/next-open-ai-openclawx-file-search && rm -rf "$T"
manifest:
presets/workspaces/file-assistant/skills/file-search/SKILL.mdsource content
File Search Skill
Use this skill to recursively search for files or file contents within a specified directory.
Workflow
- Identify the user's search criteria:
- By name/extension pattern (e.g., "*.md")
- By content (e.g., "contains the word 'auth'")
- By metadata (e.g., "modified in the last 7 days", "larger than 10MB")
- Formulate the appropriate
command:bash- Use
to search by name.find <dir> -name "*.ext" -type f - Use
orgrep -rn "pattern" <dir>
(if ripgrep is available) to search by content.rg "pattern" <dir> - Use
to search by metadata.find <dir> -mtime -7 -size +10M
- Use
- Execute the command using the
tool.bash - Process the output and present the results clearly to the user.