Search for patterns across all projects in the workspace with results grouped by project. Use when user says "search across projects", "find in all repos", or "grep workspace".
Search for patterns across all projects in the workspace. Results are grouped by project.
<query> - The search pattern (supports regex)--type <ext> - Filter by file type (e.g., --type ts)--files - Show only file names, not contentWhen the user wants to search across projects:
Parse the search query from the command arguments.
Get all cloned projects from the workspace configuration.
For each project, run a search using ripgrep (rg) or grep:
rg "$query" "$project_path" --heading --line-number
Group results by project:
🔍 Searching for "TODO" across workspace...
📁 api (12 matches)
src/controllers/auth.ts:45: // TODO: Add rate limiting
src/services/email.ts:23: // TODO: Use template engine
src/middleware/auth.ts:78: // TODO: Implement refresh tokens
📁 admin (5 matches)
src/components/Dashboard.tsx:34: {/* TODO: Add loading state */}
src/hooks/useAuth.ts:12: // TODO: Handle token expiry
📁 homepage (0 matches)
Summary:
• Total matches: 17
• Projects searched: 3
/workspaces:search "TODO" --type ts - Only TypeScript files/workspaces:search "config" --files - Show only file pathsnpx skills add patricio0312rev/workspace-search下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer