用 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 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 — 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"
…
基于 C++ Core Guidelines 提供现代、安全、惯用的 C++ 编码规范建议
帮助你设计并实现 F# 单元、属性与集成测试的最佳实践
帮助你用 dmux 编排多智能体并行协作,加速开发与复杂任务执行。
帮助用户检索 PubMed 生物医学文献、MeSH 主题词与 PMID 引文信息。
为 Quarkus 3.x 项目提供测试驱动开发方案,支持功能开发、修复与重构。
通过 fal.ai 一站式生成图片、视频与音频内容,满足多模态创作需求
为分散在不同本地设备上的 AI 代理提供统一协调与协作能力。
用于搭建智能多代理开发环境,自动编排云端开发与部署工作流。
通过 HTTP 将本地文件、终端、网络与数据库能力开放给兼容 MCP 的 AI 客户端调用。
通过 Nix 以声明式方式管理与配置 Agent Skills,便于复用和维护。
帮助用户在虚拟硬件上运行、构建并验证固件,结合硬件知识库加速嵌入式开发。