agentleFS
nhooeynhooey/nix-skills/skills/nix-flakes/SKILL.md

nix-flakes

Skill3 starsChanged 18 days agoApache-2.0View on GitHub

Load when writing, scaffolding or reviewing a `flake.nix`, or debugging a flake evaluation or build problem that looks structural. One set of language-agnostic conventions, with scripts that inventory a repository's flakes and detect its languages. Choosing a `*2nix` library belongs to `nix-language-packaging`.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. gurinderu/craft★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 3 are distinctive, and 15 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 15

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the detector exits 1 (no language found), scaffold a minimal flake-parts skeleton with only devshell and treefmt.

    line 30
  2. Very specific:

    Pin everything: Use named inputs (nixpkgs, flake-parts, devshell, …), not the registry, so builds are the same on every machine.

    line 40
  3. Very specific:

    Keep with for a tight scope of one or two attributes, such as meta = with lib.licenses.

    line 94
  4. Very specific:

    Put a script, config or template in its own file.

    line 98
  5. Very specific:

    Test the platform through stdenv.hostPlatform: pkgs.stdenv.hostPlatform.isDarwin, .isLinux, .isAarch64, .isx86_64, or lib.optionals …

    line 119
  6. Very specific:

    Which names: every stdenv.is* platform test: isDarwin, isLinux, isSunOS, isCygwin, isBSD, isFreeBSD, isOpenBSD, isi686, isx86_32, isx86_64, …

    line 125
  7. Very specific:

    Before hoisting, name the other version this one edit would switch to.

    line 156
  8. Very specific:

    Clashing wrappers: when two packages in the dev shell put the same binary on PATH, demote one with lib.lowPrio instead of removing it.

    line 160
  9. Distinctive:

    A stable path for the IDE: when an IDE caches the toolchain's store path, symlink the resolved toolchain into the workspace from a dev …

    line 161
  10. Very specific:

    Use numtide/devshell rather than mkShell, for its menu command, help text and command categories.

    line 165
  11. Very specific:

    Factor out repeated shell preambles: When two commands share one (find the workspace root, source helpers, check tools), put it in a script …

    line 194
  12. Very specific:

    Use treefmt through numtide/treefmt-nix rather than wiring each formatter separately: one nix fmt runs them all (Nix, shell, JSON, YAML, …

    line 215
  13. Very specific:

    When a script or dev shell command enumerates the repo's files, use git ls-files rather than find:

    line 237
  14. Very specific:

    If flake-parts, or any other module, is in inputs but never imported in outputs, drop it or migrate to it.

    line 255
  15. Very specific:

    Re-verify: run the script. Exit 1 (fixed) means the bullet in Input management is stale: record the first fixed Nix version there and here, …

    line 278
  16. Very specific:

    If your agent doesn't run the line above, read these files yourself if they exist: nix-flakes.preferences.md next to this skill's folder, …

    line 285
  17. Distinctive:

    When one of these applies and it's in your skill listing, load it without asking.

    line 290
  18. Distinctive:

    If it isn't in your listing, tell the user which skill is missing and ask whether to install it from the same collection this skill came …

    line 291

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Nix flake conventions

Language-agnostic guidance for flake.nix files. JVM specifics are in nix-java, Clojure and ClojureScript in nix-clojure.

On load: create or update

Invoking this skill is a request to act on the current repo. Inventory its flakes first:

"${CLAUDE_SKILL_DIR}/scripts/inventory-flakes.sh"

It emits one TSV line per flake.nix with a tracked or untracked marker, and exits 1 if there are none. The scripts read the working directory, so run them by absolute path from the user's repo; an agent that doesn't substitute ${CLAUDE_SKILL_DIR} uses the skill's installed folder.

Then:

  • No flakes: create one without asking. Detect the project's languages with "${CLAUDE_SKILL_DIR}/scripts/detect-project-language.sh", which emits one slug per line (rust, node-pnpm, python-poetry, clojure, java-gradle, …), and scaffold a flake.nix that follows this skill:

    • pinned, deduplicated inputs;
    • flake-parts.lib.mkFlake with nix-systems/default;
    • numtide/devshell and numtide/treefmt-nix;
    • one pinned toolchain constant, read from rust-toolchain.toml, .nvmrc or the like when present;
    • sorted devshell commands with categories and help;
    • result and result-* in .gitignore.

    If the detector exits 1 (no language found), scaffold a minimal flake-parts skeleton with only devshell and treefmt. Then run nix flake metadata (or nix flake show --all-systems --no-write-lock-file) to confirm it evaluates, and report what you did.

    Package outputs that depend on the project's third-party dependencies wait for the user's pick of a *2nix library, as nix-language-packaging says; the dev shell and formatter can land before it.

  • One or more flakes: ask which to update. These rules are opinionated and the flakes are the user's, so don't rewrite any unasked. List every flake.nix found, numbered, and ask which to bring into line: all, none or a subset. Audit each chosen flake against this skill section by section, then edit it in place or summarise the changes you'd propose, whichever the user asked for. Leave the others alone.
  • The user wants a new sub-flake ("add a flake to tools/"): create it as above, without asking about the existing flake.

Input management

  • Pin everything. Use named inputs (nixpkgs, flake-parts, devshell, …), not the registry, so builds are the same on every machine.
  • Pin revisions in flake.lock, not in input URLs. Write inputs without a rev (url = "github:owner/repo";) and let nix flake update <input> write the rev and narHash into the lock. A rev in the URL (github:owner/repo/<sha>) pins twice: the URL wins over the lock, nix flake update does nothing for that input, and bumping means editing source. Each sub-flake in a monorepo carries its own flake.lock; if one is missing, run nix flake lock in that directory instead of adding a URL rev.

    When auditing, treat a rev in a URL as drift to remove, not a convention to copy to other inputs. It shows up most on non-flake source inputs (*-src, vendored upstreams), where the author wanted control over the commit; that control belongs in flake.lock. Removing the rev and re-running nix flake lock moves the input to upstream's tip, which is what nix flake update would do anyway. To keep the old rev through the move, delete rev from the input's original block in flake.lock and leave locked.rev and locked.narHash alone; usually, accept the re-lock.

  • Avoid relative path: sub-flake inputs (url = "path:./subdir") in a flake other flakes consume. A relative input resolves when its flake is the root or a direct input, but once that flake is reached through an intermediate flake with its own committed flake.lock, Nix resolves ./subdir against the intermediate's source tree, and locking fails with path '«…»/subdir/flake.nix' does not exist (NixOS/nix#14762, open; the related nix flake archive regression is NixOS/nix#12438). Sandboxed builders fail another way: they archive the consumer's closure without the working tree and reject it with flake inputs of type 'path:' not allowed. No setting on the consumer's side fixes the relative form.

    For a sub-flake in the same repo, inline its inputs into the consuming flake's inputs, build the combined output in outputs (with the library's combiner, for example), and delete the sub-flake directory. The root flake.lock grows, and every consumer carries those inputs, but the graph has no relative paths and no self-references.

    • Don't point the input at your own repo by URL (url = "github:owner/repo?dir=subdir"). The self-reference breaks on a rename, owner change or host move, and resolves only a subdirectory already on the remote's default branch, so adding the subdirectory and switching the input can't happen in one pull request.
    • A ?dir= input into a different repo is fine: it is an ordinary fetchable input.
    • import ./subdir as plain Nix works when the sub-flake is pure logic with no inputs of its own.

    When inlining, watch for version skew the sub-flake's own lock hid. If an inlined source follows a shared library input that the root pins at a different revision, a check that passed in isolation can fail against the root's revision. Letting each inlined source follow only nixpkgs, not the shared library, keeps its compatible revision, while the combiner still runs from the root's library. A bare path: output and a same-repo build are fine; the hazard is a relative path used as a flake input that is consumed from outside the repo.

  • Resolve symlinked directories before a path: flakeref or input. Since 2.20, Nix refuses a path when it or any parent directory is a symlink: error: path '//tmp' is a symlink (or //var, //private/var/…/link). Since 2.27, bare-path flakerefs (nix build /tmp/x#a) work, but nix build path:/tmp/x#a, a path: input and builtins.getFlake "path:…" still fail. It bites on macOS, where /tmp and /var (so $TMPDIR, mktemp -d and bats' $BATS_FILE_TMPDIR) are symlinks into /private: a test that copies a flake to a temporary directory and evaluates path:$dir passes on Linux and fails on macOS. Hand Nix the physical path:

    dir="$(cd "$BATS_FILE_TMPDIR" && pwd -P)/my-flake"   # or: realpath
    nix build "path:$dir#default"

    "${CLAUDE_SKILL_DIR}/scripts/check-symlinked-parent-path-flakeref.sh" tests the installed Nix: exit 0 (still-broken) means this advice applies, 1 (fixed) means this bullet is stale, 2 is inconclusive. Sources and the last check are under [symlinked-path].

  • Deduplicate the dependency graph. Set inputs.<x>.inputs.nixpkgs.follows = "nixpkgs" on every secondary input: a smaller closure, and no drift between a dependency's nixpkgs and yours.
  • Write an input with more than one attribute as a nested attrset. Group url, inputs.*.follows, flake = false and the rest under one <name> = { … }; block. A lone <name>.url = …; line is fine; repeated dotted paths scatter related facts and drift when one line moves without the others.
  • Choose a channel deliberately. Pin the current stable release branch (nixos-YY.MM, or its non-NixOS equivalent) for builds that keep working untouched, or the rolling unstable branch for recent toolchains. Say which in a comment, so a reader knows whether moving to the next release is a project decision or a routine update.
  • Order inputs nixpkgs, flake-parts, systems, then alphabetical. The three foundational inputs lead, in that order, when present; the rest sort alphabetically. The outputs = { ... }@inputs: head follows the same order, with self first when destructured, since it isn't in inputs. Why these lead: nixpkgs is the package set every other input follows, flake-parts is the framework that consumes the rest, and systems sets the fanout everything in perSystem depends on. Alphabetical order for the rest makes a new input's place mechanical. Keep an existing deliberate grouping (blank-line-separated clusters of related inputs); re-sort only an incidental order.

The outputs = { ... }@inputs convention

Bind the whole inputs attrset:

outputs = { self, nixpkgs, flake-parts, ... }@inputs: ...

You get the inputs you name destructured and one inputs name for the whole set, which is what flake-parts.lib.mkFlake { inherit inputs; } { ... } takes. Adding an input then doesn't touch the function head.

Use inherit over with

with pkgs; brings every nixpkgs attribute into scope. A reader can't tell where lib.foo came from (pkgs.lib? nixpkgs.lib? a let binding?), and static analysis can't either. Prefer:

inherit (pkgs) coreutils findutils git;
inherit (pkgs.lib) optional optionals;

over

with pkgs;
with pkgs.lib;

Keep with for a tight scope of one or two attributes, such as meta = with lib.licenses; { ... }, and consider inherit even there.

Never inline a file's contents in Nix

Put a script, config or template in its own file. Read it with builtins.readFile, or fill in values with pkgs.replaceVars ./file { … } and @name@ placeholders. A one-line command can stay inline.

Structure

  • Use flake-parts.lib.mkFlake for every flake, small ones included. perSystem replaces the system-fanout boilerplate (forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system); pkgs = nixpkgs.legacyPackages.${system};), and ecosystem modules (easyOverlay, devshell.flakeModule, treefmt-nix.flakeModule, pre-commit-hooks-nix.flakeModule, …) compose through imports = [ … ];. A small flake rarely stays small: a second check, a dev shell or a formatter is two imports lines under flake-parts and a restructure under genAttrs. The cost is one input and a four-line wrapper, less than the boilerplate it replaces, and a repo with one style everywhere is easier to read. The only fair exception is a one-shot fixture flake that will never grow a second output.
  • Iterate systems through the nix-systems/default flake rather than declaring the system list in every flake:

    inputs.systems.url = "github:nix-systems/default";
    outputs = { systems, flake-parts, ... }@inputs:
      flake-parts.lib.mkFlake { inherit inputs; } {
        systems = import systems;
        perSystem = { pkgs, ... }: { ... };
      };

    The flake-utils equivalent is flake-utils.lib.eachDefaultSystem. Either way, a consumer can override the systems input to add or remove systems without forking your flake.

  • Resolve pkgs once. Bind it in the let (or _module.args.pkgs under flake-parts) and reuse it, rather than repeating the lookup at each call site.

