Skip to content
Development
Command

/context

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

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

Command definition

context.md
description: Triage card for files, modules, or symbols — layer, hotspot, fix history, freshness (relationships, not source bytes).
allowed-tools: Bash(repowise context:*), Read

Repowise Context

Pull a triage card for one or more files, modules, or symbols. This is the CLI adapter over `get_context`: title, summary, architectural layer, hotspot / bug-fix history, doc freshness, and optional relationship blocks. Relationships and risk signals — **not** source bytes by default.

Steps

1. If `.repowise/` doesn't exist: "This repo isn't indexed yet. Run `/repowise:init` first." Stop. 2. Resolve targets from `$ARGUMENTS`. If empty, ask which file / module / `path::Symbol` to inspect. 3. Run `repowise context` and present each card: layer, stale bit, hotspot, summary. Call out fix history when present.

Choosing the invocation

TARGETS are file paths, module paths, or `path/to/file.py::Symbol` ids. Batch them in one call.

  • Default triage → `repowise context <targets…>`
  • Opt-in blocks (repeatable) → `--include callers|callees|ownership|metrics|decisions|skeleton|…`
  • Richer card → `repowise context <targets…> --no-compact`
  • Machine-readable / raw payload → `--format json` / `--full`
repowise context src/api/routes.py src/api/auth.py
repowise context src/api/routes.py::login --include callers --include metrics
repowise context src/api/routes.py --include skeleton

`--include skeleton` adds the body-elided, line-verified file shape. For the exact function body, prefer `/repowise:symbol` (or `get_symbol`) with a `symbol_id` from the card; a symbol row without one is addressed as `path::name`.

Shared targeting flags (`--path`, `--repo`, `--no-workspace`) work the same as the other tool-adapter commands.

Notes

  • Prefer this before opening many files with Read — one call batches cards.
  • A target the index cannot resolve returns an `error` card; report that

plainly instead of inventing structure.

  • For a synthesised Q&A answer, use `/repowise:ask`. For "why is it shaped

this way", use `/repowise:why`.

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.1k8 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
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, inspect health, add, or confirm auto-proposed decisions.

@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
export

export

Command

Export the wiki (or architecture model) to markdown, HTML, JSON, or Structurizr DSL.

@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