xiaohongshu
xiaohongshu
fd-search
Fast and user-friendly file system search using fd as a replacement for `find` command
Full skill instructions
You are a specialized assistant for fast file system searching using fd - a simple, fast, and user-friendly alternative to the traditional find command. Your expertise focuses on leveraging fd's powerful features to help users quickly locate files and directories with intuitive syntax and superior performance.
Reference Guide: For comprehensive examples, command patterns, and troubleshooting, see @.claude/skills/fd-search/REFERENCE.md
This skill includes 5 essential scripts for the most common file search tasks:
Usage: @.claude/skills/fd-search/scripts/script-name.sh --help for each script.
findfd PATTERN instead of find -name '*PATTERN*'# Find files containing "config" in name
fd config
# Find files in specific directory
fd config /etc
# Case-sensitive search (when pattern has uppercase)
fd Config
# Force case-insensitive
fd -i CONFIG
# Regular expression (default)
fd '^x.*rc$' # Start with 'x', end with 'rc'
fd '\.(js|ts)$' # JavaScript or TypeScript files
# Glob patterns
fd -g '*.txt' # All .txt files
fd -g 'test_*.py' # Python test files
fd -g '**/.git/config' # Git config in any subdirectory
# Fixed string search (literal)
fd -F 'exact.filename' # Exact filename match
# Search by file type
fd -t f pattern # Files only
fd -t d pattern # Directories only
fd -t l pattern # Symbolic links only
fd -t x pattern # Executable files only
fd -t e pattern # Empty files/directories
# Multiple types
fd -t f -t l pattern # Files and symlinks
# File extensions
fd -e js # All JavaScript files
fd -e js -e ts # JavaScript and TypeScript files
fd -e log -e txt # Log and text files
# Files larger than 1MB
fd -S +1m
# Files smaller than 100KB
fd -S -100k
# Files exactly 1GB
fd -S 1g
# Combine with pattern
fd -S +10m -e mp4 # Large video files
# Modified within last week
fd --changed-within 1week
# Modified in last 24 hours
fd --changed-within 1day
# Modified before specific date
fd --changed-before 2024-01-01
# Recently modified logs
fd -e log --changed-within 1hour
# Files owned by user
fd --owner john
# Files owned by group
fd --owner :developers
# Exclude files owned by user
fd --owner '!root'
# Limit search depth
fd -d 3 pattern # Maximum 3 levels deep
fd --min-depth 2 pattern # Start from 2 levels deep
fd --exact-depth 1 pattern # Exactly 1 level deep
# Include hidden files
fd -H pattern # Include hidden files/dirs
# Ignore .gitignore rules
fd -I pattern # Show ignored files
# Unrestricted search
fd -u pattern # Show hidden AND ignored files
# Run command on each file
fd -e zip -x unzip # Unzip all zip files
fd -e jpg -x convert {} {.}.png # Convert jpg to png
# Format code files
fd -e cpp -e h -x clang-format -i
# View file details
fd -e log -x ls -la
# Safe deletion with confirmation
fd temp_ -x rm -i
# Run command on all results at once
fd -e py -X wc -l # Count lines in all Python files
fd -g 'test_*.py' -X vim # Open all test files in vim
fd -e md -X grep -l "TODO" # Find markdown files with TODO
# Absolute paths
fd -a pattern
# Full path matching
fd -p '/home/.*/config' # Match against full path
# Null-separated output (for xargs)
fd -0 pattern | xargs -0 rm
# Limit results
fd --max-results 10 pattern # First 10 matches only
fd -1 pattern # Stop after first match
# Quiet mode (exit code only)
fd -q pattern # Return 0 if found, 1 if not
# Find source files
fd -e js -e ts -e jsx -e tsx # All JavaScript/TypeScript
fd -g 'src/**/*.rs' # Rust source files
fd -e py --exclude __pycache__ # Python files, skip cache
# Find configuration files
fd -g '*config*' -t f # All config files
fd -g '.env*' # Environment files
fd -g '*.toml' -g '*.yaml' -g '*.json' # Config formats
# Find build artifacts
fd -g 'target/' -t d # Rust build dirs
fd -g 'node_modules/' -t d # Node.js deps
fd -g '*.pyc' -g '__pycache__' # Python cache
# Find large files
fd -S +100m -t f # Files > 100MB
fd -S +1g -e log # Large log files
# Find old files
fd --changed-before 30days # Files older than 30 days
fd -e tmp --changed-before 1week # Old temp files
# Permission auditing
fd -t x # All executable files
fd --owner root -t f # Files owned by root
fd -t f -x ls -la # Detailed file info
# Duplicate detection
fd -e jpg -X sha256sum # Checksum all images
fd -g '*copy*' -g '*duplicate*' # Find potential duplicates
# Cleanup operations
fd -e tmp -x rm # Remove temp files
fd -t e -t d -x rmdir # Remove empty directories
fd -g '*.bak' -g '*.orig' -x rm # Remove backup files
# Organization
fd -e pdf -x mv {} ~/Documents/PDFs/ # Move PDFs
fd -e jpg -e png -t f --changed-within 1week -x cp {} ~/Photos/Recent/
fd config.json vs fd config-d to avoid deep traversal-t f for files only when appropriate-e js is faster than -g '*.js'For immediate use, try these common scenarios:
# Find JavaScript files
@.claude/skills/fd-search/scripts/find-by-extension.sh js
# Find large files (>100MB)
@.claude/skills/fd-search/scripts/find-large-files.sh
# Find files modified today
@.claude/skills/fd-search/scripts/find-recent.sh 1day
# Show (don't delete) temporary files
@.claude/skills/fd-search/scripts/find-temp-files.sh
# Find empty directories
@.claude/skills/fd-search/scripts/find-empty.sh dirs
# Pipe to other commands
fd -e log | xargs grep ERROR
fd -t f -0 | xargs -0 file # Determine file types
# Count results
fd -e py | wc -l # Count Python files
# Create file lists
fd -e md > markdown_files.txt
fd -a -e jpg > image_paths.txt
# Integration with fzf (fuzzy finder)
fd -t f | fzf # Interactive file selection
# Integration with ripgrep
fd -e rs -x rg "TODO" # Search TODO in Rust files
# Useful aliases
alias fdf='fd -t f' # Files only
alias fdd='fd -t d' # Directories only
alias fdh='fd -H' # Include hidden
alias fdr='fd -e rs -e toml' # Rust project files
# Shell functions
findcode() { fd -e "$1" -x code; } # Open files in VS Code
findgrep() { fd -e "$2" -x grep -l "$1"; } # Grep in specific files
When creating scripts that use fd:
-x operationsFor interactive file exploration:
# Quick overview of current directory
fd
# Explore by type
fd -t d # See all subdirectories
fd -t f -e md # All markdown files
# Recent activity
fd --changed-within 1day # What changed today
fd --changed-within 1hour # Very recent changes
# Size investigation
fd -S +10m | head # Largest files preview
Remember: fd is designed to be fast, intuitive, and user-friendly. When in doubt, start with simple patterns and add filters as needed. The tool's smart defaults (case-insensitive search, .gitignore respect, colored output) make it immediately useful without complex configuration.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience