Skip to content
Back to skills

Codesearch

ASecurity

Search for code definitions (functions, classes, interfaces, imports)

  • 62 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 23, 2026
ai-agentsjavascripttypescriptpythonrustgojava

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 23, 2026

npx -y skills add tashfeenahmed/scallopbot --skill codesearch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codesearch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codesearch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tashfeenahmed-codesearch/badge)](https://www.skillsdirectory.com/skills/tashfeenahmed-codesearch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codesearch
description: Search for code definitions (functions, classes, interfaces, imports)
user-invocable: false
triggers: [codesearch, definition, find function, find class, find interface, symbol]
scripts:
  run: "scripts/run.ts"
inputSchema:
  type: object
  properties:
    query:
      type: string
      description: "Name or pattern to search for (e.g. 'handleSubmit', 'User')"
    path:
      type: string
      description: "Directory to search in (relative to workspace, default: '.')"
    language:
      type: string
      description: "Language filter: ts, js, py, go, rust, java (auto-detected if omitted)"
      enum: [ts, js, py, go, rust, java]
  required: [query]
metadata:
  openclaw:
    emoji: "\U0001F3AF"
    requires:
      bins: []
---

# Code Search Skill

Search for code definitions — functions, classes, interfaces, imports, and type definitions.

## When to Use

Use codesearch for:

- **Finding definitions**: Locate where a function or class is defined
- **Understanding structure**: Map out interfaces and types
- **Finding imports**: See what a module exports or imports
- **Language-aware search**: Filter by programming language

## Input Format

```json
{
  "query": "handleSubmit",
  "path": "src",
  "language": "ts"
}
```

### Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `query` | string | Yes | - | Name or pattern to search for |
| `path` | string | No | `.` | Directory to search in |
| `language` | string | No | auto | Language: ts, js, py, go, rust, java |

## Supported Languages

- **TypeScript/JavaScript**: function, class, interface, type, enum, const/let/var, import/export
- **Python**: def, class, import
- **Go**: func, type, struct, interface
- **Rust**: fn, struct, enum, trait, impl, mod
- **Java**: class, interface, enum, method definitions

## Limitations

- Maximum 100 results
- Regex-based (not AST) — may have false positives

Files in this skill

  • SKILL.md1.9 KB
  • scripts/run.test.ts4.9 KB
  • scripts/run.ts7.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.