commit dac6c65980d90923cbdd9e76d7f07cf2a42ec38d Author: zlei9 Date: Sun Mar 29 14:37:52 2026 +0800 Initial commit with translated description diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..48266db --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,11 @@ + +# Recent Activity + + + +### Feb 3, 2026 + +| ID | Time | T | Title | Read | +|----|------|---|-------|------| +| #51050 | 8:16 AM | 🟣 | Added skill skeletons for OpenClaw | ~258 | + \ No newline at end of file diff --git a/SKILL.md b/SKILL.md new file mode 100644 index 0000000..3eb5299 --- /dev/null +++ b/SKILL.md @@ -0,0 +1,67 @@ +--- +name: file-search +description: "使用fd和rg快速文件名和内容搜索。" +metadata: + { + "openclaw": + { + "emoji": "🔍", + "requires": { "bins": ["fd", "rg"] }, + "install": + [ + { + "id": "dnf-fd", + "kind": "dnf", + "package": "fd-find", + "bins": ["fd"], + "label": "Install fd-find (dnf)", + }, + { + "id": "dnf-rg", + "kind": "dnf", + "package": "ripgrep", + "bins": ["rg"], + "label": "Install ripgrep (dnf)", + }, + ], + }, + } +--- + +# File Search Skill + +Fast file-name and content search using `fd` and `rg` (ripgrep). + +## Find Files by Name + +Search for files matching a pattern: + +```bash +fd "\.rs$" /home/xrx/projects +``` + +Find files by exact name: + +```bash +fd -g "Cargo.toml" /home/xrx/projects +``` + +## Search File Contents + +Search for a regex pattern across files: + +```bash +rg "TODO|FIXME" /home/xrx/projects +``` + +Search with context lines: + +```bash +rg -C 3 "fn main" /home/xrx/projects --type rust +``` + +## Install + +```bash +sudo dnf install fd-find ripgrep +``` diff --git a/_meta.json b/_meta.json new file mode 100644 index 0000000..7bd49cf --- /dev/null +++ b/_meta.json @@ -0,0 +1,6 @@ +{ + "ownerId": "kn7d9tgyz5fxw3t93bz27t97zn7zxtqc", + "slug": "file-search", + "version": "1.0.0", + "publishedAt": 1770135651974 +} \ No newline at end of file