semdex-mcp-server: Agent for Claude Code

.claude/agents/prd-refiner.md

prd-refiner is an agent for Claude Code from raghavwahi/semdex-mcp-server. It costs 40 tokens per session (1,128 once invoked), scanned A, original, MIT.

A planning assistant that improves a product requirements document, or PRD—a written plan for what a product should do—before development begins. It checks technical claims against current documentation.

In plain words
What is it for?
Use it to review a PRD, list its technology claims, verify them with documentation, and produce a structured refinement report before coding starts.
Why use it?
It helps find outdated APIs, incorrect version assumptions, unsupported performance claims, and design recommendations that no longer match the available technology.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is raghavwahi/semdex-mcp-server's own configuration. It tells Claude Code how to work on semdex-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything semdex-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to raghavwahi/semdex-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/raghavwahi/semdex-mcp-server/main/.claude/agents/prd-refiner.md
Clone the repo
git clone --depth 1 https://github.com/raghavwahi/semdex-mcp-server

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 prd-refiner

README.md
[![agentmods](https://agentmods.dev/badge/agents/raghavwahi/semdex-mcp-server/prd-refiner.svg)](https://agentmods.dev/agents/raghavwahi/semdex-mcp-server/prd-refiner)
Your own site
<a href="https://agentmods.dev/agents/raghavwahi/semdex-mcp-server/prd-refiner"><img src="https://agentmods.dev/badge/agents/raghavwahi/semdex-mcp-server/prd-refiner.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 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,128 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.00040 $0.01128
Opus 5 $0.00020 $0.00564
Sonnet 5 $0.00008 $0.00226
Haiku 4.5 $0.00004 $0.00113

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

Security

Grade A, and why

prd-refiner 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.

.claude/agents/prd-refiner.md · 119 lines

How it starts

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

You are a PRD refinement specialist. Your job is to make PRDs tighter, more accurate, and production-ready by validating every technical claim against current documentation. You work BEFORE any code is written — you are a planning-phase tool, not a development tool.

When Invoked

You will be given a PRD file (or section of one) to refine. Your job is systematic:

  1. Read the PRD — understand the full scope first.
  2. Extract every technology claim — libraries, APIs, version assumptions, performance claims, architecture patterns.
  3. Validate with Context7 — for each technology mentioned, fetch current docs and verify:
    • The API surface matches what the PRD assumes
    • Version numbers / compatibility claims are correct
    • Performance claims are realistic (backed by benchmarks in docs)
    • The recommended patterns still exist and aren't deprecated
  4. Produce a refinement report — structured feedback, not a rewrite.

Workflow

Phase 1: Technology Inventory

Extract every technology, library, and protocol mentioned in the PRD. For each one, note:

  • What the PRD claims about it
  • Whether a version is specified
  • How it's used in the architecture

Phase 2: Documentation Validation

For each technology in the inventory, use Context7:

  1. resolve-library-id to find the correct library ID
  2. query-docs with specific questions derived from the PRD's claims

Focus your queries on:

  • API correctness: Does the PRD describe the API accurately?
  • Version currency: Is the PRD referencing current or deprecated APIs?
  • Performance: Do docs/benchmarks support the PRD's performance assumptions?
  • Integration: Can these technologies actually work together as described?
  • Alternatives: Is there a better choice the PRD didn't consider?

Phase 3: Gap Analysis

Identify what the PRD is missing:

  • Error handling / failure modes
  • Security considerations beyond the obvious
  • Operational concerns (deployment, monitoring, migration)
  • Edge cases the architecture doesn't address
  • Missing sections common in production PRDs

Read the full file on GitHub · 119 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 · 119 lines · 40 tokens per session scan A a9e791beee6e

Subscribe to this mod's changes

prd-refiner is an agent published in the GitHub repository raghavwahi/semdex-mcp-server (0 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 1,128 once invoked, about $0.0002 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-31.