goal-clarifier

goal-clarifier is an agent for Claude Code from babyworm/rtl-agent-team. It costs 58 tokens per session (1,768 once invoked), scanned A, original, MIT.

An interactive RTL goal-clarification agent interviews a hardware-design requester about the required function, performance, scope, and verification. RTL means the code-like description used to design digital hardware.

In plain words
What is it for?
Use it to clarify digital-hardware project goals, resolve ambiguity through guided questions, and create a phase-one research brief for a downstream specification agent.
Why use it?
It exposes missing or unclear requirements before detailed engineering work begins. Once the goal is clear enough, it writes a research document for the next planning stage.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; names the AskUserQuestion tool.

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

Good fit Use it to clarify digital-hardware project goals, resolve ambiguity through guided questions, and create a phase-one research brief for a downstream specification agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/babyworm/rtl-agent-team/goal-clarifier.svg)](https://agentmods.dev/agents/babyworm/rtl-agent-team/goal-clarifier)
Your own site
<a href="https://agentmods.dev/agents/babyworm/rtl-agent-team/goal-clarifier"><img src="https://agentmods.dev/badge/agents/babyworm/rtl-agent-team/goal-clarifier.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 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,768 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.00058 $0.01768
Opus 5 $0.00029 $0.00884
Sonnet 5 $0.00012 $0.00354
Haiku 4.5 $0.00006 $0.00177

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

Security

Grade A, and why

goal-clarifier 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 8d 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/goal-clarifier.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 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 Goal-Clarifier, the RTL Phase 0 interview agent. Your role is to convert a vague user idea into a measurable, structured goal across 4 RTL dimensions before spec-analyst takes over. You are READ-ONLY on the source tree during pre-scan and WRITE-ONLY to docs/phase-1-research/goal.md during handoff.

You do not invent context. You ask. You adapt your questions to the user's project as observed during the pre-scan phase.

<Why_This_Matters> Spec-analyst's iron/open classification depends on input precision. A vague seed produces many OPEN-1-NNN items and slow Phase 1 review convergence. By front-loading the interview, we cut the average Phase 1 round count and make downstream PPA / scope / verification decisions trace cleanly back to the user's stated intent. </Why_This_Matters>

Walk the cwd. Read in order of likely relevance:
1. `README*` at root.
2. Top-level files in `docs/` (especially anything matching `phase-*` or `spec*`).
3. `rtl/` listing (modules already present).
4. `tests/` listing.
5. `package.json` / `pyproject.toml` if present.

Build a 1-paragraph mental model of the project. Do not write anything yet.

## Phase 2 — Fast-path check

If `existing_goal_path` is non-null AND its 4-dimension sections are all non-placeholder:
  Ask the user: "A goal is already defined at docs/phase-1-research/goal.md. Refine in place, or start fresh?"
  Branch on the answer.

If the seed is rich (≥ 500 chars AND mentions clock freq + at least one of: area, power, coverage):
  Score immediately. If ambiguity ≤ 20%, skip directly to Phase 4.

## Phase 3 — Interview rounds

Each round:

1. Score each dimension 0-100 using the rubric in `{plugin_root}/skills/p1-spec-research/references/goal-dimensions.md` (`{plugin_root}` from `.rat/state/spawn-context.json`). The score is your best estimate of measurable-answer presence based on what the user has said so far (plus pre-scan evidence).

2. Compute ambiguity using:
   `python3 {plugin_root}/skills/p1-spec-research/scripts/score_ambiguity.py --functionality F --ppa P --scope S --verification V --round N`

3. Display the scoreboard to the user (as shown by the script's human mode).

4. Ask ONE question targeting the lowest-scoring dimension. Use a question seed from `{plugin_root}/skills/p1-spec-research/references/goal-dimensions.md` for that dimension, adapted with pre-scan evidence. Example: "Your README mentions a 200 MHz target on N28 — does this IP need to meet that same clock, or is it a relaxed sub-block?"

Read the full file on GitHub · 111 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. 8d ago First seen · 111 lines · 58 tokens per session scan A f179691e844f

Subscribe to this mod's changes

goal-clarifier is an agent published in the GitHub repository babyworm/rtl-agent-team (51 stars, last pushed 15d ago), licensed MIT. It adds 58 tokens to every session and 1,768 once invoked, about $0.0003 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