| name | skilldeck |
| description | Manage AI agent skills via natural language — install, update, delete, and assign skills to agents using SkillDeck's filesystem conventions. |
| metadata | {"author":"crossoverJie","version":"1.0"} |
| allowed-tools | Bash, Read, Write |
SkillDeck Manager
Manage AI coding agent skills through natural language. This skill teaches you how to install, update, delete, and assign skills using SkillDeck's filesystem conventions.
SkillDeck is a macOS GUI app that manages skills across 14 AI agents. Skills are stored as directories containing SKILL.md files. This skill lets you perform the same operations from the terminal.
Filesystem Layout
~/.agents/
├── skills/ # Canonical storage (real files live here)
│ ├── my-skill/
│ │ ├── SKILL.md # Skill definition (YAML frontmatter + markdown)
│ │ └── ... # Other files (scripts, templates, etc.)
│ └── another-skill/
│ └── SKILL.md
├── .skill-lock.json # Lock file (v3, shared with npx skills)
└── .skilldeck-cache.json # SkillDeck's private cache (do not modify)
~/.claude/skills/ # Claude Code skills (symlinks → canonical)
~/.codex/skills/ # Codex skills (symlinks → canonical, also reads ~/.agents/skills/)
~/.gemini/skills/ # Gemini CLI skills
~/.copilot/skills/ # Copilot CLI skills (also reads ~/.claude/skills/)
~/.config/opencode/skills/ # OpenCode skills (also reads ~/.claude/skills/ and ~/.agents/skills/)
~/.cursor/skills/ # Cursor skills (also reads ~/.claude/skills/)
~/.kiro/skills/ # Kiro skills
~/.codebuddy/skills/ # CodeBuddy skills
~/.openclaw/skills/ # OpenClaw skills
~/.trae/skills/ # Trae skills
~/.qoder/skills/ # Qoder skills
~/.qclaw/skills/ # QClaw skills
~/.workbuddy/skills/ # WorkBuddy skills
~/.gemini/antigravity/skills/ # Antigravity skills
Key rules:
- The real copy of every skill lives in
~/.agents/skills/<name>/
- Each agent gets a symlink pointing to the canonical directory
- Example:
~/.claude/skills/my-skill → ~/.agents/skills/my-skill
- Some agents can read other agents' directories (cross-directory inheritance):
- Codex reads
~/.agents/skills/ natively (no symlink needed)
- Copilot reads
~/.claude/skills/
- OpenCode reads
~/.claude/skills/ and ~/.agents/skills/
- Cursor reads
~/.claude/skills/
Default Agent Configuration
When installing a skill, you need to decide which agents to assign it to. The recommended approach:
- Auto-detect installed agents — check which CLI commands exist on the system
- Assign to all detected agents — unless the user specifies a subset
The following script detects installed agents and builds a list of their skills directories:
declare -A AGENT_DIRS=(
["claude"]="$HOME/.claude/skills"
["codex"]="$HOME/.codex/skills"
["gemini"]="$HOME/.gemini/skills"
["opencode"]="$HOME/.config/opencode/skills"
["antigravity"]="$HOME/.gemini/antigravity/skills"
["cursor"]="$HOME/.cursor/skills"
["kiro"]="$HOME/.kiro/skills"
["codebuddy"]="$HOME/.codebuddy/skills"
["openclaw"]="$HOME/.openclaw/skills"
["trae"]="$HOME/.trae/skills"
["qoder"]="$HOME/.qoder/skills"
["qclaw"]="$HOME/.qclaw/skills"
["workbuddy"]="$HOME/.workbuddy/skills"
)
INSTALLED_DIRS=()
for CMD in "${!AGENT_DIRS[@]}"; do
if which "$CMD" &>/dev/null; then
INSTALLED_DIRS+=("${AGENT_DIRS[$CMD]}")
echo "Detected: $CMD → ${AGENT_DIRS[$CMD]}"
fi
done
if which gh &>/dev/null && gh extension list 2>/dev/null | grep -q copilot; then
INSTALLED_DIRS+=("$HOME/.copilot/skills")
echo "Detected: copilot → $HOME/.copilot/skills"
fi
echo "Found ${#INSTALLED_DIRS[@]} installed agents"
Use INSTALLED_DIRS as the default target when installing. If the user says "only install for Claude Code", filter to just $HOME/.claude/skills.
Lock File Format
Location: ~/.agents/.skill-lock.json (version 3)
{
"version": 3,
"skills": {
"skill-name": {
"source": "owner/repo",
"sourceType": "github",
"sourceUrl": "https://github.com/owner/repo.git",
"skillPath": "skills/skill-name/SKILL.md",
"skillFolderHash": "abc123...",
"installedAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
},
"dismissed": {},
"lastSelectedAgents": []
}
Fields:
source: Repository identifier (e.g., "crossoverJie/skills") or local path
sourceType: "github", "local", or "clawhub"
sourceUrl: Full git URL
skillPath: Relative path to SKILL.md within the source
skillFolderHash: Git tree hash for update detection (can be empty string for local)
installedAt / updatedAt: ISO 8601 timestamps
Helper Functions
These reusable snippets are referenced in the operations below.
List all agent skills directories
ALL_AGENT_SKILLS=(
"$HOME/.claude/skills"
"$HOME/.codex/skills"
"$HOME/.gemini/skills"
"$HOME/.copilot/skills"
"$HOME/.config/opencode/skills"
"$HOME/.gemini/antigravity/skills"
"$HOME/.cursor/skills"
"$HOME/.kiro/skills"
"$HOME/.codebuddy/skills"
"$HOME/.openclaw/skills"
"$HOME/.trae/skills"
"$HOME/.qoder/skills"
"$HOME/.qclaw/skills"
"$HOME/.workbuddy/skills"
)
Find which agents have a skill installed
find_skill_agents() {
local SKILL_NAME="$1"
local CANONICAL="$2"
for DIR in "${ALL_AGENT_SKILLS[@]}"; do
local LINK="$DIR/$SKILL_NAME"
if [ -L "$LINK" ]; then
local RESOLVED=$(python3 -c "import os; print(os.path.realpath('$LINK'))")
if [ "$RESOLVED" = "$CANONICAL" ]; then
echo "$DIR"
fi
fi
done
}
Create symlinks for multiple agents
create_symlinks() {
local SKILL_NAME="$1"
local CANONICAL="$2"
shift 2
local TARGET_DIRS=("$@")
for DIR in "${TARGET_DIRS[@]}"; do
mkdir -p "$DIR"
if [ ! -L "$DIR/$SKILL_NAME" ]; then
ln -s "$CANONICAL" "$DIR/$SKILL_NAME"
echo " Symlink: $DIR/$SKILL_NAME"
fi
done
}
Remove symlinks from multiple agents
remove_symlinks() {
local SKILL_NAME="$1"
local CANONICAL="$2"
for DIR in "${ALL_AGENT_SKILLS[@]}"; do
local LINK="$DIR/$SKILL_NAME"
if [ -L "$LINK" ]; then
local RESOLVED=$(python3 -c "import os; print(os.path.realpath('$LINK'))")
if [ "$RESOLVED" = "$CANONICAL" ]; then
rm "$LINK"
echo " Removed: $LINK"
fi
fi
done
}
Operations
1. Install a Skill from GitHub
Steps:
- Clone the repository to a temporary directory
- Locate the SKILL.md file and the skill directory
- Detect installed agents (or use user-specified targets)
- Copy the skill directory to
~/.agents/skills/<name>/
- Create symlinks for target agents
- Update the lock file
SKILL_NAME="my-skill"
REPO_SOURCE="owner/repo"
REPO_URL="https://github.com/owner/repo.git"
SKILL_FOLDER_PATH="skills/$SKILL_NAME"
TMPDIR=$(mktemp -d)
git clone --depth 1 "$REPO_URL" "$TMPDIR/repo"
SOURCE_DIR="$TMPDIR/repo/$SKILL_FOLDER_PATH"
if [ ! -f "$SOURCE_DIR/SKILL.md" ]; then
FOUND=$(find "$TMPDIR/repo" -name "SKILL.md" -maxdepth 3 | head -1)
if [ -n "$FOUND" ]; then
SOURCE_DIR=$(dirname "$FOUND")
SKILL_FOLDER_PATH="${SOURCE_DIR#$TMPDIR/repo/}"
SKILL_FOLDER_PATH="${SKILL_FOLDER_PATH%/}"
else
echo "❌ SKILL.md not found in repository"
rm -rf "$TMPDIR"
exit 1
fi
fi
if [ -z "$SKILL_FOLDER_PATH" ]; then
SKILL_FILE_PATH="SKILL.md"
else
SKILL_FILE_PATH="$SKILL_FOLDER_PATH/SKILL.md"
fi
CANONICAL="$HOME/.agents/skills/$SKILL_NAME"
if [ -d "$CANONICAL" ]; then
echo "❌ Skill '$SKILL_NAME' already exists. Use update instead."
rm -rf "$TMPDIR"
exit 1
fi
declare -A AGENT_DIRS=(
["claude"]="$HOME/.claude/skills"
["codex"]="$HOME/.codex/skills"
["gemini"]="$HOME/.gemini/skills"
["opencode"]="$HOME/.config/opencode/skills"
["antigravity"]="$HOME/.gemini/antigravity/skills"
["cursor"]="$HOME/.cursor/skills"
["kiro"]="$HOME/.kiro/skills"
["codebuddy"]="$HOME/.codebuddy/skills"
["openclaw"]="$HOME/.openclaw/skills"
["trae"]="$HOME/.trae/skills"
["qoder"]="$HOME/.qoder/skills"
["qclaw"]="$HOME/.qclaw/skills"
["workbuddy"]="$HOME/.workbuddy/skills"
)
TARGET_DIRS=()
for CMD in "${!AGENT_DIRS[@]}"; do
if which "$CMD" &>/dev/null; then
TARGET_DIRS+=("${AGENT_DIRS[$CMD]}")
fi
done
if which gh &>/dev/null && gh extension list 2>/dev/null | grep -q copilot; then
TARGET_DIRS+=("$HOME/.copilot/skills")
fi
echo "Installing for ${#TARGET_DIRS[@]} agents: ${TARGET_DIRS[*]}"
mkdir -p "$HOME/.agents/skills"
cp -R "$SOURCE_DIR" "$CANONICAL"
for DIR in "${TARGET_DIRS[@]}"; do
mkdir -p "$DIR"
ln -s "$CANONICAL" "$DIR/$SKILL_NAME"
echo " Symlink: $DIR/$SKILL_NAME"
done
cd "$TMPDIR/repo"
TREE_HASH=$(git rev-parse HEAD:$SKILL_FOLDER_PATH 2>/dev/null || echo "")
NOW=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
export SKILL_NAME REPO_SOURCE REPO_URL SKILL_FILE_PATH TREE_HASH NOW
python3 << 'PYEOF'
import json, os
lock_path = os.path.expanduser("~/.agents/.skill-lock.json")
os.makedirs(os.path.dirname(lock_path), exist_ok=True)
lock = {}
if os.path.exists(lock_path):
with open(lock_path) as f:
lock = json.load(f)
lock.setdefault("version", 3)
lock.setdefault("skills", {})
lock.setdefault("dismissed", {})
lock.setdefault("lastSelectedAgents", [])
skill_name = os.environ["SKILL_NAME"]
repo_source = os.environ["REPO_SOURCE"]
repo_url = os.environ["REPO_URL"]
skill_file_path = os.environ["SKILL_FILE_PATH"]
tree_hash = os.environ["TREE_HASH"]
now = os.environ["NOW"]
lock["skills"][skill_name] = {
"source": repo_source,
"sourceType": "github",
"sourceUrl": repo_url,
"skillPath": skill_file_path,
"skillFolderHash": tree_hash,
"installedAt": now,
"updatedAt": now
}
with open(lock_path, "w") as f:
json.dump(lock, f, indent=2, sort_keys=True)
PYEOF
rm -rf "$TMPDIR"
echo "✅ Installed '$SKILL_NAME'"
2. Delete a Skill
⚠️ IMPORTANT: Always confirm with the user before deleting. Deletion removes the skill from ALL agents.
SKILL_NAME="my-skill"
CANONICAL="$HOME/.agents/skills/$SKILL_NAME"
if [ ! -d "$CANONICAL" ]; then
echo "❌ Skill '$SKILL_NAME' not found"
exit 1
fi
ALL_AGENT_SKILLS=(
"$HOME/.claude/skills" "$HOME/.codex/skills" "$HOME/.gemini/skills"
"$HOME/.copilot/skills" "$HOME/.config/opencode/skills" "$HOME/.gemini/antigravity/skills"
"$HOME/.cursor/skills" "$HOME/.kiro/skills" "$HOME/.codebuddy/skills"
"$HOME/.openclaw/skills" "$HOME/.trae/skills" "$HOME/.qoder/skills"
"$HOME/.qclaw/skills" "$HOME/.workbuddy/skills"
)
echo "Skill '$SKILL_NAME' is assigned to:"
for DIR in "${ALL_AGENT_SKILLS[@]}"; do
LINK="$DIR/$SKILL_NAME"
if [ -L "$LINK" ]; then
RESOLVED=$(python3 -c "import os; print(os.path.realpath('$LINK'))")
if [ "$RESOLVED" = "$CANONICAL" ]; then
echo " ✓ $(basename $(dirname $DIR)) ($(dirname $DIR))"
fi
fi
done
for DIR in "${ALL_AGENT_SKILLS[@]}"; do
LINK="$DIR/$SKILL_NAME"
if [ -L "$LINK" ]; then
RESOLVED=$(python3 -c "import os; print(os.path.realpath('$LINK'))")
if [ "$RESOLVED" = "$CANONICAL" ]; then
rm "$LINK"
fi
fi
done
rm -rf "$CANONICAL"
export SKILL_NAME
python3 << 'PYEOF'
import json, os
lock_path = os.path.expanduser("~/.agents/.skill-lock.json")
if os.path.exists(lock_path):
with open(lock_path) as f:
lock = json.load(f)
lock.get("skills", {}).pop(os.environ["SKILL_NAME"], None)
with open(lock_path, "w") as f:
json.dump(lock, f, indent=2, sort_keys=True)
PYEOF
echo "✅ Deleted '$SKILL_NAME'"
3. Update a Skill
Pull latest from GitHub, overwrite local copy, preserve symlinks.
SKILL_NAME="my-skill"
CANONICAL="$HOME/.agents/skills/$SKILL_NAME"
if [ ! -d "$CANONICAL" ]; then
echo "❌ Not installed. Use install instead."
exit 1
fi
VARS_FILE=$(mktemp /tmp/skilldeck_vars.XXXXXX)
export SKILL_NAME VARS_FILE
python3 << 'PYEOF'
import json, os
lock_path = os.path.expanduser("~/.agents/.skill-lock.json")
with open(lock_path) as f:
lock = json.load(f)
entry = lock.get("skills", {}).get(os.environ["SKILL_NAME"])
if not entry:
print("ERROR: No lock entry found")
exit(1)
source_url = entry.get("sourceUrl", "")
skill_path = entry.get("skillPath", "")
if skill_path == "SKILL.md":
folder_path = ""
elif skill_path.endswith("/SKILL.md"):
folder_path = skill_path[:-len("/SKILL.md")]
else:
folder_path = skill_path
vars_file = os.environ["VARS_FILE"]
with open(vars_file, "w") as f:
for key, val in [("REPO_URL", source_url),
("SKILL_FILE_PATH", skill_path),
("SKILL_FOLDER_PATH", folder_path)]:
safe = val.replace("'", "'\\''")
f.write(f"declare -x {key}='{safe}'\n")
PYEOF
if [ ! -s "$VARS_FILE" ]; then
echo "❌ Failed to read lock entry"
rm -f "$VARS_FILE"
exit 1
fi
source "$VARS_FILE"
rm -f "$VARS_FILE"
TMPDIR=$(mktemp -d)
git clone --depth 1 "$REPO_URL" "$TMPDIR/repo"
SOURCE_DIR="$TMPDIR/repo/$SKILL_FOLDER_PATH"
if [ ! -f "$SOURCE_DIR/SKILL.md" ]; then
echo "❌ SKILL.md not found at $SOURCE_DIR"
rm -rf "$TMPDIR"
exit 1
fi
ALL_AGENT_SKILLS=(
"$HOME/.claude/skills" "$HOME/.codex/skills" "$HOME/.gemini/skills"
"$HOME/.copilot/skills" "$HOME/.config/opencode/skills" "$HOME/.gemini/antigravity/skills"
"$HOME/.cursor/skills" "$HOME/.kiro/skills" "$HOME/.codebuddy/skills"
"$HOME/.openclaw/skills" "$HOME/.trae/skills" "$HOME/.qoder/skills"
"$HOME/.qclaw/skills" "$HOME/.workbuddy/skills"
)
EXISTING_LINKS=()
for DIR in "${ALL_AGENT_SKILLS[@]}"; do
LINK="$DIR/$SKILL_NAME"
if [ -L "$LINK" ]; then
RESOLVED=$(python3 -c "import os; print(os.path.realpath('$LINK'))")
if [ "$RESOLVED" = "$CANONICAL" ]; then
EXISTING_LINKS+=("$DIR")
rm "$LINK"
fi
fi
done
rm -rf "$CANONICAL"
cp -R "$SOURCE_DIR" "$CANONICAL"
for DIR in "${EXISTING_LINKS[@]}"; do
ln -s "$CANONICAL" "$DIR/$SKILL_NAME"
done
echo "Restored ${#EXISTING_LINKS[@]} symlinks"
cd "$TMPDIR/repo"
TREE_HASH=$(git rev-parse HEAD:$SKILL_FOLDER_PATH 2>/dev/null || echo "")
NOW=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
export SKILL_NAME SKILL_FILE_PATH TREE_HASH NOW
python3 << 'PYEOF'
import json, os
lock_path = os.path.expanduser("~/.agents/.skill-lock.json")
if not os.path.exists(lock_path):
exit(0)
with open(lock_path) as f:
lock = json.load(f)
skill_name = os.environ["SKILL_NAME"]
existing = lock.get("skills", {}).get(skill_name)
if existing:
existing["skillFolderHash"] = os.environ["TREE_HASH"]
existing["updatedAt"] = os.environ["NOW"]
lock["skills"][skill_name] = existing
else:
print("⚠️ No existing lock entry found — creating a new one")
now = os.environ["NOW"]
lock["skills"][skill_name] = {
"source": "",
"sourceType": "local",
"sourceUrl": "",
"skillPath": os.environ["SKILL_FILE_PATH"],
"skillFolderHash": os.environ["TREE_HASH"],
"installedAt": now,
"updatedAt": now
}
with open(lock_path, "w") as f:
json.dump(lock, f, indent=2, sort_keys=True)
PYEOF
rm -rf "$TMPDIR"
echo "✅ Updated '$SKILL_NAME'"
4. List Installed Skills
echo "Installed skills:"
for DIR in "$HOME/.agents/skills"/*/; do
[ -f "$DIR/SKILL.md" ] || continue
NAME=$(basename "$DIR")
DESC=$(sed -n '/^---$/,/^---$/{ /^description:/{ s/^description: *//; p; q; } }' "$DIR/SKILL.md" 2>/dev/null)
echo " - $NAME: $DESC"
done
5. Assign / Unassign Skill to Agent
SKILL_NAME="my-skill"
AGENT_SKILLS_DIR="$HOME/.claude/skills"
CANONICAL="$HOME/.agents/skills/$SKILL_NAME"
mkdir -p "$AGENT_SKILLS_DIR"
[ -L "$AGENT_SKILLS_DIR/$SKILL_NAME" ] || ln -s "$CANONICAL" "$AGENT_SKILLS_DIR/$SKILL_NAME"
[ -L "$AGENT_SKILLS_DIR/$SKILL_NAME" ] && rm "$AGENT_SKILLS_DIR/$SKILL_NAME"
6. Search for Skills
curl -s "https://skills.sh/api/search?q=your-query" | python3 -m json.tool
curl -s "https://api.clawhub.com/v1/skills/search?q=your-query" | python3 -m json.tool
Important Notes
-
SkillDeck auto-refreshes: The GUI watches ~/.agents/skills/ and all agent directories. Changes via shell are reflected in the GUI within 0.5s.
-
Lock file compatibility: Format is v3 (shared with npx skills). Always preserve version: 3 and existing entries.
-
Cross-directory inheritance: Symlinks in ~/.claude/skills/ are also visible to Copilot, OpenCode, and Cursor. Don't create redundant symlinks.
-
Codex special case: Reads ~/.agents/skills/ natively. Symlink in ~/.codex/skills/ is optional but consistent.
-
Never modify: ~/.agents/.skilldeck-cache.json (SkillDeck private cache)