-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·29 lines (25 loc) · 885 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·29 lines (25 loc) · 885 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
#!/usr/bin/env bash
# install.sh – Installs the security-audit skill globally for Claude Code
set -euo pipefail
SKILL_DIR="$(cd "$(dirname "$0")" && pwd)"
TARGET_DIR="$HOME/.claude/skills"
LINK_PATH="$TARGET_DIR/security-audit"
# Ensure ~/.claude/skills/ exists
if [ ! -d "$TARGET_DIR" ]; then
mkdir -p "$TARGET_DIR"
echo "Created $TARGET_DIR"
fi
# Create or update symlink
if [ -L "$LINK_PATH" ]; then
echo "Updating existing symlink..."
rm "$LINK_PATH"
elif [ -e "$LINK_PATH" ]; then
echo "Error: $LINK_PATH exists but is not a symlink. Remove it manually."
exit 1
fi
ln -s "$SKILL_DIR" "$LINK_PATH"
echo "Symlink created: $LINK_PATH -> $SKILL_DIR"
echo ""
echo "Installation complete. The /security-audit skill is now available in Claude Code."
echo "Usage: /security-audit [scope]"
echo " scope: full (default), docker, api, auth, dependencies, config, network"