Skip to content
Development
Command

/ask

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

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

Command definition

ask.md
description: Ask a codebase question and get a cited, synthesised answer with a confidence rating (costs an LLM call).
allowed-tools: Bash(repowise ask:*), Read
disable-model-invocation: true

Repowise Ask

Answer a question about this codebase with citations. This is the same synthesis the `get_answer` MCP tool performs: hybrid retrieval followed by an LLM answer over what it found. Unlike `/repowise:search`, this **costs an LLM call** — use it when the user wants an answer, not a hit list.

Steps

1. If `.repowise/` doesn't exist: "This repo isn't indexed yet. Run `/repowise:init` first." Stop. 2. Resolve the question from `$ARGUMENTS`. If empty, ask: "What do you want to know about this codebase?" 3. Run the command and present the answer, confidence, and retrieval quality. Prefer citing the paths the answer names. Do not invent citations.

Choosing the invocation

  • Question only → `repowise ask "<question>"`
  • Restrict retrieval to a subtree → `repowise ask "<question>" --scope packages/cli/`
  • Machine-readable → `repowise ask "<question>" --format json`
  • Raw MCP payload (including dropped blocks) → `repowise ask "<question>" --full`
repowise ask "how does the retry backoff work?"
repowise ask "where is the session cookie set?" --format json
repowise ask "how is width resolved?" --scope packages/cli/
repowise ask "why is auth split across two modules?" --full

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

How to present the result

  • `confidence: high` is content-grounded — cite it directly.
  • `medium` / `low`: say so, and follow any `best_guesses` / `fallback_targets` / `candidate_files`

into `/repowise:context` or `get_context` rather than inventing detail.

  • If a `note` warns that numbers may be synthesised, surface that caveat.
  • Prefer this over `/repowise:search` when the user asked a *question*. Prefer

search when they want a list of matching pages / symbols.

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.

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