Platform checks: stdenv.hostPlatform, not stdenv.is*

Test the platform through stdenv.hostPlatform: pkgs.stdenv.hostPlatform.isDarwin, .isLinux, .isAarch64, .isx86_64, or lib.optionals pkgs.stdenv.hostPlatform.isDarwin [ … ]. The shorthands on stdenv itself are deprecated aliases, and each use prints a warning on every evaluation:

evaluation warning: stdenv.isDarwin is deprecated, use stdenv.hostPlatform.isDarwin instead
  • Which names: every stdenv.is* platform test: isDarwin, isLinux, isSunOS, isCygwin, isBSD, isFreeBSD, isOpenBSD, isi686, isx86_32, isx86_64, is32bit, is64bit, isAarch32, isAarch64, isMips and isBigEndian, listed in nixpkgs' pkgs/stdenv/generic/default.nix. stdenv.system is not deprecated; it already means the host platform's system.
  • Why host, not build: these tests ask what the package will run on, the host platform. stdenv.buildPlatform is the machine doing the build; it differs only when cross-compiling, so switching to it would break cross builds.
  • Fix every occurrence: git grep -nE 'stdenv\.is[A-Za-z0-9_]+' lists them, including pkgs.stdenv.is… and stdenv.is… bound through inherit (pkgs) stdenv. With config.allowAliases = false, which some CI sets, the aliases are gone and the old form fails to evaluate instead of warning.
  • When the warning isn't from your code: an input's Nix can print it too. Make the warning an error and print the trace: nix eval --option abort-on-warn true --show-trace .#<attr> (or nix build with the same options). If the code belongs to an input, update the input or report it upstream rather than patching around it.

