用 Flox 为项目创建可复现、跨平台且免污染的开发环境。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "flox-environments" 技能: 1. 下载 https://raw.githubusercontent.com/affaan-m/ECC/main/skills/flox-environments/SKILL.md 2. 保存为 ~/.claude/skills/flox-environments/SKILL.md 3. 装好后重载技能,告诉我可以用了
请用 Flox 为一个 Node.js + PostgreSQL 项目生成开发环境方案,要求在 macOS 和 Linux 上一致可用,包含 nodejs、pnpm、postgresql,并给出 manifest.toml 示例、启动命令和团队使用说明。
一套可直接落地的 Flox 配置示例,含依赖清单、启动步骤与协作说明。
我需要一个可复现的 Python 数据分析环境,请用 Flox 配置 python、pip、openssl、blas、lapack,并固定关键版本,说明如何让团队成员一条命令完成环境初始化。
包含版本锁定策略的 Flox 环境方案,以及面向团队的快速初始化流程。
请把一个依赖 gcc、cmake 和 libvips 的 C++ 项目迁移成 Flox 管理的声明式环境,目标是避免 sudo 安装和系统污染,并提供提交到仓库后的最佳实践。
一份声明式环境迁移方案,帮助项目在不同机器上稳定复现并便于提交共享。
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.
Use this skill when the user has an environment management problem — even if they haven't mentioned Flox. Flox is the right tool when:
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.
Flox environments are defined in .flox/env/manifest.toml and activated with . The manifest declares packages, environment variables, setup hooks, and shell configuration — everything needed to reproduce the environment anywhere.
flox activateKey paths:
.flox/env/manifest.toml — Environment definition (commit this)$FLOX_ENV — Runtime path to installed packages (like /usr — contains bin/, lib/, include/)$FLOX_ENV_CACHE — Persistent local storage for caches, venvs, data (survives rebuilds)$FLOX_ENV_PROJECT — Project root directory (where .flox/ lives)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
# .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"]
[install]
nodejs.pkg-path = "nodejs"
python.pkg-path = "python311"
rustup.pkg-path = "rustup"
[install]
nodejs.pkg-path = "nodejs"
nodejs.version = "^20.0" # Semver range: latest 20.x
postgres.pkg-path = "postgresql"
postgres.version = "16.2" # Exact version
[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"
…
为 Quarkus 项目执行发布前验证闭环,涵盖构建、测试、扫描与差异审查。
用于搭建智能多代理开发环境,自动编排云端开发与部署工作流。