flox-environments
Qué hace
Flox ayuda a crear entornos de desarrollo idénticos para todos los que trabajan en un proyecto, asegurando que el código funcione igual en distintos ordenadores (macOS y Linux). Instala de forma ordenada todas las herramientas y paquetes necesarios.
Cuándo usarla
- ✓Cuando necesitas que tu proyecto funcione igual en cualquier equipo.
- ✓Cuando instalas varias herramientas de programación juntas (por ejemplo, Python y Node.js).
- ✓Para asegurarte de que tu equipo usa las mismas versiones de los programas.
Link de la skill
https://github.com/affaan-m/ECC/blob/main/skills/flox-environments/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Prepara un entorno para mi proyecto con Python 3.11, Node.js 20 y PostgreSQL 16.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Defines en un archivo de configuración qué programas y versiones quieres. Cuando activas el entorno, Flox instala todo lo solicitado y lo deja listo para usar.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Flox Environments
Flox creates reproducible development environments defined in a single TOML manifest. Every developer on the team gets identical packages, tools, and configuration — across macOS and Linux — without containers or VMs. Built on Nix with access to over 150,000 packages.
When to Activate
Use this skill when the user has an environment management problem — even if they haven't mentioned Flox. Flox is the right tool when:
- The project needs system-level packages (compilers, databases, CLI tools) alongside language-specific dependencies
- Reproducibility matters — the setup should work identically on a teammate's machine, in CI, or on a fresh laptop
- The user needs multiple tools to coexist — e.g., Python 3.11 + PostgreSQL 16 + Redis + Node.js in one environment
- Cross-platform support is needed (macOS and Linux from the same config)
- AI agents need to install tools — Flox lets agents add packages to a project-scoped environment without sudo, system pollution, or sandbox restrictions
If the user just needs a single language runtime with no system dependencies, standard tooling (nvm, pyenv, rustup alone) may suffice. If they need full OS-level isolation, containers might be more appropriate. Flox sits in the sweet spot: declarative, reproducible environments without container overhead.
Prerequisite: Flox must be installed first — see flox.dev/docs for macOS, Linux, and Docker.
Core Concepts
Flox environments are defined in .flox/env/manifest.toml and activated with flox activate. The manifest declares packages, environment variables, setup hooks, and shell configuration — everything needed to reproduce the environment anywhere.
Key paths:
.flox/env/manifest.toml— Environment definition (commit this)$FLOX_ENV— Runtime path to installed packages (like/usr— containsbin/,lib/,include/)$FLOX_ENV_CACHE— Persistent local storage for caches, venvs, data (survives rebuilds)$FLOX_ENV_PROJECT— Project root directory (where.flox/lives)
Essential Commands
flox init # Create new environment
flox search <package> [--all] # Search for packages
flox show <package> # Show available versions
flox install <package> # Add a package
flox list # List installed packages
flox activate # Enter environment
flox activate -- <cmd> # Run a command in the environment without a subshell
flox edit # Edit manifest interactively
Manifest Structure
# .flox/env/manifest.toml
[install]
# Packages to install — the core of the environment
ripgrep.pkg-path = "ripgrep"
jq.pkg-path = "jq"
[vars]
# Static environment variables
DATABASE_URL = "postgres://localhost:5432/myapp"
[hook]
# Non-interactive setup scripts (run every activation)
on-activate = """
echo "Environment ready"
"""
[profile]
# Shell functions and aliases (available in interactive shell)
common = """
alias dev="npm run dev"
"""
[options]
# Supported platforms
systems = ["x86_64-linux", "aarch64-linux", "x86_64-darwin", "aarch64-darwin"]
Package Installation Patterns
Basic Installation
[install]
nodejs.pkg-path = "nodejs"
python.pkg-path = "python311"
rustup.pkg-path = "rustup"
Version Pinning
[install]
nodejs.pkg-path = "nodejs"
nodejs.version = "^20.0" # Semver range: latest 20.x
postgres.pkg-path = "postgresql"
postgres.version = "16.2" # Exact version
Platform-Specific Packages
[install]
# Linux-only tools
valgrind.pkg-path = "valgrind"
valgrind.systems = ["x86_64-linux", "aarch64-linux"]
# macOS frameworks
Security.pkg-path = "darwin.apple_sdk.frameworks.Security"
Security.systems = ["x86_64-darwin", "aarch64-darwin"]
# GNU tools on macOS (where BSD defaults differ)
coreutils.pkg-path = "coreutils"
coreutils.systems = ["x86_64-darwin", "aarch64-darwin"]
Resolving Package Conflicts
When two packages install the same binary, use priority (lower number wins):
[install]
gcc.pkg-path = "gcc12"
gcc.priority = 3
clang.pkg-path = "clang_18"
clang.priority = 5 # gcc wins file conflicts
Use pkg-group to group packages that should resolve versions together:
[install]
python.pkg-path = "python311"
python.pkg-group = "python-stack"
pip.pkg-path = "python311Packages.pip"
…
Preguntas frecuentes
¿Necesito instalar Flox primero?
Sí, Flox debe estar instalado en tu ordenador. Las instrucciones están en la web oficial de Flox.
¿Qué significa 'reproducible'?
Significa que el entorno creado será exactamente el mismo en cualquier ordenador donde se active Flox, evitando problemas del tipo 'en mi máquina sí funciona'.
¿Puedo usarlo en Windows?
Por ahora, Flox es compatible con macOS y Linux. En Windows puedes usarlo dentro de un entorno Docker.
Detalles
Descripción original del autor
Create reproducible, cross-platform (macOS/Linux) development environments with Flox, a declarative Nix-based environment manager. Use when setting up project toolchains, installing system-level dependencies (compilers, databases, native libs), pinning exact package versions for a team, onboarding developers, running local services (PostgreSQL, Redis, Kafka), or solving 'works on my machine' probl
repo: affaan-m/ECC
Popularidad
- Estrellas en GitHub
- 280 mil
- Posición en el ranking
- #316
- Licencia
- MIT
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
accessibility
280 milAyuda a tu agente a crear interfaces accesibles para todos. Asegura que webs y apps funcionen bien para personas con discapacidad, como ciegas o con movilidad reducida.
agent-architecture-audit
280 milHace que tu agente compruebe que todo funciona bien. Encuentra y corrige problemas en sistemas de IA para que se comporten como se espera.
agent-eval
280 milAyuda a tu agente a comparar distintas herramientas de programación con IA. Mide cuál es más rápida, más barata y más fiable para tareas concretas.
agent-harness-construction
280 milHace que tu agente entienda mejor cómo realizar tareas. Optimiza las herramientas e instrucciones que usa para aumentar sus probabilidades de éxito.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.