Toolchain pinning

A toolchain gets a single-source-of-truth constant only when both hold:

  1. It has a version axis in nixpkgs: two or more versions you could switch between, such as pkgs.nodejs_22 and pkgs.nodejs_20, pkgs.jdk21 and pkgs.jdk17, or a rust-bin channel. An unversioned attribute (pkgs.bun, pkgs.ripgrep, pkgs.git) has no axis and doesn't qualify, however often it appears.
  2. More than one consumer uses it: the production build, the dev shell, the IDE, CI checks.

Then define the pinned version once and thread it through every consumer, so one edit retargets the project:

let
  toolchain = pkgs.someToolchain_42;        # the one knob
  build = pkgs.buildSomething.override { inherit toolchain; };
in {
  packages.default = build;
  devShells.default = pkgs.mkShell {
    nativeBuildInputs = [ toolchain build ];
  };
}

The trigger is the pinned version written in more than one place, not the same package referenced more than once. If either condition fails, don't hoist:

  • No version axis: the rule doesn't apply. pkgs.bun at three nativeBuildInputs sites has no bun_1_0 to switch to, so there is no pinned version to centralise. Hoisting it is a separate de-duplication; if you do it, say that's why, and keep it out of a change scoped to following this skill.
  • One consumer: a versioned attribute used in one place is already its own single source; pin it inline.

