Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/skill-sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Supported agent skill locations:

- Hermes: `~/.hermes/skills/productivity/sql2json/SKILL.md`
- Claude: `~/.claude/skills/sql2json/SKILL.md`
- Pi: `~/.pi/agent/skills/sql2json/SKILL.md`

Refresh everything with:

Expand All @@ -23,5 +24,5 @@ or, to force-link every configured target regardless of presence checks:

Notes:

- The install script detects which agent roots exist and only installs into those locations.
- The install script detects which global agent roots exist and only installs into those locations.
- The sync script force-refreshes all known targets and is useful after editing the canonical skill.
4 changes: 2 additions & 2 deletions scripts/install-skills.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ canonical="$repo_root/skills/sql2json/SKILL.md"
agents=(
"hermes:$HOME/.hermes/skills/productivity/sql2json/SKILL.md"
"claude:$HOME/.claude/skills/sql2json/SKILL.md"
"repo-claude:$repo_root/.claude/skills/sql2json/SKILL.md"
"pi:$HOME/.pi/agent/skills/sql2json/SKILL.md"
)

installed=()
Expand All @@ -18,7 +18,7 @@ for entry in "${agents[@]}"; do
target="${entry#*:}"
base_dir="$(dirname "$(dirname "$target")")"

if [[ "$name" == repo-claude || -d "$base_dir" || -e "$base_dir" ]]; then
if [[ -d "$base_dir" || -e "$base_dir" ]]; then
mkdir -p "$(dirname "$target")"
ln -sfn "$canonical" "$target"
installed+=("$name")
Expand Down
2 changes: 1 addition & 1 deletion scripts/sync-sql2json-skill.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ canonical="$repo_root/skills/sql2json/SKILL.md"
targets=(
"$HOME/.hermes/skills/productivity/sql2json/SKILL.md"
"$HOME/.claude/skills/sql2json/SKILL.md"
"$repo_root/.claude/skills/sql2json/SKILL.md"
"$HOME/.pi/agent/skills/sql2json/SKILL.md"
)

for target in "${targets[@]}"; do
Expand Down
1 change: 1 addition & 0 deletions skills/sql2json/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ Supported agent targets:
|---|---|
| Hermes | `~/.hermes/skills/productivity/sql2json/SKILL.md` |
| Claude | `~/.claude/skills/sql2json/SKILL.md` |
| Pi | `~/.pi/agent/skills/sql2json/SKILL.md` |

See `docs/skill-sync.md` for the full agent-target map.

Expand Down
Loading