nixos-ai-skill
Health Uyari
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Basarisiz
- rm -rf — Recursive force deletion command in install.sh
- rm -rf — Recursive force deletion command in scripts/generate-references.sh
Permissions Gecti
- Permissions — No dangerous permissions requested
This project provides auto-updated NixOS and Nix ecosystem documentation directly to AI coding assistants. It works by cloning reference documents into your local directories so that AI tools can read them as context.
Security Assessment
Overall risk: Medium. This tool is essentially a collection of static documentation files, which is inherently safe. It does not request dangerous permissions, contains no hardcoded secrets, and does not access sensitive data. However, there are two significant security concerns. First, the repository contains recursive force deletion commands (`rm -rf`) in both `install.sh` and `scripts/generate-references.sh`. While this is common for cleanup operations in shell scripts, users should verify exactly what directories these commands target before executing them. Second, the installation instructions encourage piping a remote script directly into bash (`curl ... | bash`). This practice bypasses the opportunity to inspect the code before running it on your machine, which can be dangerous if the repository is ever compromised.
Quality Assessment
The project appears active and well-documented, with a recent push date indicating ongoing maintenance. However, community trust and visibility are currently very low, with only 5 GitHub stars. The biggest quality gap is the complete lack of an open-source license. Without a defined license, strict copyright laws apply, meaning you do not technically have legal permission to use, modify, or distribute the code.
Verdict
Use with caution: it provides helpful, non-intrusive documentation context for AI tools, but you should inspect the shell scripts for safe `rm -rf` usage and be aware of the unlicensed status before adopting it.
Auto-updated NixOS & Nix ecosystem documentation for AI coding assistants — works with 33+ tools via the Agent Skills standard (SKILL.md)
NixOS AI Skill
Auto-updated NixOS and Nix documentation for AI coding assistants.
Uses the open Agent Skills standard (SKILL.md). Works with 33+ AI coding assistants including Claude Code, Cursor, Windsurf, GitHub Copilot, OpenAI Codex, Gemini CLI, Amp, OpenCode, Cline, Aider, Goose, Roo Code, and many more.
References are auto-generated daily from four official NixOS repositories via GitHub Actions.
Sources
| Repository | What it provides |
|---|---|
| NixOS/nix.dev | Tutorials, guides, best practices, glossary |
NixOS/nixpkgs nixos/doc/manual/ |
NixOS manual (installation, configuration, administration, modules) |
| NixOS/nix-pills | Progressive Nix learning series (20 lessons) |
| NixOS/release-wiki | NixOS release process documentation |
Install
Quick start
Clone into whichever directory your AI tool reads context from:
# Cursor
git clone https://github.com/marceloeatworld/nixos-ai-skill.git .cursor/skills/nixos
# Windsurf
git clone https://github.com/marceloeatworld/nixos-ai-skill.git .windsurf/skills/nixos
# GitHub Copilot
git clone https://github.com/marceloeatworld/nixos-ai-skill.git .github/copilot-instructions.d/nixos
# Cline
git clone https://github.com/marceloeatworld/nixos-ai-skill.git .cline/skills/nixos
# Claude Code (global, all projects)
git clone https://github.com/marceloeatworld/nixos-ai-skill.git ~/.claude/skills/nixos
# Claude Code (project-local)
git clone https://github.com/marceloeatworld/nixos-ai-skill.git .claude/skills/nixos
# OpenCode
git clone https://github.com/marceloeatworld/nixos-ai-skill.git .opencode/skills/nixos
# Aider
git clone https://github.com/marceloeatworld/nixos-ai-skill.git .aider/skills/nixos
# Amp
git clone https://github.com/marceloeatworld/nixos-ai-skill.git .amp/skills/nixos
# ForgeCode
git clone https://github.com/marceloeatworld/nixos-ai-skill.git .forgecode/skills/nixos
# Gemini CLI
git clone https://github.com/marceloeatworld/nixos-ai-skill.git .gemini/skills/nixos
# OpenAI Codex
git clone https://github.com/marceloeatworld/nixos-ai-skill.git .agents/skills/nixos
# Cross-agent standard (works with any Agent Skills compatible tool)
git clone https://github.com/marceloeatworld/nixos-ai-skill.git .agents/skills/nixos
With the install script
curl -fsSL https://raw.githubusercontent.com/marceloeatworld/nixos-ai-skill/main/install.sh | bash -s -- --claude
curl -fsSL https://raw.githubusercontent.com/marceloeatworld/nixos-ai-skill/main/install.sh | bash -s -- --cursor
curl -fsSL https://raw.githubusercontent.com/marceloeatworld/nixos-ai-skill/main/install.sh | bash -s -- --windsurf
curl -fsSL https://raw.githubusercontent.com/marceloeatworld/nixos-ai-skill/main/install.sh | bash -s -- --copilot
curl -fsSL https://raw.githubusercontent.com/marceloeatworld/nixos-ai-skill/main/install.sh | bash -s -- --opencode
curl -fsSL https://raw.githubusercontent.com/marceloeatworld/nixos-ai-skill/main/install.sh | bash -s -- --amp
curl -fsSL https://raw.githubusercontent.com/marceloeatworld/nixos-ai-skill/main/install.sh | bash -s -- --custom /path/you/want
Run ./install.sh --help for all options.
Update
git -C <install-path> pull
The references are updated daily by GitHub Actions, so git pull always gives you the latest documentation.
What it covers
| Category | Topics |
|---|---|
| Getting Started | Installing Nix, NixOS installation, first steps, upgrading, FAQ, glossary |
| Nix Language | Language tutorial, flakes, callPackage, module system, pinning nixpkgs |
| NixOS Configuration | Syntax, packages, users, networking, filesystems, display server, kernel, profiles |
| Administration | Service management, logging, rollback, containers, troubleshooting |
| Development | Writing modules, NixOS tests, building images |
| Packaging | Packaging tutorial, cross-compilation |
| Tutorials | VM setup, Docker images, ISO building, Terraform, distributed builds, Raspberry Pi |
| Guides | Best practices, recipes (direnv, CI, Python, binary cache), troubleshooting |
| Nix Pills | 20-lesson progressive learning series (derivations, stdenv, callPackage, etc.) |
| Release Process | Roles, branch-off, beta phase, feature freeze, release steps |
How it works
User asks about NixOS / Nix
|
v
AI reads matching reference file from references/
|
v
If more detail needed -> fetch latest from raw.githubusercontent.com
|
v
Answer with correct Nix syntax and configuration.nix / flake.nix examples
The SKILL.md file acts as a routing table: it maps topics to reference files and provides fallback URLs for live fetching.
The references/ directory contains full unmodified documentation from four official NixOS repos — not summaries.
How references stay up to date
A GitHub Actions workflow runs daily:
- Clones
NixOS/nix.dev,NixOS/nix-pills,NixOS/release-wiki(shallow) - Sparse-checkouts
NixOS/nixpkgsfornixos/doc/manual/only - Runs
scripts/generate-references.shto regenerate all reference files - If anything changed, commits and pushes
You can also regenerate manually:
bash scripts/generate-references.sh
Structure
nixos-ai-skill/
├── SKILL.md # Main instruction file (topic -> reference map)
├── install.sh # Multi-tool install script
├── scripts/
│ └── generate-references.sh # Fetches docs and generates references
├── .github/workflows/
│ └── update-references.yml # Daily auto-update from official repos
└── references/ # Auto-generated (~40 files)
├── .wiki-version # Source commit tracker (all 4 repos)
├── nix-language.md # Nix language tutorial
├── flakes.md # Flakes concept
├── first-steps.md # Getting started with Nix
├── nixos-installation.md # NixOS installation guide
├── nixos-networking.md # Networking configuration
├── nixos-writing-modules.md # Module development
├── nix-pills.md # All 20 Nix Pills
└── ...
Compatibility
Built on the open Agent Skills standard (SKILL.md). Compatible with 33+ AI coding tools:
| Tool | Install path |
|---|---|
| Cross-agent standard | .agents/skills/nixos |
| Claude Code (global) | ~/.claude/skills/nixos |
| Claude Code (project) | .claude/skills/nixos |
| Cursor | .cursor/skills/nixos |
| Windsurf | .windsurf/skills/nixos |
| GitHub Copilot / VS Code | .github/skills/nixos |
| OpenAI Codex | .agents/skills/nixos |
| Gemini CLI | .gemini/skills/nixos |
| Amp | .amp/skills/nixos |
| OpenCode | .opencode/skills/nixos |
| Cline | .cline/skills/nixos |
| Aider | .aider/skills/nixos |
| Goose | .goose/skills/nixos |
| Roo Code | .roo/skills/nixos |
For tools not listed, clone into whichever directory your tool reads context/rules from.
Examples
> How do I set up a NixOS configuration with flakes?
> What's the difference between nix-shell and nix develop?
> How do I add a custom package to my NixOS system?
> Configure Nginx with HTTPS on NixOS
> How do I write a NixOS module with custom options?
> What is callPackage and how does it work?
> How do I set up full disk encryption with LUKS on NixOS?
> Run NixOS tests for my module
Credits
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi