Skip to content

Commit 7684476

Browse files
committed
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
1 parent 3e1c5d6 commit 7684476

4 files changed

Lines changed: 8 additions & 19 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,6 @@ dist
182182
!.envrc
183183

184184
# Agent skills (managed by Nix via agent-skills-nix)
185-
.claude/skills
186185
.agents/skills
186+
.claude/skills
187187

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
55
## Rules and Skills Structure
66

77
- **Rules** (`.claude/rules/`): Automatically loaded based on file paths. Source of truth for project conventions.
8-
- **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`.
8+
- **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`.
99
- **Cursor rules** (`.cursor/rules/`): Symlinks to `.claude/rules/` for consistency.
1010

1111
## Available Rules

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,9 @@
5656
pkgs = nixpkgs.legacyPackages.${system};
5757
bundle = agentLib.mkBundle { inherit pkgs selection; };
5858
# Use symlink-tree instead of copy-tree for skills
59-
localTargets = {
60-
claude = {
61-
dest = ".claude/skills";
62-
structure = "symlink-tree";
63-
enable = true;
64-
systems = [ ];
65-
};
66-
agents = {
67-
dest = ".agents/skills";
68-
structure = "symlink-tree";
69-
enable = true;
70-
systems = [ ];
71-
};
72-
};
59+
localTargets = nixpkgs.lib.mapAttrs (
60+
_: t: t // { structure = "symlink-tree"; }
61+
) agentLib.defaultLocalTargets;
7362
in
7463
{
7564
default = pkgs.mkShellNoCC {

0 commit comments

Comments
 (0)