Before hoisting, name the other version this one edit would switch to. pkgs.nodejs_22 to pkgs.nodejs_20: a real axis, hoist. pkgs.bun to nothing: leave it inline.

Two related patterns, with their JVM forms in nix-java:

  • Clashing wrappers: when two packages in the dev shell put the same binary on PATH, demote one with lib.lowPrio instead of removing it.
  • A stable path for the IDE: when an IDE caches the toolchain's store path, symlink the resolved toolchain into the workspace from a dev shell startup hook, and gitignore the link.

Dev shell ergonomics

Use numtide/devshell rather than mkShell, for its menu command, help text and command categories.

Command discipline

  • Every command has a category.
  • Don't shadow a name the shell already resolves. Devshell puts each command on PATH as a wrapper, but bash resolves keywords and built-ins before PATH, so a command named test, time or cd shows in menu and evaluates, yet typing it runs the built-in. test is the usual trap for "run the tests"; use tests. Check a candidate with type -a <name> in a clean shell, and rename it if anything resolves.
  • Category names are lowercase, since the menu shows them as [lowercase].
  • Sort commands by (category, name) in the source, so diffs stay small and a reader finds a command without searching.
  • Mark each category with a header comment. Once sorted, put a one-line comment naming the category above each run, so the source reads like the menu and category boundaries stand out in review:

    commands = [
      # build
      { category = "build"; name = "compile";   help = "..."; command = "..."; }
      { category = "build"; name = "package";   help = "..."; command = "..."; }
    
      # ci
      { category = "ci"; name = "check";        help = "..."; command = "..."; }
      { category = "ci"; name = "fmt-check";    help = "..."; command = "..."; }
    
      # dev
      { category = "dev"; name = "watch";       help = "..."; command = "..."; }
    ];

    One blank line goes between categories, and the comment matches the category field exactly, so drift shows in the diff.

  • Every command has a help string, so menu tells a newcomer what's there without reading the flake.
  • Ship every tool a contributor needs in the shell (linters, formatters, language tools, system utilities), so the README has no "install this globally" step.
  • Make dependency refreshes commands: update-deps, update-flake, update-lockfile and the like.
  • Factor out repeated shell preambles. When two commands share one (find the workspace root, source helpers, check tools), put it in a script file read by pkgs.writeShellApplication, put that on the dev shell's PATH, and call it from each command.
  • motd greets and points at menu, without printing it. Greet with the shell's name, which tells nested shells apart, and say that menu lists the commands. Printing the whole list on entry scrolls the terminal, interleaves with parallel direnv reloads, and repeats on every re-entry; menu is there when wanted.

    devshells.default = {
      name = "myproject";
      motd = ''
        {bold}{14}🚀 Entering myproject dev shell{reset}
        Run {bold}menu{reset} to list available commands.
      '';
      # ...
    };
  • Guard commands that touch developer state. If a command relinks ./node_modules (or any local path) into the Nix store, rm it only if it points into the store (readlink -f starts with the store directory, which the script gets as runtimeEnv = { STORE_DIR = builtins.storeDir; }), so a developer's own npm install survives.

