Remove anvillm-skills script

This commit is contained in:
Levi Neely 2026-03-20 15:40:04 +01:00
parent ed761f67ee
commit e96410d599
2 changed files with 0 additions and 44 deletions

2
mkfile
View File

@ -6,8 +6,6 @@ build:V:
go build -o $INSTALL_PATH/anvillm .
cp scripts/anvillm-notify $INSTALL_PATH/anvillm-notify
chmod 0755 $INSTALL_PATH/anvillm-notify
cp scripts/anvillm-skills $INSTALL_PATH/anvillm-skills
chmod 0755 $INSTALL_PATH/anvillm-skills
cp scripts/anvillm-hook $INSTALL_PATH/anvillm-hook
chmod 0755 $INSTALL_PATH/anvillm-hook
cp scripts/anvilspawn $INSTALL_PATH/anvilspawn

View File

@ -1,42 +0,0 @@
#!/bin/sh
SKILLS_DIR="${SKILLS_DIR:-$HOME/doc/agent-skills}"
list() {
old_ifs="$IFS"
IFS=:
for dir in $SKILLS_DIR; do
IFS="$old_ifs"
for skill_dir in "$dir"/*/; do
[ -d "$skill_dir" ] || continue
skill="$skill_dir/SKILL.md"
[ -f "$skill" ] || continue
name=$(basename "$skill_dir")
desc=$(sed -n 's/^description: //p' "$skill" | head -1)
echo "$name: ${desc:-No description}"
done
IFS=:
done
IFS="$old_ifs"
}
load() {
[ -z "$1" ] && { echo "Usage: skills load <skill-name>" >&2; exit 1; }
old_ifs="$IFS"
IFS=:
for dir in $SKILLS_DIR; do
IFS="$old_ifs"
skill="$dir/$1/SKILL.md"
[ -f "$skill" ] && { cat "$skill"; exit 0; }
IFS=:
done
IFS="$old_ifs"
echo "Skill not found: $1" >&2
exit 1
}
case "$1" in
list) list ;;
load) load "$2" ;;
*) echo "Usage: skills {list|load <skill-name>}" >&2; exit 1 ;;
esac