Agent skill

x-env

x-env is x-cmd's environment and package management module for installing and managing third-party software, programming language runtimes, and command-line tools. Use this skill when: installing or managing runtimes (node, python, go, bun, java, rust); installing CLI tools (jq, yq, fzf, himalaya, claude-code); managing multiple software versions (specify versions, switch versions); cleaning up unused packages; viewing installed software paths or dependencies; asking how to install software; temporarily using software in current shell session (try); permanently installing software to user environment (use); upgrading installed software versions; running scripts with specific software versions. This is the core package manager in x-cmd ecosystem.

Stars 19
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/x-cmd/skill/tree/main/data/x-cmd/x-env

Metadata

Additional technical details for this skill

tags
shell cli tools package-manager env runtime
author
X-CMD
version
1.0.0
category
core
install doc
data/install.md
display name
Environment & Package Manager

SKILL.md

x env - Environment & Package Manager

Prerequisites

  1. Load x-cmd before use:

    bash
    . ~/.x-cmd.root/X
    
  2. x-cmd not installed? → data/install.md

Core Concepts

  • try: Temporarily use software in current shell session (only valid for current terminal)
  • use: Permanently install software to user environment (persists after terminal restart)
  • untry: Cancel temporarily tried software in current session
  • unuse: Remove installed software from user environment
  • upgrade: Upgrade installed software versions

Core Functions

  • List available versions: x env la <pkg>
  • List installed packages: x env ls, x env ll
  • Temporary use (try): x env try <pkg>[=<version>]
  • Permanent install (use): x env use <pkg>[=<version>]
  • Remove package: x env unuse <pkg>
  • Upgrade package: x env upgrade <pkg>
  • Cleanup packages: x env gc <pkg>
  • Find command path: x env which <cmd>
  • Check dependencies: x env depend <pkg>

Usage Examples

Install packages

bash
x env use node              # Install default version of node
x env use python            # Install default version of python
x env use go=v1.21.0        # Install specific version
x env use node python go    # Install multiple packages

Temporary use (current shell session only)

bash
x env try node              # Use default node in current session
x env try bun go=v1.17.13   # Use multiple packages with versions
x env untry node            # Cancel temporary use

Version management

bash
x env use --upgrade --all   # Upgrade all installed packages
x env use --upgrade jq yq   # Upgrade specific packages
x env upgrade node python   # Upgrade packages (shorthand)

List and search

bash
x env la node               # List all available node versions
x env ls                    # List packages in use
x env ll                    # List all installed packages
x env which node            # Show node installation path

Cleanup

bash
x env gc jq yq              # Remove specified packages and orphans

Common Scenarios

  • Install node: x env use node
  • Install python: x env use python
  • Install go: x env use go
  • Install jq: x env use jq
  • Install specific version: x env use node=v18.12.0
  • Temporary try: x env try node
  • Upgrade all: x env upgrade --all
  • Find path: x env which node

Get Help

Run x env --help for full help documentation.

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

x-cmd/skill

pufferlib

High-performance reinforcement learning framework optimized for speed and scale. Use when you need fast parallel training, vectorized environments, multi-agent systems, or integration with game environments (Atari, Procgen, NetHack). Achieves 2-10x speedups over standard implementations. For quick prototyping or standard algorithm implementations with extensive documentation, use stable-baselines3 instead.

19 4
Explore
x-cmd/skill

fluidsim

Framework for computational fluid dynamics simulations using Python. Use when running fluid dynamics simulations including Navier-Stokes equations (2D/3D), shallow water equations, stratified flows, or when analyzing turbulence, vortex dynamics, or geophysical flows. Provides pseudospectral methods with FFT, HPC support, and comprehensive output analysis.

19 4
Explore
x-cmd/skill

metabolomics-workbench-database

Access NIH Metabolomics Workbench via REST API (4,200+ studies). Query metabolites, RefMet nomenclature, MS/NMR data, m/z searches, study metadata, for metabolomics and biomarker discovery.

19 4
Explore
x-cmd/skill

geniml

This skill should be used when working with genomic interval data (BED files) for machine learning tasks. Use for training region embeddings (Region2Vec, BEDspace), single-cell ATAC-seq analysis (scEmbed), building consensus peaks (universes), or any ML-based analysis of genomic regions. Applies to BED file collections, scATAC-seq data, chromatin accessibility datasets, and region-based genomic feature learning.

19 4
Explore
x-cmd/skill

zinc-database

Access ZINC (230M+ purchasable compounds). Search by ZINC ID/SMILES, similarity searches, 3D-ready structures for docking, analog discovery, for virtual screening and drug discovery.

19 4
Explore
x-cmd/skill

astropy

Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.

19 4
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results