forked from modelscope/ms-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_skill.sh
More file actions
executable file
·31 lines (24 loc) · 886 Bytes
/
Copy pathinstall_skill.sh
File metadata and controls
executable file
·31 lines (24 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
# Install ms-agent skill into nanobot's workspace skills directory.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
MS_AGENT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
SKILL_SRC="$MS_AGENT_ROOT/ms-agent-skills"
NANOBOT_WORKSPACE="${NANOBOT_WORKSPACE:-$HOME/.nanobot/workspace}"
SKILL_DST="$NANOBOT_WORKSPACE/skills/ms-agent"
if [ ! -d "$SKILL_SRC" ]; then
echo "ERROR: ms-agent-skills not found at $SKILL_SRC"
exit 1
fi
mkdir -p "$SKILL_DST"
cp -r "$SKILL_SRC/SKILL.md" "$SKILL_DST/"
cp -r "$SKILL_SRC/references" "$SKILL_DST/" 2>/dev/null || true
cp -r "$SKILL_SRC/scripts" "$SKILL_DST/" 2>/dev/null || true
echo "Installed ms-agent skill to: $SKILL_DST"
echo ""
echo "Contents:"
find "$SKILL_DST" -type f | sort | while read -r f; do
echo " $f"
done
echo ""
echo "nanobot will now discover this skill automatically on next startup."