Universal Skills Manager
This skill empowers the agent to act as a centralized skill manager for AI capabilities. It discovers skills from multiple sources — SkillsMP.com (curated, AI semantic search), SkillHub (community skills, no API key required), and ClawHub (versioned skills, semantic search, no API key required) — and unifies skill management across multiple AI tools (Claude Code, Gemini, Anti-Gravity, OpenCode, Cline, Cursor, etc.), ensuring consistency and synchronization.
When to Use This Skill
Activate this skill when the user:
- Wants to find or search for new skills.
- Wants to install a skill (from a search result or local file).
- Wants to sync skills between different AI tools (e.g., "Copy this Gemini skill to OpenCode").
- Asks to move or copy skills between scopes (User vs. Project).
- Mentions "Google Anti-Gravity", "OpenCode", or "Gemini" in the context of skills/extensions.
- Wants to package this skill for claude.ai or Claude Desktop (ZIP upload).
Supported Ecosystem
This skill manages the following tools and scopes. Always verify these paths exist before acting.
| Tool |
User Scope (Global) |
Project Scope (Local) |
| Gemini CLI |
~/.gemini/skills/ |
./.gemini/skills/ |
| Google Anti-Gravity |
~/.gemini/antigravity/skills/ |
./.antigravity/extensions/ |
| OpenCode |
~/.config/opencode/skills/ |
./.opencode/skills/ |
| OpenClaw |
~/.openclaw/workspace/skills/ |
./.openclaw/skills/ |
| Claude Code |
~/.claude/skills/ |
./.claude/skills/ |
| OpenAI Codex |
~/.codex/skills/ |
./.codex/skills/ |
| block/goose |
~/.config/goose/skills/ |
./.goose/agents/ |
| Roo Code |
~/.roo/skills/ |
./.roo/skills/ |
| Cursor |
~/.cursor/skills/ |
./.cursor/skills/ |
| Cline |
~/.cline/skills/ |
./.cline/skills/ |
claude.ai / Claude Desktop (ZIP Upload Required):
| Platform |
Installation Method |
| claude.ai |
Upload ZIP via Settings → Capabilities → Upload Skill |
| Claude Desktop |
Upload ZIP via Settings → Capabilities → Upload Skill |
Note: claude.ai and Claude Desktop don't have access to local environment variables. Use the "Package for claude.ai/Desktop" capability (Section 5) to create a ZIP. Embedding an API key is optional — SkillHub and ClawHub search work without one. If you do include a key, do NOT share the ZIP publicly (see Section 5 for credential safety guidance).
IMPORTANT - Universal Skills Manager Platform Limitations:
This skill (Universal Skills Manager) requires network access to call the SkillsMP API, SkillHub API, ClawHub API, and GitHub. Handle these scenarios:
If user asks to package/ZIP the Universal Skills Manager itself for claude.ai:
Tell the user: "The Universal Skills Manager won't work on claude.ai because it requires network access to call the SkillsMP API, SkillHub API, ClawHub API, and GitHub APIs. claude.ai's code execution environment doesn't allow outbound network requests. However, I can package OTHER skills for claude.ai upload - those will work as long as they don't require network access."
If user wants to try the Universal Skills Manager on Claude Desktop:
Tell the user: "Claude Desktop has network access capabilities, but there is a known bug where custom domains added to the 'Additional allowed domains' setting are not included in the network egress JWT token. This means the skill cannot reach the required APIs even after whitelisting them.
Required domains (for when the bug is fixed):
skillsmp.com (for SkillsMP skill searches)
skills.palebluedot.live (for SkillHub skill searches)
clawhub.ai (for ClawHub skill searches and direct file downloads)
api.github.com and raw.githubusercontent.com (for skill downloads from GitHub)
Workaround: Use Claude Code CLI instead, which has unrestricted network access and works with all three skill sources. You can install via: curl -fsSL https://raw.githubusercontent.com/jacob-bd/universal-skills-manager/main/install.sh | sh -s -- --tools claude"
(Note: If a tool uses a different directory structure, ask the user to confirm the path, then note it for future reference.)
Core Capabilities
1. Smart Installation & Synchronization
Trigger: User asks to install a skill (e.g., "Install the debugging skill" or "Install skill ID xyz").
Procedure:
Identify Source:
- If from SkillsMP search result: Use the
githubUrl from the API response
- If from SkillHub search result: Fetch skill details via
/api/skills/{id} to get skillPath and branch, then construct GitHub tree URL
- If from ClawHub search result: Use the
slug to fetch content via ClawHub's /file endpoint (see Section C below)
- If from skill name/ID: Search available sources (SkillsMP, SkillHub, and/or ClawHub) to find the skill
- If local: Identify the source path
Verify Repository Structure (CRITICAL):
- Before downloading, browse the GitHub repo to confirm the skill folder location
- Use GitHub API to list directory contents:
GET /repos/{owner}/{repo}/contents?ref={branch}
- Look for folders containing
SKILL.md - this is the actual skill directory
- Common patterns:
skill/, skills/{name}/, root level, or custom folder names
- Confirm the correct path before generating the download URL
Download Using Helper Script:
- Use
install_skill.py (located in this skill's scripts/ folder):
python3 ~/.claude/skills/universal-skills-manager/scripts/install_skill.py \
--url "https://github.com/{owner}/{repo}/tree/{branch}/{skill-folder}" \
--dest "{target-path}" \
--dry-run # Preview first, then remove flag to install
- The script handles: atomic install, validation, subdirectories, safety checks
- Safety feature: Script will abort (exit code 4) if destination is a root skills directory
- Update detection: If skill exists, shows diff and prompts for confirmation
- Security scan: The install script automatically scans downloaded skills for security threats (invisible characters, data exfiltration, prompt injection). Review any findings before proceeding.
Determine Primary Target:
- Ask: "Should this be installed Globally (User) or Locally (Project)?"
- Determine the primary tool (e.g., if user is in Claude Code, Claude is primary)
- If the user specifies claude.ai or Claude Desktop as the target, go to Step 4a instead of Step 5.
4a. Claude Desktop / claude.ai Target Flow:
If the user wants the skill for claude.ai or Claude Desktop:
- Validate frontmatter by running
validate_frontmatter.py against the downloaded SKILL.md:python3 scripts/validate_frontmatter.py /path/to/downloaded/SKILL.md
- If the skill passes validation, package it as a ZIP and provide upload instructions (see Step 6a below).
- If the skill fails validation, notify the user with the exact issues before doing anything:
"This skill isn't formatted correctly for Claude Desktop. I found these issues:
- [list each issue from the validator, e.g., 'Unsupported top-level key: version', 'Description uses a YAML block scalar']
I can fix these automatically — unsupported keys will be moved into metadata, block scalars will be converted to inline strings, etc. The skill's functionality won't change.
Would you like me to fix it and package it for Claude Desktop?"
- If the user agrees: Run the fix and re-validate:
python3 scripts/validate_frontmatter.py /path/to/downloaded/SKILL.md --fix
Then package as ZIP (Step 6a).
- If the user declines: Skip Claude Desktop. Offer to install the skill as-is to other locally detected tools instead.
6a. Package and deliver ZIP:
- Create a ZIP containing the skill folder (with fixed SKILL.md if applicable)
- Provide upload instructions:
"Your skill is packaged and ready. To install on Claude Desktop:
- Go to Settings → Capabilities
- Click 'Upload skill' in the Skills section
- Select the ZIP file and upload"
- Continue to Step 5 to offer syncing to other local tools as well.
The "Sync Check" (CRITICAL):
- Scan: Check if other supported tools are installed on the system (look for their config folders)
- Propose: "I see you also have OpenCode and Cursor installed. Do you want to sync this skill to them as well?"
Execute:
- Run the install script for each target location
- Ensure the standard structure is maintained
Report Success:
- Show installed skill name, author, and location(s)
- Display GitHub URL and stars count for reference
2. The "Updates & Consistency" Check
Trigger: User modifies a skill or asks to "sync" skills.
Procedure:
- Compare: Check the modification times or content of the skill across all installed locations.
- Report: "The 'code-review' skill in Gemini is newer than the one in OpenCode."
- Action: Offer to overwrite older versions with the newer version to ensure consistency.
3. Skill Discovery (Multi-Source)
Trigger: User searches for skills (e.g., "Find a debugging skill" or "Search for React skills").
Procedure:
Discover API Key and Select Source:
Step 1 - Environment Variable: Check $SKILLSMP_API_KEY
printenv SKILLSMP_API_KEY
If set and non-empty, use SkillsMP as the primary search source.
Note: Use printenv (not echo $VAR) — it queries the process environment directly and is more reliable across shell contexts.
Step 2 - Config File: Check for config.json in this skill's directory
# Look for config.json in skill directory (path varies by tool)
cat ~/.claude/skills/universal-skills-manager/config.json 2>/dev/null
If skillsmp_api_key field has a non-empty value, use SkillsMP as primary source.
Step 3 - Source Selection: If no API key found, present the user with a choice:
"I don't see a SkillsMP API key configured. You have three options:
A) Provide your SkillsMP API key (get one at skillsmp.com) — curated skills with AI semantic search
B) Search SkillHub's open catalog — community skills, no API key needed
C) Search ClawHub — versioned skills with semantic search, no API key needed
Which would you prefer?"
- If user chooses A: Collect key, validate it (see below), store in memory for this session, proceed with SkillsMP
- If user chooses B: Proceed with SkillHub search (no key needed)
- If user chooses C: Proceed with ClawHub search (no key needed)
Key Validation: SkillsMP API keys always start with sk_live_skillsmp_. If the user provides a key that does not match this prefix, reject it immediately:
"That doesn't look like a valid SkillsMP API key. Keys start with sk_live_skillsmp_. You can get one at https://skillsmp.com — or choose SkillHub/ClawHub search instead (no key needed)."
Security: Never log, display, or echo the full API key value.
Note for claude.ai/Desktop users: Environment variables are not available. Use the "Package for claude.ai/Desktop" capability (Section 5) to create a ZIP with your API key embedded, or provide your key when prompted.
Execute Search Based on Selected Source:
If using SkillsMP (primary, curated):
If using SkillHub (open catalog, no auth):
If using ClawHub (versioned skills, semantic search, no auth):
Display Results (Unified Format):
Display results in a consistent table format regardless of source. Include the Source column to indicate origin:
| # | Skill | Author | Stars | Source | Description |
|---|-------|--------|-------|--------|-------------|
| 1 | debugging-strategies | wshobson | 27,021 | SkillHub | Master systematic debugging... |
| 2 | code-debugging | AuthorX | 15 | SkillsMP | Systematic debugging methodology... |
| 3 | self-improving-agent | clawhub-user | 42 | ClawHub | Agent that improves itself... |
- For SkillsMP AI search: Also show relevance score
- For SkillHub: Show
securityScore if available
- For ClawHub semantic search: Show similarity
score if available
- Limit to top 10-15 results for readability
Search More Sources:
After displaying results from any source, offer to search the remaining unsearched sources:
- If 2 sources remain: "Want to also search {source1} or {source2}? Or both?"
- If 1 source remains: "Want to also search {source}?"
Available sources: SkillsMP (requires API key), SkillHub (no key), ClawHub (no key)
If yes:
- Query the selected source(s) with the same search terms
- Deduplicate: Compare results across sources:
- SkillsMP ↔ SkillHub: By full skill ID (
{owner}/{repo}/{path})
- ClawHub ↔ others: By skill name (ClawHub uses slugs, not GitHub paths)
- Append unique results to the display, labeled with their source tag
Offer Installation:
- After displaying results, ask: "Which skill would you like to install?"
- For SkillsMP results: Note the skill's
githubUrl for content fetching
- For SkillHub results: Note the skill's
id for detail fetching (needed to get skillPath and branch)
- For ClawHub results: Note the skill's
slug for direct file fetching via ClawHub's /file endpoint
4. Skill Matrix Report
Trigger: User asks for skill report/overview (e.g., "Show my skills", "What skills do I have?", "Skill report", "Compare my tools").
Procedure:
Detect Installed Tools:
Check which AI tools are installed by verifying their user-level skills directories exist:
# Check each tool's skills directory
ls -d ~/.claude/skills 2>/dev/null && echo "Claude: ✓"
ls -d ~/.codex/skills 2>/dev/null && echo "Codex: ✓"
ls -d ~/.gemini/skills 2>/dev/null && echo "Gemini: ✓"
ls -d ~/.gemini/antigravity/skills 2>/dev/null && echo "Antigravity: ✓"
ls -d ~/.openclaw/workspace/skills 2>/dev/null && echo "OpenClaw: ✓"
ls -d ~/.cursor/skills 2>/dev/null && echo "Cursor: ✓"
ls -d ~/.config/opencode/skills 2>/dev/null && echo "OpenCode: ✓"
ls -d ~/.roo/skills 2>/dev/null && echo "Roo: ✓"
ls -d ~/.config/goose/skills 2>/dev/null && echo "Goose: ✓"
ls -d ~/.cline/skills 2>/dev/null && echo "Cline: ✓"
Collect All Skills:
For each detected tool, list skill folders:
find ~/.{claude,codex,gemini,gemini/antigravity,openclaw/workspace,cursor,config/opencode,config/goose,roo,cline}/skills -maxdepth 1 -type d 2>/dev/null | \
xargs -I{} basename {} | sort -u
Generate Matrix Table:
Create a markdown table where:
- Rows = skill names (deduplicated across all tools)
- Columns = only tools that are installed on the system
- Cells = ✅ (installed) or ❌ (not installed)
Example output:
| Skill | Claude | Codex | Gemini |
|-------|--------|-------|--------|
| humanizer | ✅ | ❌ | ✅ |
| skill-creator | ❌ | ✅ | ❌ |
| using-superpowers | ✅ | ✅ | ✅ |
Show Summary:
- Total skills across all tools
- Skills unique to one tool
- Skills installed everywhere
5. Package for claude.ai / Claude Desktop
Trigger: User wants to use this skill in claude.ai or Claude Desktop (e.g., "Package this for claude.ai", "Create a ZIP for Claude Desktop", "I want to upload this skill to claude.ai", "Prepare skill for web upload").
Procedure:
Explain the Process:
"I'll create a ZIP file with this skill ready for upload to claude.ai or Claude Desktop. Since cloud environments don't have access to your local environment variables, I can optionally embed your API key in the package. Note: the API key is optional — SkillHub and ClawHub search work without one."
Validate Frontmatter Compatibility (CRITICAL — do this BEFORE packaging):
Run validate_frontmatter.py to check the SKILL.md against the Agent Skills spec:
# Validate only (report issues)
python3 scripts/validate_frontmatter.py /path/to/SKILL.md
# Validate and auto-fix (overwrites file)
python3 scripts/validate_frontmatter.py /path/to/SKILL.md --fix
# Validate a ZIP file
python3 scripts/validate_frontmatter.py /path/to/skill.zip --fix
The script checks for unsupported top-level keys, nested metadata, non-string metadata values, and field length violations. With --fix, it automatically moves unsupported keys into metadata, flattens nested objects, and converts values to strings. Tell the user what was fixed. See Operational Rule 5 for the full spec.
Collect API Key (Optional):
- Ask: "Would you like to include your SkillsMP API key for curated search? This is optional — SkillHub and ClawHub work without a key. If you skip this, the packaged skill will still work for SkillHub and ClawHub searches."
- If user wants to include a key:
- Ask: "Please provide your SkillsMP API key. You can get one at https://skillsmp.com"
- Wait for user to provide the key
- Validate: Key must start with
sk_live_skillsmp_. If invalid, reject and re-prompt or offer to skip.
- Security: Do not echo or display the key back to the user
- If user skips, create the ZIP without
config.json
- Credential safety warning (IMPORTANT — always display this if a key is included):
"Security note: This ZIP will contain your API key in plain text. Please follow these precautions:
- Do NOT share this ZIP publicly, post it online, or commit it to version control
- Do NOT distribute this ZIP to others — each user should package their own
- Use a scoped/least-privilege key if your provider supports it
- Rotate your key if you suspect the ZIP was exposed
- The key is stored locally in
config.json inside the ZIP and is only used at runtime to authenticate with the SkillsMP API"
Create Package Contents:
- Create a temporary directory structure:
universal-skills-manager/
├── SKILL.md # Copy from current skill
├── config.json # Create with embedded API key
└── scripts/
└── install_skill.py # Copy from current skill
- Generate
config.json with the user's API key:{
"skillsmp_api_key": "USER_PROVIDED_KEY_HERE"
}
Create ZIP File:
- Use Python to create the ZIP:
import zipfile
import json
import tempfile
from pathlib import Path
# Create ZIP in user's Downloads or current directory
zip_path = Path.home() / "Downloads" / "universal-skills-manager.zip"
skill_dir = Path("~/.claude/skills/universal-skills-manager").expanduser()
with tempfile.TemporaryDirectory() as temp_dir:
temp_path = Path(temp_dir)
# Copy skill files
for file_path in skill_dir.rglob('*'):
if file_path.is_file() and file_path.name != 'config.json':
rel_path = file_path.relative_to(skill_dir)
dest = temp_path / rel_path
dest.parent.mkdir(parents=True, exist_ok=True)
dest.write_bytes(file_path.read_bytes())
# Create config.json with API key
config = {"skillsmp_api_key": "USER_API_KEY"}
(temp_path / "config.json").write_text(json.dumps(config, indent=2))
# Create ZIP
with zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) as zf:
for file_path in temp_path.rglob('*'):
if file_path.is_file():
arcname = f"universal-skills-manager/{file_path.relative_to(temp_path)}"
zf.write(file_path, arcname)
- Alternatively, provide the ZIP as a downloadable artifact
Provide Upload Instructions:
- "Your skill package is ready! To use it:"
- "1. Download the ZIP file:
universal-skills-manager.zip"
- "2. Go to claude.ai → Settings → Capabilities"
- "3. Scroll to Skills section and click 'Upload skill'"
- "4. Select the ZIP file and upload"
- "5. Enable the skill and start using it!"
Security Reminder:
- If a key was embedded: "This ZIP contains your API key. Do NOT share it publicly, distribute it to others, or commit it to version control. If you need to share the skill, create a key-free version (without
config.json) and let each user add their own key."
- If no key was embedded: "This ZIP is safe to share — it contains no credentials. Recipients can add their own API key later, or use SkillHub/ClawHub search which requires no key."
Operational Rules
Structure Integrity: When installing, always ensure the skill has its own folder (e.g., .../skills/my-skill/). Do not dump loose files into the root skills directory.
Conflict Safety: If a skill already exists at a target location, always ask before overwriting, unless the user explicitly requested a "Force Sync."
OpenClaw Note: OpenClaw may require a restart to pick up new skills if skills.load.watch is not enabled in openclaw.json. Warn the user of this after installation.
Cross-Platform Adaptation:
- Gemini uses
SKILL.md.
- Cline uses the same
SKILL.md format with name and description frontmatter. The name field must match the directory name. No manifest generation required. Note: Cline also reads .claude/skills/ at the project level, so Claude Code project skills work in Cline automatically.
- If OpenCode or Anti-Gravity require a specific manifest (e.g.,
manifest.json), generate a basic one based on the SKILL.md frontmatter during installation.
claude.ai / Claude Desktop Frontmatter Compatibility Check:
When a user wants to upload or package a skill for claude.ai or Claude Desktop, validate the SKILL.md frontmatter against the Agent Skills specification. Claude Desktop uses strictyaml (not standard PyYAML) which rejects ambiguous YAML constructs like block scalars. It will reject non-compliant skills with "malformed YAML frontmatter" or "unexpected key" errors.
Allowed top-level frontmatter fields (Agent Skills spec):
| Field |
Required |
Constraints |
name |
Yes |
Max 64 chars, lowercase letters/numbers/hyphens only, must match directory name |
description |
Yes |
Max 1024 chars. No angle brackets (< or >). Avoid literal block scalars (` |
license |
No |
License name or reference to bundled file |
compatibility |
No |
Max 500 chars, environment requirements |
metadata |
No |
Flat key-value pairs only (string keys to string values — no nested objects, no arrays) |
allowed-tools |
No |
Space-delimited list of pre-approved tools (experimental) |
Use the validation script (preferred — avoids manual YAML errors):
# Validate a SKILL.md
python3 scripts/validate_frontmatter.py /path/to/SKILL.md
# Validate and auto-fix in place
python3 scripts/validate_frontmatter.py /path/to/SKILL.md --fix
# Validate and fix a ZIP file (rewrites SKILL.md inside the ZIP)
python3 scripts/validate_frontmatter.py /path/to/skill.zip --fix
The script (scripts/validate_frontmatter.py) is zero-dependency Python 3. It checks all constraints and with --fix automatically applies these corrections:
- Moves unsupported top-level keys (e.g.,
version, author, homepage, category) into metadata as string values
- Flattens nested
metadata objects (e.g., metadata.clawdbot.requires.bins: [x, y] → metadata.clawdbot-requires-bins: "x, y")
- Converts non-string metadata values to quoted strings (e.g.,
true → "true")
- Collapses literal block scalar (
|) descriptions to inline quoted strings (known to fail with blank lines). Folded scalars (>) trigger a warning but work in current Claude Desktop
- Strips angle brackets (
< >) from description (Anthropic's validator rejects them)
- Converts YAML list-format
allowed-tools to space-delimited string
- Truncates
description if over 1024 chars
- Validates the fix and reports if any issues remain
If the script is not available, do the validation manually:
- Read the SKILL.md frontmatter
- Check all top-level keys are in the allowed set:
name, description, license, compatibility, metadata, allowed-tools
- If
metadata is present, verify all values are strings (no nested objects or arrays)
- Verify
name is lowercase with hyphens only, max 64 chars
- Verify
description is max 1024 chars
If validation fails, tell the user exactly what's wrong and offer to fix it (run the script with --fix, or apply the fixes manually).
Available Tools
bash (curl): Make API calls to SkillsMP.com, SkillHub (skills.palebluedot.live), and ClawHub (clawhub.ai); fetch skill content from GitHub or ClawHub directly.
web_fetch: Fetch skill content from GitHub raw URLs, SkillHub API, or ClawHub API (alternative to curl).
read_file / write_file: Manage local skill files.
glob: Find existing skills in local directories.
Implementation Details
Skill Structure
Skills typically contain:
- SKILL.md (required): Main instructions with frontmatter.
- Reference docs: Additional documentation files.
- Scripts: Helper scripts (Python, shell, etc.).
- Config files: JSON, YAML configurations.
Installation Logic
A. Installing from SkillsMP API
Fetch Skill Content:
Create Directory:
- Use skill
name from API response for directory: .../skills/{skill-name}/
- Example:
.../skills/code-debugging/
Save SKILL.md:
- Write the fetched content to
SKILL.md in the new directory
- Preserve the original YAML frontmatter and content
Handle Additional Files (Optional):
- Check if GitHub repo has additional files (reference docs, scripts)
- Optionally fetch and save them to maintain complete skill package
Confirm:
- Report: "Installed '{name}' by {author} to {path}"
- Show GitHub URL and stars count
- Offer sync to other AI tools
B. Installing from SkillHub
Fetch Skill Details:
Construct GitHub URL:
Download Using Helper Script:
Confirm:
- Report: "Installed '{name}' from SkillHub to {path}"
- Show GitHub URL and stars count
- Offer sync to other AI tools
C. Installing from ClawHub
ClawHub hosts skill files directly (not on GitHub), so the install flow bypasses install_skill.py and fetches content via ClawHub's API.
Fetch SKILL.md Content:
Handle Multi-File Skills (if applicable):
Run Security Scan:
Validate YAML Frontmatter:
- Verify the SKILL.md has valid YAML frontmatter (name, description fields).
- If invalid, warn the user and ask whether to proceed.
Create Directory and Install:
Confirm:
- Report: "Installed '{displayName}' (v{version}) from ClawHub to {path}"
- Show version info and stars count
- Offer sync to other AI tools
Cleanup:
D. Installing from Local Source (Sync/Copy)
- Retrieve: Read all files from the source directory.
- Create Directory: Create the target directory
.../skills/{slug}/.
- Save Files: Copy all files to the new location, preserving filenames.
SkillsMP API Configuration
Base URL: https://skillsmp.com/api/v1
Authentication:
Authorization: Bearer $SKILLSMP_API_KEY
Available Endpoints:
GET /api/v1/skills/search?q={query}&page={1}&limit={20}&sortBy={recent|stars}
GET /api/v1/skills/ai-search?q={query}
Response Format (Keyword Search):
{
"success": true,
"data": {
"skills": [
{
"id": "...",
"name": "skill-name",
"author": "AuthorName",
"description": "...",
"githubUrl": "https://github.com/user/repo/tree/main/path",
"skillUrl": "https://skillsmp.com/skills/...",
"stars": 10,
"updatedAt": 1768838561
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 3601,
"totalPages": 1801,
"hasNext": true
}
}
}
Response Format (AI Search):
{
"success": true,
"data": {
"search_query": "...",
"data": [
{
"file_id": "...",
"filename": "...",
"score": 0.656,
"skill": {
"id": "...",
"name": "...",
"author": "...",
"description": "...",
"githubUrl": "...",
"skillUrl": "...",
"stars": 0,
"updatedAt": 1769542668
}
}
]
}
}
Error Handling:
401: Invalid or missing API key
400: Missing required query parameter
500: Internal server error
SkillHub API Configuration
Base URL: https://skills.palebluedot.live/api
Authentication: None required (open API)
Available Endpoints:
GET /api/skills?q={query}&limit={20} — Search skills by keyword
GET /api/skills/{id} — Get full skill details (includes skillPath, branch, rawContent)
GET /api/categories — List skill categories
GET /api/health — Health check
Search Response Format:
{
"skills": [
{
"id": "wshobson/agents/debugging-strategies",
"name": "debugging-strategies",
"description": "Master systematic debugging...",
"githubOwner": "wshobson",
"githubRepo": "agents",
"githubStars": 27021,
"downloadCount": 0,
"securityScore": 100,
"securityStatus": null,
"rating": 0,
"isVerified": false,
"compatibility": { "platforms": [] }
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1000,
"totalPages": 50
},
"searchEngine": "meilisearch",
"processingTimeMs": 10
}
Detail Response Format (GET /api/skills/{id}):
{
"id": "wshobson/agents/debugging-strategies",
"name": "debugging-strategies",
"description": "...",
"githubOwner": "wshobson",
"githubRepo": "agents",
"skillPath": "plugins/developer-essentials/skills/debugging-strategies",
"branch": "main",
"githubStars": 27021,
"rawContent": "---\nname: debugging-strategies\n..."
}
Key Fields for Installation:
skillPath: The actual directory path within the GitHub repo (CRITICAL — the id does NOT match the file path)
branch: The branch name (e.g., main)
githubOwner + githubRepo: Used to construct the GitHub URL
rawContent: Full SKILL.md content (can be used as fallback if GitHub is unreachable)
Error Handling:
404: Skill not found
500: Internal server error
ClawHub API Configuration
Base URL: https://clawhub.ai/api/v1
Authentication: None required (open API)
Rate Limits: 120 reads/min per IP (shown in x-ratelimit-remaining and x-ratelimit-reset response headers)
Available Endpoints:
GET /api/v1/search?q={query}&limit={20} — Semantic/vector search (ranked by similarity score)
GET /api/v1/skills?limit={20}&sort={stars|downloads|updated|trending}&cursor={cursor} — Browse/list with cursor pagination
GET /api/v1/skills/{slug} — Get full skill details (owner, version, moderation status)
GET /api/v1/skills/{slug}/file?path={filepath}&version={ver} — Get raw file content (text/plain, NOT JSON)
GET /api/v1/download?slug={slug}&version={ver} — Download full skill as ZIP
Search Response Format (GET /api/v1/search):
{
"results": [
{
"score": 0.82,
"slug": "self-improving-agent",
"displayName": "Self-Improving Agent",
"summary": "An agent that iteratively improves itself...",
"version": "1.0.0",
"updatedAt": "2026-01-15T10:30:00Z"
}
]
}
Browse Response Format (GET /api/v1/skills):
{
"items": [
{
"slug": "self-improving-agent",
"displayName": "Self-Improving Agent",
"summary": "...",
"version": "1.0.0",
"stats": {
"stars": 42,
"downloads": 150
}
}
],
"nextCursor": "eyJ..."
}
**Detail Response Format (GET /api/v1/skill
…(truncated)
1---
2name: universal-skills-manager
3description: "The master coordinator for AI skills. Discovers skills from multiple sources (SkillsMP.com, SkillHub, and ClawHub), manages installation, and synchronization across Claude Code, Gemini CLI, Google Anti-Gravity, OpenCode, and other AI tools. Handles User-level (Global) and Project-level (Local) scopes."
4compatibility: "Requires python3, curl, and network access to skillsmp.com, skills.palebluedot.live, clawhub.ai, and github.com"
5metadata:
6 source: https://skillmd.com/skills/modbender/universal-skills-manager
7 homepage: https://github.com/jacob-bd/universal-skills-manager
8 disable-model-invocation: "true"
9 requires-bins: "python3, curl"
10 primaryEnv: SKILLSMP_API_KEY
11---
12
13<!-- Version: 1.6.0 -->
14
15# Universal Skills Manager
16
17This skill empowers the agent to act as a centralized skill manager for AI capabilities. It discovers skills from multiple sources — SkillsMP.com (curated, AI semantic search), SkillHub (community skills, no API key required), and ClawHub (versioned skills, semantic search, no API key required) — and unifies skill management across multiple AI tools (Claude Code, Gemini, Anti-Gravity, OpenCode, Cline, Cursor, etc.), ensuring consistency and synchronization.
18
19## When to Use This Skill
20
21Activate this skill when the user:
22- Wants to **find or search** for new skills.
23- Wants to **install** a skill (from a search result or local file).
24- Wants to **sync** skills between different AI tools (e.g., "Copy this Gemini skill to OpenCode").
25- Asks to **move or copy** skills between scopes (User vs. Project).
26- Mentions "Google Anti-Gravity", "OpenCode", or "Gemini" in the context of skills/extensions.
27- Wants to **package this skill for claude.ai or Claude Desktop** (ZIP upload).
28
29## Supported Ecosystem
30
31This skill manages the following tools and scopes. Always verify these paths exist before acting.
32
33| Tool | User Scope (Global) | Project Scope (Local) |
34| :--- | :--- | :--- |
35| **Gemini CLI** | `~/.gemini/skills/` | `./.gemini/skills/` |
36| **Google Anti-Gravity** | `~/.gemini/antigravity/skills/` | `./.antigravity/extensions/` |
37| **OpenCode** | `~/.config/opencode/skills/` | `./.opencode/skills/` |
38| **OpenClaw** | `~/.openclaw/workspace/skills/` | `./.openclaw/skills/` |
39| **Claude Code** | `~/.claude/skills/` | `./.claude/skills/` |
40| **OpenAI Codex** | `~/.codex/skills/` | `./.codex/skills/` |
41| **block/goose** | `~/.config/goose/skills/` | `./.goose/agents/` |
42| **Roo Code** | `~/.roo/skills/` | `./.roo/skills/` |
43| **Cursor** | `~/.cursor/skills/` | `./.cursor/skills/` |
44| **Cline** | `~/.cline/skills/` | `./.cline/skills/` |
45
46**claude.ai / Claude Desktop (ZIP Upload Required):**
47
48| Platform | Installation Method |
49| :--- | :--- |
50| **claude.ai** | Upload ZIP via Settings → Capabilities → Upload Skill |
51| **Claude Desktop** | Upload ZIP via Settings → Capabilities → Upload Skill |
52
53*Note: claude.ai and Claude Desktop don't have access to local environment variables. Use the "Package for claude.ai/Desktop" capability (Section 5) to create a ZIP. Embedding an API key is optional — SkillHub and ClawHub search work without one. If you do include a key, do NOT share the ZIP publicly (see Section 5 for credential safety guidance).*
54
55**IMPORTANT - Universal Skills Manager Platform Limitations:**
56
57This skill (Universal Skills Manager) requires network access to call the SkillsMP API, SkillHub API, ClawHub API, and GitHub. Handle these scenarios:
58
59- **If user asks to package/ZIP the Universal Skills Manager itself for claude.ai:**
60 Tell the user: "The Universal Skills Manager won't work on claude.ai because it requires network access to call the SkillsMP API, SkillHub API, ClawHub API, and GitHub APIs. claude.ai's code execution environment doesn't allow outbound network requests. However, I can package OTHER skills for claude.ai upload - those will work as long as they don't require network access."
61
62- **If user wants to try the Universal Skills Manager on Claude Desktop:**
63 Tell the user: "Claude Desktop has network access capabilities, but there is a **known bug** where custom domains added to the 'Additional allowed domains' setting are not included in the network egress JWT token. This means the skill cannot reach the required APIs even after whitelisting them.
64
65 **Required domains** (for when the bug is fixed):
66 - `skillsmp.com` (for SkillsMP skill searches)
67 - `skills.palebluedot.live` (for SkillHub skill searches)
68 - `clawhub.ai` (for ClawHub skill searches and direct file downloads)
69 - `api.github.com` and `raw.githubusercontent.com` (for skill downloads from GitHub)
70
71 **Workaround:** Use Claude Code CLI instead, which has unrestricted network access and works with all three skill sources. You can install via: `curl -fsSL https://raw.githubusercontent.com/jacob-bd/universal-skills-manager/main/install.sh | sh -s -- --tools claude`"
72
73*(Note: If a tool uses a different directory structure, ask the user to confirm the path, then note it for future reference.)*
74
75## Core Capabilities
76
77### 1. Smart Installation & Synchronization
78**Trigger:** User asks to install a skill (e.g., "Install the debugging skill" or "Install skill ID xyz").
79
80**Procedure:**
811. **Identify Source:**
82 * If from SkillsMP search result: Use the `githubUrl` from the API response
83 * If from SkillHub search result: Fetch skill details via `/api/skills/{id}` to get `skillPath` and `branch`, then construct GitHub tree URL
84 * If from ClawHub search result: Use the `slug` to fetch content via ClawHub's `/file` endpoint (see Section C below)
85 * If from skill name/ID: Search available sources (SkillsMP, SkillHub, and/or ClawHub) to find the skill
86 * If local: Identify the source path
872. **Verify Repository Structure (CRITICAL):**
88 * Before downloading, browse the GitHub repo to confirm the skill folder location
89 * Use GitHub API to list directory contents: `GET /repos/{owner}/{repo}/contents?ref={branch}`
90 * Look for folders containing `SKILL.md` - this is the actual skill directory
91 * Common patterns: `skill/`, `skills/{name}/`, root level, or custom folder names
92 * Confirm the correct path before generating the download URL
933. **Download Using Helper Script:**
94 * Use `install_skill.py` (located in this skill's `scripts/` folder):
95 ```bash
96 python3 ~/.claude/skills/universal-skills-manager/scripts/install_skill.py \
97 --url "https://github.com/{owner}/{repo}/tree/{branch}/{skill-folder}" \
98 --dest "{target-path}" \
99 --dry-run # Preview first, then remove flag to install
100 ```
101 * The script handles: atomic install, validation, subdirectories, safety checks
102 * **Safety feature**: Script will abort (exit code 4) if destination is a root skills directory
103 * **Update detection**: If skill exists, shows diff and prompts for confirmation
104 * **Security scan**: The install script automatically scans downloaded skills for security threats (invisible characters, data exfiltration, prompt injection). Review any findings before proceeding.
1054. **Determine Primary Target:**
106 * Ask: "Should this be installed Globally (User) or Locally (Project)?"
107 * Determine the primary tool (e.g., if user is in Claude Code, Claude is primary)
108 * **If the user specifies claude.ai or Claude Desktop as the target**, go to Step 4a instead of Step 5.
109
110 **4a. Claude Desktop / claude.ai Target Flow:**
111 If the user wants the skill for claude.ai or Claude Desktop:
112 1. **Validate frontmatter** by running `validate_frontmatter.py` against the downloaded SKILL.md:
113 ```bash
114 python3 scripts/validate_frontmatter.py /path/to/downloaded/SKILL.md
115 ```
116 2. **If the skill passes validation**, package it as a ZIP and provide upload instructions (see Step 6a below).
117 3. **If the skill fails validation**, notify the user with the exact issues before doing anything:
118 > "This skill isn't formatted correctly for Claude Desktop. I found these issues:
119 > - [list each issue from the validator, e.g., 'Unsupported top-level key: version', 'Description uses a YAML block scalar']
120 >
121 > I can fix these automatically — unsupported keys will be moved into metadata, block scalars will be converted to inline strings, etc. The skill's functionality won't change.
122 >
123 > Would you like me to fix it and package it for Claude Desktop?"
124 4. **If the user agrees**: Run the fix and re-validate:
125 ```bash
126 python3 scripts/validate_frontmatter.py /path/to/downloaded/SKILL.md --fix
127 ```
128 Then package as ZIP (Step 6a).
129 5. **If the user declines**: Skip Claude Desktop. Offer to install the skill as-is to other locally detected tools instead.
130
131 **6a. Package and deliver ZIP:**
132 * Create a ZIP containing the skill folder (with fixed SKILL.md if applicable)
133 * Provide upload instructions:
134 > "Your skill is packaged and ready. To install on Claude Desktop:
135 > 1. Go to Settings → Capabilities
136 > 2. Click 'Upload skill' in the Skills section
137 > 3. Select the ZIP file and upload"
138 * Continue to Step 5 to offer syncing to other local tools as well.
139
1405. **The "Sync Check" (CRITICAL):**
141 * **Scan:** Check if other supported tools are installed on the system (look for their config folders)
142 * **Propose:** "I see you also have OpenCode and Cursor installed. Do you want to sync this skill to them as well?"
1436. **Execute:**
144 * Run the install script for each target location
145 * Ensure the standard structure is maintained
1467. **Report Success:**
147 * Show installed skill name, author, and location(s)
148 * Display GitHub URL and stars count for reference
149
150### 2. The "Updates & Consistency" Check
151**Trigger:** User modifies a skill or asks to "sync" skills.
152
153**Procedure:**
1541. **Compare:** Check the modification times or content of the skill across all installed locations.
1552. **Report:** "The 'code-review' skill in Gemini is newer than the one in OpenCode."
1563. **Action:** Offer to overwrite older versions with the newer version to ensure consistency.
157
158### 3. Skill Discovery (Multi-Source)
159**Trigger:** User searches for skills (e.g., "Find a debugging skill" or "Search for React skills").
160
161**Procedure:**
1621. **Discover API Key and Select Source:**
163 * **Step 1 - Environment Variable:** Check `$SKILLSMP_API_KEY`
164 ```bash
165 printenv SKILLSMP_API_KEY
166 ```
167 If set and non-empty, use SkillsMP as the primary search source.
168 **Note:** Use `printenv` (not `echo $VAR`) — it queries the process environment directly and is more reliable across shell contexts.
169
170 * **Step 2 - Config File:** Check for `config.json` in this skill's directory
171 ```bash
172 # Look for config.json in skill directory (path varies by tool)
173 cat ~/.claude/skills/universal-skills-manager/config.json 2>/dev/null
174 ```
175 If `skillsmp_api_key` field has a non-empty value, use SkillsMP as primary source.
176
177 * **Step 3 - Source Selection:** If no API key found, present the user with a choice:
178 > "I don't see a SkillsMP API key configured. You have three options:
179 >
180 > A) Provide your SkillsMP API key (get one at skillsmp.com) — curated skills with AI semantic search
181 >
182 > B) Search SkillHub's open catalog — community skills, no API key needed
183 >
184 > C) Search ClawHub — versioned skills with semantic search, no API key needed
185 >
186 > Which would you prefer?"
187
188 - If user chooses **A**: Collect key, **validate it** (see below), store in memory for this session, proceed with SkillsMP
189 - If user chooses **B**: Proceed with SkillHub search (no key needed)
190 - If user chooses **C**: Proceed with ClawHub search (no key needed)
191
192 * **Key Validation:** SkillsMP API keys always start with `sk_live_skillsmp_`. If the user provides a key that does not match this prefix, reject it immediately:
193 > "That doesn't look like a valid SkillsMP API key. Keys start with `sk_live_skillsmp_`. You can get one at https://skillsmp.com — or choose SkillHub/ClawHub search instead (no key needed)."
194
195 * **Security:** Never log, display, or echo the full API key value.
196
197 **Note for claude.ai/Desktop users:** Environment variables are not available. Use the "Package for claude.ai/Desktop" capability (Section 5) to create a ZIP with your API key embedded, or provide your key when prompted.
198
1992. **Execute Search Based on Selected Source:**
200
201 **If using SkillsMP (primary, curated):**
202 - **Choose method:**
203 - **Keyword Search** (`/api/v1/skills/search`): For specific terms, exact matches
204 - **AI Semantic Search** (`/api/v1/skills/ai-search`): For natural language queries (e.g., "help me debug code")
205 - **IMPORTANT:** Always capture the API key into a local variable first, then use it. Direct `$SKILLSMP_API_KEY` expansion in curl can fail in some shell contexts:
206 ```bash
207 # Step 1: Capture key (do this once per session)
208 API_KEY=$(printenv SKILLSMP_API_KEY)
209
210 # Step 2: Use ${API_KEY} in curl commands
211 # Keyword Search
212 curl -X GET "https://skillsmp.com/api/v1/skills/search?q={query}&limit=20&sortBy=recent" \
213 -H "Authorization: Bearer ${API_KEY}"
214
215 # AI Semantic Search (for natural language queries)
216 curl -X GET "https://skillsmp.com/api/v1/skills/ai-search?q={query}" \
217 -H "Authorization: Bearer ${API_KEY}"
218 ```
219 - **Parse:** Extract from `data.skills[]` (keyword) or `data.data[]` (AI search)
220 - Available fields: `id`, `name`, `author`, `description`, `githubUrl`, `skillUrl`, `stars`, `updatedAt`
221 - **Note:** SkillsMP requires a `q` parameter — there is no browse/list endpoint. For "top skills" or browsing without a specific query, use SkillHub or ClawHub instead (both support browsing by stars/downloads).
222
223 **If using SkillHub (open catalog, no auth):**
224 - **Execute:**
225 ```bash
226 # SkillHub Search (no authentication required)
227 curl -X GET "https://skills.palebluedot.live/api/skills?q={query}&limit=20"
228 ```
229 - **Parse:** Extract from `skills[]` array
230 - Available fields: `id`, `name`, `description`, `githubOwner`, `githubRepo`, `githubStars`, `downloadCount`, `securityScore`
231 - **Note:** SkillHub does not have an AI semantic search — keyword search only
232
233 **If using ClawHub (versioned skills, semantic search, no auth):**
234 - **Choose method:**
235 - **Semantic Search** (`/api/v1/search`): For natural language queries — returns results ranked by vector similarity `score`
236 - **Browse/List** (`/api/v1/skills`): For browsing by popularity, stars, or recency
237 - **Execute:**
238 ```bash
239 # Semantic Search (vector/similarity search)
240 curl -X GET "https://clawhub.ai/api/v1/search?q={query}&limit=20"
241
242 # Browse by stars or downloads
243 curl -X GET "https://clawhub.ai/api/v1/skills?limit=20&sort=stars"
244 ```
245 - **Parse:**
246 - Semantic search: Extract from `results[]` array — each has `score`, `slug`, `displayName`, `summary`, `version`, `updatedAt`
247 - Browse: Extract from `items[]` array — each has `slug`, `displayName`, `summary`, `version`, `stats.stars`, `stats.downloads`
248 - **Note:** ClawHub hosts skill files directly (not on GitHub). Use the `slug` field when installing — see Section C.
249
2503. **Display Results (Unified Format):**
251 Display results in a consistent table format regardless of source. Include the **Source** column to indicate origin:
252
253 ```
254 | # | Skill | Author | Stars | Source | Description |
255 |---|-------|--------|-------|--------|-------------|
256 | 1 | debugging-strategies | wshobson | 27,021 | SkillHub | Master systematic debugging... |
257 | 2 | code-debugging | AuthorX | 15 | SkillsMP | Systematic debugging methodology... |
258 | 3 | self-improving-agent | clawhub-user | 42 | ClawHub | Agent that improves itself... |
259 ```
260
261 - For SkillsMP AI search: Also show relevance score
262 - For SkillHub: Show `securityScore` if available
263 - For ClawHub semantic search: Show similarity `score` if available
264 - Limit to top 10-15 results for readability
265
2664. **Search More Sources:**
267 After displaying results from any source, offer to search the remaining unsearched sources:
268
269 - **If 2 sources remain:** "Want to also search {source1} or {source2}? Or both?"
270 - **If 1 source remains:** "Want to also search {source}?"
271
272 Available sources: SkillsMP (requires API key), SkillHub (no key), ClawHub (no key)
273
274 If yes:
275 - Query the selected source(s) with the same search terms
276 - **Deduplicate:** Compare results across sources:
277 - SkillsMP ↔ SkillHub: By full skill ID (`{owner}/{repo}/{path}`)
278 - ClawHub ↔ others: By skill name (ClawHub uses slugs, not GitHub paths)
279 - Append unique results to the display, labeled with their source tag
280
2815. **Offer Installation:**
282 - After displaying results, ask: "Which skill would you like to install?"
283 - For SkillsMP results: Note the skill's `githubUrl` for content fetching
284 - For SkillHub results: Note the skill's `id` for detail fetching (needed to get `skillPath` and `branch`)
285 - For ClawHub results: Note the skill's `slug` for direct file fetching via ClawHub's `/file` endpoint
286
287### 4. Skill Matrix Report
288**Trigger:** User asks for skill report/overview (e.g., "Show my skills", "What skills do I have?", "Skill report", "Compare my tools").
289
290**Procedure:**
2911. **Detect Installed Tools:**
292 Check which AI tools are installed by verifying their user-level skills directories exist:
293 ```bash
294 # Check each tool's skills directory
295 ls -d ~/.claude/skills 2>/dev/null && echo "Claude: ✓"
296 ls -d ~/.codex/skills 2>/dev/null && echo "Codex: ✓"
297 ls -d ~/.gemini/skills 2>/dev/null && echo "Gemini: ✓"
298 ls -d ~/.gemini/antigravity/skills 2>/dev/null && echo "Antigravity: ✓"
299 ls -d ~/.openclaw/workspace/skills 2>/dev/null && echo "OpenClaw: ✓"
300 ls -d ~/.cursor/skills 2>/dev/null && echo "Cursor: ✓"
301 ls -d ~/.config/opencode/skills 2>/dev/null && echo "OpenCode: ✓"
302 ls -d ~/.roo/skills 2>/dev/null && echo "Roo: ✓"
303 ls -d ~/.config/goose/skills 2>/dev/null && echo "Goose: ✓"
304 ls -d ~/.cline/skills 2>/dev/null && echo "Cline: ✓"
305 ```
306
3072. **Collect All Skills:**
308 For each detected tool, list skill folders:
309 ```bash
310 find ~/.{claude,codex,gemini,gemini/antigravity,openclaw/workspace,cursor,config/opencode,config/goose,roo,cline}/skills -maxdepth 1 -type d 2>/dev/null | \
311 xargs -I{} basename {} | sort -u
312 ```
313
3143. **Generate Matrix Table:**
315 Create a markdown table where:
316 - **Rows** = skill names (deduplicated across all tools)
317 - **Columns** = only tools that are installed on the system
318 - **Cells** = ✅ (installed) or ❌ (not installed)
319
320 Example output:
321 ```
322 | Skill | Claude | Codex | Gemini |
323 |-------|--------|-------|--------|
324 | humanizer | ✅ | ❌ | ✅ |
325 | skill-creator | ❌ | ✅ | ❌ |
326 | using-superpowers | ✅ | ✅ | ✅ |
327 ```
328
3294. **Show Summary:**
330 - Total skills across all tools
331 - Skills unique to one tool
332 - Skills installed everywhere
333
334### 5. Package for claude.ai / Claude Desktop
335
336**Trigger:** User wants to use this skill in claude.ai or Claude Desktop (e.g., "Package this for claude.ai", "Create a ZIP for Claude Desktop", "I want to upload this skill to claude.ai", "Prepare skill for web upload").
337
338**Procedure:**
3391. **Explain the Process:**
340 "I'll create a ZIP file with this skill ready for upload to claude.ai or Claude Desktop. Since cloud environments don't have access to your local environment variables, I can optionally embed your API key in the package. Note: the API key is optional — SkillHub and ClawHub search work without one."
341
3422. **Validate Frontmatter Compatibility (CRITICAL — do this BEFORE packaging):**
343 Run `validate_frontmatter.py` to check the SKILL.md against the Agent Skills spec:
344 ```bash
345 # Validate only (report issues)
346 python3 scripts/validate_frontmatter.py /path/to/SKILL.md
347
348 # Validate and auto-fix (overwrites file)
349 python3 scripts/validate_frontmatter.py /path/to/SKILL.md --fix
350
351 # Validate a ZIP file
352 python3 scripts/validate_frontmatter.py /path/to/skill.zip --fix
353 ```
354 The script checks for unsupported top-level keys, nested metadata, non-string metadata values, and field length violations. With `--fix`, it automatically moves unsupported keys into `metadata`, flattens nested objects, and converts values to strings. Tell the user what was fixed. See Operational Rule 5 for the full spec.
355
3563. **Collect API Key (Optional):**
357 * Ask: "Would you like to include your SkillsMP API key for curated search? This is optional — SkillHub and ClawHub work without a key. If you skip this, the packaged skill will still work for SkillHub and ClawHub searches."
358 * If user wants to include a key:
359 - Ask: "Please provide your SkillsMP API key. You can get one at https://skillsmp.com"
360 - Wait for user to provide the key
361 - **Validate:** Key must start with `sk_live_skillsmp_`. If invalid, reject and re-prompt or offer to skip.
362 - **Security:** Do not echo or display the key back to the user
363 * If user skips, create the ZIP without `config.json`
364 * **Credential safety warning (IMPORTANT — always display this if a key is included):**
365 > "**Security note:** This ZIP will contain your API key in plain text. Please follow these precautions:
366 > - **Do NOT share** this ZIP publicly, post it online, or commit it to version control
367 > - **Do NOT distribute** this ZIP to others — each user should package their own
368 > - **Use a scoped/least-privilege key** if your provider supports it
369 > - **Rotate your key** if you suspect the ZIP was exposed
370 > - The key is stored locally in `config.json` inside the ZIP and is only used at runtime to authenticate with the SkillsMP API"
371
3724. **Create Package Contents:**
373 * Create a temporary directory structure:
374 ```
375 universal-skills-manager/
376 ├── SKILL.md # Copy from current skill
377 ├── config.json # Create with embedded API key
378 └── scripts/
379 └── install_skill.py # Copy from current skill
380 ```
381 * Generate `config.json` with the user's API key:
382 ```json
383 {
384 "skillsmp_api_key": "USER_PROVIDED_KEY_HERE"
385 }
386 ```
387
3885. **Create ZIP File:**
389 * Use Python to create the ZIP:
390 ```python
391 import zipfile
392 import json
393 import tempfile
394 from pathlib import Path
395
396 # Create ZIP in user's Downloads or current directory
397 zip_path = Path.home() / "Downloads" / "universal-skills-manager.zip"
398 skill_dir = Path("~/.claude/skills/universal-skills-manager").expanduser()
399
400 with tempfile.TemporaryDirectory() as temp_dir:
401 temp_path = Path(temp_dir)
402
403 # Copy skill files
404 for file_path in skill_dir.rglob('*'):
405 if file_path.is_file() and file_path.name != 'config.json':
406 rel_path = file_path.relative_to(skill_dir)
407 dest = temp_path / rel_path
408 dest.parent.mkdir(parents=True, exist_ok=True)
409 dest.write_bytes(file_path.read_bytes())
410
411 # Create config.json with API key
412 config = {"skillsmp_api_key": "USER_API_KEY"}
413 (temp_path / "config.json").write_text(json.dumps(config, indent=2))
414
415 # Create ZIP
416 with zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) as zf:
417 for file_path in temp_path.rglob('*'):
418 if file_path.is_file():
419 arcname = f"universal-skills-manager/{file_path.relative_to(temp_path)}"
420 zf.write(file_path, arcname)
421 ```
422 * Alternatively, provide the ZIP as a downloadable artifact
423
4246. **Provide Upload Instructions:**
425 * "Your skill package is ready! To use it:"
426 * "1. Download the ZIP file: `universal-skills-manager.zip`"
427 * "2. Go to claude.ai → Settings → Capabilities"
428 * "3. Scroll to Skills section and click 'Upload skill'"
429 * "4. Select the ZIP file and upload"
430 * "5. Enable the skill and start using it!"
431
4327. **Security Reminder:**
433 * If a key was embedded: "This ZIP contains your API key. Do NOT share it publicly, distribute it to others, or commit it to version control. If you need to share the skill, create a key-free version (without `config.json`) and let each user add their own key."
434 * If no key was embedded: "This ZIP is safe to share — it contains no credentials. Recipients can add their own API key later, or use SkillHub/ClawHub search which requires no key."
435
436## Operational Rules
437
4381. **Structure Integrity:** When installing, always ensure the skill has its own folder (e.g., `.../skills/my-skill/`). Do not dump loose files into the root skills directory.
4392. **Conflict Safety:** If a skill already exists at a target location, **always** ask before overwriting, unless the user explicitly requested a "Force Sync."
4403. **OpenClaw Note:** OpenClaw may require a restart to pick up new skills if `skills.load.watch` is not enabled in `openclaw.json`. Warn the user of this after installation.
4414. **Cross-Platform Adaptation:**
442 * Gemini uses `SKILL.md`.
443 * Cline uses the same `SKILL.md` format with `name` and `description` frontmatter. The `name` field must match the directory name. No manifest generation required. Note: Cline also reads `.claude/skills/` at the project level, so Claude Code project skills work in Cline automatically.
444 * If OpenCode or Anti-Gravity require a specific manifest (e.g., `manifest.json`), generate a basic one based on the `SKILL.md` frontmatter during installation.
4455. **claude.ai / Claude Desktop Frontmatter Compatibility Check:**
446 When a user wants to upload or package a skill for **claude.ai** or **Claude Desktop**, validate the SKILL.md frontmatter against the [Agent Skills specification](https://agentskills.io/specification). Claude Desktop uses `strictyaml` (not standard PyYAML) which rejects ambiguous YAML constructs like block scalars. It will reject non-compliant skills with "malformed YAML frontmatter" or "unexpected key" errors.
447
448 **Allowed top-level frontmatter fields (Agent Skills spec):**
449
450 | Field | Required | Constraints |
451 | :--- | :--- | :--- |
452 | `name` | Yes | Max 64 chars, lowercase letters/numbers/hyphens only, must match directory name |
453 | `description` | Yes | Max 1024 chars. No angle brackets (`<` or `>`). Avoid literal block scalars (`|`) — known to fail with blank lines. Folded scalars (`>`) work but inline strings are safest |
454 | `license` | No | License name or reference to bundled file |
455 | `compatibility` | No | Max 500 chars, environment requirements |
456 | `metadata` | No | Flat key-value pairs only (string keys to string values — no nested objects, no arrays) |
457 | `allowed-tools` | No | Space-delimited list of pre-approved tools (experimental) |
458
459 **Use the validation script (preferred — avoids manual YAML errors):**
460 ```bash
461 # Validate a SKILL.md
462 python3 scripts/validate_frontmatter.py /path/to/SKILL.md
463
464 # Validate and auto-fix in place
465 python3 scripts/validate_frontmatter.py /path/to/SKILL.md --fix
466
467 # Validate and fix a ZIP file (rewrites SKILL.md inside the ZIP)
468 python3 scripts/validate_frontmatter.py /path/to/skill.zip --fix
469 ```
470 The script (`scripts/validate_frontmatter.py`) is zero-dependency Python 3. It checks all constraints and with `--fix` automatically applies these corrections:
471 - Moves unsupported top-level keys (e.g., `version`, `author`, `homepage`, `category`) into `metadata` as string values
472 - Flattens nested `metadata` objects (e.g., `metadata.clawdbot.requires.bins: [x, y]` → `metadata.clawdbot-requires-bins: "x, y"`)
473 - Converts non-string metadata values to quoted strings (e.g., `true` → `"true"`)
474 - Collapses literal block scalar (`|`) descriptions to inline quoted strings (known to fail with blank lines). Folded scalars (`>`) trigger a warning but work in current Claude Desktop
475 - Strips angle brackets (`<` `>`) from description (Anthropic's validator rejects them)
476 - Converts YAML list-format `allowed-tools` to space-delimited string
477 - Truncates `description` if over 1024 chars
478 - Validates the fix and reports if any issues remain
479
480 **If the script is not available**, do the validation manually:
481 1. Read the SKILL.md frontmatter
482 2. Check all top-level keys are in the allowed set: `name`, `description`, `license`, `compatibility`, `metadata`, `allowed-tools`
483 3. If `metadata` is present, verify all values are strings (no nested objects or arrays)
484 4. Verify `name` is lowercase with hyphens only, max 64 chars
485 5. Verify `description` is max 1024 chars
486
487 **If validation fails**, tell the user exactly what's wrong and offer to fix it (run the script with `--fix`, or apply the fixes manually).
488
489## Available Tools
490- `bash` (curl): Make API calls to SkillsMP.com, SkillHub (skills.palebluedot.live), and ClawHub (clawhub.ai); fetch skill content from GitHub or ClawHub directly.
491- `web_fetch`: Fetch skill content from GitHub raw URLs, SkillHub API, or ClawHub API (alternative to curl).
492- `read_file` / `write_file`: Manage local skill files.
493- `glob`: Find existing skills in local directories.
494
495## Implementation Details
496
497### Skill Structure
498Skills typically contain:
499- **SKILL.md** (required): Main instructions with frontmatter.
500- **Reference docs**: Additional documentation files.
501- **Scripts**: Helper scripts (Python, shell, etc.).
502- **Config files**: JSON, YAML configurations.
503
504### Installation Logic
505
506#### A. Installing from SkillsMP API
5071. **Fetch Skill Content:**
508 - Convert `githubUrl` to raw content URL:
509 ```
510 Input: https://github.com/{user}/{repo}/tree/{branch}/{path}
511 Output: https://raw.githubusercontent.com/{user}/{repo}/{branch}/{path}/SKILL.md
512 ```
513 - Fetch the SKILL.md content using curl or web_fetch
514
5152. **Create Directory:**
516 - Use skill `name` from API response for directory: `.../skills/{skill-name}/`
517 - Example: `.../skills/code-debugging/`
518
5193. **Save SKILL.md:**
520 - Write the fetched content to `SKILL.md` in the new directory
521 - Preserve the original YAML frontmatter and content
522
5234. **Handle Additional Files (Optional):**
524 - Check if GitHub repo has additional files (reference docs, scripts)
525 - Optionally fetch and save them to maintain complete skill package
526
5275. **Confirm:**
528 - Report: "Installed '{name}' by {author} to {path}"
529 - Show GitHub URL and stars count
530 - Offer sync to other AI tools
531
532#### B. Installing from SkillHub
5331. **Fetch Skill Details:**
534 - Use the skill's `id` from the search result to get full details:
535 ```bash
536 curl -X GET "https://skills.palebluedot.live/api/skills/{id}"
537 ```
538 - **IMPORTANT:** The `id` field (e.g., `wshobson/agents/debugging-strategies`) does NOT map to the file path within the repo. You MUST use the detail endpoint to get the actual `skillPath` and `branch`.
539 - Extract from response: `githubOwner`, `githubRepo`, `branch`, `skillPath`
540
5412. **Construct GitHub URL:**
542 - Build the GitHub tree URL from the detail response:
543 ```
544 https://github.com/{githubOwner}/{githubRepo}/tree/{branch}/{skillPath}
545 ```
546 - Example: `https://github.com/wshobson/agents/tree/main/plugins/developer-essentials/skills/debugging-strategies`
547
5483. **Download Using Helper Script:**
549 - From this point, the flow is identical to SkillsMP installation:
550 ```bash
551 python3 ~/.claude/skills/universal-skills-manager/scripts/install_skill.py \
552 --url "https://github.com/{githubOwner}/{githubRepo}/tree/{branch}/{skillPath}" \
553 --dest "{target-path}"
554 ```
555
5564. **Confirm:**
557 - Report: "Installed '{name}' from SkillHub to {path}"
558 - Show GitHub URL and stars count
559 - Offer sync to other AI tools
560
561#### C. Installing from ClawHub
562ClawHub hosts skill files directly (not on GitHub), so the install flow bypasses `install_skill.py` and fetches content via ClawHub's API.
563
5641. **Fetch SKILL.md Content:**
565 - Use ClawHub's file endpoint to get the raw SKILL.md:
566 ```bash
567 curl -s "https://clawhub.ai/api/v1/skills/{slug}/file?path=SKILL.md" \
568 -o /tmp/clawhub-{slug}/SKILL.md
569 ```
570 - **IMPORTANT:** This endpoint returns raw `text/plain` content, NOT JSON. Save the response body directly as the file.
571 - The `x-content-sha256` response header can be used to verify file integrity.
572
5732. **Handle Multi-File Skills (if applicable):**
574 - If the skill has additional files (scripts, configs), use ClawHub's download endpoint:
575 ```bash
576 curl -s "https://clawhub.ai/api/v1/download?slug={slug}" \
577 -o /tmp/clawhub-{slug}.zip
578 unzip -o /tmp/clawhub-{slug}.zip -d /tmp/clawhub-{slug}/
579 ```
580 - To check if a skill has multiple files, inspect the detail response from `GET /api/v1/skills/{slug}` — the `latestVersion` object may indicate file count.
581
5823. **Run Security Scan:**
583 - Since `install_skill.py` is bypassed, run the security scanner manually:
584 ```bash
585 python3 ~/.claude/skills/universal-skills-manager/scripts/scan_skill.py /tmp/clawhub-{slug}/
586 ```
587 - Review any findings before proceeding. ClawHub has VirusTotal integration but our scan provides an additional layer.
588
5894. **Validate YAML Frontmatter:**
590 - Verify the SKILL.md has valid YAML frontmatter (name, description fields).
591 - If invalid, warn the user and ask whether to proceed.
592
5935. **Create Directory and Install:**
594 - Create the target directory: `.../skills/{slug}/`
595 - Copy all files from the temp directory to the destination:
596 ```bash
597 mkdir -p {target-path}/{slug}
598 cp -r /tmp/clawhub-{slug}/* {target-path}/{slug}/
599 ```
600
6016. **Confirm:**
602 - Report: "Installed '{displayName}' (v{version}) from ClawHub to {path}"
603 - Show version info and stars count
604 - Offer sync to other AI tools
605
6067. **Cleanup:**
607 - Remove the temporary directory:
608 ```bash
609 rm -rf /tmp/clawhub-{slug}/ /tmp/clawhub-{slug}.zip
610 ```
611
612#### D. Installing from Local Source (Sync/Copy)
6131. **Retrieve:** Read all files from the source directory.
6142. **Create Directory:** Create the target directory `.../skills/{slug}/`.
6153. **Save Files:** Copy all files to the new location, preserving filenames.
616
617### SkillsMP API Configuration
618
619**Base URL:** `https://skillsmp.com/api/v1`
620
621**Authentication:**
622```bash
623Authorization: Bearer $SKILLSMP_API_KEY
624```
625
626**Available Endpoints:**
627- `GET /api/v1/skills/search?q={query}&page={1}&limit={20}&sortBy={recent|stars}`
628- `GET /api/v1/skills/ai-search?q={query}`
629
630**Response Format (Keyword Search):**
631```json
632{
633 "success": true,
634 "data": {
635 "skills": [
636 {
637 "id": "...",
638 "name": "skill-name",
639 "author": "AuthorName",
640 "description": "...",
641 "githubUrl": "https://github.com/user/repo/tree/main/path",
642 "skillUrl": "https://skillsmp.com/skills/...",
643 "stars": 10,
644 "updatedAt": 1768838561
645 }
646 ],
647 "pagination": {
648 "page": 1,
649 "limit": 20,
650 "total": 3601,
651 "totalPages": 1801,
652 "hasNext": true
653 }
654 }
655}
656```
657
658**Response Format (AI Search):**
659```json
660{
661 "success": true,
662 "data": {
663 "search_query": "...",
664 "data": [
665 {
666 "file_id": "...",
667 "filename": "...",
668 "score": 0.656,
669 "skill": {
670 "id": "...",
671 "name": "...",
672 "author": "...",
673 "description": "...",
674 "githubUrl": "...",
675 "skillUrl": "...",
676 "stars": 0,
677 "updatedAt": 1769542668
678 }
679 }
680 ]
681 }
682}
683```
684
685**Error Handling:**
686- `401`: Invalid or missing API key
687- `400`: Missing required query parameter
688- `500`: Internal server error
689
690### SkillHub API Configuration
691
692**Base URL:** `https://skills.palebluedot.live/api`
693
694**Authentication:** None required (open API)
695
696**Available Endpoints:**
697- `GET /api/skills?q={query}&limit={20}` — Search skills by keyword
698- `GET /api/skills/{id}` — Get full skill details (includes `skillPath`, `branch`, `rawContent`)
699- `GET /api/categories` — List skill categories
700- `GET /api/health` — Health check
701
702**Search Response Format:**
703```json
704{
705 "skills": [
706 {
707 "id": "wshobson/agents/debugging-strategies",
708 "name": "debugging-strategies",
709 "description": "Master systematic debugging...",
710 "githubOwner": "wshobson",
711 "githubRepo": "agents",
712 "githubStars": 27021,
713 "downloadCount": 0,
714 "securityScore": 100,
715 "securityStatus": null,
716 "rating": 0,
717 "isVerified": false,
718 "compatibility": { "platforms": [] }
719 }
720 ],
721 "pagination": {
722 "page": 1,
723 "limit": 20,
724 "total": 1000,
725 "totalPages": 50
726 },
727 "searchEngine": "meilisearch",
728 "processingTimeMs": 10
729}
730```
731
732**Detail Response Format (GET /api/skills/{id}):**
733```json
734{
735 "id": "wshobson/agents/debugging-strategies",
736 "name": "debugging-strategies",
737 "description": "...",
738 "githubOwner": "wshobson",
739 "githubRepo": "agents",
740 "skillPath": "plugins/developer-essentials/skills/debugging-strategies",
741 "branch": "main",
742 "githubStars": 27021,
743 "rawContent": "---\nname: debugging-strategies\n..."
744}
745```
746
747**Key Fields for Installation:**
748- `skillPath`: The actual directory path within the GitHub repo (CRITICAL — the `id` does NOT match the file path)
749- `branch`: The branch name (e.g., `main`)
750- `githubOwner` + `githubRepo`: Used to construct the GitHub URL
751- `rawContent`: Full SKILL.md content (can be used as fallback if GitHub is unreachable)
752
753**Error Handling:**
754- `404`: Skill not found
755- `500`: Internal server error
756
757### ClawHub API Configuration
758
759**Base URL:** `https://clawhub.ai/api/v1`
760
761**Authentication:** None required (open API)
762
763**Rate Limits:** 120 reads/min per IP (shown in `x-ratelimit-remaining` and `x-ratelimit-reset` response headers)
764
765**Available Endpoints:**
766- `GET /api/v1/search?q={query}&limit={20}` — Semantic/vector search (ranked by similarity score)
767- `GET /api/v1/skills?limit={20}&sort={stars|downloads|updated|trending}&cursor={cursor}` — Browse/list with cursor pagination
768- `GET /api/v1/skills/{slug}` — Get full skill details (owner, version, moderation status)
769- `GET /api/v1/skills/{slug}/file?path={filepath}&version={ver}` — Get raw file content (text/plain, NOT JSON)
770- `GET /api/v1/download?slug={slug}&version={ver}` — Download full skill as ZIP
771
772**Search Response Format (GET /api/v1/search):**
773```json
774{
775 "results": [
776 {
777 "score": 0.82,
778 "slug": "self-improving-agent",
779 "displayName": "Self-Improving Agent",
780 "summary": "An agent that iteratively improves itself...",
781 "version": "1.0.0",
782 "updatedAt": "2026-01-15T10:30:00Z"
783 }
784 ]
785}
786```
787
788**Browse Response Format (GET /api/v1/skills):**
789```json
790{
791 "items": [
792 {
793 "slug": "self-improving-agent",
794 "displayName": "Self-Improving Agent",
795 "summary": "...",
796 "version": "1.0.0",
797 "stats": {
798 "stars": 42,
799 "downloads": 150
800 }
801 }
802 ],
803 "nextCursor": "eyJ..."
804}
805```
806
807**Detail Response Format (GET /api/v1/skills/{slug}):**
808```json
809{
810 "skill": {
811 "slug": "self-improving-agent",
812 "displayName": "Self-Improving Agent",
813 "summary": "...",
814 "version": "1.0.0"
815 },
816 "owner": {
817 "handle": "username",
818 "displayName": "User Name"
819 },
820 "latestVersion": "1.0.0",
821 "moderation": "approved"
822}
823```
824
825**File Endpoint (GET /api/v1/skills/{slug}/file?path=SKILL.md):**
826- Returns raw `text/plain` content (NOT JSON)
827- Response headers include `x-content-sha256` (integrity hash) and `x-content-size` (byte count)
828- Use `version` query param to fetch a specific version (defaults to latest)
829
830**Key Differences from SkillsMP/SkillHub:**
831- **Direct hosting:** ClawHub hosts skill files directly — no GitHub URL construction needed
832- **Versioned skills:** Each skill has explicit version numbers; use `version` param to pin
833- **Slug-based IDs:** Skills are identified by `slug` (e.g., `self-improving-agent`), not GitHub paths
834- **Semantic search built-in:** The `/search` endpoint uses vector similarity, not keyword matching
835- **VirusTotal integration:** ClawHub scans skills via VirusTotal partnership; `moderation` field indicates status
836
837**Error Handling:**
838- `404`: Skill or file not found
839- `429`: Rate limit exceeded (120 reads/min)
840- `500`: Internal server error
841
842### Guidelines
843- **Multi-Source Search:** Use SkillsMP as the primary source when an API key is available. Offer SkillHub and ClawHub as alternative or additional sources.
844- **Prefer AI/Semantic Search:** For natural language queries, use SkillsMP `/ai-search` or ClawHub `/search` (both support semantic matching). SkillHub only supports keyword search.
845- **Source Labeling:** Always label results with their source (`[SkillsMP]`, `[SkillHub]`, or `[ClawHub]`) so users can distinguish between sources.
846- **SkillHub Detail Lookup:** When installing from SkillHub, always fetch the detail endpoint first to get the correct `skillPath` and `branch`. Never try to parse the `id` field as a file path.
847- **ClawHub Direct Hosting:** ClawHub hosts skill files directly — use the `/file` endpoint to fetch content. No GitHub URL construction is needed. Use the `slug` field as the skill identifier.
848- **ClawHub Versioning:** ClawHub skills have explicit version numbers. Show the version in install confirmations. Use the `version` query param to pin a specific version if needed.
849- **Deduplication:** When showing results from multiple sources, deduplicate: SkillsMP ↔ SkillHub by full skill ID (`{owner}/{repo}/{path}`); ClawHub ↔ others by skill name (since ClawHub uses slugs, not GitHub paths).
850- **Verify Content:** After fetching from any source, verify the SKILL.md has valid YAML frontmatter.
851- **Structure Integrity:** Maintain the `.../skills/{skill-name}/SKILL.md` structure.
852- **Syncing:** After installing a skill, offer to sync (copy) it to other detected AI tools.
853- **GitHub URLs:** For SkillsMP/SkillHub installs, always convert tree URLs to raw.githubusercontent.com URLs for content fetching.
854- **Security:** Security scanning runs on all installs regardless of source (SkillsMP, SkillHub, or ClawHub). SkillHub's `securityScore` and ClawHub's VirusTotal `moderation` status are informational only — our own `scan_skill.py` at install time is authoritative.