prp-validate

prp-validate is a command for Claude Code from mort-lab/excel-mcp. It costs 0 tokens per session (1,267 once invoked), scanned A, original, MIT.

A command that checks a product requirements plan before someone uses it to implement a feature. It verifies referenced files, web links, dependencies, credentials, existing code patterns, and validation requirements.

In plain words
What is it for?
Use it to confirm that a PRP's files, URLs, libraries, environment requirements, examples, and risk checks are ready.
Why use it?
It can reveal missing context or unavailable prerequisites before implementation begins. Finding these problems early helps prevent avoidable failures during execution.

Command for Claude Code

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 commands/mort-lab/excel-mcp/prp-validate
Clone the repo
git clone --depth 1 https://github.com/mort-lab/excel-mcp

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 prp-validate

README.md
[![agentmods](https://agentmods.dev/badge/commands/mort-lab/excel-mcp/prp-validate.svg)](https://agentmods.dev/commands/mort-lab/excel-mcp/prp-validate)
Your own site
<a href="https://agentmods.dev/commands/mort-lab/excel-mcp/prp-validate"><img src="https://agentmods.dev/badge/commands/mort-lab/excel-mcp/prp-validate.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,267 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.01267
Opus 5 $0.00000 $0.00633
Sonnet 5 $0.00000 $0.00253
Haiku 4.5 $0.00000 $0.00127

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

Security

Grade A, and why

prp-validate scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

if curl -s --head "$url" > /dev/null; then
.claude/commands/rapid-development/experimental/prp-validate.md · 192 lines

How it starts

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

Validate PRP

PRP File: $ARGUMENTS

Pre-flight validation of a PRP to ensure all context and dependencies are available before execution.

Validation Process

  1. Parse PRP

    • Read the specified PRP file
    • Extract all file references, URLs, and dependencies
    • Parse validation checklist items
  2. Context Validation

    • Check all referenced files exist
    • Validate all URLs are accessible
    • Verify environment dependencies are available
    • Check for required API keys/credentials
  3. Codebase Analysis

    • Scan for similar patterns mentioned in PRP
    • Validate existing examples are current
    • Check for architectural consistency
  4. Dependency Check

    • Verify all required libraries are installed
    • Check version compatibility
    • Validate external service connectivity
  5. Risk Assessment

    • Analyze failure patterns mentioned in PRP
    • Assess complexity and confidence score
    • Identify potential bottlenecks

Validation Gates

File References

# Check all referenced files exist
echo "Validating file references..."
for file in $(grep -o 'file: [^[:space:]]*' "$PRP_FILE" | cut -d' ' -f2); do
    if [ ! -f "$file" ]; then
        echo "❌ Missing file: $file"
        exit 1
    else
        echo "✅ Found: $file"
    fi
done

URL Accessibility

# Check all referenced URLs are accessible
echo "Validating URL references..."
for url in $(grep -o 'url: [^[:space:]]*' "$PRP_FILE" | cut -d' ' -f2); do
    if curl -s --head "$url" > /dev/null; then
        echo "✅ Accessible: $url"
    else
        echo "⚠️  Cannot access: $url"
    fi
done

Environment Dependencies

# Check environment setup
echo "Validating environment dependencies..."

# Check Python dependencies
if command -v python3 &> /dev/null; then
    echo "✅ Python3 available"

    # Check specific imports mentioned in PRP
    python3 -c "
import re
import sys
# Read PRP file and extract import statements
with open('$PRP_FILE', 'r') as f:
    content = f.read()
# Find import statements in code blocks
imports = re.findall(r'^(?:import|from)\s+([a-zA-Z_][a-zA-Z0-9_]*)', content, re.MULTILINE)
unique_imports = set(imports)
failed_imports = []
for module in unique_imports:
    try:
        __import__(module)
        print(f'✅ Module available: {module}')
    except ImportError:
        failed_imports.append(module)
        print(f'⚠️  Module missing: {module}')
if failed_imports:
    print(f'❌ Missing modules: {failed_imports}')
    sys.exit(1)
"
else
    echo "❌ Python3 not available"
    exit 1
fi

Read the full file on GitHub · 192 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. 4d ago First seen · 192 lines · 0 tokens per session scan A 7908145a2be8

Subscribe to this mod's changes

prp-validate is a command published in the GitHub repository mort-lab/excel-mcp (5 stars, last pushed 26d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,267 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.