nix-agent-init SKILL.md skillA

nix-agent-init from jeff7712/nix-agent is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add jeff7712/nix-agent/nix-agent-init@git:20260822.d1c961b

Pins git:20260822.d1c961b in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
jeff7712/nix-agent
Path
skills/nix-agent-init/SKILL.md
Versions recorded
5
Latest version
git:20260822.d1c961b, committed Aug 22, 2026
First version recorded
Jul 7, 2026
Size
7,821 bytes
Repository stars
17
License
MIT

Onboard an unfamiliar NixOS or Home Manager flake by running nix-agent inspect-flake and generating AGENT_MAP.md, CLAUDE.md, and .mcp.json from observed facts. Use on first contact with a config repo, when the user asks how the flake is laid out, or when making the repo agent-ready. Requires the nix-agent MCP server.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Nix Agent Init

## Overview

Make a NixOS/Home Manager config repo agent-ready in one pass. Run
`nix-agent inspect-flake` once, then generate three artifacts, each derived
from the returned facts and the files you actually read:

- `AGENT_MAP.md`: task-routing table plus search shortcuts.
- `CLAUDE.md` (+ `AGENTS.md`): a one-screen repo brief.
- `.mcp.json`: wires `nix-agent` and `mcp-nixos`.

Everything you write must trace back to an observed fact. A sparse repo
gets a short map; a rich repo gets a longer one. Never pad with generic
NixOS advice, aspirational structure, or rules the facts do not support.
If a fact is null or "unknown", say so or omit the row. Do not invent.

You do not run `nix flake show` yourself: `nix-agent inspect-flake` does.
You do read the repo's own files (module dirs, flake.nix) with your native
tools to name real files in the tables.

## Step 1: Inspect

Run `nix-agent inspect-flake` (via Bash); it prints the fact bundle as JSON.
With no argument it auto-resolves the target; if the user named a repo, pass
the path: `nix-agent inspect-flake /path/to/repo`.

The returned facts drive every decision below:
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add jeff7712/nix-agent/nix-agent-init@sha256:509c4ce1dc33cd2b

The line at the top of this page pins the label git:20260822.d1c961b, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_6mtg6lavfvssr2mh.svg)](https://markdownregistry.com/a/art_6mtg6lavfvssr2mh)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Jul 7, 2026 and Aug 22, 2026, about one every 12 days.

versioncommittedcommitsizeaudit
git:20260822.d1c961b latest2026-08-22 d1c961b 7,821 BA view · diff
git:20260812.58be3582026-08-12 58be358 7,608 BA view · diff
git:20260812.7f0dea22026-08-12 7f0dea2 7,447 BA view · diff
git:20260713.b7455b32026-07-13 b7455b3 7,289 BA view · diff
git:20260707.97a986b2026-07-07 97a986b 7,206 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7821 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

jeff7712/nix-agent · 17 stars · license MIT · pushed 2026-10-28 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_6mtg6lavfvssr2mh
GET https://markdownregistry.com/api/v1/resolve?ref=jeff7712/nix-agent/nix-agent-init
GET https://markdownregistry.com/api/v1/blob/509c4ce1dc33cd2b46d79635cc3e9a168d7627f919d30a8992c2ccdff9363948

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from jeff7712/nix-agent

nix-agent SKILL.md skill
jeff7712/nix-agent · skills/nix-agent/SKILL.md · Operate on this machine's NixOS or Home Manager configuration with the nix-agent MCP tools (build, diff, switch…
git:20261022.0627ab3 · audit A · 17 stars

Every file in jeff7712/nix-agent

Browse by kind, by grade A, or by owner.