SKILL.md

Implement OpenEnv-compatible RL environments with FastAPI endpoints and deterministic behavior.

1|1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/AniketAslaliya/rehab_scheduler --skill skill-md-aniketaslaliya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: SKILL.md
Source: https://github.com/AniketAslaliya/rehab_scheduler/tree/main
Command: npx skills add https://github.com/AniketAslaliya/rehab_scheduler --skill skill-md-aniketaslaliya

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide solves the problem of successfully implementing an OpenEnv-compatible RL environment (with correct interfaces, wiring, reproducibility, and required endpoints) so validation passes and the environment runs reliably in local and Docker/HF settings.

Core Features & Use Cases

  • OpenEnv contract compliance: Ensures you implement the required reset/step/state methods and inherit from the correct OpenEnv base types.
  • FastAPI wiring and endpoint control: Guides correct use of create_fastapi_app plus adding hackathon endpoints like /tasks, /grader, and /baseline.
  • Robustness patterns: Covers seeded randomness for reproducibility, Pydantic v2 serialization/validation, and Docker import-path fixes.
  • Operational testing checklist: Provides a practical pre-commit workflow to verify /health, /tasks, /reset, /step, /baseline, and Docker build/run.

Quick Start

Ask the AI assistant to generate the missing OpenEnv environment wiring in server/app.py and fix any validation failures from openenv validate --verbose by following the project’s models and reset/step/state contracts.

Frequently Asked Questions about SKILL.md

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement an OpenEnv RL environment with the required FastAPI endpoints?

To implement an OpenEnv RL environment, inherit from correct OpenEnv base types, wire reset/step/state methods, and use create_fastapi_app to add hackathon routes like /tasks, /grader, /reset, and /step for valid interface compliance.

Why does my OpenEnv validation fail when running in Docker?

OpenEnv validation often fails in Docker due to incorrect import paths. Fix this by ensuring PYTHONPATH is configured correctly for module imports, allowing the environment to build and run reliably within the container.

How do I ensure reproducibility in a multi-task episodic RL environment?

Ensure reproducibility in a multi-task episodic RL environment by using seeded random generation. This guarantees deterministic behavior across reset and step cycles, making environment states predictable for validation.

Does OpenEnv require Pydantic v2 for state serialization?

Yes, OpenEnv requires Pydantic v2 for state serialization. You must use the Pydantic v2 model_dump method to ensure correct validation and data formatting when transmitting environment states through FastAPI endpoints.

What endpoints do I need to expose for an OpenEnv hackathon submission?

An OpenEnv hackathon submission requires exposing specific FastAPI endpoints: /health, /tasks, /grader, /baseline, /reset, /step, /state, and /ws to satisfy the competition's interface contract.

What is the best way to test an OpenEnv environment before submission?

The best way to test an OpenEnv environment is following a pre-commit operational checklist. Verify /health, /tasks, /reset, /step, and /baseline routes locally, then confirm Docker build and run succeed before validation.