Portability of command bodies

A one-line devshell command runs under bash, so bashisms (${@:-default}, [[ ... ]], arrays, process substitution) are fine there. Anything longer is a script file in the command's package = pkgs.writeShellApplication { … }, which gives it a bash shebang, so the same bashisms keep working when someone runs it outside the shell.

Formatting

Use treefmt through numtide/treefmt-nix rather than wiring each formatter separately: one nix fmt runs them all (Nix, shell, JSON, YAML, JS, Clojure, Rust, …) under one config and one file-discovery rule.

imports = [ inputs.treefmt-nix.flakeModule ];
perSystem = { ... }: {
  treefmt = {
    projectRootFile = "flake.nix";
    programs.nixfmt.enable = true;
    programs.shfmt.enable = true;
    # add per-language formatters as the project grows
  };
};

The module sets formatter.${system}, so nix fmt works. Avoid hand-rolled loops like find . -name '*.nix' | while read -r f; do nixfmt "$f"; done; see Touching files in the repo.

Checks

Wire formatters, linters and tests as checks.${system}, so nix flake check is the CI entry point and runs the same locally as in CI.

Touching files in the repo

When a script or dev shell command enumerates the repo's files, use git ls-files rather than find:

git ls-files -z '*.nix' | while IFS= read -rd '' f; do nixfmt "$f"; done

