[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7APPS8AZCYRC9ERH0BP6ZXC":3,"skill-same:01M7APPS8AZCYRC9ERH0BP6ZXC":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7APPS8AZCYRC9ERH0BP6ZXC","flox-environments",null,"Create reproducible, cross-platform (macOS\u002FLinux) development environments with Flox, a declarative Nix-based environment manager. Use when setting up project toolchains for any language, installing system-level dependencies (compilers, databases, native libs like openssl\u002FBLAS), pinning exact package versions for a team, running local services (PostgreSQL, Redis, Kafka), onboarding developers with one command, or solving 'works on my machine' problems — including agent\u002Fvibe-coding setups that need project-scoped tools without sudo. Also use when the user mentions .flox\u002F, manifest.toml, flox activate, or FloxHub.","Cyrilthetecchieee\u002Fcyril-code-","Cyrilthetecchieee","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219787998?v=4","01M7AF0MMMKRAA0H61XMJPV92H","Julian Cyril D ","01M7AF0MQ10AVG6QJQ1C2BC0F5",2,"MIT","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fskills\u002Fflox-environments\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: flox-environments\ndescription: \"Create reproducible, cross-platform (macOS\u002FLinux) development environments with Flox, a declarative Nix-based environment manager. Use when setting up project toolchains for any language, installing system-level dependencies (compilers, databases, native libs like openssl\u002FBLAS), pinning exact package versions for a team, running local services (PostgreSQL, Redis, Kafka), onboarding developers with one command, or solving 'works on my machine' problems — including agent\u002Fvibe-coding setups that need project-scoped tools without sudo. Also use when the user mentions .flox\u002F, manifest.toml, flox activate, or FloxHub.\"\nmetadata:\n  origin: 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,"metadata":24,"description":7},{"origin":25},"Flox","main","57e7aa6b6e03bce1a7d7862ba9c2ec312f7f19b5","src\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fskills\u002Fflox-environments",0,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee","https:\u002F\u002Fwithcyril.me\u002F","Hi, I’m Julian Cyril D, a Computer Science and Business Systems student at PSNACET.\r\nI’m passionate about full-stack development, UI\u002FUX design, and building sma","2026-11-04 23:28:50",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Cyrilthetecchieee\u002Fcyril-code- --skill flox-environments",{"tool":41,"command":42},"bunx","bunx skills add Cyrilthetecchieee\u002Fcyril-code- --skill flox-environments",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Cyrilthetecchieee\u002Fcyril-code- --skill flox-environments","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fskills\u002Fflox-environments\u002FSKILL.md",true,[],[50,59,66,74,81,88],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":54,"licenseFileUrl":55,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7AQV6CYX8RMC78420V9WZ62","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7AQV2895N3S1MEX6K76G6G2","youtube-downloader","Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fvideo-downloader\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":54,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7AQTRNX62DNKVZ5GXEHRBKB","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftheme-factory\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7AQTNNVHAAN9H6DA8T6ZVE0","template-skill","Replace with description of the skill and when Claude should use it.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftemplate-skill\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7AQTJ3MQ6AKX152MEX2MYCC","tailored-resume-generator","Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftailored-resume-generator\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":54,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7AQTD7D5MYET2YWG7HG9WM3","slack-gif-creator","Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like \"make me a GIF for Slack of X doing Y\".","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fslack-gif-creator\u002FSKILL.md",[],[]]