agentleFS
adityasugandhiadityasugandhi/skillsync-mcp/site/llms-full.txt

skillsync-mcp / site

llms.txt4 starsChanged 9 months agoMITView on GitHub

Security-gated skill management for AI coding assistants. Skills are scanned against 101 regex threat patterns before installation; critical matches are blocked. SkillSync MCP (@stranzwersweb2/skillsync-mcp) is an open-source Model Context Protocol (MCP) server that acts as a security gateway for installing skills (reusable prompt/tool packages) into AI coding assistants like Claude Code. It connects to the SkillsMP marketplace (skillsmp.com) and provides search, security scanning, installation, and query-subscription sync. Every skill installation is gated by a rule-based scan of 101 regex threat…

  • Reads credentials
  • Deletes or force-pushes
  • Installs packages

The file

We split this llms-full.txt into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add to .cursor/mcp.json in your project root:

    line 76
  2. Very specific:

    Add to .github/copilot-mcp.json (project) or ~/.github/copilot-mcp.json (global):

    line 106
  3. Very specific:

    Add to ~/.config/zed/settings.json under "context_servers":

    line 124
  4. Distinctive:

    Search the SkillsMP marketplace by keyword.

    line 161
  5. Distinctive:

    SSRF Prevention: Only github.com URLs accepted for scanning

    line 303
  6. Distinctive:

    Start fs.watch for live additions/removals

    line 339

≈ “Common” is an estimate: at least 1 in 5 of the 4,067 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llms-full.txt
# SkillSync MCP — Complete Reference

> Security-gated skill management for AI coding assistants. Skills are scanned against 101 regex threat patterns before installation; critical matches are blocked.

## What is SkillSync MCP?

SkillSync MCP (`@stranzwersweb2/skillsync-mcp`) is an open-source Model Context Protocol (MCP) server that acts as a security gateway for installing skills (reusable prompt/tool packages) into AI coding assistants like Claude Code. It connects to the SkillsMP marketplace (skillsmp.com) and provides search, security scanning, installation, and query-subscription sync.

Every skill installation is gated by a rule-based scan of 101 regex threat patterns in 19 categories (47 critical, 3 critical multi-line, 51 warning). Installs that match a critical pattern (for example prompt injection, reverse shells, credential theft, supply chain attacks) are blocked with no override. The scanner is a heuristic: it can miss novel or obfuscated attacks and can flag benign text. The shipped package contains no machine-learning model.

## Quick Facts

