用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/giodamelio/neovim-configs-nix --skill optnix命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | optnix |
| description | Search Nix module system options (NVF, NixOS, home-manager, etc.) |
optnix is a CLI tool for searching Nix module system options. Use it when you need to discover or inspect NVF, NixOS, home-manager, or any configured scope's options.
vim.languages.go)List configured scopes:
optnix --list-scopes
This project has optnix.toml at the repo root with nvf as the default scope.
When you know the exact option name:
optnix --non-interactive --json <option-name>
Example:
optnix --non-interactive --json vim.languages.go.enable
Returns JSON with: name, description, type, default, example, declarations.
When you don't know the exact name, use a partial match:
optnix --non-interactive --json vim.languages.go.enabl
This exits with code 1 and returns JSON with a similar_options array containing close matches. Parse this to find the correct option name, then query again.
Override the default scope with -s:
optnix --non-interactive --json -s nixos services.nginx.enable
optnix --non-interactive --json -s home-manager programs.git.enable
Without -s, uses default_scope from optnix.toml (currently nvf).
# Fuzzy search to find all options containing "treesitter"
optnix --non-interactive --json vim.treesitter
Parse similar_options from the error response to see available options.
# Exact lookup for complete documentation
optnix --non-interactive --json vim.treesitter.enable
# List available scopes first
optnix --list-scopes
# Query NixOS options
optnix --non-interactive --json -s nixos boot.loader.grub.enable
The optnix.toml at the repo root defines available scopes. Add new scopes there if needed.
| Flag | Description |
|---|---|
-s, --scope <name> | Specify scope (overrides default) |
-n, --non-interactive | Non-interactive mode (required for scripts) |
-j, --json | JSON output (required for parsing) |
-l, --list-scopes | List available scopes |
-m, --min-score <n> | Minimum fuzzy match score |
-v, --value-only | Output only the option value |