# Send Code Search to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "code-search",
    "name": "Code Search",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Yanxingang/code-search",
    "canonicalUrl": "https://clawhub.ai/Yanxingang/code-search",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/code-search",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-search",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "DESIGN.md",
      "REQUIREMENTS.md",
      "SKILL.md",
      "scripts/search.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "code-search",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T22:21:16.750Z",
      "expiresAt": "2026-05-08T22:21:16.750Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-search",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-search",
        "contentDisposition": "attachment; filename=\"code-search-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "code-search"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/code-search"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/code-search",
    "downloadUrl": "https://openagent3.xyz/downloads/code-search",
    "agentUrl": "https://openagent3.xyz/skills/code-search/agent",
    "manifestUrl": "https://openagent3.xyz/skills/code-search/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/code-search/agent.md"
  }
}
```
## Documentation

### Code Search Skill

Fast code search toolkit for exploring codebases. Provides structured grep (content search), glob (filename search), and tree (directory structure) via ripgrep, fd, and tree CLI tools.

### When to Use

Searching for function/class/variable definitions or usages in code
Finding files by name or extension pattern
Understanding project directory structure
Exploring unfamiliar codebases
Looking for configuration files, imports, error messages

### Prerequisites

Run dependency check first:

bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh check

### Commands

All commands go through a single entry point:

bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh <command> [options]

### grep — Search file contents

# Basic search
bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep "func main" --path /some/project

# Literal text (no regex interpretation)
bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep "fmt.Println(" --literal --path /some/project

# Filter by file type
bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep "import" --type go --path /some/project

# With context lines
bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep "TODO" --context 2 --path /some/project

# Limit results
bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep "error" --max 20 --path /some/project

Options:

--path <dir> — Search directory (default: current dir)
--type <ext> — File type filter: go, py, ts, js, etc. (repeatable)
--literal — Treat pattern as literal text, not regex
--max <n> — Max results (default: 100)
--context <n> — Show N lines of context around matches (default: 0)

### glob — Search filenames

# Find all Go files
bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh glob "*.go" --path /some/project

# Find test files
bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh glob "*_test.go" --path /some/project

# Find config files
bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh glob "*.{json,yaml,yml,toml}" --path /some/project

# Filter by type
bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh glob "config" --type f --path /some/project

Options:

--path <dir> — Search directory (default: current dir)
--type <f|d> — f=files only, d=directories only
--max <n> — Max results (default: 200)

### tree — Directory structure

# Default (3 levels deep)
bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh tree --path /some/project

# Shallow view
bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh tree --path /some/project --depth 1

# With file sizes
bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh tree --path /some/project --depth 2 --size

Options:

--path <dir> — Target directory (default: current dir)
--depth <n> — Max depth (default: 3)
--size — Show file sizes

### check — Verify dependencies

bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh check

### Output Format

All commands output structured text with clear delimiters:

[SEARCH RESULTS: grep] / [SEARCH RESULTS: glob] / [DIRECTORY TREE]
[END RESULTS] / [END TREE]
[TRUNCATED: ...] when results exceed the limit
[ERROR] ... on failures

### Notes

All operations are read-only — no files are modified
Automatically ignores .git, node_modules, pycache, vendor, build artifacts
Respects .gitignore rules
Results sorted by modification time (newest first) for grep and glob
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Yanxingang
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T22:21:16.750Z
- Expires at: 2026-05-08T22:21:16.750Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/code-search)
- [Send to Agent page](https://openagent3.xyz/skills/code-search/agent)
- [JSON manifest](https://openagent3.xyz/skills/code-search/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/code-search/agent.md)
- [Download page](https://openagent3.xyz/downloads/code-search)