dvampire/autogenesis/environment-creator-skill

Claude Code and agent skill by dvampire/autogenesis

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Create new environments, improve/optimize existing environments, and evaluate environment quality — the full environment lifecycle in this framework. Use whenever the task involves authoring a new environment (a stateful Python class exposing actions, plus an ENVIRONMENT.md), editing/improving an existing environment, or evaluating/scoring one. MetaAgent uses it to orchestrate the create→evaluate→improve loop across sub-agents.

Install

npx vskill@latest install dvampire/autogenesis/environment-creator-skill

SKILL.md

Environment Creator

A single skill for the full lifecycle of environments: creating, improving, and evaluating them. An environment is a stateful Python class over the shared base Environment that exposes named actions an agent can call, paired with an ENVIRONMENT.md manifest.

How this skill is used — four roles, one body of knowledge

  • MetaAgent (orchestrator role) — drives the create→evaluate→improve loop. See Orchestration.
  • environment_generate_agent — reads Creating an environment.
  • environment_optimize_agent — reads Improving an environment.
  • environment_evaluate_agent — reads Evaluating an environment.

The sub-agents are headless: each runs one phase autonomously and returns a result.

Framework conventions (read once)

An environment is a directory: {extension_root}/environment/{name}/

{name}/
├── environment.py # REQUIRED — the Python class (registered) with @action methods
├── ENVIRONMENT.md # REQUIRED — YAML frontmatter + body (State / Vision / Actions)
└── __init__.py # imports the class so it registers on load

Registration is automatic via a hook: after writing the files, include the environment directory (or environment.py) path in your done_tool reasoning — the environment_registration_hook registers it.

Start from the templates: read references/environment_template.py (the class) and references/environment_md_template.md (the manifest), copy them, and adapt.

The Python class
python
from typing import Any, Dict
from pydantic import ConfigDict, Field
from autogenesis.environment.server import environment_manager
from autogenesis.environment.types import Environment
from autogenesis.registry import ENVIRONMENT
@ENVIRONMENT.register_module(force=True)
class MyEnvironment(Environment):
"""One-line purpose."""
model_config = ConfigDict(arbitrary_types_allowed=True, extra="allow")
def __init__(self, **kwargs):
super().__init__(**kwargs)
async def initialize(self) -> None:
"""Set up resources (called once before first use)."""
async def cleanup(self) -> None:
"""Tear down resources."""
@environment_manager.action(
name="do_thing",
description="What this action does and when to use it.",
)
async def do_thing(self, ctx, some_arg: str, **kwargs):
"""Perform the action; return a result (string/dict/base64 image for vision envs)."""
return {"ok": True, "echo": some_arg}
  • Each callable is an action declared with @environment_manager.action(name=..., description=...).
  • State lives on the instance (that's what makes an environment stateful, unlike a stateless tool). Key per-session state by ctx when the environment serves concurrent sessions.
  • If the environment returns images (screenshots), it's a vision environment — say so in ENVIRONMENT.md so the agent knows to inspect the image.
The ENVIRONMENT.md manifest
markdown
---
name: my_environment
description: One line — what the environment is and when to use it.
version: 1.0.0
type: worker
---
<environment_my_environment>
## State
What the environment holds/simulates and how it behaves.
## Vision
(Only if actions return images.) What the visual output is and how to use it.
## Actions
### do_thing
What it does, its arguments, and when to call it.

The body documents the environment's state, (optional) vision, and each action — this is what an agent reads before acting. Keep action docs concrete.

Verify and register

After writing: python -m py_compile /abs/path/environment.py. When it compiles, put the environment directory path in your done_tool reasoning so the hook registers it.


Evaluating an environment

Call inspect_environment_tool on the target for its registry facts (registered / enable_evolving / version / file paths). Score across:

  1. Interface Compliance — @ENVIRONMENT.register_module, subclass Environment, actions declared with @environment_manager.action, initialize/cleanup present where resources are used.
  2. Code Quality — valid, clean, proper resource handling and error handling; per-session state correctly keyed by ctx.
  3. Manifest Quality — ENVIRONMENT.md has the required frontmatter and a body documenting State / (Vision) / every Action.
  4. Integration — inspect_environment_tool shows it registered.
  5. Execution — actions have a valid path; where feasible, exercise an action and check the result.

Improving an environment

The target is named in the task. Call inspect_environment_tool FIRST for its file paths and enable_evolving — if enable_evolving=False, the environment is frozen; do NOT edit it, report and stop. Read environment.py (and ENVIRONMENT.md) before editing; make the smallest correct change; preserve @ENVIRONMENT.register_module, the class name, and existing action names/signatures unless the task requires changing them; keep the manifest's Actions section in sync with the code. Verify with py_compile, then re-register via the directory path in done_tool reasoning.


Orchestration (for MetaAgent)

  1. Generate — dispatch environment_generate_agent; it writes environment.py + ENVIRONMENT.md and registers.
  2. Evaluate — dispatch environment_evaluate_agent (optionally after exercising an action) to score.
  3. Improve — dispatch environment_optimize_agent with the evaluation; it edits and re-registers.
  4. Repeat until the environment is good.

Reference files

  • references/environment_template.py — a ready-to-copy environment class (@environment_manager.action, initialize/cleanup, per-session state).
  • references/environment_md_template.md — the ENVIRONMENT.md manifest skeleton (State / Vision / Actions).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dvampire/autogenesis/environment-creator-skill/badge)](https://verified-skill.com/skills/dvampire/autogenesis/environment-creator-skill)

Something wrong with this skill or its page? Tell us.