# Codesearch

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

- Skill: `tashfeenahmed/codesearch` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tashfeenahmed/codesearch`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tashfeenahmed/codesearch/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tashfeenahmed (https://skillmd.com/u/tashfeenahmed)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/tashfeenahmed/codesearch

---


# 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

