Skip to content
Back to skills

Edsl Study Files

ASecurity

EDSL object source files and reproducible construction of Survey, ScenarioList, AgentList, ModelList, Jobs, and Results.

  • 523 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 21, 2026
ai-agentspythongitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add expectedparrot/edsl --skill edsl-study-files --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Edsl Study Files?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Edsl Study Files
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/expectedparrot-edsl-study-files/badge)](https://www.skillsdirectory.com/skills/expectedparrot-edsl-study-files)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: edsl-study-files
description: EDSL object source files and reproducible construction of Survey, ScenarioList, AgentList, ModelList, Jobs, and Results.
tags: [edsl, files, jobs]
---

# EDSL study files

Choose the input object by what one row represents:

- **A simulated respondent.** Import profiles with `ep agents create --from-csv people.csv --name-field name --output people.ep` and pass `--agents people.ep` to `ep jobs build` or `--agent_list people.ep` to `ep run`. Use the actual name column, or omit `--name-field` when there is none. The other columns become traits that an ordinary simulated respondent receives in its persona prompt.
- **A situation or stimulus.** Import it as a `ScenarioList`. Pipe each relevant field into the question that needs it, e.g. `{{ product_description }}`. Identifiers can stay in Results for matching records.

For a pilot, inspect a saved decision prompt for one respondent. Check the system and user prompts for the profile details or stimulus that should influence that decision. A name or a Results column alone only identifies the row.

For a previous version of a local `.ep` file, use `ep log survey.ep` to identify the commit. Use `ep inspect survey.ep --ref COMMIT --markdown` to read it, or `ep inspect survey.ep --ref COMMIT --save fielded.ep` to give a colleague an independent copy containing only that revision.

Keep object construction in readable source files, export named EDSL objects, and save durable objects with their supported `.git.save(...)` interface. Build `Jobs` from the saved component objects with `ep jobs build`; run it with `ep run ... --output results.ep`. Do not run inference as an import-time side effect of a Python source file.

For balanced A/B studies, save one assignment per respondent. Build with `ep jobs build --expect-interviews N` using the intended count per iteration. If scenarios have a designated agent identified by a field, build with `--match-agents-scenarios AGENT_FIELD SCENARIO_FIELD` (use `agent.name` for a saved agent name). If any scenario has no unique owner, the command lists the affected rows and competing agents before it writes a job. If separate agent and scenario files have one matching row per respondent in the same order, add `--pair-agents-scenarios`. If a group should shape simulated judgments, include it in the persona or question. Use `ep jobs preview-prompt jobs.ep QUESTION --interview-index N` to check the actual prompts from each group and arm. For a saved job, run `ep jobs variants study.ep --group-by scenario.arm --unique-by agent.name --expect-interviews 16` with your own assignment fields and intended count. Use each returned interview index to rehearse its version, including a boundary reply that must be rejected. See [one assigned stimulus per respondent](references/assigned-stimuli.md) for both a joined scenario and a Jinja conditional.

When auditing a saved treatment schedule, export `iteration` (zero-based round)
and `treatment.condition` alongside the relevant scenario field with
`ep jobs variants`. These fields come from the realized assignment, so a blind
stimulus code can remain separate from its condition name. If a crossover
requires each condition once per participant and model, check the combination
with `--unique-by agent.name --unique-by model.model --unique-by treatment.condition`;
also check the expected interview count and conditions.

For a coordinator’s interview run sheet, start with `ep inspect study.ep`. Run the command in `data.commands.list_schedule_fields` to discover available columns, or use `data.commands.export_schedule_csv` to write the assigned rows in order. Change the CSV filename and columns for the handoff. Repeated assignments each get a row.

Before writing a study-specific builder or analyzer, search for the research method with `ep skills search "<method>"`. Run a matching entry’s `guide_command` to read its package workflow before installation. Its README in the [Expected Parrot package directory](https://github.com/expectedparrot/directory) covers setup. For example, Green builds discrete-choice studies, Conversation manages multi-agent discussions, and Umriss calibrates synthetic populations against survey marginals. When a package fits the brief, follow its installation instructions, including any EDSL version pin. Run its `installed_guide_command` and use `installed_next_command` when present to resume the project. Check which files it exports or imports when handing work between the package and `ep`.

Use `ep inspect agents.ep --markdown --page 1 --page-size 5` to present a page of agents with stacked traits and instructions. The same command previews saved scenarios, models, jobs, results, surveys, collections, and prompts. Check the exit code before presenting the Markdown.

When checking which study waves used an approved questionnaire, run `ep results check-survey pilot.ep web.ep --against approved.ep`. A saved Survey, Jobs or Results file can supply the reference. On a mismatch, read every entry in `error.details` and keep its `results_path` beside its `survey_matches` value. Matching question templates can show different stimuli. For example, inspect `scenario.fare` in each wave before comparing support for a priced offer.

Before reusing archived responses, run `ep results check-survey results.ep --against jobs.ep` to compare the saved survey definitions, then run `ep results check-assignments results.ep --against jobs.ep -n 2 --by agent.name --by scenario.site --by scenario.material --by model.model` with the intended number of iterations and the fields that distinguish your assignments. Include the stimulus or model parameters when those differences matter. A mismatch returns the planned and received counts and can still write a complete exceptions CSV with `-o exceptions.csv`. Rename an output column with `--by scenario.site=site` or `--by iteration.iteration=round`.

For an Excel source, start with `ep inspect source.xlsx` to see sheet names, headers and typed sample rows. Use `ep scenarios create --from-xlsx` or `ep agents create --from-xlsx` with `--sheet` to import the selected worksheet directly.

For completed Results, `ep inspect pilot.ep --sample 3` returns the first three answer rows. To check what a model actually saw, follow `commands.inspect_recorded_prompts` in the JSON summary. Compare the saved user prompt with the answer from the same interview. A missing recorded prompt leaves that comparison unknown.

For a model replication table, use `ep inspect models.ep --sample 4` to inspect the saved generation settings. Export every entry in its original order with `ep models export models.ep --column model_name --column service_name --column temperature --output lineup.csv`. Repeated model names can represent different settings. An empty parameter cell can mean absent or null.

Common files include `study_survey.py`, `study_scenario_list.py`, `study_agent_list.py`, and optionally `study_model_list.py`. Use `ep models create` for ordinary model selections when it covers the needed configuration.

Use the installed CLI help and `edsl:edsl-surveys` for current APIs. `Agent.name` is a distinct constructor field, not a trait.

To audit whether saved Results cover the intended sample, compare them directly with the original Jobs package: `ep results check-assignments results.ep --against study.ep -n 2` for a two-wave study. The error details identify a missing wave even when a duplicate keeps the total row count correct.

This skill covers EDSL file and object conventions only. Study design choices, cost approval, remote execution policies, reporting workflows, and EP Agent scaffolds belong to the separately managed EP Agent environment (`ep-agent:workflow-file-layout`, `ep-agent:workflow-model-selection`).

For a partner feed of selected Results, use `ep results export results.ep --filter "answer.share == 'Yes'" --field answer.follow_up requests --output referrals.ndjson`. Repeat `--field COLUMN NAME` for each field the recipient should receive. The JSON Lines export preserves arrays, nulls, and source order and returns the written row count.

To enrich one saved ScenarioList from another, use `ep scenarios join visits.ep rates.ep --on site --on period --id-field visit_id --output priced.ep`. When choosing between lookup tables, run the join on each candidate with `--check-only --require-value FIELD --id-field ID`. This reports each affected input record, including repeated keys. Read the unmatched and incomplete counts and their examples. If examples are truncated and you need every ID, increase `--max-examples`. Use the same required fields when saving the chosen join.

Check a local CSV with `ep inspect input.csv` to see its header, row count and a sample. CSV list imports report the first malformed record and its source lines before saving. A short record cannot identify which column was omitted. If the study needs every source row, request the complete record before handing off the list.

When a run reports failed interviews, inspect `data.meta.completion.answered_interviews` and `data.meta.failed_interview_count` in the run receipt. A row with a saved answer can also have a failed question. Use the saved Results when reporting which answers are available.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.