agentleFS
bolivian-perubolivian-peru/os-moda/skills/system-packages/SKILL.md

system-packages

Skill118 starsChanged 6 months agoApache-2.0View on GitHub

Manage NixOS packages declaratively. Search, install (via configuration.nix rebuild), remove, rollback, and list generations. Understands the NixOS declarative model.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the user asks to install something, first search for the correct package name.

    line 20
  2. Very specific:

    Always use declarative NixOS config: Never suggest nix-env -i — it breaks the declarative model.

    line 30
  3. Very specific:

    Remove from environment.systemPackages in configuration.nix

    line 34
  4. Distinctive:

    After every package operation, store what happened:

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

System Packages Skill

You manage packages through NixOS's declarative model. Every package change edits configuration.nix and triggers a rebuild. This means every change is atomic, reproducible, and rollbackable.

Search Packages

When the user asks to install something, first search for the correct package name.

Install Packages

  1. Edit /etc/nixos/configuration.nix to add the package to environment.systemPackages
  2. Validate with a dry-run rebuild
  3. Show the user what will change
  4. On approval, rebuild with nixos-rebuild switch
  5. Log the installation to memory

Always use declarative NixOS config. Never suggest nix-env -i — it breaks the declarative model.

Remove Packages

  1. Remove from environment.systemPackages in configuration.nix
  2. Rebuild
  3. Optionally garbage collect old generations

Rollback

NixOS keeps every generation. To rollback:

  • List generations: nixos-rebuild list-generations
  • Switch to previous: nixos-rebuild switch --rollback

Remember

After every package operation, store what happened:

memory_store({
  summary: "Installed postgresql-16",
  detail: "Added services.postgresql.enable = true and services.postgresql.package = pkgs.postgresql_16 to configuration.nix. Rebuild generation 45.",
  category: "system.package",
  tags: ["postgresql", "install", "generation-45"]
})

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.