A flake sees only git-tracked files when it evaluates, so commands that act on "the project" should match. find descends into node_modules/, .git/, result-* symlinks and untracked scratch files; git ls-files sees only what's tracked, and is faster.

git ls-files '*.nix'                                 # tracked .nix files
git ls-files -z | while IFS= read -rd '' f; do sh -c '...' _ "$f"; done   # null-safe iteration
git ls-files -co --exclude-standard '*.nix'          # tracked + untracked, but not gitignored

The exception is a task that deliberately works on untracked files, such as building artifacts or generating files into ignored paths. find is fine there; say so in a comment.

Half-adopted modules

If flake-parts, or any other module, is in inputs but never imported in outputs, drop it or migrate to it. A half-adopted module leaves readers unsure whether the flake is mid-migration, carries dead code, or expects them to use the module somehow.

References

Resources for cross-checking this skill; where one conflicts with it, the upstream source wins, so re-read it and update the skill:

[symlinked-path]: path: flakerefs under a symlinked directory

  • Introduced by: NixOS/nix#9497, "Move restricted/pure-eval access control out of the evaluator and into the accessor" (in 2.20).
  • Fixed for nix-env only: NixOS/nix#10247, "'/var is a symlink' error on macOS when using nix-env -iA under root" (fixed in 2.20.6).
  • Fixed for bare paths only: NixOS/nix#12286, "Fix flakes follow symlinks" (in 2.27.0), resolves symlinks in parsePathFlakeRefWithFragment, so nix build /tmp/x#a works; path: URLs, path: inputs and builtins.getFlake still go through PosixSourceAccessor::assertNoSymlinks.
  • Still open, nearest match: NixOS/nix#11567, "path: flake reference has some weird behavior" (its repro fails with path '/var' is a symlink, though it is mostly about the .git/fsmonitor socket). Also related: NixOS/nix#5831, "Can't pass symlinks as flakerefs", and NixOS/nix#9253, "Symlinks to flakes have poor UX". None covers a symlinked parent directory of a path: URL; once a dedicated issue exists, cite it here.
  • Last verified: 2026-11-16 on Nix 2.34.9 (aarch64-darwin), by scripts/check-symlinked-parent-path-flakeref.sh, which printed still-broken and error: path '//private/var/…/link' is a symlink. A path: input and builtins.getFlake "path:…" fail the same way; the bare path works.
  • Re-verify: run the script. Exit 1 (fixed) means the bullet in Input management is stale: record the first fixed Nix version there and here, and keep the pwd -P advice only for older Nix.
  • When Nix updates: besides running the script, check the release notes for changes to path: flakerefs, symlinks or assertNoSymlinks, and the state of NixOS/nix#11567 and any dedicated issue cited above. When one closes or a release fixes it, record the first fixed version and update Last verified.

Your preferences

!cat "${CLAUDE_SKILL_DIR}/../nix-flakes.preferences.md" "${CLAUDE_PROJECT_DIR}/.agents/skills/nix-flakes.preferences.md" 2>/dev/null || true

If your agent doesn't run the line above, read these files yourself if they exist: nix-flakes.preferences.md next to this skill's folder, then .agents/skills/nix-flakes.preferences.md in the project. A project's file overrides the user's, and the user's overrides this skill's defaults.

Related skills

When one of these applies and it's in your skill listing, load it without asking. If it isn't in your listing, tell the user which skill is missing and ask whether to install it from the same collection this skill came from; don't apply it from memory.

  • nix-java: JVM specifics: the JDK override argument per tool, the IDE-stable nix-jdk symlink and lowPrio for clashing wrappers.
  • nix-clojure: Clojure and ClojureScript packaging with clj-nix.
  • nix-language-packaging: choosing, with the user, the *2nix library that packages a project's dependencies, per language.
  • nix-flake-recursive-bump-input-versions: bumping owned inputs across a multi-repo tree of flakes, leaves first.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.