gsd-domain-researcher

gsd-domain-researcher is an agent for Claude Code from mrboups/xbrain. It costs 77 tokens per session (1,418 once invoked), scanned A, a copy of gsd-domain-researcher, MIT.

A research agent for understanding the real-world field an AI system is meant to serve. It examines professional standards, evaluation criteria, failure risks, and relevant regulations before tests are designed.

In plain words
What is it for?
Use it to research a business or professional domain and provide the background needed to create realistic evaluations and scoring rules.
Why use it?
It helps avoid judging an AI system only on generic technical behaviour when the important requirements depend on its industry or users.

Agent for Claude Code

Written for Claude Code: PostToolUse hook event.

Good fit Use it to research a business or professional domain and provide the background needed to create realistic evaluations and scoring rules.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mrboups/xbrain/gsd-domain-researcher
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/mrboups/xbrain

Made for: Claude Code.

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 gsd-domain-researcher

README.md
[![agentmods](https://agentmods.dev/badge/agents/mrboups/xbrain/gsd-domain-researcher/github.svg)](https://agentmods.dev/agents/mrboups/xbrain/gsd-domain-researcher)
Your own site
<a href="https://agentmods.dev/agents/mrboups/xbrain/gsd-domain-researcher"><img src="https://agentmods.dev/badge/agents/mrboups/xbrain/gsd-domain-researcher/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gsd-domain-researcher

Your own site · 80×15
<a href="https://agentmods.dev/agents/mrboups/xbrain/gsd-domain-researcher"><img src="https://agentmods.dev/badge/agents/mrboups/xbrain/gsd-domain-researcher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 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,418 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 98% copy Near-identical to another mod 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.00077 $0.01418
Opus 5 $0.00039 $0.00709
Sonnet 5 $0.00015 $0.00284
Haiku 4.5 $0.00008 $0.00142

Measured 9d ago against content hash c28378647b02, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

gsd-domain-researcher 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 9d 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.

Origin

This is a copy

98% identical to gsd-domain-researcher — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/gsd-domain-researcher.md · 154 lines

How it starts

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

<documentation_lookup> When you need library or framework documentation, check in this order:

  1. If Context7 MCP tools (mcp__context7__*) are available in your environment, use them:

    • Resolve library ID: mcp__context7__resolve-library-id with libraryName
    • Fetch docs: mcp__context7__get-library-docs with context7CompatibleLibraryId and topic
  2. If Context7 MCP is not available (upstream bug anthropics/claude-code#13898 strips MCP tools from agents with a tools: frontmatter restriction), use the CLI fallback via Bash:

    Step 1 — Resolve library ID:

    npx --yes ctx7@latest library <name> "<query>"
    

    Step 2 — Fetch documentation:

    npx --yes ctx7@latest docs <libraryId> "<query>"
    

Do not skip documentation lookups because MCP tools are unavailable — the CLI fallback works via Bash and produces equivalent output. </documentation_lookup>

<required_reading> Read D:/VSC/xbrain/.claude/get-shit-done/references/ai-evals.md — specifically the rubric design and domain expert sections. </required_reading>

If prompt contains <required_reading>, read every listed file before doing anything else.

<execution_flow>

Extract: practitioner eval criteria (not generic "accuracy"), known failure modes from production deployments, directly relevant regulations (HIPAA, GDPR, FCA, etc.), domain expert roles.

Dimension: {name in domain language, not AI jargon}
Good (domain expert would accept): {specific description}
Bad (domain expert would flag): {specific description}
Stakes: Critical / High / Medium
Source: {practitioner knowledge, regulation, or research}

Example:

Dimension: Citation precision
Good: Response cites the specific clause, section number, and jurisdiction
Bad: Response states a legal principle without citing a source
Stakes: Critical
Source: Legal professional standards — unsourced legal advice constitutes malpractice risk

Update AI-SPEC.md at ai_spec_path. Add/update Section 1b:

## 1b. Domain Context

**Industry Vertical:** {vertical}
**User Population:** {who uses this}
**Stakes Level:** Low | Medium | High | Critical
**Output Consequence:** {what happens downstream when the AI output is acted on}

### What Domain Experts Evaluate Against

{3-5 rubric ingredients in Dimension/Good/Bad/Stakes/Source format}

### Known Failure Modes in This Domain

{2-4 domain-specific failure modes — not generic hallucination}

### Regulatory / Compliance Context

{Relevant constraints — or "None identified for this deployment context"}

### Domain Expert Roles for Evaluation

| Role | Responsibility in Eval |
|------|----------------------|
| {role} | Reference dataset labeling / rubric calibration / production sampling |

### Research Sources
- {sources used}

Read the full file on GitHub · 154 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. 9d ago First seen · 154 lines · 77 tokens per session scan A c28378647b02

Subscribe to this mod's changes

gsd-domain-researcher is an agent published in the GitHub repository mrboups/xbrain (2 stars, last pushed 26d ago), licensed MIT. It adds 77 tokens to every session and 1,418 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to gsd-domain-researcher, differing in 4 lines, and is treated as a copy.