finding-files
17
总安装量
10
周安装量
#20495
全站排名
安装命令
npx skills add https://github.com/iota9star/my-skills --skill finding-files
Agent 安装分布
mcpjam
10
mistral-vibe
10
replit
10
junie
10
windsurf
10
zencoder
10
Skill 文档
fd: Intuitive File Search
Always invoke fd skill for fast file discovery – do not execute bash commands directly.
Use fd for fast file discovery that’s 13-23x faster than find.
Default Strategy
Invoke fd skill for fast file discovery with parallel search and smart defaults. Use when searching for files by name, pattern, or type, especially when performance matters or when working with large directories.
Common workflow: fd skill â other skills (fzf, bat, ripgrep, sd) for further processing.
Key Options
-e extfor extension filtering-t file|dirfor type filtering-Hinclude hidden files-Iignore .gitignore--exclude patternexclusions-xexec per file,-Xexec batch{},{.},{/}placeholders
When to Use
- Quick file searches by pattern
- Filter by type, size, extension
- Search with depth limits
- Batch file operations
- Integration with other tools
Common Workflows
fd â fzf â bat: Search files, select interactively, view with syntax highlightingfd â sd: Find files and perform batch replacementsfd â xargs tool: Execute commands on found filesfd â ripgrep: Search within specific file types
Core Principle
Smart defaults: ignores hidden/.gitignore files, case-insensitive, parallel search – much faster than find.
Detailed Reference
For comprehensive search patterns, filtering options, execution examples, and performance tips, load fd guide when needing:
- Advanced filtering patterns (size, time, depth)
- Batch execution with placeholders
- Performance optimization techniques
- Integration with shell scripts
- Complex exclusion patterns
The guide includes:
- Core search patterns and file discovery
- Extension and type filtering techniques
- Execution and batch operation examples
- Performance optimization strategies
- Integration with other tools (xargs, ripgrep)
- Advanced filtering and exclusion patterns
Skill Combinations
For Discovery Phase
- fd â fzf: Interactive file selection with preview
- fd â ripgrep: Search within specific file types
- fd â jq/yq: Extract data from found config files
- fd â extracting-code-structure: Get structure overview of found files
For Analysis Phase
- fd â bat: View found files with syntax highlighting
- fd â tokei: Get statistics for specific file sets
- fd â jq/yq: Analyze configuration files in directory
For Refactoring Phase
- fd â sd: Perform batch replacements across found files
- fd â analyzing-code-structure: Apply structural changes to specific file types
- fd â xargs: Execute commands on found files
Integration Examples
# Find and edit source files
fd -e py | fzf --multi --preview="bat --color=always {}" | xargs vim
# Find and replace in JavaScript files
fd -e js -x sd "oldPattern" "newPattern"