src/autoskillit/skills_extended/exp-lens-estimand-clarity/SKILL.md
Create Estimand Clarity experimental design analysis decomposing the implicit estimand from code vs. explicit claims from prose. Evidential lens answering "What exactly is the claim?"
npx skillsauth add talont-org/autoskillit exp-lens-estimand-clarityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Philosophical Mode: Evidential Primary Question: "What exactly is the claim?" Focus: Effect Definition, Target Population, Outcome Specification, Comparator, Aggregation Level, Complication Handling
/autoskillit:exp-lens-estimand-clarity [context_path] [experiment_plan_path]
/autoskillit:exp-lens-estimand-clarity or /autoskillit:make-experiment-diag estimandNEVER:
{{AUTOSKILLIT_TEMP}}/exp-lens-estimand-clarity/run_in_background: true is prohibited)ALWAYS:
Decompose every stated claim into formal contrast notation (Treatment A vs Treatment B on Outcome Y in Population Z)
Flag every mismatch between prose claims and code implementation
Identify the aggregation level (unit, group, time) explicitly
Document how complications (missing data, failures, exclusions) are handled
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-estimand-clarity/exp_diag_estimand_clarity_{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-estimand-clarity/exp_diag_estimand_clarity_{...}.md
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.
Spawn Explore subagents to investigate:
Stated Claims & Hypotheses
Treatment Definition
Outcome Definition
Population & Scope
Complication Handling
Answer each question from the code (not the docs):
Compare the explicit claims (from docs/papers) to the implicit estimand (from code). Flag mismatches between what the prose asserts and what the implementation actually measures.
CRITICAL — Analyze Claim Precision: For every stated claim:
If a diagram adds value, create a simplified flowchart. This is OPTIONAL for this hybrid lens — the tables are the primary output.
Direction: TB (claim flows from intervention through measurement to conclusion)
Small diagram: 4-6 nodes showing Treatment → Mechanism → Outcome → Claim
Node Styling:
cli class: treatment/intervention nodeshandler class: mechanism/pipeline nodesoutput class: measured outcome nodesphase class: stated claim nodesgap class: ambiguity or mismatch between claim and measurementWrite the analysis to: {{AUTOSKILLIT_TEMP}}/exp-lens-estimand-clarity/exp_diag_estimand_clarity_{YYYY-MM-DD_HHMMSS}.md (relative to the current working directory)
# Estimand Clarity Analysis: {Experiment Name}
**Lens:** Estimand Clarity (Evidential)
**Question:** What exactly is the claim?
**Date:** {YYYY-MM-DD}
**Scope:** {What was analyzed}
## Estimand Decomposition
| Component | Stated | Implemented | Match? |
|-----------|--------|-------------|--------|
| Treatment | {from prose} | {from code} | Yes / No / Partial |
| Comparator | {from prose} | {from code} | Yes / No / Partial |
| Outcome | {from prose} | {from code} | Yes / No / Partial |
| Population | {from prose} | {from code} | Yes / No / Partial |
| Time Horizon | {from prose} | {from code} | Yes / No / Partial |
| Complication Handling | {from prose} | {from code} | Yes / No / Partial |
## Claim Precision Assessment
| Claim | Formal Contrast | Ambiguities |
|-------|----------------|-------------|
| "{stated claim}" | Treatment A vs B on Y in Z | {list ambiguities} |
## Claim-Flow Diagram (Optional)
```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;
TREATMENT["Treatment<br/>━━━━━━━━━━<br/>{intervention name}"]
MECHANISM["Mechanism<br/>━━━━━━━━━━<br/>{pipeline step}"]
OUTCOME["Measured Outcome<br/>━━━━━━━━━━<br/>{metric}"]
CLAIM["Stated Claim<br/>━━━━━━━━━━<br/>{claim text}"]
MISMATCH["Mismatch<br/>━━━━━━━━━━<br/>{ambiguity description}"]
TREATMENT --> MECHANISM
MECHANISM --> OUTCOME
OUTCOME --> CLAIM
OUTCOME -.->|"diverges"| MISMATCH
class TREATMENT cli;
class MECHANISM handler;
class OUTCOME output;
class CLAIM phase;
class MISMATCH gap;
Color Legend: | Color | Category | Description | |-------|----------|-------------| | Dark Blue | Treatment | Intervention applied | | Orange | Mechanism | Pipeline processing | | Dark Teal | Outcome | Measured result | | Purple | Claim | Stated conclusion | | Yellow | Mismatch | Ambiguity or claim-code divergence |
| # | Ambiguity | Location | Severity | Resolution Needed | |---|-----------|----------|----------|-------------------| | 1 | {description} | {file/section} | High / Medium / Low | {what to clarify} |
---
## 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-causal-assumptions` - For causal structure of the stated claim
- `/autoskillit:exp-lens-measurement-validity` - For whether the outcome metric is valid
development
Generate YAML recipes for .autoskillit/recipes/. Use when user says "make script skill", "generate script", "script a workflow", "write a script", "create a script", "new recipe", "write a pipeline", or when loaded by other skills for script formatting.
data-ai
Create Uncertainty Representation visualization planning spec showing error bar definitions, distribution-aware alternatives, and multi-seed variance protocols. Statistical lens answering "How is uncertainty honestly represented?"
data-ai
Create Temporal Dynamics visualization planning spec showing axis scaling (linear vs log), smoothing disclosure, epoch/step alignment, run aggregation (mean + variance bands), early-stopping markers, and wall-clock vs step-count x-axis. Temporal lens answering "Are training dynamics shown clearly and honestly?"
data-ai
Create Narrative Story Arc visualization planning spec showing visual consistency across the report (same color = same model everywhere), logical figure progression, redundant figure detection, and narrative dependency between figures. Narrative lens answering "Do the figures tell a coherent story across the report?"