From 6894b5c1ab2697f6ba080889b6b1de25cdf6534c Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sun, 22 Nov 2026 15:31:45 +0000 Subject: [PATCH] skills: Share flash-openwrt and install-box --- {.claude => .agents}/skills/flash-openwrt/SKILL.md | 0 {.claude => .agents}/skills/install-box/SKILL.md | 0 .claude/skills | 1 + .claude/skills/upgrade-nixpkgs | 1 - AGENTS.md | 3 +++ docs/install-box.md | 5 ++--- docs/openwrt-flash.md | 2 ++ 7 files changed, 8 insertions(+), 4 deletions(-) rename {.claude => .agents}/skills/flash-openwrt/SKILL.md (100%) rename {.claude => .agents}/skills/install-box/SKILL.md (100%) create mode 120000 .claude/skills delete mode 120000 .claude/skills/upgrade-nixpkgs diff --git a/.claude/skills/flash-openwrt/SKILL.md b/.agents/skills/flash-openwrt/SKILL.md similarity index 100% rename from .claude/skills/flash-openwrt/SKILL.md rename to .agents/skills/flash-openwrt/SKILL.md diff --git a/.claude/skills/install-box/SKILL.md b/.agents/skills/install-box/SKILL.md similarity index 100% rename from .claude/skills/install-box/SKILL.md rename to .agents/skills/install-box/SKILL.md diff --git a/.claude/skills b/.claude/skills new file mode 120000 index 0000000..2b7a412 --- /dev/null +++ b/.claude/skills @@ -0,0 +1 @@ +../.agents/skills \ No newline at end of file diff --git a/.claude/skills/upgrade-nixpkgs b/.claude/skills/upgrade-nixpkgs deleted file mode 120000 index 5722403..0000000 --- a/.claude/skills/upgrade-nixpkgs +++ /dev/null @@ -1 +0,0 @@ -../../.agents/skills/upgrade-nixpkgs \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md index 534587b..3abdfa0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -20,6 +20,9 @@ committed allow list of safe-to-auto-approve commands) and `.claude/settings.loc gitignored — where interactive "always allow" grants accumulate). Put durable, generally-safe commands in the shared file; leave one-off or workstation-specific grants in the local one. +Project skills live under `.agents/skills/`. Claude Code discovers them through the +`.claude/skills` symlink. + ## Overview Personal Nix flake managing NixOS systems and home-manager configurations for a set of diff --git a/docs/install-box.md b/docs/install-box.md index 4830028..4815b8c 100644 --- a/docs/install-box.md +++ b/docs/install-box.md @@ -1,9 +1,8 @@ # Installing a box Procedure for bringing a new NixOS box into this flake, from bare hardware booted into the custom -installer through to a deployable system. Written to be followed by a person or any coding agent; a -Claude Code entry point exists at `.claude/skills/install-box/` but the steps below are the -canonical source. +installer through to a deployable system. The shared agent skill is +[`install-box`](../.agents/skills/install-box/SKILL.md). The install is **guided, not automated**: the mechanical steps (probing hardware, partitioning, writing the config, evaluating it) can be done straight through, but stop at the judgment points diff --git a/docs/openwrt-flash.md b/docs/openwrt-flash.md index 671acf1..02e538f 100644 --- a/docs/openwrt-flash.md +++ b/docs/openwrt-flash.md @@ -1,5 +1,7 @@ # Flashing an OpenWrt box +The shared agent skill is [`flash-openwrt`](../.agents/skills/flash-openwrt/SKILL.md). + Guided procedure for putting a flake-built OpenWrt image onto a box. The images themselves are declared in [`openwrt/default.nix`](../openwrt/default.nix) and described in [`deployment.md`](deployment.md#openwrt-images); the boxes are listed on their site pages (today