mirror of
https://github.com/lahfir/agent-desktop.git
synced 2026-08-16 12:03:46 +00:00
Freezes the working tree as a fixed baseline: static gates green (1551 lib tests, clippy -D warnings, fmt, release 0.4.7), live-verified E1/E2 fixes, notification/harness work pending e2e acceptance. Known-open: hover fixture churn to back out, 3 e2e failures (hover oracle, AE6 sheet, sheet cancel), NT1-NT4 unproven.
27 lines
692 B
Bash
Executable file
27 lines
692 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Links skills/ directories to .claude/skills/ for local Claude Code use.
|
|
# Run after clone or when adding new skills.
|
|
|
|
set -euo pipefail
|
|
|
|
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
CLAUDE_SKILLS="$REPO_ROOT/.claude/skills"
|
|
|
|
mkdir -p "$CLAUDE_SKILLS"
|
|
|
|
for skill_dir in "$REPO_ROOT"/skills/*/; do
|
|
name=$(basename "$skill_dir")
|
|
target="../../skills/$name"
|
|
link="$CLAUDE_SKILLS/$name"
|
|
|
|
if [ -L "$link" ]; then
|
|
if ! command -v trash >/dev/null 2>&1; then
|
|
printf 'Cannot replace %s because trash is unavailable\n' "$link" >&2
|
|
exit 1
|
|
fi
|
|
trash "$link"
|
|
fi
|
|
|
|
ln -s "$target" "$link"
|
|
echo "Linked: .claude/skills/$name → skills/$name"
|
|
done
|