Skip to content
Development
Command

/symbol

Read one symbol's body with live-verified line bounds (path::Name, live range, or distill omission ref).

From plugin
repowise
8.1k17 skills17 commands1 MCP
> /plugin marketplace add repowise-dev/repowise
> /plugin install repowise@repowise

Command definition

symbol.md
description: Read one symbol's body with live-verified line bounds (path::Name, live range, or distill omission ref).
allowed-tools: Bash(repowise symbol:*), Read
disable-model-invocation: true

Repowise Symbol

Read one function, class, or constant with live-verified line bounds. This is the CLI adapter over `get_symbol`. Prefer it over a raw file Read when you already have a `symbol_id` from `/repowise:context` or `search_codebase`.

Steps

1. If `.repowise/` doesn't exist: "This repo isn't indexed yet. Run `/repowise:init` first." Stop. 2. Resolve the symbol id from `$ARGUMENTS`. If empty, ask for `path/to/file.py::Name`, a live range (`path:start-end`), or a `repowise#<hex>` omission ref from distill. 3. Run `repowise symbol` and present the body. Report `verified: true/false` when shown. If the id is ambiguous, show every matching body — do not silently pick one.

Choosing the invocation

  • Named symbol → `repowise symbol "src/api/routes.py::login"`
  • Live range read → `repowise symbol "src/api/routes.py:140-180"`
  • Distill omission ref → `repowise symbol "repowise#a1b2c3d4e5f6"`
  • Extra surrounding lines → `--context-lines N` (0–50)
  • Filter restored omission lines → `--query <regex-or-substring>`
  • Machine-readable / raw payload → `--format json` / `--full`
repowise symbol "src/api/routes.py::login"
repowise symbol "src/api/routes.py:140-180"
repowise symbol "repowise#a1b2c3d4e5f6"
repowise symbol "src/api/routes.py::login" --context-lines 3

A truncated body carries a `continuation` you can pass straight back to `repowise symbol`. Shared targeting flags (`--path`, `--repo`, `--no-workspace`) match the other tool-adapter commands.

Notes

  • Cheaper and more precise than Read + offset math when you have a

`symbol_id`.

  • For triage (layer / hotspot / callers) without bytes, use

`/repowise:context`.

  • Never invent source — if the command errors or returns no body, say so.
Read more
@repowise-dev
Ships withrepowise

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

8.1k9 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
8.1k
Star history of repowise-dev/repowise on GitHub, a chart by star-history.com

Other commands on repowise.

ask

ask

Command

Ask a codebase question and get a cited, synthesised answer with a confidence rating (costs an LLM call).

@repowise-dev@repowise-devInstall Command
context

context

Command

Triage card for files, modules, or symbols — layer, hotspot, fix history, freshness (relationships, not source bytes).

@repowise-dev@repowise-devInstall Command
coverage

coverage

Command

Ingest or inspect test-coverage reports (LCOV, Cobertura, Clover, Go cover profiles, JaCoCo, Salesforce Apex JSON, or repowise…

@repowise-dev@repowise-devInstall Command
decision

decision

Command

Work with architectural decisions; list, check health, record, pin, or put background records in force.

@repowise-dev@repowise-devInstall Command
doctor

doctor

Command

Diagnose the Repowise setup — install, API keys, index/store drift — and optionally repair it.

@repowise-dev@repowise-devInstall Command

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