[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C99DB517Q033RZ410V2GJ4":3,"skill-same:01M7C99DB517Q033RZ410V2GJ4":44},{"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":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7C99DB517Q033RZ410V2GJ4","pynix",null,"Run Nix through the pynix CLI instead of the nix CLI -- eval, build, develop, print-dev-env, path-info, log, why-depends, copy, store, search, flake, config, registry. Load before any Nix command; fall back to nix only for what pynix lacks.","nixidae\u002Fnixidae","nixidae","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F314243010?v=4","01M789GD9EED7CKZH51N43BRAE","01M7C999TKC5S1ZA161B2S4GCG",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fnixidae\u002Fnixidae\u002Fblob\u002Fmain\u002Fnanopynix\u002Fpynix\u002Fskill\u002Fpynix\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pynix\ndescription: Run Nix through the pynix CLI instead of the nix CLI -- eval, build, develop, print-dev-env, path-info, log, why-depends, copy, store, search, flake, config, registry. Load before any Nix command; fall back to nix only for what pynix lacks.\n---\n\n# pynix\n\n`pynix` is nanopynix's Nix CLI: libnix in-process, results as JSON on stdout.\nUse it in place of `nix` for every command it has. Agent use is the dogfood:\na gap or a bug found here is a pynix issue, not a reason to drop it quietly.\n\n## Mapping\n\n| nix | pynix |\n|---|---|\n| `nix eval --file . a.b` | `pynix eval --file . --attr a.b` or `--file '.#a.b'` |\n| `nix eval --expr E` | `pynix eval --expr E` (pure unless `--impure`), or E on stdin (impure, below) |\n| `nix eval --json ...` | `pynix eval --json ...`: nix's compact line; default is indented JSON |\n| `nix build --file . a b` | `pynix build --file . --attr a --attr b` |\n| `nix build --expr E a` | `pynix build --expr E --attr a` (pure unless `--impure`) |\n| `nix build --no-link --print-out-paths ...` | same flags: one path per line; `--no-link` changes nothing |\n| `nix build --keep-going` \u002F `-k` | same |\n| `nix build .#a` | `pynix build --flake .#a` |\n| `nix run`, `nix shell` | `pynix run`, `pynix shell` (= `pynix env shell`) |\n| `nix develop --file . a -c CMD` | `pynix develop --file . --attr a -- CMD` |\n| `nix print-dev-env` | `pynix print-dev-env [--json]` |\n| `nix path-info P` | `pynix path-info P` (one path) |\n| `nix log P`, `nix why-depends A B [--precise]` | same verb |\n| `nix copy --to S P` | `pynix copy --to S P`, or `--file`\u002F`--flake` instead of P |\n| `nix store gc\u002Fls\u002Fcat\u002Fdiff-closures\u002Fverify\u002F...` | `pynix store \u003Csame>` |\n| `nix derivation show --file . a` | `pynix derivation show --file . --attr a` (a target, not a `.drv` path; stdout is nix's document, `.derivations[\"\u003Cbase>.drv\"]`) |\n| `nix flake show\u002Fmetadata`, `nix config show`, `nix registry` | same verbs |\n| `nix search`, option search | `pynix search --file '\u003Cnixpkgs>' [--options\u002F--packages] QUERY [--json-output]`; `--file`\u002F`--flake` required |\n\nDifferences that bite:\n\n- No positional attribute: `pynix build --file . foo` is a usage error. Use\n  `--attr foo` or `--file '.#foo'`. `build` repeats `--attr`; other commands\n  take one target.\n- `--file` takes a path, `\u003Cname>` lookup path, URL or flake ref, each with an\n  optional `#attr`. A bare word (`nixpkgs`) tries `NIX_PATH` first, then the\n  registry; write local paths with `.\u002F`.\n- `build` writes no `result` link unless `--out-link`. Its stdout is\n  `{\"outputs\": {\"out\": \"\u002Fnix\u002Fstore\u002F...\"}, ...}`; `--print-out-paths` prints nix's lines instead.\n- `eval` prints indented JSON; `--json` prints nix's compact line; `--raw` prints the string.\n- `build --dry-run` belongs to `--update-fod`; alone it builds nothing and prints nothing.\n- Store selection is `--store URI`, plus `--eval-store` on build and develop.\n\n## Output\n\nstdout holds only the result. stderr holds what `nix` would print: warnings,\nerrors, `building '...'...`, and build logs with `--print-build-logs`. A build\nthat changes nothing prints nothing there. Do not discard stderr; it is where\nthe error is. `--verbosity talkative` adds pynix's own progress events.\n\nA stderr line that is noise, not news, is a pynix bug: file it.\n\n## Nix programs on stdin\n\n`--file -` reads the expression from stdin in every command that takes\n`--file`, so a heredoc carries a Nix program with no temporary file:\n\n```sh\npynix build --file - \u003C\u003C'EOF'\nwith import \u003Cnixpkgs> { }; runCommand \"x\" { } \"echo hi > $out\"\nEOF\n```\n\n- Treated as a file: a function is called with its defaults, and `--attr`\n  selects. A fragment needs `=`: `--file=-#a.b`, because argparse reads a\n  separate `-#a.b` as an option.\n- `.\u002Fx` names from the working directory, as with `nix --file -`.\n- `pynix eval` with neither `--expr` nor `--file` also reads stdin.\n- Not in `pynix repl`, which reads its commands from stdin.\n\n## pynix-only\n\n- `build --nom`: nix-output-monitor style progress on stderr.\n- `build --update-fod [--dry-run]`: rewrites stale fixed-output hash literals.\n- `build --namespaced [--overlay-dir D] [--copy-back] [--sandbox-path P]`: a\n  build in a private user namespace over an overlay of the host store. The host\n  store is unchanged unless `--copy-back`. Linux only.\n- `build --copy URI`: copy the output closure to another store after the build.\n- `search` with no query and a terminal opens a TUI; pass a query or `--no-tui`.\n\n## Fall back to nix\n\nUse `nix` only for what pynix lacks, and say so in the reply: a subcommand\nmissing from `pynix --help`, or a flag its `--help` lacks.\n\nBefore falling back, or after a pynix failure that\nnix does not share, search `gh issue list -R nixidae\u002Fnixidae --search \"pynix ...\"`.\nIf no issue covers it, file one in nixidae\u002Fnixidae with label\n`source: nanopynix`: the command, the nix command that works, the stderr log.\n\n## Configuration\n\nDefaults come from, first wins: the flag, `PYNIX_\u003COPTION>` \u002F\n`PYNIX_NIX_\u003CSETTING>`, `$XDG_CONFIG_HOME\u002Fpynix\u002Fconfig.toml` (`[defaults]`\nfor pynix options, `[nix]` for Nix settings), the built-in default.\n","# pynix\n\n`pynix` is nanopynix's Nix CLI: libnix in-process, results as JSON on stdout.\nUse it in place of `nix` for every command it has. Agent use is the dogfood:\na gap or a bug found here is a pynix issue, not a reason to drop it quietly.\n\n## Mapping\n\n| nix | pynix |\n|---|---|\n| `nix eval --file . a.b` | `pynix eval --file . --attr a.b` or `--file '.#a.b'` |\n| `nix eval --expr E` | `pynix eval --expr E` (pure unless `--impure`), or E on stdin (impure, below) |\n| `nix eval --json ...` | `pynix eval --json ...`: nix's compact line; default is indented JSON |\n| `nix build --file . a b` | `pynix build --file . --attr a --attr b` |\n| `nix build --expr E a` | `pynix build --expr E --attr a` (pure unless `--impure`) |\n| `nix build --no-link --print-out-paths ...` | same flags: one path per line; `--no-link` changes nothing |\n| `nix build --keep-going` \u002F `-k` | same |\n| `nix build .#a` | `pynix build --flake .#a` |\n| `nix run`, `nix shell` | `pynix run`, `pynix shell` (= `pynix env shell`) |\n| `nix develop --file . a -c CMD` | `pynix develop --file . --attr a -- CMD` |\n| `nix print-dev-env` | `pynix print-dev-env [--json]` |\n| `nix path-info P` | `pynix path-info P` (one path) |\n| `nix log P`, `nix why-depends A B [--precise]` | same verb |\n| `nix copy --to S P` | `pynix copy --to S P`, or `--file`\u002F`--flake` instead of P |\n| `nix store gc\u002Fls\u002Fcat\u002Fdiff-closures\u002Fverify\u002F...` | `pynix store \u003Csame>` |\n| `nix derivation show --file . a` | `pynix derivation show --file . --attr a` (a target, not a `.drv` path; stdout is nix's document, `.derivations[\"\u003Cbase>.drv\"]`) |\n| `nix flake show\u002Fmetadata`, `nix config show`, `nix registry` | same verbs |\n| `nix search`, option search | `pynix search --file '\u003Cnixpkgs>' [--options\u002F--packages] QUERY [--json-output]`; `--file`\u002F`--flake` required |\n\nDifferences that bite:\n\n- No positional attribute: `pynix build --file . foo` is a usage error. Use\n  `--attr foo` or `--file '.#foo'`. `build` repeats `--attr`; other commands\n  take one target.\n- `--file` takes a path, `\u003Cname>` lookup path, URL or flake ref, each with an\n  optional `#attr`. A bare word (`nixpkgs`) tries `NIX_PATH` first, then the\n  registry; write local paths with `.\u002F`.\n- `build` writes no `result` link unless `--out-link`. Its stdout is\n  `{\"outputs\": {\"out\": \"\u002Fnix\u002Fstore\u002F...\"}, ...}`; `--print-out-paths` prints nix's lines instead.\n- `eval` prints indented JSON; `--json` prints nix's compact line; `--raw` prints the string.\n- `build --dry-run` belongs to `--update-fod`; alone it builds nothing and prints nothing.\n- Store selection is `--store URI`, plus `--eval-store` on build and develop.\n\n## Output\n\nstdout holds only the result. stderr holds what `nix` would print: warnings,\nerrors, `building '...'...`, and build logs with `--print-build-logs`. A build\nthat changes nothing prints nothing there. Do not discard stderr; it is where\nthe error is. `--verbosity talkative` adds pynix's own progress events.\n\nA stderr line that is noise, not news, is a pynix bug: file it.\n\n## Nix programs on stdin\n\n`--file -` reads the expression from stdin in every command that takes\n`--file`, so a heredoc carries a Nix program with no temporary file:\n\n```sh\npynix build --file - \u003C\u003C'EOF'\nwith import \u003Cnixpkgs> { }; runCommand \"x\" { } \"echo hi > $out\"\nEOF\n```\n\n- Treated as a file: a function is called with its defaults, and `--attr`\n  selects. A fragment needs `=`: `--file=-#a.b`, because argparse reads a\n  separate `-#a.b` as an option.\n- `.\u002Fx` names from the working directory, as with `nix --file -`.\n- `pynix eval` with neither `--expr` nor `--file` also reads stdin.\n- Not in `pynix repl`, which reads its commands from stdin.\n\n## pynix-only\n\n- `build --nom`: nix-output-monitor style progress on stderr.\n- `build --update-fod [--dry-run]`: rewrites stale fixed-output hash literals.\n- `build --namespaced [--overlay-dir D] [--copy-back] [--sandbox-path P]`: a\n  build in a private user namespace over an overlay of the host store. The host\n  store is unchanged unless `--copy-back`. Linux only.\n- `build --copy URI`: copy the output closure to another store after the build.\n- `search` with no query and a terminal opens a TUI; pass a query or `--no-tui`.\n\n## Fall back to nix\n\nUse `nix` only for what pynix lacks, and say so in the reply: a subcommand\nmissing from `pynix --help`, or a flag its `--help` lacks.\n\nBefore falling back, or after a pynix failure that\nnix does not share, search `gh issue list -R nixidae\u002Fnixidae --search \"pynix ...\"`.\nIf no issue covers it, file one in nixidae\u002Fnixidae with label\n`source: nanopynix`: the command, the nix command that works, the stderr log.\n\n## Configuration\n\nDefaults come from, first wins: the flag, `PYNIX_\u003COPTION>` \u002F\n`PYNIX_NIX_\u003CSETTING>`, `$XDG_CONFIG_HOME\u002Fpynix\u002Fconfig.toml` (`[defaults]`\nfor pynix options, `[nix]` for Nix settings), the built-in default.\n",{"name":5,"description":7},"main","17aad688ef361318255894a9ab3844b0c68a6215","nanopynix\u002Fpynix\u002Fskill\u002Fpynix",0,"https:\u002F\u002Fgithub.com\u002Fnixidae\u002Fnixidae","https:\u002F\u002Fgithub.com\u002Fnixidae","2026-11-15 05:51:34",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add nixidae\u002Fnixidae --skill pynix",{"tool":36,"command":37},"bunx","bunx skills add nixidae\u002Fnixidae --skill pynix",{"tool":39,"command":40},"pnpm","pnpm dlx skills add nixidae\u002Fnixidae --skill pynix","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnixidae\u002Fnixidae\u002Fblob\u002Fmain\u002Fnanopynix\u002Fpynix\u002Fskill\u002Fpynix\u002FSKILL.md",true,[],[45,52,60],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7C99P8491NMHSKAAEG6TSPQ","vivarium","Run and debug vivarium tests (nixidae's NixOS test runner on UML, QEMU, krun and container guests) -- choose sandboxed or by-hand runs, wait with `vivarium monitor`, pause on failure and reach into live guests with `vivarium ctl` or the vivarium MCP tools, read events.jsonl. Load before running any vivarium `mkTest`\u002F`fromNixosTest` attribute, a `.driver`, or a test suite that runs in vivarium guests (pynixd, nixkube, easykubenix and others).","https:\u002F\u002Fgithub.com\u002Fnixidae\u002Fnixidae\u002Fblob\u002Fmain\u002Fvivarium\u002Fskill\u002Fvivarium\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":56,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M7C99HKGGPHD4HF60TXJMYJP","pytest-agent","How to run pytest and read its results when the pytest-agent plugin is installed. Use when running tests, investigating a test failure, deciding whether a failure is new, re-running failures, profiling a slow test, or diagnosing a hung or killed run.","https:\u002F\u002Fgithub.com\u002Fnixidae\u002Fnixidae\u002Fblob\u002Fmain\u002Fnanopynix\u002Fpytest-agent\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fnixidae\u002Fnixidae\u002Fblob\u002Fmain\u002Fnanopynix\u002Fpytest-agent\u002FSKILL.md",[],[],{"skillNo":61,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7C99C68W1E4F6H7HP9DEPHC","https:\u002F\u002Fgithub.com\u002Fnixidae\u002Fnixidae\u002Fblob\u002Fmain\u002Fnanopynix\u002F.claude\u002Fskills\u002Fpytest-agent\u002FSKILL.md",[],[]]