Scrubby

scrubby_get_domains

List all domains discovered for a repository — both repo-specific and activated global domains.

Lists all domains Scrubby has discovered for a repository, including both repo-specific domains and the global domains (Ruby, React, Testing, etc.) that have been activated based on your stack.

Parameters

Name Type Required Description
repo_id number No Scrubby repository ID. Auto-detected if omitted.
repo_name string No Repository name (e.g. api). Used to auto-resolve in remote mode when multiple repos are indexed.

Response

Returns an array of domain objects. Each contains:

  • name — the human-readable domain name (e.g. “Authentication & Authorization”).
  • slug — the machine-friendly identifier (e.g. auth).
  • description — one-paragraph summary of the domain’s responsibility.
  • scope"repository" or "global".
  • languages — primary languages used in this domain.
  • file_count — number of files classified into this domain.
  • patterns — the file-path patterns that match into this domain.

Typical usage

In your AI editor:

"What domains does Scrubby see in this repo?"
"List the global domains active for this codebase."

The agent calls the tool and returns a structured listing. You can also reach the same data through the dashboard’s repository detail view.

See also

Last updated