Env setup

From linzhe001/Harness-Research · View interactive version

Env setup is an AI agent skill from the GitHub repository linzhe001/Harness-Research. Internal Harness instruction source for env-setup. Route through visible Harness aliases instead of invoking directly.

How to use this skill

Skill file

Env Setup

References

Read these first:

When To Use

Interpret natural-language requests as one of:

Required Work

`create`

  1. Gather environment name and dependency source.
  2. Create the environment when explicitly requested.
  3. Install dependencies.
  4. Check wandb installation and login if relevant.
  5. Run the refresh logic afterward.

`refresh`

  1. Detect Python, PyTorch, CUDA, GPU, relevant dependencies, conda env name, and wandb status.
  2. Use the shell commands listed in ./references/environment-refresh.md for the first-pass machine summary.
  3. Update the runtime environment facts in the ## Environment section of CLAUDE.md.
  4. Preserve ### Dataset Paths inside that section unless dataset addresses are intentionally being refreshed from project state.
  5. Preserve the rest of CLAUDE.md exactly.
  6. Follow ../init-project/references/claude-maintenance.md for section-safe final writes.
  7. Report a Gate ledger when dependency files, setup commands, or the CLAUDE.md environment section change. If py_compile or ruff checks are not relevant or cannot run, mark them NOT_RUN with the reason.

Codex Adaptation

Execution Rule

Follow the local prompt for environment detection and CLAUDE.md synchronization.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.