From 7971799f4e270cf1a91bde175f71c631c8fbed52 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Thu, 5 Feb 2026 07:48:17 +0000 Subject: [PATCH] refactor(skills): use defaultLocalTargets from agent-skills-nix - Replace manual localTargets definition with agentLib.defaultLocalTargets - Override only the structure to use symlink-tree instead of copy-tree - Update agent-skills-nix to latest version (2026-02-04) - Skills now install to both .agents/skills and .claude/skills --- CLAUDE.md | 2 +- flake.lock | 6 +++--- flake.nix | 18 ++++-------------- 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 5a32672..71bf4d7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -5,7 +5,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Rules and Skills Structure - **Rules** (`.claude/rules/`): Automatically loaded based on file paths. Source of truth for project conventions. -- **Skills** (`.claude/skills/`): Managed by Nix via [agent-skills-nix](https://github.com/Kyure-A/agent-skills-nix). Skills are sourced from [StackOneHQ/skills](https://github.com/StackOneHQ/skills) and installed automatically when entering `nix develop`. +- **Skills** (`.agents/skills/`, `.claude/skills/`): Managed by Nix via [agent-skills-nix](https://github.com/Kyure-A/agent-skills-nix). Skills are sourced from [StackOneHQ/skills](https://github.com/StackOneHQ/skills) and installed automatically when entering `nix develop`. - **Cursor rules** (`.cursor/rules/`): Symlinks to `.claude/rules/` for consistency. ## Available Skills diff --git a/flake.lock b/flake.lock index b5676ec..cd99319 100644 --- a/flake.lock +++ b/flake.lock @@ -8,11 +8,11 @@ ] }, "locked": { - "lastModified": 1769944375, - "narHash": "sha256-TmTyQvFz8rNCwN8MQZGFtgFGdJANF6P6nbxVOjQvpME=", + "lastModified": 1770218103, + "narHash": "sha256-InxSZomi7ajBm+d5dN3Yah5mh7+pTb3iuI3U380sqQ8=", "owner": "Kyure-A", "repo": "agent-skills-nix", - "rev": "bb2fc09cd0152867bd548422e66f4738b081d719", + "rev": "2e53d1a4c0fe78d758b99f5df0f79d558498002e", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 7c8c94a..ece3cd3 100644 --- a/flake.nix +++ b/flake.nix @@ -101,20 +101,10 @@ # Agent skills bundle and targets bundle = agentLib.mkBundle { inherit pkgs selection; }; - localTargets = { - claude = { - dest = ".claude/skills"; - structure = "symlink-tree"; - enable = true; - systems = [ ]; - }; - agents = { - dest = ".agents/skills"; - structure = "symlink-tree"; - enable = true; - systems = [ ]; - }; - }; + # Use symlink-tree instead of copy-tree for skills + localTargets = inputs.nixpkgs.lib.mapAttrs ( + _: t: t // { structure = "symlink-tree"; } + ) agentLib.defaultLocalTargets; in { formatter = treefmtEval.config.build.wrapper;