Nix expressions for AI agent skills, plugins, marketplaces, and Kiro powers.
Each package is sourced from a GitHub repository, pinned to a specific revision, and available through a nixpkgs overlay.
Read about Nix flakes and set them up.
Read about Overlays.
Add agents.nix to your flake inputs:
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
agents-nix.url = "github:sudosubin/agents.nix";
};
outputs = { nixpkgs, agents-nix, ... }:
let
pkgs = import nixpkgs {
system = "aarch64-darwin"; # or "x86_64-linux", etc.
overlays = [ agents-nix.overlays.default ];
};
in
{
# pkgs.agent-skills.github.<owner>.<repo>.<skill-name>
};
}let
agents-nix = import (builtins.fetchGit {
url = "https://github.com/sudosubin/agents.nix";
ref = "refs/heads/main";
});
pkgs = import <nixpkgs> {
overlays = [ agents-nix.overlays.default ];
};
in
# pkgs.agent-skills.github.<owner>.<repo>.<skill-name>Agent Plugins are available under pkgs.agent-plugins:
pkgs.agent-plugins.github.<owner>.<repo>.<plugin-name>After applying the overlay (see Overlay), skills are available under pkgs.agent-skills:
pkgs.agent-skills.github.<owner>.<repo>.<skill-name>Without the overlay, you can access skills from the flake outputs:
agents-nix.agent-skills.${system}.github.<owner>.<repo>.<skill-name>Claude Code marketplaces are available under pkgs.claude-code-marketplaces:
pkgs.claude-code-marketplaces.github.<owner>.<repo>.<marketplace-name>Claude Code plugins are available under pkgs.claude-code-plugins:
pkgs.claude-code-plugins.github.<owner>.<repo>.<plugin-name>Codex marketplaces are available under pkgs.codex-marketplaces:
pkgs.codex-marketplaces.github.<owner>.<repo>.<marketplace-name>This namespace collects .agents/plugins/marketplace.json, or
.agents/plugins/api_marketplace.json when the first file is absent. Claude Code
and Cursor catalogs belong to their own namespaces. Compatible marketplace
packages can still be combined by the consuming application.
Codex plugins are available under pkgs.codex-plugins:
pkgs.codex-plugins.github.<owner>.<repo>.<plugin-name>Copilot marketplaces are available under pkgs.copilot-marketplaces:
pkgs.copilot-marketplaces.github.<owner>.<repo>.<marketplace-name>Copilot plugins are available under pkgs.copilot-plugins:
pkgs.copilot-plugins.github.<owner>.<repo>.<plugin-name>Kiro powers with POWER.md are available under pkgs.kiro-powers.
Use pkgs.agent-plugins for powers in the Agent Plugins format.
pkgs.kiro-powers.github.<owner>.<repo>.<power-name>Skills are organized in a four-level hierarchy: github.<owner>.<repo>.<skill-name>.
github— the forge the repository lives onowner— repository owner, lower-cased (e.g.,vercel-labs)repo— repository name, lower-cased (e.g.,skills)skill-name— skill directory name (e.g.,find-skills)
For example, a skill from the repository vercel-labs/skills would be accessed as:
pkgs.agent-skills.github.vercel-labs.skills.find-skillsNote
If a skill identifier contains characters that aren't valid Nix identifiers, quote them like pkgs.agent-skills.github."01000001-01001110"."agent-jira-skills"."jira-issues".
Important
pkgs.skills.<owner>.<repo>.<skill-name> still resolves and warns on evaluation. It is kept for existing configurations only.
# home-manager configuration
{ pkgs, ... }:
{
programs.claude-code = {
enable = true;
skills = {
find-skills = pkgs.agent-skills.github.vercel-labs.skills.find-skills;
};
};
}# home-manager configuration
{ pkgs, ... }:
{
home.file.".pi/agent/skills/find-skills" = {
source = pkgs.agent-skills.github.vercel-labs.skills.find-skills;
recursive = true;
};
}By default, SKILL.md is preserved unchanged. The derivation pname comes from the lowercased skill directory name, or the repository name for skills at the repository root.
Use .override { name = "..."; } to change both the derivation pname and the name field in SKILL.md frontmatter. Setting name = null restores the default package name and preserves the original file.
pkgs.agent-skills.github.vercel-labs.skills.find-skills.override { name = "my-find-skills"; }$ nix repl
nix-repl> :lf github:sudosubin/agents.nix
nix-repl> skills = outputs.agent-skills.${builtins.currentSystem}.github
nix-repl> skills.vercel-labs.skills
{ find-skills = «derivation ...»; ... }
nix-repl> skills.vercel-labs.skills.find-skills
«derivation /nix/store/...-find-skills-4f1d38e.drv»nix build github:sudosubin/agents.nix#agent-skills.aarch64-darwin.github.vercel-labs.skills.find-skillsThree independent GitHub Actions workflows run on their own schedules and exchange data through committed JSON files in data/:
- Fetches the latest skill listings from skills.sh and skillsdirectory.com.
- Records which of them listed each repository in
data/agent-skills/sources.json, admitting a new one once it has 10 stars.
- Asks GitHub for each repository's current name, and confirms the ones it no longer serves.
- Moves a renamed repository under the name it goes by now, keeping the old one as an alias that warns when built.
- Reads the committed source list (
data/agent-skills/sources.json) to determine which repositories to process. - Splits the work across 16 parallel shards. For each repository, it resolves the revision to pin — the newest release, or the newest commit that touched a skill when there is no usable tag — then downloads the tarball, hashes it, and discovers all
SKILL.mdfiles. - Stores the result in
data/agent-skills/<forge>/as one JSON file per repository, and proposes each change as its own pull request that merges once the skills build.
At evaluation time, Nix reads these JSON files and builds each skill using fetchFromGitHub with the pinned revision and hash. One file is read per repository, so only what you ask for is parsed.
aarch64-darwin, aarch64-linux, and x86_64-linux are supported. ci/README.md describes the workflows in more detail.