/ Diretório / Playground / agent-skills-nix
● Comunidade Kyure-A ⚡ Instantâneo

agent-skills-nix

por Kyure-A · Kyure-A/agent-skills-nix

Manage your Claude Agent Skills declaratively with Nix — reproducible skill sets across machines.

A Nix flake that lets you declare your Agent Skills in Nix config and have them materialized into ~/.claude/skills/ (or any target). Useful if you already live in NixOS or Home Manager and want your skill setup to be as reproducible as the rest of your dotfiles.

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

agent-skills-nix-skill.replay ▶ pronto
0/0

Instalar

Escolha seu cliente

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "agent-skills-nix-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Kyure-A/agent-skills-nix",
        "~/.claude/skills/agent-skills-nix"
      ],
      "_inferred": true
    }
  }
}

Abra Claude Desktop → Settings → Developer → Edit Config. Reinicie após salvar.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "agent-skills-nix-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Kyure-A/agent-skills-nix",
        "~/.claude/skills/agent-skills-nix"
      ],
      "_inferred": true
    }
  }
}

Cursor usa o mesmo esquema mcpServers que o Claude Desktop. Config de projeto vence a global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "agent-skills-nix-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Kyure-A/agent-skills-nix",
        "~/.claude/skills/agent-skills-nix"
      ],
      "_inferred": true
    }
  }
}

Clique no ícone MCP Servers na barra lateral do Cline, depois "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "agent-skills-nix-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Kyure-A/agent-skills-nix",
        "~/.claude/skills/agent-skills-nix"
      ],
      "_inferred": true
    }
  }
}

Mesmo formato do Claude Desktop. Reinicie o Windsurf para aplicar.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "agent-skills-nix-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Kyure-A/agent-skills-nix",
        "~/.claude/skills/agent-skills-nix"
      ]
    }
  ]
}

O Continue usa um array de objetos de servidor em vez de um map.

~/.config/zed/settings.json
{
  "context_servers": {
    "agent-skills-nix-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/Kyure-A/agent-skills-nix",
          "~/.claude/skills/agent-skills-nix"
        ]
      }
    }
  }
}

Adicione em context_servers. Zed recarrega automaticamente ao salvar.

claude mcp add agent-skills-nix-skill -- git clone https://github.com/Kyure-A/agent-skills-nix ~/.claude/skills/agent-skills-nix

Uma linha só. Verifique com claude mcp list. Remova com claude mcp remove.

Casos de uso

Usos do mundo real: agent-skills-nix

How to declare your Claude skills in a Nix flake

👤 NixOS / Home Manager users ⏱ ~25 min intermediate

Quando usar: You want your Claude skill set tracked the same way as your shells, editors, and services.

Pré-requisitos
  • Nix with flakes enabled — echo 'experimental-features = nix-command flakes' >> ~/.config/nix/nix.conf
  • The flake added as an input — flake input agent-skills-nix.url = "github:Kyure-A/agent-skills-nix";
Fluxo
  1. Add the input
    Add agent-skills-nix to my flake inputs and wire it into Home Manager.✓ Copiado
    → flake.nix updated with the input + module import
  2. List the skills I want
    Declare the skills I use: linear-claude-skill, symfony-ux-skills, mck-ppt-design-skill. Pin to current main.✓ Copiado
    → A skills = { ... }; block with pinned revs
  3. Build and switch
    Run home-manager switch and verify ~/.claude/skills/ is populated.✓ Copiado
    → All skills present as symlinked directories

Resultado: Reproducible skill set managed by Nix — wipe your dotfiles and get the same setup back in one command.

Armadilhas
  • Upstream skill changes break your workflow — Pin to a specific rev, only bump on purpose
Combine com: filesystem

Sync the same skill set across laptop and workstation

👤 Multi-machine developers ⏱ ~15 min intermediate

Quando usar: You switch between a laptop and a desktop and keep forgetting to clone the same skills on both.

Fluxo
  1. Add to your shared HM module
    Move the skills declaration into my shared home-manager module so both hosts import it.✓ Copiado
    → Single source of truth, two hosts consuming it
  2. Switch both hosts
    Build and switch on both machines.✓ Copiado
    → Matching ~/.claude/skills/ on both

Resultado: Both machines carry the same skill bundle automatically.

Armadilhas
  • Forgetting to commit and push before switching on the second machine — Use a self-flake with autoCommit or a shared git repo

Combinações

Combine com outros MCPs para 10× de alavancagem

agent-skills-nix-skill + filesystem

Claude reads your flake and suggests skills to add/remove

Read my flake.nix, check which of my installed skills haven't been used in 30 days, and suggest removals.✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
skill-declaration set of { name, url, rev } During home-manager switch / nixos-rebuild nix build runtime
lock-management flake.lock When you want deterministic upgrades 0

Custo e limites

O que custa rodar

Cota de API
none
Tokens por chamada
minimal — Nix declarations are short
Monetário
free
Dica
Keep your skill set small — every skill costs context tokens at load time

Segurança

Permissões, segredos, alcance

Armazenamento de credenciais: none
Saída de dados: fetches only the skill repos you declare

Solução de problemas

Erros comuns e correções

Flake doesn't evaluate

Check input url format and run nix flake check for specific errors.

Verificar: nix flake check
Skills dir empty after switch

Make sure the module is actually imported in your HM config, and home.activation is running.

Verificar: ls ~/.claude/skills/
Pinned rev 404

The upstream repo may have rewritten history — update the rev.

Alternativas

agent-skills-nix vs. outros

AlternativaQuando usarTroca
manual git cloneYou're not on Nix and don't want to beNo reproducibility; easy drift
agent-skills-cli-skillYou want a CLI installer without NixImperative rather than declarative

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills