# Run2 Project Alignment

> Procedures for aligning a project-specific environment to its `environment.yml` and project-root structure.

- Skill: `cxcscmu/run2-project-alignment` (Agent Skill)
- Install (CLI): `npx get-skill add cxcscmu/run2-project-alignment`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cxcscmu/run2-project-alignment/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: cxcscmu (https://skillmd.com/u/cxcscmu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/cxcscmu/run2-project-alignment

---


### Aligning Project Environment
When a project provides an `environment.yml` but `conda` is unavailable, align the project manually using `pip`.

1. **Extracting Pip Dependencies**:
   Extract all `pip:` entries from the `environment.yml` and install them.
   
2. **Managing PYTHONPATH**:
   Ensure the project root is in the `PYTHONPATH` to correctly resolve local imports.
   ```bash
   export PYTHONPATH=$PYTHONPATH:$(pwd)
   ```

3. **Verifying with Unit Tests**:
   Run unit tests from the project root and ensure they use the correct trainer/config classes by referencing them as `scripts.<module>` or similar.

4. **Saving Results for Reproductivity**:
   Always use fixed output files like `/root/loss.npz` and document system versions in `/root/python_info.txt` to help others reproduce results exactly.

