Skip to content

Commit 7971799

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 2d1b315 commit 7971799

File tree

3 files changed

+8
-18
lines changed

3 files changed

+8
-18
lines changed

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 Skills

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: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,10 @@
101101

102102
# Agent skills bundle and targets
103103
bundle = agentLib.mkBundle { inherit pkgs selection; };
104-
localTargets = {
105-
claude = {
106-
dest = ".claude/skills";
107-
structure = "symlink-tree";
108-
enable = true;
109-
systems = [ ];
110-
};
111-
agents = {
112-
dest = ".agents/skills";
113-
structure = "symlink-tree";
114-
enable = true;
115-
systems = [ ];
116-
};
117-
};
104+
# Use symlink-tree instead of copy-tree for skills
105+
localTargets = inputs.nixpkgs.lib.mapAttrs (
106+
_: t: t // { structure = "symlink-tree"; }
107+
) agentLib.defaultLocalTargets;
118108
in
119109
{
120110
formatter = treefmtEval.config.build.wrapper;

0 commit comments

Comments
 (0)