- **Package**: @stranzwersweb2/skillsync-mcp
- **Version**: 1.4.1
- **License**: MIT (free and open source)
- **Author**: Aditya Sugandhi (https://adityasugandhi.com)
- **npm**: https://www.npmjs.com/package/@stranzwersweb2/skillsync-mcp
- **GitHub**: https://github.com/adityasugandhi/skillsync-mcp
- **Website**: https://skillsync.js.org/
- **Node.js**: Requires >= 20
- **Transport**: MCP over stdio (StdioServerTransport)
- **Dependencies**: @modelcontextprotocol/sdk, zod

---

## Installation

### One-line install (npx)

```bash
npx -y @stranzwersweb2/skillsync-mcp
```

### Global install

```bash
npm install -g @stranzwersweb2/skillsync-mcp
```

### Claude Code

Add to `~/.claude/settings.json`:

```json
{
  "mcpServers": {
    "skillsmp": {
      "command": "npx",
      "args": ["-y", "@stranzwersweb2/skillsync-mcp"]
    }
  }
}
```

### OpenClaw

Add to `~/.openclaw/mcp.json`:

```json
{
  "mcpServers": {
    "skillsmp": {
      "version": "1.4.1",
      "autoUpdate": false,
      "command": "npx",
      "args": ["-y", "@stranzwersweb2/skillsync-mcp@1.4.1"]
    }
  }
}
```

OpenClaw uses the same SKILL.md format as Claude Code. Pin versions and review tool policies.

### Cursor

Add to `.cursor/mcp.json` in your project root:

```json
{
  "mcpServers": {
    "skillsmp": {
      "command": "npx",
      "args": ["-y", "@stranzwersweb2/skillsync-mcp"]
    }
  }
}
```

### Windsurf

Add to `~/.windsurf/mcp.json`:

```json
{
  "mcpServers": {
    "skillsmp": {
      "command": "npx",
      "args": ["-y", "@stranzwersweb2/skillsync-mcp"]
    }
  }
}
```

### GitHub Copilot

Add to `.github/copilot-mcp.json` (project) or `~/.github/copilot-mcp.json` (global):

```json
{
  "mcpServers": {
    "skillsync": {
      "command": "npx",
      "args": ["-y", "@stranzwersweb2/skillsync-mcp"],
      "env": {
        "SKILLSMP_API_KEY": "your-api-key"
      }
    }
  }
}
```

### Zed

Add to `~/.config/zed/settings.json` under `"context_servers"`:

```json
{
  "context_servers": {
    "skillsync": {
      "command": {
        "path": "npx",
        "args": ["-y", "@stranzwersweb2/skillsync-mcp"],
        "env": {
          "SKILLSMP_API_KEY": "your-api-key"
        }
      }
    }
  }
}
```

### Client Compatibility Table

| Client | Config Path | Skill Format |
|--------|------------|--------------|
| Claude Code | ~/.claude/settings.json | SKILL.md in ~/.claude/skills/ |
| OpenClaw | ~/.openclaw/mcp.json | SKILL.md (same format) |
| Cursor | .cursor/mcp.json | MCP tools only |
| Windsurf | ~/.windsurf/mcp.json | MCP tools only |
| GitHub Copilot | .github/copilot-mcp.json | MCP tools only |
| Zed | ~/.config/zed/settings.json | MCP tools only |
| nanobot | MCP config | MCP tools only |

---

## All 13 MCP Tools (Detailed)

### Search & Discovery

#### 1. skillsmp_search — Keyword Search
Search the SkillsMP marketplace by keyword. Returns skill names, descriptions, authors, star counts, and GitHub links. Supports sorting by stars or recency. All results are sanitized against prompt injection.

Parameters:
- query (string, required): Search keyword(s), 1-200 chars
- limit (number, optional): Max results, 1-100, default 20
- sortBy (enum, optional): "stars" or "recent", default "recent"

#### 2. skillsmp_ai_search — AI Semantic Search
Natural language search through the third-party SkillsMP ai-search API (SkillsMP states it uses Cloudflare AI; the model is not disclosed). Returns relevance-scored results, treated as untrusted content.

Parameters:
- query (string, required): Natural language search query, 1-200 chars
- limit (number, optional): Max results, 1-50, default 10

#### 3. skillsmp_search_safe — Search + Auto-Scan
Combines keyword search with automatic security scanning of the top N results. Shows risk levels and threat summaries inline with search results.

Parameters:
- query (string, required): Search keyword(s)
- limit (number, optional): Max search results, default 10
- scanTop (number, optional): How many top results to scan, 1-5, default 3
- sortBy (enum, optional): "stars" or "recent"

#### 4. skillsmp_suggest — AI Suggestions
Recommends new skills based on what you already have installed and optional context about your current project. Filters out already-installed skills.

Parameters:
- context (string, optional): What you're working on, e.g. "React testing"
- limit (number, optional): Max suggestions, 1-20, default 5

### Security

#### 5. skillsmp_scan_skill — Security Scan
Scans a GitHub skill repository against 101 regex threat patterns in 19 categories. Returns a risk level (safe/low/medium/high/critical), threat list with line numbers, content hash, files scanned count, and recommendation.

Parameters:
- githubUrl (string, required): GitHub URL to scan

#### 6. skillsmp_compare — Side-by-Side Compare
Compare two skills by GitHub URL or installed skill name. Shows risk levels, threat counts, categories, and a recommendation for which is safer.

Parameters:
- skillA (string, required): GitHub URL or installed skill name
- skillB (string, required): GitHub URL or installed skill name

#### 7. skillsmp_audit_installed — Deep Audit
Forces a fresh security scan on a specific installed skill. Shows detailed threat report, file count, total size, content hash, and SKILL.md status.

Parameters:
- name (string, required): Name of the installed skill

### Skill Management

#### 8. skillsmp_install_skill — Install
Scans a GitHub skill, then installs it to ~/.claude/skills/. Installs matching a critical pattern are blocked. Medium/high risk requires force=true. Runs npm install with --ignore-scripts.

Parameters:
- githubUrl (string, required): GitHub URL
- name (string, optional): Custom skill name
- force (boolean, optional): Override medium/high risk block

#### 9. skillsmp_uninstall_skill — Uninstall
Removes an installed skill directory and updates the in-memory registry.

Parameters:
- name (string, required): Skill name to remove

#### 10. skillsmp_list_installed — List Installed
Lists all installed skills with risk levels, file counts, SKILL.md status, and last scan timestamps.

Parameters:
- refresh (boolean, optional): Force re-sync before listing

### Subscription Sync (local config; pulls from the SkillsMP API)

#### 11. skillsync_configure — Configure Sync
Manage sync subscriptions and settings. Add/remove search subscriptions, set sync interval (hours), risk threshold (safe/low/medium), and conflict policy (skip/overwrite/unmanage).

Parameters:
- action (enum, required): "add", "remove", "list", or "set"
- query (string, optional): For add action
- subscriptionId (string, optional): For remove action
- syncIntervalHours (number, optional): For set action, 0=manual
- maxRiskLevel (enum, optional): "safe", "low", or "medium"
- conflictPolicy (enum, optional): "skip", "overwrite", or "unmanage"

#### 12. skillsync_sync_now — Run Sync
Polls subscriptions, diffs against installed skills, installs/updates/removes as needed. Supports dry-run mode.

Parameters:
- dryRun (boolean, optional): Preview without changes, default false

#### 13. skillsync_status — Sync Status
Shows sync engine state: managed vs manual skills, subscription count, last sync time, next scheduled sync.

No parameters.

---

## Security Model (Detailed)

### Risk Levels

| Level | Behavior |
|-------|----------|
| Safe / Low | Install proceeds with warnings shown |
| Medium / High | Blocked — requires force=true to override |
| Critical | Blocked — no override possible |

### 19 Threat Categories (101 patterns: 47 critical, 3 critical multi-line, 51 warning)

**Categories with critical (install-blocking) patterns:**
1. Prompt Injection — override AI instructions, role reassignment, fake system prompts, LLM control tokens, hidden HTML instructions, zero-width/bidi Unicode, Unicode homoglyphs (Cyrillic/Greek/IPA/fullwidth mixed with ASCII); also 3 warning-level patterns
2. Destructive Shell — rm -rf /, chmod 777, mkfs, dd, fork bombs
3. Remote Code Execution — curl/wget pipe to shell
4. Reverse Shells — bash /dev/tcp, netcat, ncat, socat, Python/PHP/Ruby/Perl one-liners
5. Credential Theft — SSH keys, AWS creds, GPG keys, Kubernetes config, Docker config, .env files, wallet files, keychain; also 3 warning-level patterns
6. Supply Chain — overwrite package.json, write to node_modules, modify CI/CD workflows, npm publish, npm registry redirect, git credential modification
7. Privilege Escalation — sudo, write to /etc/ or /usr/, chown root
8. Exfiltration — secret exfiltration via curl with environment variables; also 3 warning-level patterns

**Warning-only categories (flag for review):**
9. Obfuscation — Base64/hex decoding, String.fromCharCode, shell base64 decode pipes
10. Code Execution — eval(), new Function(), dynamic import/require, process.binding, VM module
11. Shell Execution — child_process, execSync/spawnSync, exec with string args
12. Network — fetch to external domains, axios, raw sockets, WebSocket, HTTP servers
13. Crypto Mining — stratum pool connections, xmrig/cryptonight/coinhive/cpuminer
14. Dotfile Poisoning — writing to .bashrc, .zshrc, .npmrc, .yarnrc, .gitconfig
15. Filesystem — writes outside the project
16. Prototype Pollution
17. Time Bomb — date/time-triggered behaviour
18. Environment — environment modification
19. Input Capture — clipboard/keyboard capture

These are regex heuristics, not a guarantee: they can miss novel or obfuscated attacks and can flag benign text.

### Multi-line Pattern Detection

The scanner also applies multi-line patterns to detect evasion attempts where malicious commands are split across lines (e.g., curl pipe to shell with line continuation).

### Safety Guards

- **SSRF Prevention**: Only github.com URLs accepted for scanning
- **Path Traversal Prevention**: Skill names validated against /^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$/
- **npm --ignore-scripts**: Blocks postinstall/preinstall script attacks
- **File Limits**: Max 50 files, 512KB per file, 2MB total per skill
- **ReDoS Protection**: Lines over 2000 characters are skipped
- **Content Hashing**: SHA-256 hash for TOCTOU (time-of-check-to-time-of-use) verification
- **Output Sanitization**: Strips zero-width Unicode characters and bidirectional text overrides from all third-party content
- **Scan Cache**: 15-minute TTL with 100-entry LRU eviction
- **Startup Verification**: Background discovery, content hashing, and fs.watch for live filesystem sync
- **Binary Detection**: 30+ binary extensions skipped automatically
- **Suspicious Filenames**: postinstall.sh, preinstall.js, .env, .npmrc, makefile flagged

---

## Architecture

### Data Flow

```
MCP Client (stdio) → tools.ts (13 tool handlers) → Business Logic → Response
                                                     ├── api-client.ts (SkillsMP REST API)
                                                     ├── security-scanner.ts (GitHub fetch + threat scan)
                                                     ├── skill-manager.ts (installed skill registry + fs.watch)
                                                     ├── installer.ts (filesystem + npm install)
                                                     ├── sync-engine.ts (subscription sync orchestration)
                                                     └── sanitize.ts (output safety)
```

### Startup Sequence

1. McpServer created
2. registerTools(server) — registers all 13 tools
3. server.connect(transport) — MCP is live, tools available immediately
4. skillManager.initialize() — BACKGROUND (fire-and-forget)
   - Discover skills in ~/.claude/skills/
   - Security scan each skill
   - Start fs.watch for live additions/removals

### Key Files

| File | Purpose |
|------|---------|
| src/index.ts | Entry point — creates McpServer, connects stdio |
| src/tools.ts | 13 MCP tool definitions with Zod schemas |
| src/skill-manager.ts | Discovery, local scanning, registry, fs.watch |
| src/api-client.ts | SkillsMP marketplace REST API client |
| src/security-scanner.ts | Core threat engine — GitHub fetch + pattern matching |
| src/installer.ts | Skill install/uninstall — path validation, file writing |
| src/patterns.ts | 101 regex threat patterns (47 critical, 3 critical multi-line, 51 warning) |
| src/constants.ts | Config: skills dir, file limits, extensions |
| src/sanitize.ts | Anti prompt injection output cleaning |
| src/sync-engine.ts | Subscription sync orchestration (pulls from the SkillsMP API) |
| src/sync-config.ts | Sync subscription management |
| src/sync-lock.ts | Managed skill lock file |

---

## Why SkillSync vs a Raw Git Clone

| Capability | Raw git clone | SkillSync MCP |
|-----------|--------------|---------------|
| Security scan before install | No | Regex scan — 101 patterns |
| Blocks critical findings | No | Critical pattern match blocks install |
| Multi-client support | N/A | Config docs for 7 clients |
| Marketplace search | Manual | Keyword + semantic (SkillsMP API) |
| Query subscriptions | No | Local config, pulls from SkillsMP |
| Startup verification | No | fs.watch + content hash |
| Output sanitization | No | Strips hidden Unicode controls |

## Data Flow and Third Parties

Search, suggestions and sync send queries (and an API key if configured) to the SkillsMP API at skillsmp.com. skillsmp_suggest builds its query from the names of up to 10 installed skills plus the optional project context (up to 200 characters) and sends it to SkillsMP. Skill source is fetched from github.com for scanning. Sync subscriptions are stored in a local config file; SkillSync has no cloud service of its own.

## Research (experimental, not shipped)

Experimental detector: 99.2% attack detection on Boundary Pairs synthetic test data, in each of three training runs (119/120 attacks each). Average benign false-alarm rate 3.9% (per-run 2.5%, 4.2%, 5.0%). 10 held-out scenarios from one synthetic generator; not evidence of real-world protection. Shipped rule-based scanner is separate.

The detector is a fine-tuned DeBERTa-v3-base classifier; it is not in the npm package and is not used by the install gate. Methods, baselines, uncertainty and limits: https://skillsync.js.org/research.html and docs/research/ in the GitHub repository.

---

## Development

```bash
git clone https://github.com/adityasugandhi/skillsync-mcp.git
cd skillsync-mcp
npm install
npm run build
npm run dev       # Watch mode
npm run test:build  # Build + run the node:test suite
```

## Contributing

See CONTRIBUTING.md. Browse open issues or look for the good-first-issue label. All PRs must pass the existing test suite.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.