Flox dev environments
Sets up reproducible Flox environments on macOS and Linux, so every teammate and CI run gets the same tools.
What we improved
Fixed the [include] example. Flox composes environments with an environments list of { remote = "owner/name" } or { dir = "path" } entries, not base.floxhub = "...". Added flox include upgrade and which manifest wins on conflicts. Moved eve
Improved by YourAISkill from the original by affaan-m, under its MIT licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.
Claude's review
8/10 Practical Flox guide: workflow, manifest sections, pinning, groups and priorities, language recipes with idempotent hooks, services, sharing and anti-patterns that fix real mistakes.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
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' problems — including agent/vibe-coding setups that need project-scoped tools without sudo. Also use when the user mentions .flox/, manifest.toml, flox activate, or FloxHub.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: flox-environments
description: "Create and maintain reproducible, cross-platform (macOS and Linux) development environments with Flox, the declarative Nix-based environment manager. Use when setting up a project toolchain, adding system-level dependencies (compilers, databases, native libraries, CLI tools), pinning package versions for a team, running local services such as PostgreSQL or Redis, onboarding developers, fixing 'works on my machine' problems, or letting an AI agent add project-scoped tools without sudo. Covers manifest.toml sections ([install], [vars], [hook], [profile], [services], [include], [options]), version pinning, package groups and priorities, language recipes (Python with uv, Node.js, Rust, Go, C/C++), anti-patterns, sharing through git or FloxHub, and debugging. Also use when the user mentions .flox/, manifest.toml, flox activate or FloxHub."
metadata:
origin: Flox
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by affaan-m. See CHANGES.md. -->
# Flox Environments
Flox creates reproducible development environments from one TOML manifest. Everyone on the team gets the same packages, tools and setup on macOS and Linux, without containers or VMs. It is built on Nix and installs packages from the Nixpkgs collection.
## When to reach for Flox
Use this skill when the user has an environment problem, even if they have not mentioned Flox:
- The project needs **system-level packages** (compilers, databases, CLI tools) alongside language dependencies.
- **Reproducibility matters**: the setup must work the same on a teammate's machine, in CI and on a fresh laptop.
- **Several tools must coexist**, for example Python 3.11, PostgreSQL 16, Redis and Node.js in one environment.
- **macOS and Linux** must work from the same config.
- **An agent needs to add tools**: once Flox is installed, adding a package to a project environment needs no sudo and leaves the rest of the system untouched.
If the project needs only one language runtime and no system packages, the language's own tool (nvm, pyenv, rustup) may be enough. If it needs full OS-level isolation, use a container. Flox fits between the two.
**Prerequisite:** Flox must be installed (this needs admin rights once). Check with `flox --version`; install instructions are at https://flox.dev/docs/install-flox/install/.
## Workflow
1. Look for an existing `.flox/` directory. If there is one, read `.flox/env/manifest.toml` (or run `flox list -c`) and extend it rather than starting over.
2. Otherwise run `flox init` in the project root.
3. Find exact package names before writing them: `flox search <term>`, then `flox show <package>` for available versions. Names change across Nixpkgs releases, so never guess them from memory.
4. Add packages with `flox install <package>`, or edit the manifest (`flox edit`) when you also need vars, hooks, services or pins.
5. Check the result: `flox activate -- <tool> --version` for each new tool. Activation fails loudly if the manifest does not resolve.
6. Commit `.flox/` (manifest and lock file) so teammates and CI get the same versions.
## Core concepts
Environments live in `.flox/env/manifest.toml`; resolved versions are recorded in `.flox/env/manifest.lock`. Enter one with `flox activate`, or run a single command inside it with `flox activate -- <cmd>`.
...From affaan-m's repository, MIT licence.
Related skills
-
Checked
Elastic SLOs and Alerts
Sets realistic reliability targets in Elastic with alerts that fire when it matters, not at every small blip.
7/101 credit -
Checked
Grafana synthetic checks
Writes Grafana Cloud synthetic checks in k6 with assertions that really fail, so outages get caught early.
8/101 credit -
Checked
OpenTofu Infrastructure Setup
Sets up OpenTofu infrastructure code with encrypted state, remote locking, tests and a clean move from Terraform.
7/101 credit -
Checked
Synthetic Monitoring Probes
Sets up scheduled checks that test your live site's key journeys around the clock and alert only on real outages.
7/101 credit -
Checked
Your Own Deploy Platform
Turns a plain server into your own deploy platform with Dokku, including databases and certificates.
8/101 credit -
Checked
Safe deploys and rollbacks
Plans deploys, migrations and rollbacks by blast radius with kill switches, so a bad change can be undone.
7/101 credit