agentleFS
lalal-zzzlalal-zzz/mcp-skill-publisher/.cursor/rules/mcp-skill-deployer.mdc

mcp-skill-publisher / rules

Cursor rule4 starsChanged 4 months agoMITView on GitHub

mcp-skill-deployer: when the user explicitly asks to audit, score, optimize, inspect, package, or publish an MCP server or Agent Skill project, run compliance checks, quality scoring, guided optimization, and export file generation. Never execute npm publish, git push, or registry commands without per-step user confirmation.

  • Reads credentials
  • Commits and pushes
  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,527 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

We split this mcp-skill-deployer.mdc into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Only activate when the user explicitly requests to audit, optimize, inspect, package, or publish an MCP or Skill project (e.g., …

    line 9
  2. Very specific:

    Run npm whoami (publish mode only), git status (read-only checks only)

    line 18
  3. Distinctive:

    Never change core functionality or delete user content

    line 31
  4. Distinctive:

    Never overwrite existing user files without asking

    line 36
  5. Very specific:

    Run npm test or pytest

    line 39
  6. Very specific:

    Run npm pack --dry-run (dry-run only)

    line 40
  7. Distinctive:

    Before ANY write/send operation, ask the user: "I'm about to [action].

    line 43
  8. Very specific:

    Track A (MCP): Ask confirmation before each: npm publish, Smithery submit, Anthropic registry submit

    line 44
  9. Distinctive:

    Track B (Skill): Ask confirmation before each: git tag, git push

    line 45
  10. Distinctive:

    Never execute registry or git write operations without explicit user approval

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
mcp-skill-deployer.mdc
---
description: "mcp-skill-deployer: when the user explicitly asks to audit, score, optimize, inspect, package, or publish an MCP server or Agent Skill project, run compliance checks, quality scoring, guided optimization, and export file generation. Never execute npm publish, git push, or registry commands without per-step user confirmation."
globs: "**/package.json,**/skills/**"
alwaysApply: false
---

# mcp-skill-deployer

Only activate when the user explicitly requests to audit, optimize, inspect, package, or publish an MCP or Skill project (e.g., "/mcp-skill-deployer", "score my skill", "optimize my MCP", "check and publish my project").

## Mode Selection
Pick the mode from user intent — do NOT default to full publishing:
- **Audit**: "check / score my project" → Phases 0-2 only (read-only report)
- **Optimize**: "optimize / fix my project" → Phases 0-3 (edits require per-item confirmation)
- **Publish**: "publish / release my project" → full pipeline (Phases 0-6)

## Phase 0: Pre-flight Audit
- Run `npm whoami` (publish mode only), `git status` (read-only checks only)
- Scan for leaked secrets (API keys, tokens, .env content)
- Validate `package.json` or `skills/*/SKILL.md` structure

## Phase 1: Project Inspection
- Auto-detect: MCP-only / Skill-only / hybrid

## Phase 2: Quality Audit & Scoring
- Score against the 100-point checklist (MCP: tool naming/descriptions, schemas, error handling, token efficiency, registry metadata; Skill: description triggerability, length, executable steps, trigger boundaries, confirmation gates)
- Output report: total score, A/B/C/D grade, prioritized fix list (blockers → high impact → polish)

## Phase 3: Optimization (WITH PER-ITEM CONFIRMATION)
- Show diff preview per fix, apply only after user approval
- Never change core functionality or delete user content
- Re-score after fixes and show before/after comparison

## Phase 4: Platform Export (file generation)
- Generate export files (.mdc, .yml, .txt, .json) for target platforms
- Never overwrite existing user files without asking

## Phase 5: Testing & Security
- Run `npm test` or `pytest`
- Run `npm pack --dry-run` (dry-run only)

## Phase 6: Publishing (WITH MANDATORY CONFIRMATION)
- Before ANY write/send operation, ask the user: "I'm about to [action]. Proceed? (yes/no)"
- **Track A (MCP)**: Ask confirmation before each: `npm publish`, Smithery submit, Anthropic registry submit
- **Track B (Skill)**: Ask confirmation before each: `git tag`, `git push`
- Never execute registry or git write operations without explicit user approval

## Phase 7: Summary
- Print read-only summary: compliance status, before/after quality score, export files generated, executed actions, pending manual submissions

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.