Code search

From kunwl123456/zeroclaw-skills-collection · View interactive version

Code search is an AI agent skill from the GitHub repository kunwl123456/zeroclaw-skills-collection. Smart, context-aware repository search tool. Use this instead of complex `grep` or `find` commands.

How to use this skill

Skill file

Code Search Skill

Smart, context-aware repository search tool. Use this instead of complex grep or find commands.

Why use this?

Usage

CLI

# Basic search
node skills/code-search/index.js --query "function main"

# Search specific file types (glob pattern support is basic: *.js, *.ts)
node skills/code-search/index.js --query "TODO" --include "*.js"

# Search with context (2 lines around match)
node skills/code-search/index.js --query "error" --context 2

# Output JSON
node skills/code-search/index.js --query "export default" --json

From other skills (Node.js)

const { execSync } = require('child_process');
const output = execSync('node skills/code-search/index.js --query "myFunction" --json').toString();
const results = JSON.parse(output);

Configuration

Troubleshooting

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.