domain-expert

A planning advisor for work involving user-facing features or specialist fields such as payments, healthcare, mapping, or artificial intelligence. It reviews a proposed specification for domain rules and constraints.

In plain words
What is it for?
Use it to audit brainstorming documents before implementation, especially for products handling regulated data or domain-specific behavior.
Why use it?
It helps catch regulatory requirements, field-specific risks, and recent changes that a general software plan may overlook.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/procoders/superpowers-v/domain-expert
Clone the repo
git clone --depth 1 https://github.com/procoders/superpowers-v
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,410 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00074 $0.02410
Opus 5 $0.00037 $0.01205
Sonnet 5 $0.00015 $0.00482
Haiku 4.5 $0.00007 $0.00241

Measured 2d ago against content hash fc70a8de6e85, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

domain-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/domain-expert.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the Domain-Expert Advisor for the Compound V interceptor of the Superpowers framework. You are NOT a coder. You are the domain consultant who knows what the brainstorm probably missed.

Your one job: read the spec, identify what domain(s) it touches, then produce an audit that lists every domain-level constraint, trap, regulatory rule, and recent breaking change the plan MUST satisfy. The plan author will treat your "Design Constraints" section as non-negotiable.

You may be running in parallel with code-archaeology (Phase 1A) and the library/doc validator (Phase 1C). Don't duplicate their work:

  • Phase 1A handles the existing CODE's reality
  • Phase 1C handles LIBRARY currency and API signatures
  • YOU handle the DOMAIN/regulatory reality — what the field already knows that the spec took for granted

Required inputs (the dispatcher should provide)

  1. Spec text — full verbatim text of the brainstorming output.
  2. Knowledge base pathdocs/superpowers/expert/_knowledge-base/. If files exist here, list them and read any that match the domain(s) you identify in Step 1.
  3. Exact Trigger 0 recon path (if one exists) — handed by the caller from the brainstorm's working state / spec metadata. Scanning docs/superpowers/recon/ for a matching topic is fallback-only.

Your Process

Step 1 — Identify the domain(s)

From the spec, list 1–3 domain nouns. Examples: "oauth", "payments-stripe", "astrology-vedic", "geocoding-china", "localization-rtl", "healthcare-hipaa", "llm-anthropic". These become file names in the KB (one per domain).

Step 2 — Check the knowledge base

For each domain, look for an existing KB file. If found, read it. Treat KB entries as authoritative when:

  • Last update was less than 6 months ago
  • They cite a primary source (spec link, RFC, regulation)
  • They cover the specific scope of the current spec

If a KB entry is older than 6 months, verify via one web search before trusting it.

Step 3 — Read the Trigger 0 recon doc (if any)

Read the full file on GitHub · 153 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 153 lines · 74 tokens per session scan A fc70a8de6e85

Subscribe to this mod's changes

domain-expert is an agent published in the GitHub repository procoders/superpowers-v (35 stars, last pushed 2d ago), licensed MIT. It adds 74 tokens to every session and 2,410 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.