Skip to content
Back to skills

Edsl Shared State

ASecurity

Design, validate, run, and inspect EDSL shared-state machines for durable state shared across interviews. Use when responses update common state, adaptive mechanisms, quotas, or scoped group state are required.

  • 523 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 25, 2026
ai-agentspythonexpressbackend

Works with

  • cli

Security analysis

A100/100

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

Scanned December 1, 2026

npx -y skills add expectedparrot/edsl --skill edsl-shared-state --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Edsl Shared State?

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

Security grade badge for Edsl Shared State
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/expectedparrot-edsl-shared-state/badge)](https://www.skillsdirectory.com/skills/expectedparrot-edsl-shared-state)

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-shared-state
description: Design, validate, run, and inspect EDSL shared-state machines for durable state shared across interviews. Use when responses update common state, adaptive mechanisms, quotas, or scoped group state are required.
tags: [edsl, shared-state, state-machine]
---

# EDSL shared state

Use shared state when multiple interviews need to read or update durable, typed
state through explicit transitions. Keep the machine definition, its scope, and
its storage backend conceptually separate:

- `Machine` defines fields, commands, requirements, views, and completion rules.
- `SharedState` groups named machines into one state space.
- `SharedStateMap` selects a separate state space for each scope key.
- A runner or workflow backend persists state as the work executes.

Start from the invariant the mechanism needs to enforce, then express it in a
machine. Machine definitions are serializable data; do not put Python callbacks
or model calls inside a machine. Validate definitions and capability requirements
before executing them. See [machine design and scopes](references/machines-and-scopes.md).

For survey integration, attach state reads, questions, and writes in execution
order. Use typed answer references such as `question.answer`, not strings that
look like Python expressions. Pick a stable scope key for the participants who
share state, and reuse the same serialized state map when resuming a run. See
[survey execution and state provenance](references/survey-execution.md).

Use the [worked examples](references/examples.md) for a small Machine and a
survey integration pattern. Fetch it with
`ep skills show edsl-shared-state --reference references/examples.md`.

The `ep` CLI can validate, inspect, and locally simulate serialized Machine JSON,
then inspect shared-state bindings in saved Results. It does not author a full
Machine interactively or persist the `state simulate` dry run. See
[shared-state CLI commands](references/cli.md).

This feature is experimental and versioned. Prefer the installed EDSL package's
schemas, CLI help, and matching references over examples from another release.
For multi-step assignment, branching, Humanize delivery, or respondent-level
workflow recovery, use `edsl-orchestration`; a workflow may use shared state as
one of its coordination mechanisms.

Files in this skill

  • SKILL.md2.3 KB
  • references/cli.md1.5 KB
  • references/examples.md987 B
  • references/machines-and-scopes.md2.5 KB
  • references/survey-execution.md2.1 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.