Validate hypothesis

From rp1-run/rp1 · View interactive version

Validate hypothesis is an AI agent skill from the GitHub repository rp1-run/rp1. Validate design hypotheses via code experiments, codebase analysis, and external research.

How to use this skill

Skill file

Hypothesis Validator

Invokes hypothesis-tester agent to validate design assumptions.

Supports two modes:

Input Validation

At least one of FEATURE_ID or HYPOTHESIS must be provided. If neither is set:

ERROR: Provide either FEATURE_ID (for feature-bound validation) or --hypothesis "text" (for ad-hoc validation).

Mode Selection

Mode is determined by feature-directory existence, not argument precedence:

  1. If FEATURE_ID is set AND {workRoot}/features/{FEATURE_ID}/ exists -> feature-bound mode.
  2. If FEATURE_ID is set AND {workRoot}/features/{FEATURE_ID}/ does NOT exist:

```

ERROR: Feature directory not found: {workRoot}/features/{FEATURE_ID}/

For ad-hoc validation, use: --hypothesis "your scenario description"

```

  1. If only HYPOTHESIS is set (no FEATURE_ID) -> ad-hoc mode.

Execution

Feature-bound Mode (FEATURE_ID provided)

Prerequisites
Step 1: Invoke Agent

{% dispatch_agent "rp1-dev:hypothesis-tester" %}

FEATURE_ID: {FEATURE_ID}

Validate all PENDING hypotheses for this feature.

{% enddispatch_agent %}

Agent actions: load hypotheses.md -> parse PENDING -> validate via experiment/analysis/research -> document findings w/ evidence -> update status CONFIRMED|REJECTED -> cleanup temp artifacts -> report summary

Step 2: Handle Rejected Hypotheses

Parse agent output. If JSON block w/ type: "rejected_hypotheses":

{
  "type": "rejected_hypotheses",
  "hypotheses": [...],
  "hypotheses_path": "..."
}

For each rejected:

{% ask_user "{id} REJECTED: {statement}. Evidence: {evidence_summary}. Domain knowledge confirms valid?", options: "Accept rejection", "Override - I confirm valid" %}

If "Override":

  1. Edit hypotheses.md:

If "Accept rejection": No change (status remains REJECTED)

Ad-hoc Mode (HYPOTHESIS provided, no FEATURE_ID)

Step 1: Invoke Agent

{% dispatch_agent "rp1-dev:hypothesis-tester" %}

HYPOTHESIS: {HYPOTHESIS}

Validate this ad-hoc hypothesis. Create a hypothesis document, run the experiment, and persist findings.

{% enddispatch_agent %}

Agent actions: generate slug -> create hypothesis document at {workRoot}/hypotheses/{date}-{slug}.md -> synthesize HYP-001 -> validate via experiment/analysis/research -> document findings -> report summary

No rejected-hypothesis gating for ad-hoc mode (no feature design to gate).

Report Result

Display validation summary. Note any user overrides (feature-bound mode only).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.