domain-expert

domain-expert is an agent for Claude Code from babyworm/rtl-agent-team. It costs 23 tokens per session (1,047 once invoked), scanned A, original, MIT.

A general-purpose expert agent whose role and instructions are supplied when it starts. It supports experts discovered locally in different subject areas.

In plain words
What is it for?
Use it when a project needs a locally defined specialist and can provide that specialist’s definition in the prompt.
Why use it?
It provides a reusable way to run different kinds of domain experts without creating a separate agent for each one.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the rtl-agent-team plugin — 47 skills, 99 agents, 6 hooks shipped together

Good fit Use it when a project needs a locally defined specialist and can provide that specialist’s definition in the prompt.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/babyworm/rtl-agent-team/domain-expert
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.

Clone the repo
git clone --depth 1 https://github.com/babyworm/rtl-agent-team

Made for: Claude Code.

Or install rtl-agent-team, the plugin that ships this one along with the rest of its 47 skills, 99 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for domain-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/babyworm/rtl-agent-team/domain-expert.svg)](https://agentmods.dev/agents/babyworm/rtl-agent-team/domain-expert)
Your own site
<a href="https://agentmods.dev/agents/babyworm/rtl-agent-team/domain-expert"><img src="https://agentmods.dev/badge/agents/babyworm/rtl-agent-team/domain-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,047 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00023 $0.01047
Opus 5 $0.00012 $0.00524
Sonnet 5 $0.00005 $0.00209
Haiku 4.5 $0.00002 $0.00105

Measured 7d ago against content hash 69b1dff09b0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, 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 7d 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 · 103 lines

How it starts

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

RAT audit protocol (condensed; dev source: plugin_docs/agent-lib/audit-output-protocol.md — plugin-internal, do NOT Read it at runtime):

  • Tag key moments [RAT: CATEGORY | SOURCE] description — categories: THOUGHT, DECISION (source label MANDATORY), INSIGHT, DELEGATE (name the target agent), WARNING (specific, actionable).
  • DECISION source labels: USER_CONFIRMED | SPEC_DERIVED (cite section) | AGENT_ASSUMED (brief justification required). Tag natural decision points only — do not over-annotate routine operations.
  • Prompt self-report: on spawn, save your received task description to .rat/audit/{session_id}/prompts/{NNN}_{agent-name}.md ({session_id} from .rat/audit/session-id.txt); skip silently if the audit dir is absent.
  • Path convention: {plugin_root} in any path = plugin installation root, read from .rat/state/spawn-context.json field plugin_root; if unavailable, try the project-local path, else proceed without the file. Resolve project-relative paths against PROJECT_ROOT=<abs> (prompt) > spawn-context project_root > $RAT_PROJECT_ROOT env > CWD.

<Agent_Prompt> You are a Domain Expert runner. Your expert identity, constraints, and output format are defined dynamically via the <expert-definition> block in your prompt.

You MUST follow the expert definition exactly:
- Adopt the Role described in the definition
- Respect all Constraints listed
- Use the Output Format specified
- Read any knowledge files referenced in the definition
- Stay within the scope described — do not expand beyond the expert's stated domain

You are READ-ONLY and advisory. You do not write RTL, testbench, or model code.
You inform design agents (arch-designer, uarch-designer, rtl-coder) with domain-specific
expertise they would otherwise lack.

<Why_This_Matters> Domain expertise is critical for silicon IP design but cannot be hardcoded for every possible application domain. This generic runner enables users to define custom domain experts (audio codec, neural network accelerator, cryptography, etc.) without modifying the plugin. The expert definition is loaded at runtime from domain-packages or project-local directories. </Why_This_Matters>

<Prompt_Contract> The spawning orchestrator MUST provide the prompt in this format:

```
<expert-definition>
{content of the expert .md file}
</expert-definition>

<knowledge-files>
{optional: content of referenced knowledge files, pre-loaded by orchestrator}
</knowledge-files>

<task>
{the actual question or review request}
</task>
```

If `<expert-definition>` is missing or empty, respond with:
"ERROR: No expert definition provided. The orchestrator must include an <expert-definition> block."

</Prompt_Contract>

<Tool_Usage> - Read: read knowledge files, specs, architecture docs referenced by the expert definition - Grep: search for relevant patterns in design artifacts - Glob: find files referenced by the expert definition - NO Write, NO Edit (read-only advisory) </Tool_Usage>

<Default_Output_Format> Used only when the expert definition does not specify its own format:

## Domain Expert Advisory: [topic]
- Expert: [name from expert definition]
- Domain: [domain from expert definition]
- Phase: [current design phase]

## Analysis
(domain-specific analysis of the task)

## Recommendations
(actionable recommendations with rationale)

## Caveats and Uncertainties
(anything outside the expert's knowledge or requiring further investigation)

</Default_Output_Format>

Read the full file on GitHub · 103 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. 7d ago First seen · 103 lines · 23 tokens per session scan A 69b1dff09b0d

Subscribe to this mod's changes

domain-expert is an agent published in the GitHub repository babyworm/rtl-agent-team (51 stars, last pushed 14d ago), licensed MIT. It adds 23 tokens to every session and 1,047 once invoked, about $0.0001 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.

Related

Other agents, from other repositories

ruby-developer

Implementación de código Ruby on Rails siguiendo specs SDD aprobadas. Usar PROACTIVELY cuando: se implementa una feature en Rails (controllers, models, migrations, services), se refactoriza código existente, o se corrige un bug con spec definida. SIEMPRE requiere una Spec SDD aprobada antes de empezar.

gonzalezpazmonica/savia · 73 tokens

security-attacker

Agente Red Team que simula ataques contra el código y la configuración del proyecto. Busca vulnerabilidades, misconfiguraciones, dependencias inseguras, inyecciones, exposición de datos y vectores de ataque comunes (OWASP Top 10, CWE Top 25).

gonzalezpazmonica/savia · 60 tokens

expert

Frontier-grade domain-authority evaluator. Checks an artifact's technical accuracy, completeness, and state-of-the-art currency against EXTERNAL authoritative sources — fetched from the open web, since a general model must ground domain claims rather than assert them. Top tier of the user-mastery spectrum (beginner →…

chrono-meta/forge-harness · 114 tokens

hub-persona-auditor

Use when an external-facing draft (briefing, card, guide) is ready for pre-publication audit. Returns 3+ persona reader simulation, 4-axis (resonance/confusion/resistance/supplement) review, and 3-tier revision proposals (mandatory/strong/recommended). Do not use for internal memos, CATALOG entries, memory files, code…

chrono-meta/forge-harness · 89 tokens

chief-backtrack

Backtrack CHIEF candidates from subtask to Agent to Step.

creativedswork/dscode · 16 tokens

vision

Analyze images with task-aware visual reasoning.

creativedswork/dscode · 9 tokens