Extropy Operator
Run experiments end to end, with strict quality gates and reproducible commands.
Operating Rules
- Execute commands; do not only describe them.
- Validate upstream artifacts before expensive downstream stages.
- Use explicit evidence (paths, SQL, metrics) for every conclusion.
- Keep assumptions visible and minimal.
- Escalate after repeated failure of the same gate.
Runtime Dependencies and Credential Scope
- Required binary:
extropy must be installed and on PATH.
- Config file read:
~/.config/extropy/config.json.
- Credentials expected: provider API keys from env vars (
OPENAI_API_KEY, ANTHROPIC_API_KEY, OPENROUTER_API_KEY, DEEPSEEK_API_KEY, AZURE_API_KEY/AZURE_OPENAI_API_KEY).
- Azure endpoint vars:
AZURE_ENDPOINT or AZURE_OPENAI_ENDPOINT when using Azure providers.
- Safety boundary: only access credentials/config needed to execute extropy commands for the requested study/scenario, do not inspect raw
.env values, and avoid reading unrelated files.
Canonical Pipeline
extropy spec -> extropy scenario -> extropy persona -> extropy sample -> extropy network -> extropy simulate -> extropy results
Quick Runbook
STUDY=runs/my-study
SCENARIO=ai-shock
# 1) Study + base population
extropy spec "5000 US working-age adults" -o "$STUDY" --use-defaults
cd "$STUDY"
extropy config set cli.mode agent
# 2) Scenario + persona
extropy scenario "AI systems outperform most knowledge workers in 6 months" -o "$SCENARIO" -y
extropy persona -s "$SCENARIO" -y
# 3) Sample + network
extropy sample -s "$SCENARIO" -n 5000 --seed 42 --strict-gates
extropy network -s "$SCENARIO" --seed 42 --quality-profile strict --validate
# 4) Simulate
extropy simulate -s "$SCENARIO" --seed 42 --fidelity high --rpm-override 1000
# 5) Results + raw extraction
extropy results -s "$SCENARIO" summary
extropy results -s "$SCENARIO" timeline
extropy query states --to states.jsonl
Required Quality Gates
spec: extropy validate population.vN.yaml passes.
scenario: extropy validate scenario/<name>/scenario.vN.yaml passes.
persona: persona file exists and validates.
sample: count correct, coherence gates pass, no critical impossibles.
network: no isolated catastrophes, topology metrics in acceptable range.
simulate: run completes or checkpoints cleanly with recoverable state.
Recommended Command Surface
- Build:
spec, scenario, persona, sample, network, simulate
- Inspect:
results summary|timeline|segment|agent
- Deep checks:
query summary|network|network-status|sql|agents|edges|states
- Agent QA:
chat list, chat ask
Module Map
OPERATIONS.md: stage-by-stage execution and rerun strategy.
TROUBLESHOOTING.md: failure diagnosis and escalation policy.
ANALYSIS.md: post-run metrics, SQL patterns, reporting structure.
SCENARIOS.md: scenario/pipeline design patterns and limits.
REPORT_TEMPLATE.md: standardized delivery format.
1---
2name: extropy
3description: "Execution-first operator for Extropy: run pipelines, diagnose failures, and deliver evidence-backed simulation analysis using current CLI contracts."
4allowed-tools: Read, Grep, Glob, Bash, Edit, Write
5argument-hint: "[goal or experiment request]"
6always: false
7source: "https://github.com/exaforge/extropy"
8homepage: "https://github.com/exaforge/extropy"
9required-binaries:
10 - extropy
11required-env-vars:
12 - OPENAI_API_KEY
13 - ANTHROPIC_API_KEY
14 - OPENROUTER_API_KEY
15 - DEEPSEEK_API_KEY
16 - AZURE_API_KEY
17 - AZURE_ENDPOINT
18 - AZURE_OPENAI_API_KEY
19 - AZURE_OPENAI_ENDPOINT
20 - MODELS_FAST
21 - MODELS_STRONG
22 - SIMULATION_FAST
23 - SIMULATION_STRONG
24 - SIMULATION_MAX_CONCURRENT
25 - SIMULATION_RATE_TIER
26 - SIMULATION_RPM_OVERRIDE
27 - SIMULATION_TPM_OVERRIDE
28required-config-files:
29 - ~/.config/extropy/config.json
30primary-credential: "Provider API keys via environment variables"
31required_binaries:
32 - extropy
33required_env_vars:
34 - OPENAI_API_KEY
35 - ANTHROPIC_API_KEY
36 - OPENROUTER_API_KEY
37 - DEEPSEEK_API_KEY
38 - AZURE_API_KEY
39 - AZURE_ENDPOINT
40 - AZURE_OPENAI_API_KEY
41 - AZURE_OPENAI_ENDPOINT
42 - MODELS_FAST
43 - MODELS_STRONG
44 - SIMULATION_FAST
45 - SIMULATION_STRONG
46 - SIMULATION_MAX_CONCURRENT
47 - SIMULATION_RATE_TIER
48 - SIMULATION_RPM_OVERRIDE
49 - SIMULATION_TPM_OVERRIDE
50required_config_files:
51 - ~/.config/extropy/config.json
52primary_credential: "Provider API keys via environment variables"
53metadata:
54 source: https://skillmd.com/skills/modbender/extropy
55 requires:
56 binaries:
57 - extropy
58 config_files:
59 - ~/.config/extropy/config.json
60 environment_variables:
61 - OPENAI_API_KEY
62 - ANTHROPIC_API_KEY
63 - OPENROUTER_API_KEY
64 - DEEPSEEK_API_KEY
65 - AZURE_API_KEY
66 - AZURE_ENDPOINT
67 - AZURE_OPENAI_API_KEY
68 - AZURE_OPENAI_ENDPOINT
69 - MODELS_FAST
70 - MODELS_STRONG
71 - SIMULATION_FAST
72 - SIMULATION_STRONG
73 - SIMULATION_MAX_CONCURRENT
74 - SIMULATION_RATE_TIER
75 - SIMULATION_RPM_OVERRIDE
76 - SIMULATION_TPM_OVERRIDE
77 credentials:
78 primary:
79 - provider API keys via environment variables only
80 notes:
81 - extropy reads model/provider settings from ~/.config/extropy/config.json
82 - do not read raw .env contents unless explicitly requested by the user
83---
84
85# Extropy Operator
86
87Run experiments end to end, with strict quality gates and reproducible commands.
88
89## Operating Rules
90
911. Execute commands; do not only describe them.
922. Validate upstream artifacts before expensive downstream stages.
933. Use explicit evidence (paths, SQL, metrics) for every conclusion.
944. Keep assumptions visible and minimal.
955. Escalate after repeated failure of the same gate.
96
97## Runtime Dependencies and Credential Scope
98
99- Required binary: `extropy` must be installed and on `PATH`.
100- Config file read: `~/.config/extropy/config.json`.
101- Credentials expected: provider API keys from env vars (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `OPENROUTER_API_KEY`, `DEEPSEEK_API_KEY`, `AZURE_API_KEY`/`AZURE_OPENAI_API_KEY`).
102- Azure endpoint vars: `AZURE_ENDPOINT` or `AZURE_OPENAI_ENDPOINT` when using Azure providers.
103- Safety boundary: only access credentials/config needed to execute extropy commands for the requested study/scenario, do not inspect raw `.env` values, and avoid reading unrelated files.
104
105## Canonical Pipeline
106
107```bash
108extropy spec -> extropy scenario -> extropy persona -> extropy sample -> extropy network -> extropy simulate -> extropy results
109```
110
111## Quick Runbook
112
113```bash
114STUDY=runs/my-study
115SCENARIO=ai-shock
116
117# 1) Study + base population
118extropy spec "5000 US working-age adults" -o "$STUDY" --use-defaults
119cd "$STUDY"
120extropy config set cli.mode agent
121
122# 2) Scenario + persona
123extropy scenario "AI systems outperform most knowledge workers in 6 months" -o "$SCENARIO" -y
124extropy persona -s "$SCENARIO" -y
125
126# 3) Sample + network
127extropy sample -s "$SCENARIO" -n 5000 --seed 42 --strict-gates
128extropy network -s "$SCENARIO" --seed 42 --quality-profile strict --validate
129
130# 4) Simulate
131extropy simulate -s "$SCENARIO" --seed 42 --fidelity high --rpm-override 1000
132
133# 5) Results + raw extraction
134extropy results -s "$SCENARIO" summary
135extropy results -s "$SCENARIO" timeline
136extropy query states --to states.jsonl
137```
138
139## Required Quality Gates
140
141- `spec`: `extropy validate population.vN.yaml` passes.
142- `scenario`: `extropy validate scenario/<name>/scenario.vN.yaml` passes.
143- `persona`: persona file exists and validates.
144- `sample`: count correct, coherence gates pass, no critical impossibles.
145- `network`: no isolated catastrophes, topology metrics in acceptable range.
146- `simulate`: run completes or checkpoints cleanly with recoverable state.
147
148## Recommended Command Surface
149
150- Build: `spec`, `scenario`, `persona`, `sample`, `network`, `simulate`
151- Inspect: `results summary|timeline|segment|agent`
152- Deep checks: `query summary|network|network-status|sql|agents|edges|states`
153- Agent QA: `chat list`, `chat ask`
154
155## Module Map
156
157- `OPERATIONS.md`: stage-by-stage execution and rerun strategy.
158- `TROUBLESHOOTING.md`: failure diagnosis and escalation policy.
159- `ANALYSIS.md`: post-run metrics, SQL patterns, reporting structure.
160- `SCENARIOS.md`: scenario/pipeline design patterns and limits.
161- `REPORT_TEMPLATE.md`: standardized delivery format.