Agent skill

nlp-research-repo-package-installment

Align Python version and repo-declared dependencies (requirements.txt / environment.yml) before installing packages for NLP research code reproduction.

Stars 897
Forks 232

Install this agent skill to your Project

npx add-skill https://github.com/benchflow-ai/skillsbench/tree/main/tasks-no-skills/simpo-code-reproduction/environment/skills/nlp-research-repo-package-installment

SKILL.md

NLP Research Repo Package Installment

When reproducing an NLP research repo, always align the environment to the repo’s declared dependencies first. Most failures come from Python version mismatch or installing packages without following requirements.txt / environment.yml.

What to do (must run before any install)

  1. Read the repo dependency files
  • Prefer environment.yml / environment.yaml (often pins Python + channels + non-pip deps)
  • Otherwise use requirements.txt (pip deps)
  • If both exist, treat environment.yml as the base, requirements.txt as supplemental unless README says otherwise
  1. Log the current environment (Python version is critical)
    Write /root/python_int.txt containing:
  • python -VV (required; Python version is often the root cause)
  • python -m pip --version
  • python -m pip freeze
  1. Compare & decide
  • If the repo expects a specific Python major/minor and the current Python does not match, it’s usually best to set up a matching environment before installing dependencies. Example: set up a fresh Python 3.11 environment (Docker / Ubuntu) with uv # Install uv apt-get update apt-get install -y --no-install-recommends curl ca-certificates rm -rf /var/lib/apt/lists/* curl -LsSf https://astral.sh/uv/0.9.7/install.sh | sh export PATH="/root/.local/bin:$PATH"

      # Install Python + create a venv
      uv python install 3.11.8
      uv venv --python 3.11.8 /opt/py311
    
      # Use the new Python for installs/runs
      /opt/py311/bin/python -VV
      /opt/py311/bin/python -m pip install -U pip setuptools wheel
    
  • Prefer installing from the repo’s dependency files (avoid random upgrades), then run a quick import/smoke test.

Expand your agent's capabilities with these related and highly-rated skills.

benchflow-ai/skillsbench

csv-processing

Use this skill when reading sensor data from CSV files, writing simulation results to CSV, processing time-series data with pandas, or handling missing values in datasets.

897 232
Explore
benchflow-ai/skillsbench

pid-controller

Use this skill when implementing PID control loops for adaptive cruise control, vehicle speed regulation, throttle/brake management, or any feedback control system requiring proportional-integral-derivative control.

897 232
Explore
benchflow-ai/skillsbench

yaml-config

Use this skill when reading or writing YAML configuration files, loading vehicle parameters, or handling config file parsing with proper error handling.

897 232
Explore
benchflow-ai/skillsbench

simulation-metrics

Use this skill when calculating control system performance metrics such as rise time, overshoot percentage, steady-state error, or settling time for evaluating simulation results.

897 232
Explore
benchflow-ai/skillsbench

vehicle-dynamics

Use this skill when simulating vehicle motion, calculating safe following distances, time-to-collision, speed/position updates, or implementing vehicle state machines for cruise control modes.

897 232
Explore
benchflow-ai/skillsbench

web-interface-guidelines

Vercel's comprehensive UI guidelines for building accessible, performant web interfaces. Use this skill when reviewing or building UI components for compliance with best practices around accessibility, performance, animations, and visual stability.

897 232
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results