{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/code-search",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-search",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "DESIGN.md",
      "REQUIREMENTS.md",
      "SKILL.md",
      "scripts/search.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/code-search",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Code Search Skill",
        "body": "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."
      },
      {
        "title": "When to Use",
        "body": "Searching for function/class/variable definitions or usages in code\nFinding files by name or extension pattern\nUnderstanding project directory structure\nExploring unfamiliar codebases\nLooking for configuration files, imports, error messages"
      },
      {
        "title": "Prerequisites",
        "body": "Run dependency check first:\n\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh check"
      },
      {
        "title": "Commands",
        "body": "All commands go through a single entry point:\n\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh <command> [options]"
      },
      {
        "title": "grep — Search file contents",
        "body": "# Basic search\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep \"func main\" --path /some/project\n\n# Literal text (no regex interpretation)\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep \"fmt.Println(\" --literal --path /some/project\n\n# Filter by file type\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep \"import\" --type go --path /some/project\n\n# With context lines\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep \"TODO\" --context 2 --path /some/project\n\n# Limit results\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep \"error\" --max 20 --path /some/project\n\nOptions:\n\n--path <dir> — Search directory (default: current dir)\n--type <ext> — File type filter: go, py, ts, js, etc. (repeatable)\n--literal — Treat pattern as literal text, not regex\n--max <n> — Max results (default: 100)\n--context <n> — Show N lines of context around matches (default: 0)"
      },
      {
        "title": "glob — Search filenames",
        "body": "# Find all Go files\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh glob \"*.go\" --path /some/project\n\n# Find test files\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh glob \"*_test.go\" --path /some/project\n\n# Find config files\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh glob \"*.{json,yaml,yml,toml}\" --path /some/project\n\n# Filter by type\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh glob \"config\" --type f --path /some/project\n\nOptions:\n\n--path <dir> — Search directory (default: current dir)\n--type <f|d> — f=files only, d=directories only\n--max <n> — Max results (default: 200)"
      },
      {
        "title": "tree — Directory structure",
        "body": "# Default (3 levels deep)\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh tree --path /some/project\n\n# Shallow view\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh tree --path /some/project --depth 1\n\n# With file sizes\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh tree --path /some/project --depth 2 --size\n\nOptions:\n\n--path <dir> — Target directory (default: current dir)\n--depth <n> — Max depth (default: 3)\n--size — Show file sizes"
      },
      {
        "title": "check — Verify dependencies",
        "body": "bash /root/.openclaw/workspace/skills/code-search/scripts/search.sh check"
      },
      {
        "title": "Output Format",
        "body": "All commands output structured text with clear delimiters:\n\n[SEARCH RESULTS: grep] / [SEARCH RESULTS: glob] / [DIRECTORY TREE]\n[END RESULTS] / [END TREE]\n[TRUNCATED: ...] when results exceed the limit\n[ERROR] ... on failures"
      },
      {
        "title": "Notes",
        "body": "All operations are read-only — no files are modified\nAutomatically ignores .git, node_modules, pycache, vendor, build artifacts\nRespects .gitignore rules\nResults sorted by modification time (newest first) for grep and glob"
      }
    ],
    "body": "Code Search Skill\n\nFast 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.\n\nWhen to Use\nSearching for function/class/variable definitions or usages in code\nFinding files by name or extension pattern\nUnderstanding project directory structure\nExploring unfamiliar codebases\nLooking for configuration files, imports, error messages\nPrerequisites\n\nRun dependency check first:\n\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh check\n\nCommands\n\nAll commands go through a single entry point:\n\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh <command> [options]\n\ngrep — Search file contents\n# Basic search\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep \"func main\" --path /some/project\n\n# Literal text (no regex interpretation)\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep \"fmt.Println(\" --literal --path /some/project\n\n# Filter by file type\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep \"import\" --type go --path /some/project\n\n# With context lines\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep \"TODO\" --context 2 --path /some/project\n\n# Limit results\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh grep \"error\" --max 20 --path /some/project\n\n\nOptions:\n\n--path <dir> — Search directory (default: current dir)\n--type <ext> — File type filter: go, py, ts, js, etc. (repeatable)\n--literal — Treat pattern as literal text, not regex\n--max <n> — Max results (default: 100)\n--context <n> — Show N lines of context around matches (default: 0)\nglob — Search filenames\n# Find all Go files\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh glob \"*.go\" --path /some/project\n\n# Find test files\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh glob \"*_test.go\" --path /some/project\n\n# Find config files\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh glob \"*.{json,yaml,yml,toml}\" --path /some/project\n\n# Filter by type\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh glob \"config\" --type f --path /some/project\n\n\nOptions:\n\n--path <dir> — Search directory (default: current dir)\n--type <f|d> — f=files only, d=directories only\n--max <n> — Max results (default: 200)\ntree — Directory structure\n# Default (3 levels deep)\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh tree --path /some/project\n\n# Shallow view\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh tree --path /some/project --depth 1\n\n# With file sizes\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh tree --path /some/project --depth 2 --size\n\n\nOptions:\n\n--path <dir> — Target directory (default: current dir)\n--depth <n> — Max depth (default: 3)\n--size — Show file sizes\ncheck — Verify dependencies\nbash /root/.openclaw/workspace/skills/code-search/scripts/search.sh check\n\nOutput Format\n\nAll commands output structured text with clear delimiters:\n\n[SEARCH RESULTS: grep] / [SEARCH RESULTS: glob] / [DIRECTORY TREE]\n[END RESULTS] / [END TREE]\n[TRUNCATED: ...] when results exceed the limit\n[ERROR] ... on failures\nNotes\nAll operations are read-only — no files are modified\nAutomatically ignores .git, node_modules, pycache, vendor, build artifacts\nRespects .gitignore rules\nResults sorted by modification time (newest first) for grep and glob"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Yanxingang/code-search",
    "publisherUrl": "https://clawhub.ai/Yanxingang/code-search",
    "owner": "Yanxingang",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}