[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JCZBD2MGY43XYN25MWMB3C":3,"skill-same:01M6JCZBD2MGY43XYN25MWMB3C":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M6JCZBD2MGY43XYN25MWMB3C","flox-environments",null,"Create reproducible, cross-platform development environments with Flox, a declarative environment manager built on Nix. Use when setting up projects with system dependencies, reproducible toolchains, pinned package versions, local services, AI-agent-safe package installs, or cross-platform macOS\u002FLinux environments. Also use when the user mentions .flox\u002F, manifest.toml, flox activate, or FloxHub.","S3YED\u002Fappie-kit","S3YED","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62743867?v=4","01M6JBKBRRVP6KMS0VWZ27T3R6","01M6JBKBX0KG30284PW1DBYJT1",14,"MIT","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fecc\u002Fflox-environments\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"flox environments","environments","use","manager","toml","platform","local","ai-agent","activate","up","macos","environment","system","projects","Reproducible","package","create","development","linux","safe","2026-11-10 10:12:30",false,"---\nname: flox-environments\ndescription: \"Create reproducible, cross-platform development environments with Flox, a declarative environment manager built on Nix. Use when setting up projects with system dependencies, reproducible toolchains, pinned package versions, local services, AI-agent-safe package installs, or cross-platform macOS\u002FLinux environments. Also use when the user mentions .flox\u002F, manifest.toml, flox activate, or FloxHub.\"\norigin: Flox\n---\n\n# Flox Environments\n\nFlox 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.\n\n## When to Activate\n\nUse this skill when the user has an environment management problem — even if they haven't mentioned Flox. Flox is the right tool when:\n\n- The project needs **system-level packages** (compilers, databases, CLI tools) alongside language-specific dependencies\n- **Reproducibility matters** — the setup should work identically on a teammate's machine, in CI, or on a fresh laptop\n- The user needs **multiple tools to coexist** — e.g., Python 3.11 + PostgreSQL 16 + Redis + Node.js in one environment\n- **Cross-platform support** is needed (macOS and Linux from the same config)\n- **AI agents need to install tools** — Flox lets agents add packages to a project-scoped environment without sudo, system pollution, or sandbox restrictions\n\nIf 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.\n\n**Prerequisite:** Flox must be installed first — see [flox.dev\u002Fdocs](https:\u002F\u002Fflox.dev\u002Fdocs\u002Finstall-flox\u002Finstall\u002F) for macOS, Linux, and Docker.\n\n## Core Concepts\n\nFlox environments are defined in `.flox\u002Fenv\u002Fmanifest.toml` and activated with `flox activate`. The manifest declares packages, environment variables, setup hooks, and shell configuration — everything needed to reproduce the environment anywhere.\n\n**Key paths:**\n- `.flox\u002Fenv\u002Fmanifest.toml` — Environment definition (commit this)\n- `$FLOX_ENV` — Runtime path to installed packages (like `\u002Fusr` — contains `bin\u002F`, `lib\u002F`, `include\u002F`)\n- `$FLOX_ENV_CACHE` — Persistent local storage for caches, venvs, data (survives rebuilds)\n- `$FLOX_ENV_PROJECT` — Project root directory (where `.flox\u002F` lives)\n\n## Essential Commands\n\n```bash\nflox init                       # Create new environment\nflox search \u003Cpackage> [--all]   # Search for packages\nflox show \u003Cpackage>             # Show available versions\nflox install \u003Cpackage>          # Add a package\nflox list                       # List installed packages\nflox activate                   # Enter environment\nflox activate -- \u003Ccmd>          # Run a command in the environment without a subshell\nflox edit                       # Edit manifest interactively\n```\n\n## Manifest Structure\n\n```toml\n# .flox\u002Fenv\u002Fmanifest.toml\n\n[install]\n# Packages to install — the core of the environment\nripgrep.pkg-path = \"ripgrep\"\njq.pkg-path = \"jq\"\n\n[vars]\n# Static environment variables\nDATABASE_URL = \"postgres:\u002F\u002Flocalhost:5432\u002Fmyapp\"\n\n[hook]\n# Non-interactive setup scripts (run every activation)\non-activate = \"\"\"\n  echo \"Environment ready\"\n\"\"\"\n\n[profile]\n# Shell functions and aliases (available in interactive shell)\ncommon = \"\"\"\n  alias dev=\"npm run dev\"\n\"\"\"\n\n[options]\n# Supported platforms\nsystems = [\"x86_64-linux\", \"aarch64-linux\", \"x86_64-darwin\", \"aarch64-darwin\"]\n```\n\n## Package Installation Patterns\n\n### Basic Installation\n\n```toml\n[install]\nnodejs.pkg-path = \"nodejs\"\npython.pkg-path = \"python311\"\nrustup.pkg-path = \"rustup\"\n```\n\n### Version Pinning\n\n```toml\n[install]\nnodejs.pkg-path = \"nodejs\"\nnodejs.version = \"^20.0\"          # Semver range: latest 20.x\n\npostgres.pkg-path = \"postgresql\"\npostgres.version = \"16.2\"         # Exact version\n```\n\n### Platform-Specific Packages\n\n```toml\n[install]\n# Linux-only tools\nvalgrind.pkg-path = \"valgrind\"\nvalgrind.systems = [\"x86_64-linux\", \"aarch64-linux\"]\n\n# macOS frameworks\nSecurity.pkg-path = \"darwin.apple_sdk.frameworks.Security\"\nSecurity.systems = [\"x86_64-darwin\", \"aarch64-darwin\"]\n\n# GNU tools on macOS (where BSD defaults differ)\ncoreutils.pkg-path = \"coreutils\"\ncoreutils.systems = [\"x86_64-darwin\", \"aarch64-darwin\"]\n```\n\n### Resolving Package Conflicts\n\nWhen two packages install the same binary, use `priority` (lower number wins):\n\n```toml\n[install]\ngcc.pkg-path = \"gcc12\"\ngcc.priority = 3\n\nclang.pkg-path = \"clang_18\"\nclang.priority = 5               # gcc wins file conflicts\n```\n\nUse `pkg-group` to group packages that should resolve versions together:\n\n```toml\n[install]\npython.pkg-path = \"python311\"\npython.pkg-group = \"python-stack\"\n\npip.pkg-path = \"python311Packages.pip\"\npip.pkg-group = \"python-stack\"    # Resolves together with python\n```\n\n## Language-Specific Recipes\n\n### Python with uv\n\n```toml\n[install]\npython.pkg-path = \"python311\"\nuv.pkg-path = \"uv\"\n\n[vars]\nUV_CACHE_DIR = \"$FLOX_ENV_CACHE\u002Fuv-cache\"\nPIP_CACHE_DIR = \"$FLOX_ENV_CACHE\u002Fpip-cache\"\n\n[hook]\non-activate = \"\"\"\n  venv=\"$FLOX_ENV_CACHE\u002Fvenv\"\n  if [ ! -d \"$venv\" ]; then\n    uv venv \"$venv\" --python python3\n  fi\n  if [ -f \"$venv\u002Fbin\u002Factivate\" ]; then\n    source \"$venv\u002Fbin\u002Factivate\"\n  fi\n\n  if [ -f requirements.txt ] && [ ! -f \"$FLOX_ENV_CACHE\u002F.deps_installed\" ]; then\n    uv pip install --python \"$venv\u002Fbin\u002Fpython\" -r requirements.txt --quiet\n    touch \"$FLOX_ENV_CACHE\u002F.deps_installed\"\n  fi\n\"\"\"\n```\n\n### Node.js\n\n```toml\n[install]\nnodejs.pkg-path = \"nodejs\"\nnodejs.version = \"^20.0\"\n\n[hook]\non-activate = \"\"\"\n  if [ -f package.json ] && [ ! -d node_modules ]; then\n    npm install --silent\n  fi\n\"\"\"\n```\n\n### Rust\n\n```toml\n[install]\nrustup.pkg-path = \"rustup\"\npkg-config.pkg-path = \"pkg-config\"\nopenssl.pkg-path = \"openssl\"\n\n[vars]\nRUSTUP_HOME = \"$FLOX_ENV_CACHE\u002Frustup\"\nCARGO_HOME = \"$FLOX_ENV_CACHE\u002Fcargo\"\n\n[profile]\ncommon = \"\"\"\n  export PATH=\"$CARGO_HOME\u002Fbin:$PATH\"\n\"\"\"\n```\n\n### Go\n\n```toml\n[install]\ngo.pkg-path = \"go\"\ngopls.pkg-path = \"gopls\"\ndelve.pkg-path = \"delve\"\n\n[vars]\nGOPATH = \"$FLOX_ENV_CACHE\u002Fgo\"\nGOBIN = \"$FLOX_ENV_CACHE\u002Fgo\u002Fbin\"\n\n[profile]\ncommon = \"\"\"\n  export PATH=\"$GOBIN:$PATH\"\n\"\"\"\n```\n\n### C\u002FC++\n\n```toml\n[install]\ngcc.pkg-path = \"gcc13\"\ngcc.pkg-group = \"compilers\"\n\n# IMPORTANT: gcc alone doesn't expose libstdc++ headers — you need gcc-unwrapped\ngcc-unwrapped.pkg-path = \"gcc-unwrapped\"\ngcc-unwrapped.pkg-group = \"libraries\"\n\ncmake.pkg-path = \"cmake\"\ncmake.pkg-group = \"build\"\n\ngnumake.pkg-path = \"gnumake\"\ngnumake.pkg-group = \"build\"\n\ngdb.pkg-path = \"gdb\"\ngdb.systems = [\"x86_64-linux\", \"aarch64-linux\"]\n```\n\n## Hooks and Profile\n\n### Hooks — Non-Interactive Setup\n\nHooks run on every activation. Keep them fast and idempotent. Rule of thumb: **if it should happen automatically, put it in `[hook]`; if the user should be able to type it, put it in `[profile]`.**\n\n```toml\n[hook]\non-activate = \"\"\"\n  setup_database() {\n    if [ ! -d \"$FLOX_ENV_CACHE\u002Fpgdata\" ]; then\n      initdb -D \"$FLOX_ENV_CACHE\u002Fpgdata\" --no-locale --encoding=UTF8\n    fi\n  }\n  setup_database\n\"\"\"\n```\n\n### Profile — Interactive Shell Configuration\n\nProfile code is available in the user's shell session.\n\n```toml\n[profile]\ncommon = \"\"\"\n  dev() { npm run dev; }\n  test() { npm run test -- \"$@\"; }\n\"\"\"\n```\n\n## Anti-Patterns\n\n### Absolute Paths\n\n```toml\n# BAD — breaks on other machines\n[vars]\nPROJECT_DIR = \"\u002Fhome\u002Falice\u002Fprojects\u002Fmyapp\"\n\n# GOOD — use Flox environment variables\n[vars]\nPROJECT_DIR = \"$FLOX_ENV_PROJECT\"\n```\n\n### Using exit in Hooks\n\n```toml\n# BAD — kills the shell\n[hook]\non-activate = \"\"\"\n  if [ ! -f config.json ]; then\n    echo \"Missing config\"\n    exit 1\n  fi\n\"\"\"\n\n# GOOD — return from hook, don't exit\n[hook]\non-activate = \"\"\"\n  if [ ! -f config.json ]; then\n    echo \"Missing config — run setup first\"\n    return 1\n  fi\n\"\"\"\n```\n\n### Storing Secrets in Manifest\n\n```toml\n# BAD — manifest is committed to git\n[vars]\nAPI_KEY = \"\u003Cset-at-runtime>\"\n\n# GOOD — reference external config or pass at runtime\n# Use: API_KEY=\"\u003Cyour-api-key>\" flox activate\n[vars]\nAPI_KEY = \"${API_KEY:-}\"\n```\n\n### Slow Hooks Without Idempotency Guards\n\n```toml\n# BAD — reinstalls every activation\n[hook]\non-activate = \"\"\"\n  pip install -r requirements.txt\n\"\"\"\n\n# GOOD — skip if already installed\n[hook]\non-activate = \"\"\"\n  if [ ! -f \"$FLOX_ENV_CACHE\u002F.deps_installed\" ]; then\n    uv pip install -r requirements.txt --quiet\n    touch \"$FLOX_ENV_CACHE\u002F.deps_installed\"\n  fi\n\"\"\"\n```\n\n### Putting User Commands in Hooks\n\n```toml\n# BAD — hook functions aren't available in the interactive shell\n[hook]\non-activate = \"\"\"\n  deploy() { kubectl apply -f k8s\u002F; }\n\"\"\"\n\n# GOOD — use [profile] for user-invokable functions\n[profile]\ncommon = \"\"\"\n  deploy() { kubectl apply -f k8s\u002F; }\n\"\"\"\n```\n\n## Full-Stack Example\n\nA complete environment for a Python API with PostgreSQL:\n\n```toml\n[install]\npython.pkg-path = \"python311\"\nuv.pkg-path = \"uv\"\npostgresql.pkg-path = \"postgresql_16\"\nredis.pkg-path = \"redis\"\njq.pkg-path = \"jq\"\ncurl.pkg-path = \"curl\"\n\n[vars]\nUV_CACHE_DIR = \"$FLOX_ENV_CACHE\u002Fuv-cache\"\nDATABASE_URL = \"postgres:\u002F\u002Flocalhost:5432\u002Fmyapp\"\nREDIS_URL = \"redis:\u002F\u002Flocalhost:6379\"\n\n[hook]\non-activate = \"\"\"\n  if [ ! -d \"$FLOX_ENV_CACHE\u002Fpgdata\" ]; then\n    initdb -D \"$FLOX_ENV_CACHE\u002Fpgdata\" --no-locale --encoding=UTF8\n  fi\n\n  venv=\"$FLOX_ENV_CACHE\u002Fvenv\"\n  if [ ! -d \"$venv\" ]; then\n    uv venv \"$venv\" --python python3\n  fi\n  if [ -f \"$venv\u002Fbin\u002Factivate\" ]; then\n    source \"$venv\u002Fbin\u002Factivate\"\n  fi\n\n  if [ -f requirements.txt ] && [ ! -f \"$FLOX_ENV_CACHE\u002F.deps_installed\" ]; then\n    uv pip install --python \"$venv\u002Fbin\u002Fpython\" -r requirements.txt --quiet\n    touch \"$FLOX_ENV_CACHE\u002F.deps_installed\"\n  fi\n\"\"\"\n\n[profile]\ncommon = \"\"\"\n  serve() { uvicorn app.main:app --reload --host 0.0.0.0 --port 8000; }\n  migrate() { alembic upgrade head; }\n\"\"\"\n\n[services]\npostgres.command = \"postgres -D $FLOX_ENV_CACHE\u002Fpgdata -k $FLOX_ENV_CACHE\"\nredis.command = \"redis-server --port 6379 --daemonize no\"\n\n[options]\nsystems = [\"x86_64-linux\", \"aarch64-linux\", \"x86_64-darwin\", \"aarch64-darwin\"]\n```\n\nActivate with services: `flox activate --start-services`\n\n## Environment Sharing\n\nFlox environments are git-native. Commit the `.flox\u002F` directory and every collaborator gets the same environment:\n\n```bash\ngit add .flox\u002F\ngit commit -m \"Add Flox environment\"\n# Teammates just run:\ngit clone \u003Crepo> && cd \u003Crepo> && flox activate\n```\n\nFor reusable base environments across projects, push to FloxHub:\n\n```bash\nflox push                         # Push environment to FloxHub\nflox activate -r owner\u002Fenv-name   # Activate remote environment anywhere\n```\n\nCompose environments with `[include]`:\n\n```toml\n[include]\nbase.floxhub = \"myorg\u002Fpython-base\"\n\n[install]\n# Project-specific additions on top of base\nfastapi.pkg-path = \"python311Packages.fastapi\"\n```\n\n## AI-Assisted and Vibe Coding\n\nFlox is ideal for AI-assisted development and vibe coding workflows. When an AI agent needs a tool that isn't available in the current environment — a compiler, a database, a linter, a CLI utility — it can add it to the project's Flox manifest without requiring sudo access, polluting system packages, or hitting sandbox restrictions.\n\n**Why this matters for agents:**\n- **No sudo required** — `flox install` works entirely in user space, so agents can add packages without elevated permissions\n- **Project-scoped** — packages are installed into the project environment only, not globally, so different projects can have different versions without conflict\n- **Sandbox-friendly** — agents running in sandboxed or restricted environments can still install the tools they need through Flox\n- **Reversible** — every change is captured in `manifest.toml`, so unwanted packages can be removed cleanly with no system residue\n- **Reproducible** — when an agent sets up an environment, that exact setup is committed to git and works for everyone\n\n**Agent workflow pattern:**\n\n```bash\n# Agent discovers it needs a tool (e.g., jq for JSON processing)\nflox search jq                    # Verify the package exists\nflox install jq                   # Install into project environment\n\n# Or for more control, edit the manifest directly\ntmp_manifest=\"$(mktemp)\"\nflox list -c > \"$tmp_manifest\"\n# Add the package to [install] section, then apply\nflox edit -f \"$tmp_manifest\"\n\n# Run a command with the tool available\nflox activate -- jq '.results[]' data.json\n```\n\nThis makes Flox a natural fit for any workflow where Claude Code or other AI agents need to bootstrap project tooling on the fly.\n\n## Debugging\n\n```bash\nflox list -c                      # Show raw manifest\nflox activate -- which python     # Check which binary resolves\nflox activate -- env | grep FLOX  # See Flox environment variables\nflox search \u003Cpackage> --all       # Broader package search (case-sensitive)\n```\n\n**Common issues:**\n- **Package not found:** Search is case-sensitive — try `flox search --all`\n- **File conflicts between packages:** Add `priority` to the package that should win\n- **Hook failures:** Use `return` not `exit`; guard with `${FLOX_ENV_CACHE:-}`\n- **Stale dependencies:** Delete the `$FLOX_ENV_CACHE\u002F.deps_installed` flag file\n\n## Related Skills\n\nThe following skills are available as part of the [Flox Claude Code plugin](https:\u002F\u002Fgithub.com\u002Fflox\u002Fflox-agentic) for deeper integration:\n\n- **flox-services** — Service management, database setup, background processes\n- **flox-builds** — Reproducible builds and packaging with Flox\n- **flox-containers** — Create Docker\u002FOCI containers from Flox environments\n- **flox-sharing** — Environment composition, remote environments, team patterns\n- **flox-cuda** — CUDA and GPU development environments\n\nLearn more and install at [flox.dev\u002Fdocs](https:\u002F\u002Fflox.dev\u002Fdocs\u002Finstall-flox\u002Finstall\u002F)\n","# Flox Environments\n\nFlox 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.\n\n## When to Activate\n\nUse this skill when the user has an environment management problem — even if they haven't mentioned Flox. Flox is the right tool when:\n\n- The project needs **system-level packages** (compilers, databases, CLI tools) alongside language-specific dependencies\n- **Reproducibility matters** — the setup should work identically on a teammate's machine, in CI, or on a fresh laptop\n- The user needs **multiple tools to coexist** — e.g., Python 3.11 + PostgreSQL 16 + Redis + Node.js in one environment\n- **Cross-platform support** is needed (macOS and Linux from the same config)\n- **AI agents need to install tools** — Flox lets agents add packages to a project-scoped environment without sudo, system pollution, or sandbox restrictions\n\nIf 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.\n\n**Prerequisite:** Flox must be installed first — see [flox.dev\u002Fdocs](https:\u002F\u002Fflox.dev\u002Fdocs\u002Finstall-flox\u002Finstall\u002F) for macOS, Linux, and Docker.\n\n## Core Concepts\n\nFlox environments are defined in `.flox\u002Fenv\u002Fmanifest.toml` and activated with `flox activate`. The manifest declares packages, environment variables, setup hooks, and shell configuration — everything needed to reproduce the environment anywhere.\n\n**Key paths:**\n- `.flox\u002Fenv\u002Fmanifest.toml` — Environment definition (commit this)\n- `$FLOX_ENV` — Runtime path to installed packages (like `\u002Fusr` — contains `bin\u002F`, `lib\u002F`, `include\u002F`)\n- `$FLOX_ENV_CACHE` — Persistent local storage for caches, venvs, data (survives rebuilds)\n- `$FLOX_ENV_PROJECT` — Project root directory (where `.flox\u002F` lives)\n\n## Essential Commands\n\n```bash\nflox init                       # Create new environment\nflox search \u003Cpackage> [--all]   # Search for packages\nflox show \u003Cpackage>             # Show available versions\nflox install \u003Cpackage>          # Add a package\nflox list                       # List installed packages\nflox activate                   # Enter environment\nflox activate -- \u003Ccmd>          # Run a command in the environment without a subshell\nflox edit                       # Edit manifest interactively\n```\n\n## Manifest Structure\n\n```toml\n# .flox\u002Fenv\u002Fmanifest.toml\n\n[install]\n# Packages to install — the core of the environment\nripgrep.pkg-path = \"ripgrep\"\njq.pkg-path = \"jq\"\n\n[vars]\n# Static environment variables\nDATABASE_URL = \"postgres:\u002F\u002Flocalhost:5432\u002Fmyapp\"\n\n[hook]\n# Non-interactive setup scripts (run every activation)\non-activate = \"\"\"\n  echo \"Environment ready\"\n\"\"\"\n\n[profile]\n# Shell functions and aliases (available in interactive shell)\ncommon = \"\"\"\n  alias dev=\"npm run dev\"\n\"\"\"\n\n[options]\n# Supported platforms\nsystems = [\"x86_64-linux\", \"aarch64-linux\", \"x86_64-darwin\", \"aarch64-darwin\"]\n```\n\n## Package Installation Patterns\n\n### Basic Installation\n\n```toml\n[install]\nnodejs.pkg-path = \"nodejs\"\npython.pkg-path = \"python311\"\nrustup.pkg-path = \"rustup\"\n```\n\n### Version Pinning\n\n```toml\n[install]\nnodejs.pkg-path = \"nodejs\"\nnodejs.version = \"^20.0\"          # Semver range: latest 20.x\n\npostgres.pkg-path = \"postgresql\"\npostgres.version = \"16.2\"         # Exact version\n```\n\n### Platform-Specific Packages\n\n```toml\n[install]\n# Linux-only tools\nvalgrind.pkg-path = \"valgrind\"\nvalgrind.systems = [\"x86_64-linux\", \"aarch64-linux\"]\n\n# macOS frameworks\nSecurity.pkg-path = \"darwin.apple_sdk.frameworks.Security\"\nSecurity.systems = [\"x86_64-darwin\", \"aarch64-darwin\"]\n\n# GNU tools on macOS (where BSD defaults differ)\ncoreutils.pkg-path = \"coreutils\"\ncoreutils.systems = [\"x86_64-darwin\", \"aarch64-darwin\"]\n```\n\n### Resolving Package Conflicts\n\nWhen two packages install the same binary, use `priority` (lower number wins):\n\n```toml\n[install]\ngcc.pkg-path = \"gcc12\"\ngcc.priority = 3\n\nclang.pkg-path = \"clang_18\"\nclang.priority = 5               # gcc wins file conflicts\n```\n\nUse `pkg-group` to group packages that should resolve versions together:\n\n```toml\n[install]\npython.pkg-path = \"python311\"\npython.pkg-group = \"python-stack\"\n\npip.pkg-path = \"python311Packages.pip\"\npip.pkg-group = \"python-stack\"    # Resolves together with python\n```\n\n## Language-Specific Recipes\n\n### Python with uv\n\n```toml\n[install]\npython.pkg-path = \"python311\"\nuv.pkg-path = \"uv\"\n\n[vars]\nUV_CACHE_DIR = \"$FLOX_ENV_CACHE\u002Fuv-cache\"\nPIP_CACHE_DIR = \"$FLOX_ENV_CACHE\u002Fpip-cache\"\n\n[hook]\non-activate = \"\"\"\n  venv=\"$FLOX_ENV_CACHE\u002Fvenv\"\n  if [ ! -d \"$venv\" ]; then\n    uv venv \"$venv\" --python python3\n  fi\n  if [ -f \"$venv\u002Fbin\u002Factivate\" ]; then\n    source \"$venv\u002Fbin\u002Factivate\"\n  fi\n\n  if [ -f requirements.txt ] && [ ! -f \"$FLOX_ENV_CACHE\u002F.deps_installed\" ]; then\n    uv pip install --python \"$venv\u002Fbin\u002Fpython\" -r requirements.txt --quiet\n    touch \"$FLOX_ENV_CACHE\u002F.deps_installed\"\n  fi\n\"\"\"\n```\n\n### Node.js\n\n```toml\n[install]\nnodejs.pkg-path = \"nodejs\"\nnodejs.version = \"^20.0\"\n\n[hook]\non-activate = \"\"\"\n  if [ -f package.json ] && [ ! -d node_modules ]; then\n    npm install --silent\n  fi\n\"\"\"\n```\n\n### Rust\n\n```toml\n[install]\nrustup.pkg-path = \"rustup\"\npkg-config.pkg-path = \"pkg-config\"\nopenssl.pkg-path = \"openssl\"\n\n[vars]\nRUSTUP_HOME = \"$FLOX_ENV_CACHE\u002Frustup\"\nCARGO_HOME = \"$FLOX_ENV_CACHE\u002Fcargo\"\n\n[profile]\ncommon = \"\"\"\n  export PATH=\"$CARGO_HOME\u002Fbin:$PATH\"\n\"\"\"\n```\n\n### Go\n\n```toml\n[install]\ngo.pkg-path = \"go\"\ngopls.pkg-path = \"gopls\"\ndelve.pkg-path = \"delve\"\n\n[vars]\nGOPATH = \"$FLOX_ENV_CACHE\u002Fgo\"\nGOBIN = \"$FLOX_ENV_CACHE\u002Fgo\u002Fbin\"\n\n[profile]\ncommon = \"\"\"\n  export PATH=\"$GOBIN:$PATH\"\n\"\"\"\n```\n\n### C\u002FC++\n\n```toml\n[install]\ngcc.pkg-path = \"gcc13\"\ngcc.pkg-group = \"compilers\"\n\n# IMPORTANT: gcc alone doesn't expose libstdc++ headers — you need gcc-unwrapped\ngcc-unwrapped.pkg-path = \"gcc-unwrapped\"\ngcc-unwrapped.pkg-group = \"libraries\"\n\ncmake.pkg-path = \"cmake\"\ncmake.pkg-group = \"build\"\n\ngnumake.pkg-path = \"gnumake\"\ngnumake.pkg-group = \"build\"\n\ngdb.pkg-path = \"gdb\"\ngdb.systems = [\"x86_64-linux\", \"aarch64-linux\"]\n```\n\n## Hooks and Profile\n\n### Hooks — Non-Interactive Setup\n\nHooks run on every activation. Keep them fast and idempotent. Rule of thumb: **if it should happen automatically, put it in `[hook]`; if the user should be able to type it, put it in `[profile]`.**\n\n```toml\n[hook]\non-activate = \"\"\"\n  setup_database() {\n    if [ ! -d \"$FLOX_ENV_CACHE\u002Fpgdata\" ]; then\n      initdb -D \"$FLOX_ENV_CACHE\u002Fpgdata\" --no-locale --encoding=UTF8\n    fi\n  }\n  setup_database\n\"\"\"\n```\n\n### Profile — Interactive Shell Configuration\n\nProfile code is available in the user's shell session.\n\n```toml\n[profile]\ncommon = \"\"\"\n  dev() { npm run dev; }\n  test() { npm run test -- \"$@\"; }\n\"\"\"\n```\n\n## Anti-Patterns\n\n### Absolute Paths\n\n```toml\n# BAD — breaks on other machines\n[vars]\nPROJECT_DIR = \"\u002Fhome\u002Falice\u002Fprojects\u002Fmyapp\"\n\n# GOOD — use Flox environment variables\n[vars]\nPROJECT_DIR = \"$FLOX_ENV_PROJECT\"\n```\n\n### Using exit in Hooks\n\n```toml\n# BAD — kills the shell\n[hook]\non-activate = \"\"\"\n  if [ ! -f config.json ]; then\n    echo \"Missing config\"\n    exit 1\n  fi\n\"\"\"\n\n# GOOD — return from hook, don't exit\n[hook]\non-activate = \"\"\"\n  if [ ! -f config.json ]; then\n    echo \"Missing config — run setup first\"\n    return 1\n  fi\n\"\"\"\n```\n\n### Storing Secrets in Manifest\n\n```toml\n# BAD — manifest is committed to git\n[vars]\nAPI_KEY = \"\u003Cset-at-runtime>\"\n\n# GOOD — reference external config or pass at runtime\n# Use: API_KEY=\"\u003Cyour-api-key>\" flox activate\n[vars]\nAPI_KEY = \"${API_KEY:-}\"\n```\n\n### Slow Hooks Without Idempotency Guards\n\n```toml\n# BAD — reinstalls every activation\n[hook]\non-activate = \"\"\"\n  pip install -r requirements.txt\n\"\"\"\n\n# GOOD — skip if already installed\n[hook]\non-activate = \"\"\"\n  if [ ! -f \"$FLOX_ENV_CACHE\u002F.deps_installed\" ]; then\n    uv pip install -r requirements.txt --quiet\n    touch \"$FLOX_ENV_CACHE\u002F.deps_installed\"\n  fi\n\"\"\"\n```\n\n### Putting User Commands in Hooks\n\n```toml\n# BAD — hook functions aren't available in the interactive shell\n[hook]\non-activate = \"\"\"\n  deploy() { kubectl apply -f k8s\u002F; }\n\"\"\"\n\n# GOOD — use [profile] for user-invokable functions\n[profile]\ncommon = \"\"\"\n  deploy() { kubectl apply -f k8s\u002F; }\n\"\"\"\n```\n\n## Full-Stack Example\n\nA complete environment for a Python API with PostgreSQL:\n\n```toml\n[install]\npython.pkg-path = \"python311\"\nuv.pkg-path = \"uv\"\npostgresql.pkg-path = \"postgresql_16\"\nredis.pkg-path = \"redis\"\njq.pkg-path = \"jq\"\ncurl.pkg-path = \"curl\"\n\n[vars]\nUV_CACHE_DIR = \"$FLOX_ENV_CACHE\u002Fuv-cache\"\nDATABASE_URL = \"postgres:\u002F\u002Flocalhost:5432\u002Fmyapp\"\nREDIS_URL = \"redis:\u002F\u002Flocalhost:6379\"\n\n[hook]\non-activate = \"\"\"\n  if [ ! -d \"$FLOX_ENV_CACHE\u002Fpgdata\" ]; then\n    initdb -D \"$FLOX_ENV_CACHE\u002Fpgdata\" --no-locale --encoding=UTF8\n  fi\n\n  venv=\"$FLOX_ENV_CACHE\u002Fvenv\"\n  if [ ! -d \"$venv\" ]; then\n    uv venv \"$venv\" --python python3\n  fi\n  if [ -f \"$venv\u002Fbin\u002Factivate\" ]; then\n    source \"$venv\u002Fbin\u002Factivate\"\n  fi\n\n  if [ -f requirements.txt ] && [ ! -f \"$FLOX_ENV_CACHE\u002F.deps_installed\" ]; then\n    uv pip install --python \"$venv\u002Fbin\u002Fpython\" -r requirements.txt --quiet\n    touch \"$FLOX_ENV_CACHE\u002F.deps_installed\"\n  fi\n\"\"\"\n\n[profile]\ncommon = \"\"\"\n  serve() { uvicorn app.main:app --reload --host 0.0.0.0 --port 8000; }\n  migrate() { alembic upgrade head; }\n\"\"\"\n\n[services]\npostgres.command = \"postgres -D $FLOX_ENV_CACHE\u002Fpgdata -k $FLOX_ENV_CACHE\"\nredis.command = \"redis-server --port 6379 --daemonize no\"\n\n[options]\nsystems = [\"x86_64-linux\", \"aarch64-linux\", \"x86_64-darwin\", \"aarch64-darwin\"]\n```\n\nActivate with services: `flox activate --start-services`\n\n## Environment Sharing\n\nFlox environments are git-native. Commit the `.flox\u002F` directory and every collaborator gets the same environment:\n\n```bash\ngit add .flox\u002F\ngit commit -m \"Add Flox environment\"\n# Teammates just run:\ngit clone \u003Crepo> && cd \u003Crepo> && flox activate\n```\n\nFor reusable base environments across projects, push to FloxHub:\n\n```bash\nflox push                         # Push environment to FloxHub\nflox activate -r owner\u002Fenv-name   # Activate remote environment anywhere\n```\n\nCompose environments with `[include]`:\n\n```toml\n[include]\nbase.floxhub = \"myorg\u002Fpython-base\"\n\n[install]\n# Project-specific additions on top of base\nfastapi.pkg-path = \"python311Packages.fastapi\"\n```\n\n## AI-Assisted and Vibe Coding\n\nFlox is ideal for AI-assisted development and vibe coding workflows. When an AI agent needs a tool that isn't available in the current environment — a compiler, a database, a linter, a CLI utility — it can add it to the project's Flox manifest without requiring sudo access, polluting system packages, or hitting sandbox restrictions.\n\n**Why this matters for agents:**\n- **No sudo required** — `flox install` works entirely in user space, so agents can add packages without elevated permissions\n- **Project-scoped** — packages are installed into the project environment only, not globally, so different projects can have different versions without conflict\n- **Sandbox-friendly** — agents running in sandboxed or restricted environments can still install the tools they need through Flox\n- **Reversible** — every change is captured in `manifest.toml`, so unwanted packages can be removed cleanly with no system residue\n- **Reproducible** — when an agent sets up an environment, that exact setup is committed to git and works for everyone\n\n**Agent workflow pattern:**\n\n```bash\n# Agent discovers it needs a tool (e.g., jq for JSON processing)\nflox search jq                    # Verify the package exists\nflox install jq                   # Install into project environment\n\n# Or for more control, edit the manifest directly\ntmp_manifest=\"$(mktemp)\"\nflox list -c > \"$tmp_manifest\"\n# Add the package to [install] section, then apply\nflox edit -f \"$tmp_manifest\"\n\n# Run a command with the tool available\nflox activate -- jq '.results[]' data.json\n```\n\nThis makes Flox a natural fit for any workflow where Claude Code or other AI agents need to bootstrap project tooling on the fly.\n\n## Debugging\n\n```bash\nflox list -c                      # Show raw manifest\nflox activate -- which python     # Check which binary resolves\nflox activate -- env | grep FLOX  # See Flox environment variables\nflox search \u003Cpackage> --all       # Broader package search (case-sensitive)\n```\n\n**Common issues:**\n- **Package not found:** Search is case-sensitive — try `flox search --all`\n- **File conflicts between packages:** Add `priority` to the package that should win\n- **Hook failures:** Use `return` not `exit`; guard with `${FLOX_ENV_CACHE:-}`\n- **Stale dependencies:** Delete the `$FLOX_ENV_CACHE\u002F.deps_installed` flag file\n\n## Related Skills\n\nThe following skills are available as part of the [Flox Claude Code plugin](https:\u002F\u002Fgithub.com\u002Fflox\u002Fflox-agentic) for deeper integration:\n\n- **flox-services** — Service management, database setup, background processes\n- **flox-builds** — Reproducible builds and packaging with Flox\n- **flox-containers** — Create Docker\u002FOCI containers from Flox environments\n- **flox-sharing** — Environment composition, remote environments, team patterns\n- **flox-cuda** — CUDA and GPU development environments\n\nLearn more and install at [flox.dev\u002Fdocs](https:\u002F\u002Fflox.dev\u002Fdocs\u002Finstall-flox\u002Finstall\u002F)\n",{"name":5,"origin":43,"description":7},"Flox","master","8ec37df6d71fb664ea19d32c079e7d3ff931a8e0","skills\u002Fecc\u002Fflox-environments",3,"https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit","https:\u002F\u002Fweblyfe.ai","https:\u002F\u002Fgithub.com\u002FS3YED","2026-08-27 01:54:02",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add S3YED\u002Fappie-kit --skill flox-environments",{"tool":58,"command":59},"bunx","bunx skills add S3YED\u002Fappie-kit --skill flox-environments",{"tool":61,"command":62},"pnpm","pnpm dlx skills add S3YED\u002Fappie-kit --skill flox-environments","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fecc\u002Fflox-environments\u002FSKILL.md",true,[],[67,92,118,142,167,191],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":38},"01M6JFD4M6N4DSGC7TXEJ5R3J2","ai-music","AI music generation and audio tools: HeartMuLa lyrics-to-music generation, songwriting craft (+ Suno prompts), and audio spectrogram\u002Ffeature visualization.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fwethlete\u002Fai-music\u002FSKILL.md",[],[74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91],"music","ai music","humanizer","visualization","Tools","Audio","hermes","hermes agent","songwriting","suno","lyrics","prompts","heartmula","craft","generation","feature","ai music generation","music generation",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":38},"01M6JFCZE4XNFQFMNZDHKHT5V5","agentic-webdesign-design-system-ingestion","Use v0 Design Systems 2.0, Bolt Design System Agents, or Lovable to generate production UI from a client's real design system components — not generic Tailwind. Use when building a client website where brand consistency matters.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-design\u002Fagentic-webdesign-design-system-ingestion\u002FSKILL.md",[],[99,100,101,30,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117],"design","agentic","design system","ingestion","webdesign","agentic webdesign design system ingestion","components","generate","design systems","website","ui","Tailwind","bolt","lovable","v0","design-system","wed","design system components","appie",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":38},"01M6JFCVPX3913CFAS6QQJ33ZB","agentic-webdesign-agent-elements","Use 21st.dev Agent Elements — 25 shadcn\u002Fui components purpose-built for AI agent UIs. Tool cards (Bash, Edit, Search, Plan, Subagent, MCP), chat, input, streaming. Open source, shadcn-registry install, no runtime lock-in.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-design\u002Fagentic-webdesign-agent-elements\u002FSKILL.md",[],[100,125,103,126,127,128,105,129,130,131,132,133,134,135,136,137,138,139,140,141],"elements","agentic webdesign agent elements","MCP","ai agent","registry","search","streaming","open source","open","Bash","plan","subagent","edit","install","input","lock","source",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":38},"01M6JFCQC7H65M9QJ6TRE71BS1","vercel-deployment","Deploy static sites and frontends to Vercel — handles both CLI and REST API paths, including the CLI token sanitization workaround.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fvercel-deployment\u002FSKILL.md",[],[149,150,151,28,152,36,153,154,155,156,157,158,159,160,161,162,163,164,165,166],"deployment","vercel deployment","vercel","cli","windows","deploy","vercel deploy","REST","api","site","deploy to vercel","token","rest api","host","sites","paths","sanitization","static site",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":38},"01M6JFCM4SMTXBM5A01BK2YQG1","software-quality-workflows","Umbrella workflow for TDD, debugging, code simplification, spikes, pre-commit review, and debugger-assisted investigation.","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Fsoftware-quality-workflows\u002FSKILL.md",[],[174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],"workflows","quality","software","software quality workflows","review","tdd","workflow","commit","debugging","code","debugger","pre-commit","investigation","code simplification","user","simplification","for",{"skillNo":192,"name":193,"nameZh":6,"description":194,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":195,"categories":196,"keywords":197,"publishedAt":38},"01M6JFCGD0M6CEATY01W7YN6DB","react-component-refactoring","Safely refactor large React components into smaller, maintainable pieces using proven patterns","https:\u002F\u002Fgithub.com\u002FS3YED\u002Fappie-kit\u002Fblob\u002Fmaster\u002Fskills\u002Fsoftware-development\u002Freact-component-refactoring\u002FSKILL.md",[],[198,199,200,201,202,203,204,205,28,37,206,105,207,153,208,183,209,210,211,212],"react","component","refactoring","component refactoring","react component","react component refactoring","frontend","writing","typescript","react components","modular","refactor","simplify","patterns","test-driven-development"]