-
Notifications
You must be signed in to change notification settings - Fork 497
Expand file tree
/
Copy pathinstall_skill.sh
More file actions
executable file
·34 lines (27 loc) · 1.07 KB
/
install_skill.sh
File metadata and controls
executable file
·34 lines (27 loc) · 1.07 KB
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
32
33
34
#!/usr/bin/env bash
# Install the ms-agent skill into Hermes Agent's skills directory
# so the agent knows *when* and *how* to use each MCP tool.
#
# Usage:
# ./install_skill.sh # uses default paths
# HERMES_SKILLS=~/my-skills ./install_skill.sh # custom skills dir
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"
SKILL_SRC="$REPO_ROOT/ms-agent-skills"
HERMES_SKILLS="${HERMES_SKILLS:-$HOME/.hermes/skills}"
SKILL_DST="$HERMES_SKILLS/ms-agent"
if [ ! -d "$SKILL_SRC" ]; then
echo "ERROR: ms-agent-skills/ not found at $SKILL_SRC" >&2
exit 1
fi
mkdir -p "$SKILL_DST"
cp "$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 "Next steps:"
echo " 1. Merge hermes_mcp_config.yaml into ~/.hermes/config.yaml"
echo " 2. Restart Hermes: hermes chat"
echo " 3. Test: hermes chat -q 'What ms-agent MCP tools do you have?'"