Skip to content
Development
Command

/definition

Find where a symbol is defined in the codebase

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

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.

@helweg
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.

2321 skill1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
232
Star history of Helweg/open-codebase-index on GitHub, a chart by star-history.com

Other commands on codebase-index.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command