generate-openenv-env
Skill2.6k starsChanged 8 months agoBSD-3-ClauseView on GitHub
Generate OpenEnv environments from a concrete use case (for example, "generate an env for the library textarena"). Use when asked to design or implement a new environment under envs/ by researching a target library/API, selecting matching OpenEnv examples, asking key implementation questions, and building models/client/server/openenv.yaml. Do not use for model training or evaluation tasks.
Trending
Quiet since October.about the whole repository
Who's talking about huggingface/OpenEnv
- aaif/project-proposals“[Project Proposal] OpenEnv”GitHub · Sep 28, 2026 · 2 reactions
- ProSkillsMD/proskills“[Candidate] huggingface/openenv/.claude/skills/deploy-hf - deploy-hf”GitHub · Oct 5, 2026
- ProSkillsMD/proskills“[Candidate] huggingface/openenv/.claude/skills/alignment-review - alignment-review”GitHub · Oct 5, 2026
- ProSkillsMD/proskills“[Candidate] huggingface/openenv/.agents/skills/openenv-cli - openenv-cli”GitHub · Oct 5, 2026
- sudosubin/agents.nix“agent-skills.github.huggingface.openenv: 0.5.0 → 0.7.0”GitHub · Oct 3, 2026
The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 22
Talked about on GitHub (22 times).
On GitHub · 22
- Sep 28, 2026[Project Proposal] OpenEnv — aaif/project-proposals2 reactions · 1 comment
- Oct 5, 2026[Candidate] huggingface/openenv/.claude/skills/deploy-hf - deploy-hf — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 5, 2026[Candidate] huggingface/openenv/.claude/skills/alignment-review - alignment-review — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 5, 2026[Candidate] huggingface/openenv/.agents/skills/openenv-cli - openenv-cli — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 3, 2026agent-skills.github.huggingface.openenv: 0.5.0 → 0.7.0 — sudosubin/agents.nix0 reactions
17 more on GitHub
- Oct 3, 2026[Add] OpenEnv (huggingface/OpenEnv) — PyTorchKR/landscape0 reactions
- Oct 2, 2026chore(deps): bump openenv from 0.5.0 to 0.6.0 — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Oct 2, 2026chore(deps): bump openenv from 0.5.0 to 0.6.0 in /openenv-custom-training — beer-sakthai/openenv-rl-training0 reactions · 3 comments
- Sep 29, 2026Add reset schema publication to /schema endpoint — scosman/OpenEnv0 reactions
- Sep 28, 2026agent-skills.github.huggingface.openenv: init at 0.5.0 — sudosubin/agents.nix0 reactions
- Sep 25, 2026chore(deps): bump openenv from 0.4.2 to 0.5.0 in /openenv-custom-training — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Sep 25, 2026chore(deps): bump openenv from 0.4.2 to 0.5.0 — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Sep 16, 2026chore(deps): bump openenv from 0.4.1 to 0.4.2 in /openenv-custom-training — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Sep 16, 2026chore(deps): bump openenv from 0.4.1 to 0.4.2 — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Sep 15, 2026build(deps): update openenv requirement from >=0.2.0 to >=0.4.2 — Manimaran-tech/swarm_analyst0 reactions
- Aug 27, 2026AsyncGRPO: train OpenEnv harnesses from validated token captures — huggingface/trl0 reactions · 5 comments
- Jul 24, 2026Point the opencode example at huggingface/OpenEnv — huggingface/trl0 reactions · 2 comments
- Jul 7, 2026build(deps): update openenv requirement from >=0.2.0 to >=0.4.1 — Manimaran-tech/swarm_analyst0 reactions · 1 comment
- Jun 23, 2026build(deps): update openenv requirement from >=0.2.0 to >=0.3.1 — Manimaran-tech/swarm_analyst0 reactions · 1 comment
- Jun 10, 2026[dprat0821] Add June watch for open agent training environments — Prompthon-IO/agent-systems-handbook0 reactions
- May 29, 2026mini_swe: stabilize async GRPO validation runs — rycerzes/OpenEnv0 reactions
- May 2, 2024Link Checker Dashboard 🔗 — ahgraber/AIMLbling-about0 reactions
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hf-cliSkill
- openenv-cliSkill
- alignment-reviewSkill
- deploy-hfSkill
- hf-space-recoverySkill
- implementSkill
- pre-submit-prSkill
- releaseSkill
- rfc-checkSkill
- simplifySkill
- sprintSkill
- update-docsSkill
- watch-prSkill
- work-on-issueSkill
- write-testsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 15 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
When invoked, execute this workflow end-to-end.
- Distinctive: line 19
Keep names short and domain-specific.
- Distinctive: line 26
Search local docs/examples first.
- Distinctive: line 27
Search upstream docs/repo for the target library when local context is insufficient.
- Very specific: line 40
Always read references/openenv-tutorial-01-environments.md (Part 10) and references/openenv-docs-environment-builder.md.
- Very specific: line 41
Prefer envs/textarena_env for external-library wrappers with richer state.
- Very specific: line 42
Add one simpler baseline (for example envs/snake_env or envs/echo_env) to keep the implementation minimal.
- Distinctive: line 43
Follow patterns, do not copy blindly.
- Very specific: line 50
Ask only the questions that materially affect architecture.
- Distinctive: line 59
If answers are unavailable, proceed with explicit assumptions and document them.
- Distinctive: line 71
Use the CLI to scaffold:
- Distinctive: line 79
If the CLI is unavailable (import errors, missing dependencies), create the structure manually matching:
- Very specific: line 95
Use assets/openenv_env_template/ as a reference for file contents when scaffolding manually.
- Very specific: line 109
Use typed models (Action/Observation/State).
- Very specific: line 110
Use create_app(<factory_or_class>, ActionType, ObservationType, env_name=...) in server/app.py.
- Very specific: line 113
Keep server logic in server/, keep client parsing in client.py.
- Distinctive: line 115
Keep reward logic inside the environment.
- Very specific: line 116
Prefer reset/step signatures compatible with Environment:
- Very specific: line 122
Keep openenv.yaml aligned with current scaffold format (spec_version: 1, name, type, runtime, app, port).
- Distinctive: line 123
Avoid training/evaluation code paths in this skill.
- Distinctive: line 127
Run the narrowest useful checks:
- Distinctive: line 140
If tests do not exist, run a smoke check:
- Distinctive: line 159
Do not route into model training/evaluation workflows.
- Distinctive: line 160
Do not invent library APIs.
- Very specific: line 161
Do not skip reading at least one existing OpenEnv env before implementation.
- Very specific: line 162
Do not copy outdated manifest patterns from older envs (name/version/action/observation-only manifests).
- Distinctive: line 163
Do not copy build artifacts or virtualenv files from example envs.
- Very specific: line 164
Do not set max_concurrent_envs > 1 unless the environment explicitly supports concurrent sessions.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/generate-openenv-env
Build a production-ready OpenEnv environment from a use-case prompt.
Execute Workflow
When invoked, execute this workflow end-to-end.
1. Parse the use case and name the environment
Derive a repo path in the form envs/<name>_env/.
- Normalize to snake_case.
- Keep names short and domain-specific.
- Example: "generate an env for the library textarena" ->
envs/textarena_env/.
2. Research the target library/API before coding
Gather the minimum interface facts needed to implement reset, step, and state serialization.
- Search local docs/examples first.
- Search upstream docs/repo for the target library when local context is insufficient.
- Extract only implementation-critical details:
- installation/dependency requirements
- environment creation API
- action format
- observation format
- reward and done semantics
- special setup (model files, downloads, auth, etc.)
3. Mine matching OpenEnv examples
Select 2-3 existing environments as implementation templates.
- Always read
references/openenv-tutorial-01-environments.md(Part 10) andreferences/openenv-docs-environment-builder.md. - Prefer
envs/textarena_envfor external-library wrappers with richer state. - Add one simpler baseline (for example
envs/snake_envorenvs/echo_env) to keep the implementation minimal. - Follow patterns, do not copy blindly.
- Exclude generated or vendored files when mining examples (
.venv/,build/,site-packages/,__pycache__/).
For a compact checklist and mapping, read references/env-generation-checklist.md.
4. Ask focused implementation questions
Ask only the questions that materially affect architecture. Use the question bank in references/env-generation-checklist.md.
Cover at least:
- action space contract
- observation fields needed by agents
- reward design and terminal conditions
- episode/session configuration knobs
- deployment target and dependency constraints
If answers are unavailable, proceed with explicit assumptions and document them.
5. Choose the environment archetype
Choose one archetype before scaffolding:
- Typed step/reset environment (default): use
EnvClient+ typedAction/Observation[/State]models. - MCP tool environment: use
MCPEnvironment+MCPToolClientand MCP action/observation types. - Specialized client flow (rare): only when the standard clients cannot express required behavior (for example local+remote hybrid clients).
6. Scaffold the environment
Use the CLI to scaffold:
PYTHONPATH=src uv run openenv init <name>_env --output-dir envsThis generates all files with correct placeholders replaced, including pyproject.toml, Dockerfile, and uv.lock.
If the CLI is unavailable (import errors, missing dependencies), create the structure manually matching:
envs/<name>_env/
├── __init__.py
├── client.py
├── models.py
├── openenv.yaml
├── pyproject.toml
└── server/
├── __init__.py
├── app.py
├── <name>_environment.py
└── DockerfileUse assets/openenv_env_template/ as a reference for file contents when scaffolding manually.
7. Implement with OpenEnv contracts
Implement these files in order:
models.pyserver/<name>_environment.pyserver/app.pyclient.pyopenenv.yamlREADME.md
Use these standards:
- Use typed models (Action/Observation/State).
- Use
create_app(<factory_or_class>, ActionType, ObservationType, env_name=...)inserver/app.py. Pass a class or factory callable, not an instantiated environment. - Dual-import pattern (required in
server/app.pyandserver/<name>_environment.py): Usetry: from ..models import X / except ImportError: from models import X. Relative imports work in-repo (PYTHONPATH=src:envs); bare imports work in Docker (PYTHONPATH=/app/env). The same pattern applies to intra-server imports (e.g.,from .foo import Barvsfrom server.foo import Bar). client.pyusesEnvClient[ActionType, ObservationType, State](three type parameters).- Keep server logic in
server/, keep client parsing inclient.py. - Expose config through environment variables when behavior is likely to vary.
- Keep reward logic inside the environment.
- Prefer reset/step signatures compatible with
Environment:reset(seed=None, episode_id=None, **kwargs)step(action, timeout_s=None, **kwargs)
- Set
SUPPORTS_CONCURRENT_SESSIONS=Trueonly when isolation is real. Setmax_concurrent_envsincreate_appaccordingly (1 whenFalse, >1 whenTrue). - For MCP/tool-call UIs that send stringified JSON arguments, add action validators/parsers in
server/app.py. - Export public client/models symbols in
__init__.py. - Keep
openenv.yamlaligned with current scaffold format (spec_version: 1,name,type,runtime,app,port). - Avoid training/evaluation code paths in this skill.
8. Validate before handoff
Run the narrowest useful checks:
# Verify in-repo imports work (catches missing dual-import pattern)
PYTHONPATH=src:envs uv run python -c "from envs.<name>_env.server.<name>_environment import <ClassName>Environment"
# Build and validate
cd envs/<name>_env
openenv build
openenv validate --level static --skip-build
PYTHONPATH=src:envs uv run pytest envs/<name>_env -qIf tests do not exist, run a smoke check:
PYTHONPATH=src:envs uv run uvicorn envs.<name>_env.server.app:app --port 8000
curl http://localhost:8000/health
openenv validate --url http://localhost:80009. Deliver with assumptions and gaps
Report:
- files created/updated
- chosen archetype (typed vs MCP vs specialized)
- assumptions made due to missing answers
- validation commands executed and outcomes
- remaining risks or follow-up questions
Guardrails
- Do not route into model training/evaluation workflows.
- Do not invent library APIs; confirm against source docs.
- Do not skip reading at least one existing OpenEnv env before implementation.
- Do not copy outdated manifest patterns from older envs (
name/version/action/observation-only manifests). - Do not copy build artifacts or virtualenv files from example envs.
- Do not set
max_concurrent_envs > 1unless the environment explicitly supports concurrent sessions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

