Benchmark Representativeness Experimental Design Lens
Philosophical Mode: Generalizability
Primary Question: "Does this generalize beyond the test bed?"
Focus: Task Distribution, Scenario Coverage, Missing Regions, Dataset Selection, Generalization Claims
Arguments
/autoskillit:exp-lens-benchmark-representativeness [context_path] [experiment_plan_path]
- context_path (optional positional arg 1) — Absolute path to a lens context file
containing IV/DV tables, H0/H1 hypotheses, controlled variables, and success criteria.
If provided, read this file before beginning analysis to obtain structured context.
If omitted, discover context by exploring the CWD.
- experiment_plan_path (optional positional arg 2) — Absolute path to the full
experiment plan. If provided, read for complete experimental methodology and design.
If omitted, locate the experiment plan by exploring the CWD.
When to Use
- Evaluating claims that extend beyond specific benchmarks
- Checking coverage of evaluation suite
- Assessing dataset diversity
- User invokes
/autoskillit:exp-lens-benchmark-representativeness or /autoskillit:make-experiment-diag benchmark
Critical Constraints
NEVER:
- Modify any source code files
- Do not litter the codebase with useless comments, TODO markers, or explanatory annotations — the skill output and diagram speak for themselves
- Create files outside
{{AUTOSKILLIT_TEMP}}/exp-lens-benchmark-representativeness/
- Run subagents in the background (
run_in_background: true is prohibited)
ALWAYS:
Focus on GENERALIZATION GAP between benchmark coverage and claimed scope
Show which regions of the target space are untested
Document the relationship between benchmark selection and generalization claims
Include a coverage matrix mapping scenarios to metrics
BEFORE creating any diagram, LOAD the /autoskillit:mermaid skill using the Skill tool - this is MANDATORY
If the Skill tool cannot be used (disable-model-invocation) or refuses this invocation, do NOT proceed with diagram creation. Abort this step and omit the diagram from output.
Write output to {{AUTOSKILLIT_TEMP}}/exp-lens-benchmark-representativeness/exp_diag_benchmark_representativeness_{YYYY-MM-DD_HHMMSS}.md
After writing the file, emit the structured output token as literal plain text with no
markdown formatting on the token name (the adjudicator performs a regex match):
diagram_path = /absolute/path/to/{{AUTOSKILLIT_TEMP}}/exp-lens-benchmark-representativeness/exp_diag_benchmark_representativeness_{...}.md
Analysis Workflow
Step 0: Parse optional arguments
If positional arg 1 (context_path) is provided and the file exists, read it to obtain
IV/DV tables, H0/H1 hypotheses, controlled variables, and success criteria. If positional
arg 2 (experiment_plan_path) is provided and exists, read the experiment plan for full
methodology. Use this structured context as the foundation for Steps 1-5; skip the CWD
exploration for these fields if the context file supplies them.
Step 1: Launch Parallel Exploration Subagents
Spawn Explore subagents to investigate:
Benchmark & Dataset Inventory
- Find all datasets, benchmarks, test suites used
- Look for:
benchmark, dataset, test_suite, eval, corpus, split, GLUE, ImageNet
Task & Scenario Coverage
- Find what scenarios, conditions, and domains are tested
- Look for:
task, scenario, domain, category, difficulty, subset
Metric Coverage
- Find all evaluation metrics used
- Look for:
metric, accuracy, f1, bleu, rouge, latency, cost, fairness
Claimed Generalization Scope
- Find claims about generality in docs, papers, READMEs
- Look for:
generalize, real-world, production, deploy, robust, transfer, domain
Distribution Characteristics
- Find data distribution analysis, class balance, domain stats
- Look for:
distribution, balance, skew, size, demographics, diversity
Step 2: Build the Coverage Matrix
Build the coverage matrix: rows = scenarios/domains tested, columns = metrics measured. Identify which cells are populated and which are gaps. Compare the coverage to the stated generalization claims.
Step 3: CRITICAL — Analyze Generalization Gap
For every generalization claim:
- Target population: What is the full population the claim extends to?
- Benchmark representation: What subset of that population is represented in the benchmark?
- Untested regions: What regions of the space are untested?
- Coverage ratio: Is the coverage sufficient to support the claim?
Distinguish clearly:
- Strong claims (e.g., "production-ready"): require broad, diverse coverage
- Scoped claims (e.g., "best on GLUE"): only require benchmark-specific coverage
- Implicit claims: claims made in framing but not stated explicitly
Step 4: Create the Diagram
Use flowchart with:
Direction: TB (claims flow from benchmarks up to generalization)
Subgraphs:
BENCHMARKS USED
SCENARIOS TESTED
METRICS MEASURED
GENERALIZATION CLAIMS
UNTESTED REGIONS
Node Styling:
stateNode class: benchmarks/datasets
handler class: tested scenarios
output class: measured metrics
cli class: generalization claims
gap class: untested regions/missing coverage
detector class: validation of generalization
Step 5: Write Output
Write the diagram to: {{AUTOSKILLIT_TEMP}}/exp-lens-benchmark-representativeness/exp_diag_benchmark_representativeness_{YYYY-MM-DD_HHMMSS}.md (relative to the current working directory)
Output Template
# Benchmark Representativeness Diagram: {System Name}
**Lens:** Benchmark Representativeness (Generalizability)
**Question:** Does this generalize beyond the test bed?
**Date:** {YYYY-MM-DD}
**Scope:** {What was analyzed}
## Coverage Matrix
| Scenario / Domain | {Metric A} | {Metric B} | {Metric C} | Coverage |
|-------------------|-----------|-----------|-----------|----------|
| {Scenario 1} | ✓ | ✓ | ✗ | Partial |
| {Scenario 2} | ✗ | ✗ | ✗ | None |
| {Scenario 3} | ✓ | ✓ | ✓ | Full |
## Benchmark Representativeness Diagram
```mermaid
%%{init: {'flowchart': {'nodeSpacing': 50, 'rankSpacing': 60, 'curve': 'basis'}}}%%
flowchart TB
%% CLASS DEFINITIONS %%
classDef cli fill:#1a237e,stroke:#7986cb,stroke-width:2px,color:#fff;
classDef stateNode fill:#004d40,stroke:#4db6ac,stroke-width:2px,color:#fff;
classDef handler fill:#e65100,stroke:#ffb74d,stroke-width:2px,color:#fff;
classDef phase fill:#6a1b9a,stroke:#ba68c8,stroke-width:2px,color:#fff;
classDef newComponent fill:#2e7d32,stroke:#81c784,stroke-width:2px,color:#fff;
classDef output fill:#00695c,stroke:#4db6ac,stroke-width:2px,color:#fff;
classDef detector fill:#b71c1c,stroke:#ef5350,stroke-width:2px,color:#fff;
classDef gap fill:#ff6f00,stroke:#ffa726,stroke-width:2px,color:#000;
classDef integration fill:#c62828,stroke:#ef9a9a,stroke-width:2px,color:#fff;
subgraph Benchmarks ["BENCHMARKS USED"]
direction TB
B1["{Benchmark 1}<br/>━━━━━━━━━━<br/>{size}, {domain}"]
B2["{Benchmark 2}<br/>━━━━━━━━━━<br/>{size}, {domain}"]
end
subgraph Scenarios ["SCENARIOS TESTED"]
direction TB
S1["{Scenario 1}<br/>━━━━━━━━━━<br/>{conditions}"]
S2["{Scenario 2}<br/>━━━━━━━━━━<br/>{conditions}"]
end
subgraph Metrics ["METRICS MEASURED"]
direction TB
M1["{Metric A}<br/>━━━━━━━━━━<br/>{what it captures}"]
M2["{Metric B}<br/>━━━━━━━━━━<br/>{what it captures}"]
end
subgraph Claims ["GENERALIZATION CLAIMS"]
direction TB
C1["{Claim 1}<br/>━━━━━━━━━━<br/>{source of claim}"]
C2["{Claim 2}<br/>━━━━━━━━━━<br/>{source of claim}"]
end
subgraph Gaps ["UNTESTED REGIONS"]
direction TB
G1["{Gap 1}<br/>━━━━━━━━━━<br/>{why it matters}"]
G2["{Gap 2}<br/>━━━━━━━━━━<br/>{why it matters}"]
end
VALIDATE["{Generalization Validity Check}<br/>━━━━━━━━━━<br/>Coverage vs. Claim scope"]
B1 --> S1
B2 --> S2
S1 --> M1
S2 --> M2
M1 --> C1
M2 --> C2
C1 --> VALIDATE
C2 --> VALIDATE
G1 -.->|missing| VALIDATE
G2 -.->|missing| VALIDATE
%% CLASS ASSIGNMENTS %%
class B1,B2 stateNode;
class S1,S2 handler;
class M1,M2 output;
class C1,C2 cli;
class G1,G2 gap;
class VALIDATE detector;
Color Legend:
| Color |
Category |
Description |
| Dark Teal |
Benchmarks |
Datasets and test suites used |
| Orange |
Scenarios |
Tested scenarios and conditions |
| Teal |
Metrics |
Measured evaluation metrics |
| Dark Blue |
Claims |
Generalization claims made |
| Yellow/Amber |
Gaps |
Untested regions of target space |
| Red |
Validation |
Generalization validity check |
Generalization Gap Analysis
| Claim |
Evidence (Benchmarks) |
Gap (Untested) |
Risk |
| {Claim 1} |
{What covers it} |
{What is missing} |
High/Med/Low |
| {Claim 2} |
{What covers it} |
{What is missing} |
High/Med/Low |
Representativeness Assessment
| Dimension |
Current Coverage |
Required for Claim |
Verdict |
| Domain diversity |
{count} domains |
{needed} |
✓/✗ |
| Task variety |
{count} tasks |
{needed} |
✓/✗ |
| Scale range |
{min}–{max} |
{needed} |
✓/✗ |
| Distribution shift |
{tested?} |
{needed} |
✓/✗ |
---
## Pre-Diagram Checklist
Before creating the diagram, verify:
- [ ] LOADED `/autoskillit:mermaid` skill using the Skill tool
- [ ] Using ONLY classDef styles from the mermaid skill (no invented colors)
- [ ] Diagram will include a color legend table
---
## Related Skills
- `/autoskillit:make-experiment-diag` - Parent skill for lens selection
- `/autoskillit:mermaid` - MUST BE LOADED before creating diagram
- `/autoskillit:exp-lens-measurement-validity` - For metric quality analysis
- `/autoskillit:exp-lens-validity-threats` - For systematic threat inventory
1---2name: exp-lens-benchmark-representativeness3description: Create Benchmark Representativeness experimental design diagram showing coverage matrix, generalization gaps, and untested regions. Generalizability lens answering "Does this generalize beyond the test bed?"4---56# Benchmark Representativeness Experimental Design Lens78**Philosophical Mode:** Generalizability9**Primary Question:** "Does this generalize beyond the test bed?"10**Focus:** Task Distribution, Scenario Coverage, Missing Regions, Dataset Selection, Generalization Claims1112## Arguments1314`/autoskillit:exp-lens-benchmark-representativeness [context_path] [experiment_plan_path]`1516- **context_path** (optional positional arg 1) — Absolute path to a lens context file17 containing IV/DV tables, H0/H1 hypotheses, controlled variables, and success criteria.18 If provided, read this file before beginning analysis to obtain structured context.19 If omitted, discover context by exploring the CWD.20- **experiment_plan_path** (optional positional arg 2) — Absolute path to the full21 experiment plan. If provided, read for complete experimental methodology and design.22 If omitted, locate the experiment plan by exploring the CWD.2324## When to Use2526- Evaluating claims that extend beyond specific benchmarks27- Checking coverage of evaluation suite28- Assessing dataset diversity29- User invokes `/autoskillit:exp-lens-benchmark-representativeness` or `/autoskillit:make-experiment-diag benchmark`3031## Critical Constraints3233**NEVER:**34- Modify any source code files35- Do not litter the codebase with useless comments, TODO markers, or explanatory annotations — the skill output and diagram speak for themselves36- Create files outside `{{AUTOSKILLIT_TEMP}}/exp-lens-benchmark-representativeness/`37- Run subagents in the background (`run_in_background: true` is prohibited)3839**ALWAYS:**40- Focus on GENERALIZATION GAP between benchmark coverage and claimed scope41- Show which regions of the target space are untested42- Document the relationship between benchmark selection and generalization claims43- Include a coverage matrix mapping scenarios to metrics44- BEFORE creating any diagram, LOAD the `/autoskillit:mermaid` skill using the Skill tool - this is MANDATORY45- If the Skill tool cannot be used (disable-model-invocation) or refuses this invocation, do NOT proceed with diagram creation. Abort this step and omit the diagram from output.46- Write output to `{{AUTOSKILLIT_TEMP}}/exp-lens-benchmark-representativeness/exp_diag_benchmark_representativeness_{YYYY-MM-DD_HHMMSS}.md`47- After writing the file, emit the structured output token as **literal plain text** with no48 markdown formatting on the token name (the adjudicator performs a regex match):4950 ```51 diagram_path = /absolute/path/to/{{AUTOSKILLIT_TEMP}}/exp-lens-benchmark-representativeness/exp_diag_benchmark_representativeness_{...}.md52 ```5354---5556## Analysis Workflow5758### Step 0: Parse optional arguments5960If positional arg 1 (context_path) is provided and the file exists, read it to obtain61IV/DV tables, H0/H1 hypotheses, controlled variables, and success criteria. If positional62arg 2 (experiment_plan_path) is provided and exists, read the experiment plan for full63methodology. Use this structured context as the foundation for Steps 1-5; skip the CWD64exploration for these fields if the context file supplies them.6566### Step 1: Launch Parallel Exploration Subagents6768Spawn Explore subagents to investigate:6970**Benchmark & Dataset Inventory**71- Find all datasets, benchmarks, test suites used72- Look for: `benchmark`, `dataset`, `test_suite`, `eval`, `corpus`, `split`, `GLUE`, `ImageNet`7374**Task & Scenario Coverage**75- Find what scenarios, conditions, and domains are tested76- Look for: `task`, `scenario`, `domain`, `category`, `difficulty`, `subset`7778**Metric Coverage**79- Find all evaluation metrics used80- Look for: `metric`, `accuracy`, `f1`, `bleu`, `rouge`, `latency`, `cost`, `fairness`8182**Claimed Generalization Scope**83- Find claims about generality in docs, papers, READMEs84- Look for: `generalize`, `real-world`, `production`, `deploy`, `robust`, `transfer`, `domain`8586**Distribution Characteristics**87- Find data distribution analysis, class balance, domain stats88- Look for: `distribution`, `balance`, `skew`, `size`, `demographics`, `diversity`8990### Step 2: Build the Coverage Matrix9192Build the coverage matrix: rows = scenarios/domains tested, columns = metrics measured. Identify which cells are populated and which are gaps. Compare the coverage to the stated generalization claims.9394### Step 3: CRITICAL — Analyze Generalization Gap9596For every generalization claim:97- **Target population**: What is the full population the claim extends to?98- **Benchmark representation**: What subset of that population is represented in the benchmark?99- **Untested regions**: What regions of the space are untested?100- **Coverage ratio**: Is the coverage sufficient to support the claim?101102Distinguish clearly:103- **Strong claims** (e.g., "production-ready"): require broad, diverse coverage104- **Scoped claims** (e.g., "best on GLUE"): only require benchmark-specific coverage105- **Implicit claims**: claims made in framing but not stated explicitly106107### Step 4: Create the Diagram108109Use flowchart with:110111**Direction:** `TB` (claims flow from benchmarks up to generalization)112113**Subgraphs:**114- `BENCHMARKS USED`115- `SCENARIOS TESTED`116- `METRICS MEASURED`117- `GENERALIZATION CLAIMS`118- `UNTESTED REGIONS`119120**Node Styling:**121- `stateNode` class: benchmarks/datasets122- `handler` class: tested scenarios123- `output` class: measured metrics124- `cli` class: generalization claims125- `gap` class: untested regions/missing coverage126- `detector` class: validation of generalization127128### Step 5: Write Output129130Write the diagram to: `{{AUTOSKILLIT_TEMP}}/exp-lens-benchmark-representativeness/exp_diag_benchmark_representativeness_{YYYY-MM-DD_HHMMSS}.md` (relative to the current working directory)131132---133134## Output Template135136```markdown137# Benchmark Representativeness Diagram: {System Name}138139**Lens:** Benchmark Representativeness (Generalizability)140**Question:** Does this generalize beyond the test bed?141**Date:** {YYYY-MM-DD}142**Scope:** {What was analyzed}143144## Coverage Matrix145146| Scenario / Domain | {Metric A} | {Metric B} | {Metric C} | Coverage |147|-------------------|-----------|-----------|-----------|----------|148| {Scenario 1} | ✓ | ✓ | ✗ | Partial |149| {Scenario 2} | ✗ | ✗ | ✗ | None |150| {Scenario 3} | ✓ | ✓ | ✓ | Full |151152## Benchmark Representativeness Diagram153154```mermaid155%%{init: {'flowchart': {'nodeSpacing': 50, 'rankSpacing': 60, 'curve': 'basis'}}}%%156flowchart TB157 %% CLASS DEFINITIONS %%158 classDef cli fill:#1a237e,stroke:#7986cb,stroke-width:2px,color:#fff;159 classDef stateNode fill:#004d40,stroke:#4db6ac,stroke-width:2px,color:#fff;160 classDef handler fill:#e65100,stroke:#ffb74d,stroke-width:2px,color:#fff;161 classDef phase fill:#6a1b9a,stroke:#ba68c8,stroke-width:2px,color:#fff;162 classDef newComponent fill:#2e7d32,stroke:#81c784,stroke-width:2px,color:#fff;163 classDef output fill:#00695c,stroke:#4db6ac,stroke-width:2px,color:#fff;164 classDef detector fill:#b71c1c,stroke:#ef5350,stroke-width:2px,color:#fff;165 classDef gap fill:#ff6f00,stroke:#ffa726,stroke-width:2px,color:#000;166 classDef integration fill:#c62828,stroke:#ef9a9a,stroke-width:2px,color:#fff;167168 subgraph Benchmarks ["BENCHMARKS USED"]169 direction TB170 B1["{Benchmark 1}<br/>━━━━━━━━━━<br/>{size}, {domain}"]171 B2["{Benchmark 2}<br/>━━━━━━━━━━<br/>{size}, {domain}"]172 end173174 subgraph Scenarios ["SCENARIOS TESTED"]175 direction TB176 S1["{Scenario 1}<br/>━━━━━━━━━━<br/>{conditions}"]177 S2["{Scenario 2}<br/>━━━━━━━━━━<br/>{conditions}"]178 end179180 subgraph Metrics ["METRICS MEASURED"]181 direction TB182 M1["{Metric A}<br/>━━━━━━━━━━<br/>{what it captures}"]183 M2["{Metric B}<br/>━━━━━━━━━━<br/>{what it captures}"]184 end185186 subgraph Claims ["GENERALIZATION CLAIMS"]187 direction TB188 C1["{Claim 1}<br/>━━━━━━━━━━<br/>{source of claim}"]189 C2["{Claim 2}<br/>━━━━━━━━━━<br/>{source of claim}"]190 end191192 subgraph Gaps ["UNTESTED REGIONS"]193 direction TB194 G1["{Gap 1}<br/>━━━━━━━━━━<br/>{why it matters}"]195 G2["{Gap 2}<br/>━━━━━━━━━━<br/>{why it matters}"]196 end197198 VALIDATE["{Generalization Validity Check}<br/>━━━━━━━━━━<br/>Coverage vs. Claim scope"]199200 B1 --> S1201 B2 --> S2202 S1 --> M1203 S2 --> M2204 M1 --> C1205 M2 --> C2206 C1 --> VALIDATE207 C2 --> VALIDATE208 G1 -.->|missing| VALIDATE209 G2 -.->|missing| VALIDATE210211 %% CLASS ASSIGNMENTS %%212 class B1,B2 stateNode;213 class S1,S2 handler;214 class M1,M2 output;215 class C1,C2 cli;216 class G1,G2 gap;217 class VALIDATE detector;218```219220**Color Legend:**221| Color | Category | Description |222|-------|----------|-------------|223| Dark Teal | Benchmarks | Datasets and test suites used |224| Orange | Scenarios | Tested scenarios and conditions |225| Teal | Metrics | Measured evaluation metrics |226| Dark Blue | Claims | Generalization claims made |227| Yellow/Amber | Gaps | Untested regions of target space |228| Red | Validation | Generalization validity check |229230## Generalization Gap Analysis231232| Claim | Evidence (Benchmarks) | Gap (Untested) | Risk |233|-------|----------------------|----------------|------|234| {Claim 1} | {What covers it} | {What is missing} | High/Med/Low |235| {Claim 2} | {What covers it} | {What is missing} | High/Med/Low |236237## Representativeness Assessment238239| Dimension | Current Coverage | Required for Claim | Verdict |240|-----------|-----------------|-------------------|---------|241| Domain diversity | {count} domains | {needed} | ✓/✗ |242| Task variety | {count} tasks | {needed} | ✓/✗ |243| Scale range | {min}–{max} | {needed} | ✓/✗ |244| Distribution shift | {tested?} | {needed} | ✓/✗ |245```246247---248249## Pre-Diagram Checklist250251Before creating the diagram, verify:252253- [ ] LOADED `/autoskillit:mermaid` skill using the Skill tool254- [ ] Using ONLY classDef styles from the mermaid skill (no invented colors)255- [ ] Diagram will include a color legend table256257---258259## Related Skills260261- `/autoskillit:make-experiment-diag` - Parent skill for lens selection262- `/autoskillit:mermaid` - MUST BE LOADED before creating diagram263- `/autoskillit:exp-lens-measurement-validity` - For metric quality analysis264- `/autoskillit:exp-lens-validity-threats` - For systematic threat inventory