Skip to content
Back to skills

Edsl Scenario Lists

ASecurity

Construct EDSL ScenarioLists from Python data, files, combinations, images, or other supported sources.

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

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add expectedparrot/edsl --skill edsl-scenario-lists --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Edsl Scenario Lists?

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

Security grade badge for Edsl Scenario Lists
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/expectedparrot-edsl-scenario-lists/badge)](https://www.skillsdirectory.com/skills/expectedparrot-edsl-scenario-lists)

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-scenario-lists
description: Construct EDSL ScenarioLists from Python data, files, combinations, images, or other supported sources.
tags: [edsl, reference]
---

# EDSL ScenarioList

For a custom sampling or analysis script, export the records with `ep scenarios show frame.ep --limit 0 -o rows.json`. Work with the JSON array, then write the selected records through `ep scenarios create --from-json selected.json -o selected.ep`. Reopen the output with `ep validate --file selected.ep --type scenario_list`. In Python, use `ScenarioList.git.load(path, sync_coop=False)` and `ScenarioList(rows).git.save(output_path, sync_coop=False)` when the script needs native EDSL types.

To revise one item in a saved list, run `ep scenarios edit-item scenarios.ep --index 0 --patch '{"city":"Boston"}'`. Use `--insert` to append or insert an item and `--remove --index N` to delete one. Add `--output revised.ep` to keep the original.

To verify a saved dataset against arithmetic or eligibility rules, run `ep scenarios check-rows data.ep --require bounds "0 <= low <= high <= eligible"`. Repeat `--require NAME EXPRESSION` for each independent check. When a rule applies only to some records, use `--require-if NAME WHEN EXPRESSION`, for example `--require-if stock "active" "units > 0"`. The report counts skipped rows for each rule. Add `--id-field` when a reviewer needs record identifiers. The CLI checks every row. For a complete audit file, pass `--limit 0`. Otherwise the report lists up to 20 failed rows and sets `truncated` when there are more.

For an analyst handoff, select the fields to release with `ep scenarios transform source.ep --select participant_code --select score --fresh-package -o partner.ep`. This writes the selected rows with their original types into a single-revision file, excluding the codebook and earlier drafts. Inspect the rows and run `ep log partner.ep` before sharing.

For portable document inputs, run `ep scenarios create --from-file A.pdf --from-file B.pdf --file-key artwork -o proofs.ep`. If a CSV or XLSX already assigns files to records, use `ep scenarios create --from-csv handoff/placements.csv --file-column artwork -o placements.ep`. Add `--id-field placement` to identify every missing reference by record. Run `ep scenarios files placements.ep --id-field placement --limit 0` to verify the embedded bytes by row, field and SHA-256. Each named cell holds a path relative to the table's folder. The saved scenario contains the original file bytes. Reference `{{ scenario.artwork }}` in each question that uses it.

For newline-delimited records such as a downloaded event log, use `ep scenarios create --from-jsonl events.jsonl -o events.ep`. To keep a subset at import, add `--filter "not is_preview"` when the input includes that boolean field. The command reports how many rows it kept and excluded.

Use `ScenarioList` to represent scenario variations for surveys and jobs. Construct from `Scenario` instances, dictionaries, supported CSV/Excel inputs, or combinations. For image scenarios, use `Scenario.from_image(...)` and reference the image field in every question that needs the image.

CSV imports preserve text, including leading zeroes in IDs. To import numeric fields, use the original CSV headers, for example `ep scenarios create --from-csv catalog.csv --column-type price=float --column-type seats=int --output catalog.ep`. Empty numeric cells and invalid numbers produce a validation error with the CSV record number, column and value.

A CSV record with missing or extra fields stops the import before anything is saved. The error reports the record, its source lines, and the expected and actual field counts. Check the layout first with `ep inspect FILE.csv`.

Use scenario rows for the situations respondents evaluate. Pipe each detail needed for a decision into the corresponding question; other columns can serve as identifiers or analysis metadata. When a row describes the simulated respondent making the decision, import it as an `AgentList` (see `edsl:edsl-agent-lists`). `ScenarioList` supports normal mutable-sequence operations, including `.append()`. Save durable artifacts with `.git.save(...)`.

See the [detailed construction patterns](references/detailed-guide.md). Related bundles: `edsl:edsl-file-store`, `edsl:edsl-study-files`.

Import a worksheet with `ep scenarios create --from-xlsx stops.xlsx --sheet "Approved stops" --output stops.ep`. Excel text IDs such as `007` and codes such as `NA` stay text. Numeric cells retain their values, including cells with a custom display format.

Files in this skill

  • SKILL.md855 B
  • references/detailed-guide.md6 KB

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.