Skip to content
Development
Command

/definition

Find where a symbol is defined in the codebase

From plugin
codebase-index
1629 skills9 commands1 MCP
Install
> /plugin marketplace add Helweg/open-codebase-index
> /plugin install codebase-index@helweg-plugins

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/definition

Context preview

What this command does when you run it.

Find where a symbol is defined in the codebase

Command definition

definition.md
description: Find where a symbol is defined in the codebase

Find the authoritative definition of a symbol in the codebase.

User input: $ARGUMENTS

The input is a symbol name or description of what to find the definition of.

Look for optional parameters:

  • `limit=N` or "top N" → set limit
  • `dir=X` or "in folder X" → set directory filter
  • File extensions like ".ts", ".py" → set fileType

Call `implementation_lookup` with the parsed arguments.

Examples:

  • `/definition validateToken` → query="validateToken"
  • `/definition payment handler` → query="payment handler"
  • `/definition createSystem dir=packages/react` → query="createSystem", directory="packages/react"

This prioritizes real implementation files over tests, docs, and examples. If no definition is found, suggest using `codebase_search` for broader discovery.

Ships withcodebase-index

Search a codebase by meaning, then follow the result into definitions, callers, and dependency paths. open-codebase-index is a local semantic code index for OpenCode, Jcode, Pi, Codex, Claude Code, and other MCP clients.

Get the whole plugin
Stats
170
Stars
31
Forks
Active
Maintenance
TypeScript
Language
MIT
License
4h ago
Last commit
7mo ago
Created

Repo: Helweg/open-codebase-index