feat(experiments): add draft launchdarkly-experiment-hypothesis-builder skill#95
feat(experiments): add draft launchdarkly-experiment-hypothesis-builder skill#95mabramowitz-pixel wants to merge 6 commits into
Conversation
…er skill Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Skill eval results
Only suites whose source actually changed since their last recorded score were re-run. Soft-failing while we stabilise the baseline. |
|
From the eval on #96 — here's a prompt you can paste into Claude (run from the repo root) to fix the three findings, then re-run the eval to confirm it goes green. The three findings map to failing assertions in the suite ( via LD Research 🤖 |
… alignment in hypothesis-builder Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…hard, dominant, and strip write walkthrough Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ag/update-feature-flag) at top of hypothesis-builder Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ilder Five test cases picked by the three-lens method (golden path, weak-input coaching, search-term stemming, metric<->outcome alignment, non-real input safety). Adds shared list-metrics / list-metric-events tool defs + mocks (reused by future experiment and metrics suites), manifest entry, and npm scripts. Stacked on the skill PR (#95) so the diff is eval-only. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…o obtain IDs; leave null Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…h) blocking — forbid A/A hypothesis + silent metric substitution Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Eval outcome + known residual (A/A gating)The eval suite (#96) is green against these skill fixes. Summary of the three behaviors the evals check:
Known residual — A/A gating (model adherence). For the input "A/A test to validate bucketing," the agent (Sonnet 4.6) recognizes it's an A/A yet still drafts an "A/A validation hypothesis" rather than stopping to confirm intent. Step 0 was strengthened twice to forbid exactly this (an A/A has identical variants ⇒ no hypothesis; reply must be a single clarifying question), and the agent still builds the package. Behavior is also noisy run-to-run. This is a model-adherence limitation on one input, not a wording gap — the suite clears the 75% gate because the other four cases are clean and nothing writes. Filing as a known limitation rather than over-tuning the prose further. |
Summary
This PR is meant to be a way to share a draft skill internally as we build out our in-product UI AI assisted hypothesis. We will expand it after we ensure that this will solve what's needed for that project. This skill is
launchdarkly-experiment-hypothesis-builder, that coaches a user from a rough idea to a strong, testable experiment hypothesis (if/then/because structure, single-variable isolation, falsifiability, grounding).Includes a
references/diagnostic-tree.mdthat diagnoses weak hypotheses by flaw type (vague intervention, no measurable metric, missing mechanism, not falsifiable, multi-variable, ungrounded, metric↔outcome mismatch) and walks each to a corrected hypothesis → flag → variations → metrics → guardrails → config summary.Marked draft (
v0.1.0,status: draft) for review(Same-repo replacement for #94, which was opened from a fork and couldn't run the Skill Evals — fork PRs don't receive the
ANTHROPIC_API_KEYsecret.)Testing approaches
python3 scripts/validate_skills.py→ 42 skills validate successfully.skills.jsonviapython3 scripts/generate_catalog.py(new entry included).launchdarkly-experiment-setup's create-experiment steps.Feature flags
N/A
🤖 Generated with Claude Code