castform-ai/benchmax/design-environment
Claude Code and agent skill by castform-ai/benchmax
- community
Checking that the SKILL.md file is still in the repository.
Design a benchmax environment, its ordered dataset, tools, and explicit reward shape for a Castform project.
Install
npx vskill@latest install castform-ai/benchmax/design-environmentSKILL.md
Design an environment
Before coding, inspect the maintained examples, choose the closest task shape, and follow its README.md and main.py.
Use BaseEnv for the standard OpenAI-compatible chat and tool loop. Use HarborEnv for a Harbor dataset/package or tasks that ship their own instruction, sandbox, and verifier. Start with aime for packaged tasks or harvey for a custom harness. Do not infer Harbor from a judge, tool, or Dockerfile alone. Extend Environment directly only for another genuinely different rollout loop.
Required BaseEnv shape
Build each Example with a stable ID, normally canonical_example_id(payload). prompt_messages is the reserved BaseEnv payload field; all other fields become rollout.example_args. Put system messages in prompt_messages rather than ambient module state.
Dataset is an ordered base class, not a cleaning pipeline. The environment owns the runtime representation and can store lightweight references in payloads. Preparation, cleaning and QA generation belong in the project data script.
Reward contract
- Return named reward components from successful individual and group reward hooks.
- Return finite numbers and make correctness the dominant signal.
- Let judge, model, tool and sandbox operational failures propagate through the
typed runtime path. benchmax logs them and returns no rewards with a non-finished termination reason.
- Do not catch a judge failure and report it as a legitimate score.
- Programming, malformed-result and configuration errors should remain loud.
Override compute_group_rewards only when scoring genuinely depends on successful siblings. Failed siblings are excluded from group-relative scoring, and a failed group judge zeroes otherwise-successful siblings without cancelling the group.
Optional tools
BaseEnv supplies no tools by default. A tool-using environment returns standard OpenAI tool schemas from list_tools and dispatches them in run_tool:
Keep clients pickle-safe. Use InjectedAuth for calls through the Castform LLM endpoint so Castform supplies the current session credential. Use explicit StaticBearerAuth for a user-managed external endpoint; never read Castform credentials from benchmax environment code.
Model-request ownership
Treat model sampling as trainer-owned. A harness may request an output ceiling with max_tokens or max_completion_tokens; static validation emits a warning because Castform may clamp that ceiling to the remaining context budget. Do not set temperature, top_p, top_k, penalties, seed, or stop in agent or nested model kwargs. Static validation rejects them instead of allowing a later training failure. It also rejects unsupported controls such as n > 1, forced tool_choice, logprobs, and non-text response formats.
Review before handoff
- Test dataset identity and split ordering.
- Unit-test empty, wrong, partial and correct completions against every reward key.
- Exercise tool errors and judge errors and confirm zero rewards plus an explicit
termination reason and log.
- Load verify-environment and run the real two-sibling validation.
- Record every remote runtime import in
RUNTIME_DEPENDENCIESfor launch-run.
For Harbor, require sandbox credentials and the matching provider extra in the bundle dependencies, for example harbor[modal]>=0.18,<0.19.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/castform/src/castform/cli/scaffold/skills/design-environment/SKILL.md
Popularity
- Repository stars
- 49
- Repository forks
- 3
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 5 Aug 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/castform-ai/benchmax/design-environment)