cd /news/ai-tools/cursor-plugins-build-a-team-bundle-i… · home › topics › ai-tools › article
[ARTICLE · art-174392] src=shattered.io ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Cursor Plugins: Build a Team Bundle in 12 Steps, 80 Min

A November 22 review of the Cursor editor details how Cursor plugins bundle rules, skills, subagents, slash commands, hooks and MCP servers into a single Git repository so teams can install identical guardrails on every developer machine. The tutorial walks through building a plugin called team-guardrails in 12 steps over 80 minutes, containing two rules, one skill, one subagent, one slash command, three hooks and a small MCP server, plus a validator and CI job to block broken bundles. The piece notes Cursor loads two plugin formats — the open Agent Plugins standard with plugin.json at the root, and Cursor's own .cursor-plugin/plugin.json, which adds rules, agents, commands, hooks and variables — and that secrets stay out of the repo because the manifest declares variable names supplied by an admin in the dashboard.

recommendation

Bundle team rules, hooks and MCP servers into a single versioned Cursor plugin with a validator and CI gate, and keep secrets as dashboard-supplied variables instead of repo files.

more in playbook: Working with AI coding agents
by read40 min views6 publishedNov 22, 2026
Cursor Plugins: Build a Team Bundle in 12 Steps, 80 Min
Image: Shattered (auto-discovered)

Cursor’s setup now centers on project rules, hooks, MCP servers, plugins, skills, subagents, commands and AGENTS.md, according to a November 22 review of the editor. A Cursor plugin is the piece that packs most of those items into one Git repository, so a team can install the same guardrails on every laptop instead of copying a .cursor folder between repos and watching the copies drift.

Drift is the real cost. One repo gets the updated secrets rule, three others keep the old one, and nobody can say which hook version blocked a bad command last week. Cursor’s plugins bundle MCP servers, skills, subagents, rules and hooks, which is what lets you ship them as one unit. If your instructions still live in another assistant, the Copilot to Cursor rules migration gets the raw material into the right format first. Then you package it here.

The plugin you will build is called team-guardrails. It carries two rules, one skill, one subagent, one slash command, three hooks (a shell guard and two audit hooks), and a small MCP server, plus a validator and a CI job that stop a broken bundle from ever reaching your teammates.

Don't miss new tech stories on Google

Add Shattered once in the Google app and our stories show up in your news suggestions.

Add now

What Cursor Plugins Bundle and Why a Team Should Ship One #

A plugin is a directory with a manifest and a set of component folders. Cursor loads plugins in two formats, and the manifest location tells it which one it is looking at. The open Agent Plugins standard uses a plugin.json at the plugin root and covers skills and MCP servers. Cursor’s own format uses .cursor-plugin/plugin.json and adds rules, agents, commands, hooks and variables. A plugin that follows the open specification loads in Cursor too, which matters if part of your team also uses another agent.

This tutorial uses the Cursor format because the guardrails need rules and hooks, and the open standard does not carry those. The table shows what each component is, where Cursor looks for it when the manifest does not name a path, and what it costs you at runtime.

Component Default location How Cursor discovers it Runtime behavior
Rules rules/ Every .md ,.mdc or.markdown file Persistent guidance, always on or scoped by globs
Skills skills/ Each subdirectory that holds a SKILL.md Loaded on demand when the task matches the description
Agents agents/ Every .md ,.mdc or.markdown file Custom subagent definitions with their own prompt
Commands commands/ Every .md ,.mdc ,.markdown or.txt file Slash-style actions the agent follows step by step
Hooks hooks/hooks.json Parsed for hook event names Scripts that observe or gate agent actions
MCP servers mcp.json at the plugin root Parsed for server entries External tools, shown with a plugin- prefix in approval prompts

Two rules in that table are easy to miss. First, if the manifest names a path for a component, that path replaces folder discovery for the component entirely, and the default folder is no longer scanned. Second, the plugin only declares what it needs. Secrets never live in the repo, because the manifest declares variable names and an admin supplies the values in the dashboard.

The practical payoff is governance. A team can mark a plugin as required, refresh it from a branch, and keep a single reviewed source for the MCP servers developers are allowed to run. If MCP sprawl is your main worry, pair this build with the checks in the Cursor MCP server audit, which inventories what developers already have configured before you replace it with a vetted bundle.

For a sense of what a finished plugin looks like, the Runlayer plugin in Cursor’s official marketplace is labeled verified by Cursor. Its listing shows two rules (mcp-governance and secrets-hygiene), three hooks ( sessionStart, beforeMCPExecution and beforeReadFile), two commands and three skills. The shape is the same as the project here, with a security focus.

Prerequisites and Project Layout for Cursor Plugins #

Nothing here needs a paid toolchain beyond the editor, and the validator uses only the Python standard library. Gather these before you start:

  • Cursor desktop app , a current build that shows a Plugins section under Customize. The November 3 release notes carry a date but no desktop version number, so check that the section exists instead of matching a version.
  • Python 3.10 or newer on your PATH aspython3 . The examples were run on 3.12.3.
  • Git , any recent release. The examples were run on 2.43.0.
  • A GitHub repository you can push to. Auto Refresh needs the Cursor GitHub App installed on it. Cursor also imports from GitLab, Bitbucket and Azure DevOps, but its documentation describes Auto Refresh for GitHub imports, so use manual Refresh elsewhere.
  • A Teams or Enterprise plan if you want a private team marketplace. Without one you can still build and validate everything locally, and you can submit the plugin to the public marketplace for review.
  • About 80 minutes . Steps 1 to 6 take roughly 30 minutes, hooks and MCP another 30, and the marketplace and CI work the rest.

The finished repository has 14 files. Keep this map open while you work, because several steps depend on exact paths.

acme-cursor-plugins/
├── .cursor-plugin/
│   └── marketplace.json
├── .github/workflows/validate.yml
├── tools/validate_plugin.py
└── team-guardrails/
    ├── .cursor-plugin/plugin.json
    ├── rules/
    │   ├── secrets-hygiene.mdc
    │   └── typescript-style.mdc
    ├── skills/release-notes/SKILL.md
    ├── agents/security-reviewer.md
    ├── commands/preflight.md
    ├── hooks/hooks.json
    ├── scripts/
    │   ├── shell_guard.py
    │   └── audit_log.py
    ├── mcp.json
    └── mcp/team_facts_server.py

One layout choice deserves a sentence. The repository root holds a marketplace manifest and the plugin sits one level down. That costs two extra lines now and saves a migration later, because adding a second plugin becomes a new folder and a new entry instead of a restructure.

Steps 1 and 2: Create the Repository and Write the Manifest #

Step 1: Create the repo skeleton and pick a valid name

Create the folders first so every later file has a home. The plugin name matters more than it looks. Cursor requires lowercase kebab-case made of alphanumerics, hyphens and periods, and the name must start and end with an alphanumeric character. team-guardrails passes. Team_Guardrails does not, and the validator in Step 10 will say so.

mkdir acme-cursor-plugins && cd acme-cursor-plugins
git init
mkdir -p .cursor-plugin tools .github/workflows
mkdir -p team-guardrails/{.cursor-plugin,rules,skills/release-notes,agents,commands,hooks,scripts,mcp}

Expected result: git init reports an empty repository and ls team-guardrails lists eight entries, including the hidden .cursor-plugin folder.

Step 2: Write the plugin manifest and declare variables

The manifest has one required field, name. Everything else is optional, but a marketplace reviewer expects a clear description, and a version string lets you tell teammates exactly what changed. The variables block is a JSON Schema fragment. It declares the names of settings an admin can fill in later, and it never holds values you would not publish.

{
  "name": "team-guardrails",
  "version": "1.0.0",
  "description": "Shared rules, a shell guard hook, a security reviewer subagent and a team conventions MCP server",
  "author": { "name": "Acme Platform Team", "email": "[email protected]" },
  "license": "MIT",
  "keywords": ["guardrails", "security", "conventions"],
  "variables": {
    "type": "object",
    "properties": {
      "TEAM_NAME": {
        "type": "string",
        "title": "Team name",
        "description": "Shown in answers from the team-facts MCP server",
        "default": "platform"
      }
    }
  }
}

Only a fixed set of JSON Schema keywords is accepted in that block: type, title, description, default, enum, const, properties, required, items and common length and numeric constraints. The top level has to be an object with properties. We declare a single non-secret variable, TEAM_NAME, with a default, so the plugin works with zero configuration. Step 9 shows how a required secret variable would look.

Notice what the manifest does not contain. There are no rules, skills or hooks fields. That is deliberate. With no explicit paths, Cursor falls back to folder discovery, which is the behavior you want until you have a reason to relocate a component.

Steps 3 and 4: Ship Rules and a Skill That Load When Needed #

Step 3: Add two rules with different scopes

Rules are .mdc files with YAML frontmatter. Each one needs a description. The alwaysApply flag decides whether the rule rides along on every request, and globs scopes it to matching files. For the frontmatter fields and glob behavior in more depth, the Cursor rules tutorial with a glob test harness walks through a harness that proves each rule fires, and FreakyJolly’s rules guide covers the .mdc format and the AGENTS.md fallback.

The first rule is always on, because a leaked credential is bad in any file:

---
description: Keep credentials out of prompts, commits and generated code
alwaysApply: true
---


- Never read or print the contents of `.env`, `.env.*` or any file under `~/.ssh`.
- Reference secrets by environment variable name only, for example `process.env.API_TOKEN`.
- If a command output contains something that looks like a token, stop and tell the user instead of repeating it.
- Never paste a real key into a test fixture. Use `test-key-0000` style placeholders.

The second rule applies only when the agent touches TypeScript:

---
description: TypeScript conventions for the platform monorepo
globs: ["**/*.ts", "**/*.tsx"]
alwaysApply: false
---


- Prefer `const`. Use `let` only when the variable is reassigned. Never use `var`.
- No `any`. Use `unknown` and narrow it, or write a type.
- Export types from `types.ts` next to the module, not from the implementation file.
- Throw `Error` subclasses from `src/errors/`, never bare strings.

The split is the point. An always-on rule costs context on every request, so keep that tier small and put language or folder conventions behind globs. Cursor recommends keeping a single rule under 500 lines and splitting larger instructions into composable files, and the validator enforces that ceiling. Cursor’s documentation reportedly describes rules as shaping Agent behavior, not Tab completions, so do not expect these two files to change inline suggestions.

Once the rules exist, run them through a linter before you ship. The Cursor rules linter catches dead globs, duplicate instructions and conflicts with AGENTS.md, which is cheaper than finding out from a confused agent.

Step 4: Add an on-demand skill

A skill lives in its own folder under skills/ and must contain a SKILL.md with a name and a description. The description does the routing. Cursor shows it to the agent, and the agent pulls in the full body only when the task matches. That makes skills the right home for long procedures that would be wasteful as always-on rules.

---
name: release-notes
description: Draft customer-facing release notes from merged pull requests. Use when the user asks for release notes, a changelog entry or a ship summary.
---


## When to use

- The user asks for release notes or a changelog entry.
- A release branch is about to be tagged.

## Instructions

1. Run `git log --merges --pretty=format:'%s' <last-tag>..HEAD` to list merged pull requests.
2. Group entries under Added, Changed and Fixed. Drop merge noise and dependency bumps.
3. Write each entry as one plain sentence a customer would understand.
4. End with a "Needs follow-up" list for anything that looks half-finished.

Write the description as a trigger, not a title. It names the job (drafting release notes) and the moments to use it (release notes, a changelog entry, a ship summary). A vague description such as “helps with releases” leaves the agent guessing, and a skill the agent never picks is dead weight in your repo.

Steps 5 and 6: Add a Security Subagent and a Preflight Command #

Step 5: Define a read-only security reviewer

Agent files are Markdown with name and description frontmatter, placed in agents/. The body is the subagent’s system prompt. Keep reviewers narrow. A subagent told to review for security, style, performance and naming will do four jobs badly. One told to review for security and never edit files does one job and leaves a clean audit trail.

---
name: security-reviewer
description: Read-only security reviewer for pending changes. Flags injection risks, auth gaps and leaked credentials.
---


You review diffs for security problems and never edit files.

1. Look for injection paths: SQL built from strings, shell commands built from user input, unescaped HTML.
2. Check that every new endpoint enforces authentication and authorization.
3. Search the diff for credentials, private keys and tokens.
4. Report findings as a list with file, line, severity (high, medium, low) and a one-line fix.
5. If you find nothing, say so plainly. Do not invent findings to look useful.

The last line of that prompt earns its place. Reviewers that feel obliged to produce findings invent them, and invented findings train developers to ignore the real ones. Telling the agent that an empty result is acceptable removes the pressure.

Step 6: Add a command that chains the pieces together

Commands are Markdown or text files in commands/. They read like a checklist the agent follows. This one runs tests and lint, hands the diff to the subagent from Step 5, and asks for a four-line summary. Reusing the subagent by name is the quiet benefit of bundling: the command can rely on it because both ship in one install.

---
name: preflight
description: Run the pre-merge checklist for the current branch
---


Steps:

1. Run the project's test command and report failures.
2. Run the linter and report new warnings only.
3. Ask the security-reviewer subagent to review `git diff main...HEAD`.
4. Summarize the results in four lines: tests, lint, security, verdict.

After install, type / in the Agent input and pick preflight. If you cannot see it, jump to the troubleshooting section, because the usual cause is a missing name in the frontmatter.

Steps 7 and 8: Wire Cursor Plugin Hooks and Test Them Offline #

Step 7: Register hooks and write the scripts

Hooks are scripts Cursor runs at lifecycle events. In a plugin they live in hooks/hooks.json, and the plugin reference lists 21 event names across agent, Tab and app lifecycle groups. A community walkthrough of every hook event documents the JSON format with working examples, and the Cursor hooks tutorial goes deeper on exit codes and an audit trail. Here we need three registrations.

{
  "hooks": {
    "beforeShellExecution": [
      {
        "command": "python3 ./scripts/shell_guard.py",
        "matcher": "rm|curl|git push|chmod"
      }
    ],
    "beforeMCPExecution": [
      { "command": "python3 ./scripts/audit_log.py mcp" }
    ],
    "stop": [
      { "command": "python3 ./scripts/audit_log.py stop" }
    ]
  }
}

The matcher on beforeShellExecution is a regular expression tested against the command, so the guard script only starts for commands containing rm, curl, git push or chmod. That keeps the common case, a harmless ls, free of process-spawn overhead. The guard reads the hook payload as JSON on standard input and answers with a JSON decision. Exit code 2 blocks the action even if the JSON is malformed, which gives you two independent ways to say no.

#!/usr/bin/env python3
"""beforeShellExecution hook: deny a short list of destructive commands."""
import json
import re
import sys

BLOCKED = [
    (re.compile(r"\brm\s+-[a-zA-Z]*r[a-zA-Z]*f|\brm\s+-[a-zA-Z]*f[a-zA-Z]*r"), "recursive force delete"),
    (re.compile(r"\bcurl\b[^|]*\|\s*(sudo\s+)?(ba|z)?sh\b"), "piping a download into a shell"),
    (re.compile(r"\bgit\s+push\b.*(--force(?!-with-lease)|\s-f\b)"), "force push without a lease"),
    (re.compile(r"\bchmod\s+-R\s+777\b"), "world-writable chmod"),
]

def main() -> int:
    try:
        payload = json.load(sys.stdin)
    except json.JSONDecodeError:
        print(json.dumps({"permission": "ask", "user_message": "shell_guard could not parse the hook input"}))
        return 0

    command = str(payload.get("command", ""))
    for pattern, reason in BLOCKED:
        if pattern.search(command):
            print(json.dumps({
                "permission": "deny",
                "user_message": f"team-guardrails blocked this command: {reason}.",
                "agent_message": f"Blocked by team-guardrails ({reason}). Propose a safer alternative.",
            }))
            return 2

    print(json.dumps({"permission": "allow"}))
    return 0

if __name__ == "__main__":
    sys.exit(main())

The guard fails soft on garbage input. If the payload cannot be parsed it returns ask, which hands the decision to the developer, instead of denying everything and stalling the agent. Pick the failure mode on purpose. For a security gate on production credentials you may prefer fail closed, but a guard that breaks every shell command on one bad payload gets disabled within a day.

The audit hook is deliberately boring. It appends one JSON line per event and stores a timestamp, the event name, the conversation id and the tool name. It does not store prompt text or file contents, so the log is safe to ship to a central collector without a privacy review.

#!/usr/bin/env python3
"""Append one JSON line per hook event. Stores no prompt text and no file contents."""
import datetime
import json
import os
import sys
from pathlib import Path

def main() -> int:
    event = sys.argv[1] if len(sys.argv) > 1 else "unknown"
    try:
        payload = json.load(sys.stdin)
    except json.JSONDecodeError:
        payload = {}

    audit_dir = Path(os.environ.get("TEAM_GUARDRAILS_AUDIT_DIR", Path.home() / ".cursor" / "audit"))
    audit_dir.mkdir(parents=True, exist_ok=True)
    record = {
        "ts": datetime.datetime.now(datetime.timezone.utc).isoformat(timespec="seconds"),
        "event": event,
        "conversation_id": payload.get("conversation_id"),
        "tool": payload.get("tool_name"),
    }
    with open(audit_dir / "team-guardrails.jsonl", "a", encoding="utf-8") as handle:
        handle.write(json.dumps(record) + "\n")

    print("{}")
    return 0

if __name__ == "__main__":
    sys.exit(main())

Two behaviors shape how you design hooks. Cursor says hooks now execute in parallel with merged responses, and that hook-execution latency dropped by a factor of ten. Parallel means two hooks on the same event cannot depend on each other, so never have one hook write a file that another reads. Second, the events confirmed for Cloud Agents are beforeSubmitPrompt, preToolUse and stop, while sessionStart and sessionEnd do not run there. That is why the audit hook listens on stop and not sessionEnd. Do not assume the other events fire in the cloud without testing them.

Step 8: Test the hooks without opening Cursor

A hook is just a program that reads stdin, so you can test it from a terminal in seconds. This loop is faster than prompting an agent to run a dangerous command and hoping it tries. Run each case and check the exit code, not only the message.

echo '{"command":"rm -rf /tmp/build"}' | python3 team-guardrails/scripts/shell_guard.py; echo "exit=$?"
echo '{"command":"git push origin main --force"}' | python3 team-guardrails/scripts/shell_guard.py; echo "exit=$?"
echo '{"command":"git push --force-with-lease origin fix/x"}' | python3 team-guardrails/scripts/shell_guard.py; echo "exit=$?"
echo '{"command":"ls -la"}' | python3 team-guardrails/scripts/shell_guard.py; echo "exit=$?"
echo 'nope' | python3 team-guardrails/scripts/shell_guard.py; echo "exit=$?"

The run produced this output. Denials exit with 2, the lease-protected push passes because it is the safe way to force a branch, and the garbage input falls back to ask.

{"permission": "deny", "user_message": "team-guardrails blocked this command: recursive force delete.", "agent_message": "Blocked by team-guardrails (recursive force delete). Propose a safer alternative."}
exit=2
{"permission": "deny", "user_message": "team-guardrails blocked this command: force push without a lease.", "agent_message": "Blocked by team-guardrails (force push without a lease). Propose a safer alternative."}
exit=2
{"permission": "allow"}
exit=0
{"permission": "allow"}
exit=0
{"permission": "ask", "user_message": "shell_guard could not parse the hook input"}
exit=0

Test the audit script the same way with a throwaway directory, using the TEAM_GUARDRAILS_AUDIT_DIR override so you do not write into your real home folder:

export TEAM_GUARDRAILS_AUDIT_DIR=$(pwd)/.audit-test
echo '{"conversation_id":"c-123","tool_name":"team_conventions"}' | python3 team-guardrails/scripts/audit_log.py mcp
cat .audit-test/team-guardrails.jsonl
{}
{"ts": "2026-11-22T23:12:18+00:00", "event": "mcp", "conversation_id": "c-123", "tool": "team_conventions"}

Field names in hook payloads are version-sensitive, so treat the script above as a template and compare the keys against the Hooks page in the Cursor docs for your installed build. The offline test proves your logic. A first live run in Cursor proves the field names.

Steps 9 and 10: Bundle an MCP Server and Validate the Cursor Plugin #

Step 9: Add an MCP server that uses plugin variables

MCP servers expose tools, resources and prompts to an agent, and the official server concepts page explains the three primitives. For a plugin, the server definition goes in mcp.json at the plugin root. Two details differ from a normal project config. Use ${CURSOR_PLUGIN_ROOT} to point at files inside the plugin, because Cursor expands it to the install path in command, args, env values and cwd. The open standard’s ${PLUGIN_ROOT} and ${PLUGIN_DATA} are not expanded, so a config copied from a standard-only plugin silently breaks.

{
  "mcpServers": {
    "team-facts": {
      "command": "python3",
      "args": ["${CURSOR_PLUGIN_ROOT}/mcp/team_facts_server.py"],
      "env": { "TEAM_NAME": "${TEAM_NAME}" }
    }
  }
}

The server itself is a stub with one tool, kept dependency-free so the whole project runs on a bare Python install. It speaks newline-delimited JSON-RPC over standard input and output, answers initialize by echoing the protocol version the client asked for, and returns canned team conventions. Swap the dictionary for a lookup against your wiki or ticket system when you build the real thing.

#!/usr/bin/env python3
"""Minimal stdio MCP server: newline-delimited JSON-RPC, one tool, no dependencies."""
import json
import os
import sys

CONVENTIONS = {
    "branches": "Branch names follow type/ticket-short-title, for example fix/PLAT-142-null-token.",
    "commits": "Commit subjects use the imperative mood and stay under 72 characters.",
    "reviews": "Every pull request needs one approving review from the owning team before merge.",
}

TOOLS = [{
    "name": "team_conventions",
    "description": "Return the team's written convention for a topic: branches, commits or reviews.",
    "inputSchema": {
        "type": "object",
        "properties": {"topic": {"type": "string", "enum": sorted(CONVENTIONS)}},
        "required": ["topic"],
    },
}]

def send(message: dict) -> None:
    sys.stdout.write(json.dumps(message) + "\n")
    sys.stdout.flush()

def handle(message: dict) -> None:
    method = message.get("method")
    msg_id = message.get("id")
    if msg_id is None:
        return  # notifications such as notifications/initialized need no reply

    if method == "initialize":
        version = (message.get("params") or {}).get("protocolVersion", "2026-07-28")
        send({"jsonrpc": "2.0", "id": msg_id, "result": {
            "protocolVersion": version,
            "capabilities": {"tools": {}},
            "serverInfo": {"name": "team-facts", "version": "1.0.0"},
        }})
    elif method == "tools/list":
        send({"jsonrpc": "2.0", "id": msg_id, "result": {"tools": TOOLS}})
    elif method == "tools/call":
        params = message.get("params") or {}
        topic = (params.get("arguments") or {}).get("topic")
        team = os.environ.get("TEAM_NAME", "platform")
        if params.get("name") == "team_conventions" and topic in CONVENTIONS:
            text = f"[{team}] {CONVENTIONS[topic]}"
            send({"jsonrpc": "2.0", "id": msg_id, "result": {"content": [{"type": "text", "text": text}]}})
        else:
            send({"jsonrpc": "2.0", "id": msg_id, "result": {
                "isError": True,
                "content": [{"type": "text", "text": "Unknown tool or topic. Valid topics: " + ", ".join(sorted(CONVENTIONS))}],
            }})
    else:
        send({"jsonrpc": "2.0", "id": msg_id, "error": {"code": -32601, "message": f"Method not found: {method}"}})

def main() -> int:
    for line in sys.stdin:
        line = line.strip()
        if line:
            handle(json.loads(line))
    return 0

if __name__ == "__main__":
    sys.exit(main())

Smoke test it by piping a full handshake through the script. The run below lists the tool and calls it:

printf '%s\n' \
 '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2026-07-28","capabilities":{},"clientInfo":{"name":"t","version":"0"}}}' \
 '{"jsonrpc":"2.0","method":"notifications/initialized"}' \
 '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \
 '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"team_conventions","arguments":{"topic":"commits"}}}' \
 | TEAM_NAME=platform python3 team-guardrails/mcp/team_facts_server.py
{"jsonrpc": "2.0", "id": 1, "result": {"protocolVersion": "2026-07-28", "capabilities": {"tools": {}}, "serverInfo": {"name": "team-facts", "version": "1.0.0"}}}
{"jsonrpc": "2.0", "id": 2, "result": {"tools": [{"name": "team_conventions", "description": "Return the team's written convention for a topic: branches, commits or reviews.", "inputSchema": {"type": "object", "properties": {"topic": {"type": "string", "enum": ["branches", "commits", "reviews"]}}, "required": ["topic"]}}]}}
{"jsonrpc": "2.0", "id": 3, "result": {"content": [{"type": "text", "text": "[platform] Commit subjects use the imperative mood and stay under 72 characters."}]}}

Once installed, Cursor lists plugin servers with a plugin- prefix followed by the plugin and server names, so this one appears in approval prompts as plugin-team-guardrails-team-facts. Teach your team to look for that string.

To add a remote server that needs a token, declare the variable in the manifest (for example API_TOKEN, listed under required) and reference it in mcp.json as "Authorization": "Bearer ${API_TOKEN}". Admins set the value in the dashboard under Plugins and Configure. If you want the full tool-design side, the Python MCP server build covers schemas, the MCP Inspector and hardening, and setting up Cursor MCP servers covers the per-project and global configs this plugin replaces.

Step 10: Write a validator that enforces the submission checklist

Cursor’s submission checklist is a list of things people forget: a valid manifest, a unique kebab-case name, a real description, valid frontmatter in every component, relative paths with no .., and every ${VAR} in mcp.json declared in the manifest. A 150-line script checks all of it, plus three extras of our own: hook scripts must exist, rules must stay under 500 lines, and nothing may look like a credential. It exits with 1 on any problem, which is what CI needs.

#!/usr/bin/env python3
"""Validate Cursor plugins against the documented manifest rules and the submission checklist."""
import json
import re
import sys
from pathlib import Path

NAME_RE = re.compile(r"^[a-z0-9]([a-z0-9.-]*[a-z0-9])?$")
VAR_RE = re.compile(r"\$\{([A-Za-z0-9_]+)\}")
BUILTIN_VARS = {"CURSOR_PLUGIN_ROOT", "CLAUDE_PLUGIN_ROOT"}
SECRET_RE = re.compile(r"(sk-[A-Za-z0-9]{20,}|ghp_[A-Za-z0-9]{30,}|AKIA[0-9A-Z]{16}|-----BEGIN [A-Z ]*PRIVATE KEY-----)")
HOOK_EVENTS = {
    "sessionStart", "sessionEnd", "preToolUse", "postToolUse", "postToolUseFailure",
    "subagentStart", "subagentStop", "beforeShellExecution", "afterShellExecution",
    "beforeMCPExecution", "afterMCPExecution", "beforeReadFile", "afterFileEdit",
    "beforeSubmitPrompt", "preCompact", "stop", "afterAgentResponse", "afterAgentThought",
    "beforeTabFileRead", "afterTabFileEdit", "workspaceOpen",
}
MAX_RULE_LINES = 500

def frontmatter(path: Path) -> dict:
    text = path.read_text(encoding="utf-8")
    if not text.startswith("---\n"):
        return {}
    end = text.find("\n---", 4)
    if end == -1:
        return {}
    fields = {}
    for line in text[4:end].splitlines():
        if ":" in line:
            key, value = line.split(":", 1)
            fields[key.strip()] = value.strip()
    return fields

def check_path_field(plugin: Path, field: str, value, errors: list) -> None:
    for item in value if isinstance(value, list) else [value]:
        if not isinstance(item, str):
            continue
        if item.startswith("/") or ".." in Path(item).parts:
            errors.append(f"manifest field '{field}' has an absolute or parent path: {item}")
        elif not (plugin / item).exists():
            errors.append(f"manifest field '{field}' points to a missing path: {item}")

def validate_plugin(plugin: Path) -> list:
    errors = []
    manifest_path = plugin / ".cursor-plugin" / "plugin.json"
    if not manifest_path.is_file():
        return [f"{plugin.name}: missing .cursor-plugin/plugin.json"]
    try:
        manifest = json.loads(manifest_path.read_text(encoding="utf-8"))
    except json.JSONDecodeError as exc:
        return [f"{plugin.name}: plugin.json is not valid JSON ({exc})"]

    name = manifest.get("name", "")
    if not NAME_RE.match(name):
        errors.append(f"name '{name}' must be lowercase kebab-case and start and end with an alphanumeric")
    if not manifest.get("description"):
        errors.append("description is empty: the marketplace checklist requires a clear one")
    for field in ("rules", "agents", "skills", "commands", "hooks", "mcpServers"):
        if field in manifest:
            check_path_field(plugin, field, manifest[field], errors)

    for folder, suffixes in (("rules", {".md", ".mdc", ".markdown"}), ("agents", {".md", ".mdc", ".markdown"}),
                             ("commands", {".md", ".mdc", ".markdown", ".txt"})):
        for file in sorted((plugin / folder).glob("*")) if (plugin / folder).is_dir() else []:
            if file.suffix not in suffixes:
                continue
            meta = frontmatter(file)
            if not meta:
                errors.append(f"{folder}/{file.name}: missing YAML frontmatter")
            elif folder == "rules" and "description" not in meta:
                errors.append(f"{folder}/{file.name}: rule frontmatter needs a description")
            elif folder != "rules" and not {"name", "description"} <= set(meta):
                errors.append(f"{folder}/{file.name}: frontmatter needs name and description")
            if folder == "rules" and len(file.read_text(encoding="utf-8").splitlines()) > MAX_RULE_LINES:
                errors.append(f"{folder}/{file.name}: over {MAX_RULE_LINES} lines, split it into smaller rules")

    skills = plugin / "skills"
    if skills.is_dir():
        for skill in sorted(p for p in skills.iterdir() if p.is_dir()):
            skill_file = skill / "SKILL.md"
            if not skill_file.is_file():
                errors.append(f"skills/{skill.name}: missing SKILL.md")
            elif not {"name", "description"} <= set(frontmatter(skill_file)):
                errors.append(f"skills/{skill.name}/SKILL.md: frontmatter needs name and description")

    hooks_file = plugin / "hooks" / "hooks.json"
    if hooks_file.is_file():
        try:
            hooks = json.loads(hooks_file.read_text(encoding="utf-8")).get("hooks", {})
        except json.JSONDecodeError as exc:
            errors.append(f"hooks/hooks.json is not valid JSON ({exc})")
            hooks = {}
        for event, entries in hooks.items():
            if event not in HOOK_EVENTS:
                errors.append(f"hooks/hooks.json: unknown event '{event}'")
            for entry in entries:
                for token in entry.get("command", "").split():
                    if token.startswith("./") and not (plugin / token[2:]).is_file():
                        errors.append(f"hooks/hooks.json: {event} runs missing script {token}")

    declared = set((manifest.get("variables") or {}).get("properties", {}))
    mcp_file = plugin / "mcp.json"
    if mcp_file.is_file():
        try:
            json.loads(mcp_file.read_text(encoding="utf-8"))
        except json.JSONDecodeError as exc:
            errors.append(f"mcp.json is not valid JSON ({exc})")
        for var in sorted(set(VAR_RE.findall(mcp_file.read_text(encoding="utf-8"))) - BUILTIN_VARS - declared):
            errors.append(f"mcp.json uses ${{{var}}} but plugin.json does not declare it under variables")

    for file in sorted(plugin.rglob("*")):
        if file.is_file() and ".git" not in file.parts and file.suffix in {".json", ".md", ".mdc", ".py", ".sh", ".txt"}:
            if SECRET_RE.search(file.read_text(encoding="utf-8", errors="ignore")):
                errors.append(f"{file.relative_to(plugin)}: looks like it contains a secret")
    return [f"{plugin.name}: {e}" for e in errors]

def validate_marketplace(root: Path) -> list:
    path = root / ".cursor-plugin" / "marketplace.json"
    if not path.is_file():
        return []
    errors = []
    data = json.loads(path.read_text(encoding="utf-8"))
    seen = set()
    for key in ("name", "owner", "plugins"):
        if key not in data:
            errors.append(f"marketplace.json: missing required field '{key}'")
    for entry in data.get("plugins", []):
        name, source = entry.get("name"), entry.get("source", entry.get("name"))
        if name in seen:
            errors.append(f"marketplace.json: duplicate plugin name '{name}'")
        seen.add(name)
        if not (root / source / ".cursor-plugin" / "plugin.json").is_file():
            errors.append(f"marketplace.json: source '{source}' has no .cursor-plugin/plugin.json")
    return errors

def main() -> int:
    root = Path(sys.argv[1] if len(sys.argv) > 1 else ".").resolve()
    errors = validate_marketplace(root)
    plugins = sorted(p.parent.parent for p in root.glob("*/.cursor-plugin/plugin.json"))
    for plugin in plugins:
        errors += validate_plugin(plugin)
    for error in errors:
        print(f"FAIL  {error}")
    print(f"checked {len(plugins)} plugin(s), {len(errors)} problem(s)")
    return 1 if errors else 0

if __name__ == "__main__":
    sys.exit(main())

Run it from the repository root:

python3 tools/validate_plugin.py .
checked 1 plugin(s), 0 problem(s)

A passing run prints one line. To see the failure path, break five things on purpose in a scratch copy: rename the plugin to Team_Guardrails, delete the description line from a rule, add an empty skill folder, point a hook at a script that does not exist, and reference an undeclared variable. The validator reports every problem in one pass, which saves five round trips:

FAIL  team-guardrails: name 'Team_Guardrails' must be lowercase kebab-case and start and end with an alphanumeric
FAIL  team-guardrails: rules/broken.mdc: rule frontmatter needs a description
FAIL  team-guardrails: skills/orphan: missing SKILL.md
FAIL  team-guardrails: hooks/hooks.json: beforeShellExecution runs missing script ./scripts/shell-guard.py
FAIL  team-guardrails: mcp.json uses ${TEAM_LABEL} but plugin.json does not declare it under variables
checked 1 plugin(s), 5 problem(s)

Steps 11 and 12: Publish Through a Team Marketplace and Add CI #

Step 11: Add the marketplace manifest and import the repository

A single repository can hold several plugins when it has a marketplace manifest at .cursor-plugin/marketplace.json. The entry for each plugin needs a name and a source. For "source": "team-guardrails", Cursor looks for team-guardrails/.cursor-plugin/plugin.json, merges it with the marketplace entry (manifest values win), and runs component discovery inside that folder. The whole marketplace file has to stay under 10 MB, which you will not hit with a few dozen plugins.

{
  "name": "acme-plugins",
  "owner": { "name": "Acme Platform Team", "email": "[email protected]" },
  "metadata": { "description": "Internal Cursor plugins for Acme engineering" },
  "plugins": [
    {
      "name": "team-guardrails",
      "source": "team-guardrails",
      "description": "Shared rules, shell guard hook, security reviewer and team conventions"
    }
  ]
}

Commit, push to GitHub, then import it:

  1. Open the dashboard and go to Plugins & MCPs .
  2. Under Team Marketplaces, click Add Marketplace and chooseImport from Repo .
  3. Paste the repository URL and connect the Git provider if Cursor asks.
  4. Open Marketplace Settings and set Marketplace Access . By default everyone on the team sees it, and you can narrow it to Organization Groups.
  5. Turn on Auto Refresh for GitHub imports. It needs the Cursor GitHub App on the repository, and Cursor re-indexes a marketplace at most once every 10 minutes, batching rapid pushes into the latest commit.
  6. Add the plugin to the marketplace and pick an installation mode.

Installation mode is the control that makes a plugin policy instead of a suggestion. Choose deliberately, because a required plugin cannot be removed by the people who have to live with it.

Installation mode What developers see Best used for
Default Off Plugin is discoverable, and each developer chooses whether to install it New plugins, experiments, optional workflow helpers
Default On Plugin is installed by default, and developers can opt out Conventions you want adopted without a mandate
Required Plugin is always installed and cannot be uninstalled Security guardrails, secrets rules, audit hooks

Plan limits shape the rollout. According to the Cursor plugin documentation, the Teams plan includes one team marketplace beyond the Default one, and Enterprise allows unlimited team marketplaces. On Enterprise, only admins can add them. If you only have the Teams allowance, put every internal plugin in one repo and use the multi-plugin layout from the start.

Trying the plugin on your own machine before a team rollout is the awkward part. The submission checklist tells you to test locally, but the IDE has no official load-from-folder flag. A community write-up from March 2026 describes a workaround that registers a plugin through Claude Code config directories, and its author says it was tested on macOS with Cursor 2.5.x and may change between builds. A safer route is a private marketplace repository with the plugin set to Default Off, so only the people who opt in see it.

To list the plugin in the public marketplace instead, push it to a public Git repository and submit the link at cursor.com/marketplace/publish. Every plugin there is manually reviewed. The checklist asks for a valid manifest, a unique kebab-case name, a clear description, valid component files, relative paths with no .., a README that documents configuration, and local testing.

Step 12: Gate every change with CI and verify in a fresh session

The workflow below runs the validator on every pull request and pushes to main, then smoke-tests the guard so a regex edit that stops blocking rm -rf fails the build instead of reaching a laptop.

name: validate-plugins
on:
  pull_request:
  push:
    branches: [main]
jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: "3.12"
      - name: Validate manifests, components and hooks
        run: python3 tools/validate_plugin.py .
      - name: Smoke test the shell guard
        run: |
          echo '{"command":"rm -rf /"}' | python3 team-guardrails/scripts/shell_guard.py; test $? -eq 2
          echo '{"command":"ls -la"}' | python3 team-guardrails/scripts/shell_guard.py

Then verify the installed plugin the way a developer will meet it. Open a new Agent session, because a running agent, including each Cloud Agent in a project, keeps the plugin versions it started with. Work through this checklist:

  1. Open Customize and confirm team-guardrails shows as installed at the version in your manifest.
  2. Ask the agent to print the contents of .env . The secrets rule should make it decline.
  3. Ask it to run rm -rf on a scratch folder. The hook should deny the command and show the user message.
  4. Type / and runpreflight . The security reviewer should appear in the run.
  5. Ask for the commit convention. The approval prompt should name plugin-team-guardrails-team-facts .
  6. Check that ~/.cursor/audit/team-guardrails.jsonl gained lines for the MCP call and the stop event.

Write a short changelog entry with every version bump. Developers rarely read it, but the person debugging a blocked command at 6 p.m. will. List what the guard now blocks, which rules changed, and whether any MCP server was added, since a new server is the change a security team most wants to see.

The same plugin should load in terminal sessions. If your team runs agents headless, the Cursor CLI local setup shows how to confirm that rules, MCP servers and permissions behave the same way outside the editor.

Complete Working Project: Files, Commands and Final Run #

Here is the whole build as one sequence you can paste into a fresh shell after saving the files from the steps above. It validates, exercises each script, then commits. If every command below succeeds, the plugin is ready to import.

cd acme-cursor-plugins

python3 tools/validate_plugin.py .

echo '{"command":"rm -rf /tmp/build"}' | python3 team-guardrails/scripts/shell_guard.py; test $? -eq 2 && echo "guard: deny ok"
echo '{"command":"ls -la"}' | python3 team-guardrails/scripts/shell_guard.py > /dev/null && echo "guard: allow ok"

printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2026-07-28"}}' \
  | python3 team-guardrails/mcp/team_facts_server.py | head -c 80; echo

git add . && git commit -m "Add team-guardrails plugin" && git push -u origin main
checked 1 plugin(s), 0 problem(s)
guard: deny ok
guard: allow ok
{"jsonrpc": "2.0", "id": 1, "result": {"protocolVersion": "2026-07-28", "capabilities

Fourteen files, no third-party packages, and one command that tells you whether the bundle is safe to publish. The structure scales. A second plugin means a new top-level folder with its own manifest and one more entry in marketplace.json, and the validator picks it up without changes because it globs for every .cursor-plugin/plugin.json.

Plugin, Project Rule or User Rule: Where Each Piece Belongs #

A plugin is not always the answer. It adds a release process, and a release process is overhead for a rule that one repo needs. Use this table to decide before you create a bundle for something that should have stayed a single file.

You want to Put it in Why
Teach the agent one repo’s build commands .cursor/rules in that repo Versioned with the code it describes, no release step
Apply your personal style across all projects User rules Follows you and affects nobody else
Give many repos the same security rule A plugin rule, installed as Required One reviewed source, one place to update
Gate shell commands for the whole org A plugin hook or team hooks in the dashboard Cloud Agents also read team hooks configured in the dashboard
Run an MCP server for a single repo .cursor/mcp.json in that repo Scoped to the project that needs it
Offer vetted MCP servers to everyone Plugin mcp.json in a team marketplace Admins control access and installation mode
Share instructions with other editors too AGENTS.md A cross-tool fallback that does not depend on Cursor

The pattern is scope. Narrow things stay narrow, and the plugin is for guidance that has to be identical across repos and enforceable by someone other than the developer. Cursor’s docs list project rules, team rules and user rules as separate layers, so a plugin rule is one more layer on top of them, not a replacement.

Context cost is the quiet argument for restraint. An always-on rule rides along on every request, so a six-line secrets rule is nearly free while a 400-line style guide taxes every prompt, including the ones that have nothing to do with style. If a rule only matters for one folder or one language, scope it with globs. If it is a long procedure, make it a skill. Treat the always-on tier like a carry-on bag: everything in it travels every time.

Ownership matters just as much. Put a code owners file on the plugin repository and require a review from the platform or security group on changes to hooks/, mcp.json and rules/. A plugin installed as Required is production configuration for every developer, so it deserves the same pull request discipline as a deploy script.

Common Pitfalls When Building Cursor Plugins #

These are the mistakes that cost the most time, roughly in the order people hit them. The broader pillar on coding and dev tools tracks how the rest of the editor ecosystem is moving, but these are specific to bundles.

  1. Naming a path in the manifest and losing discovery. Setting"skills": "./my-skills/" replaces the defaultskills/ scan. Anything left in the old folder vanishes without an error. Either use the defaults or move every file.
  2. Putting a secret in the plugin repo. Even a private marketplace repo is read by every admin and every CI runner. Declare a variable, reference${VAR} , and let an admin set the value in the dashboard.
  3. Using the open standard’s root variables.${PLUGIN_ROOT} and${PLUGIN_DATA} are not expanded in Cursor. Use${CURSOR_PLUGIN_ROOT} .
  4. Assuming hook order. Hooks on one event run in parallel and their responses are merged. A hook that expects another hook’s output will see nothing.
  5. Leaning on session events in the cloud.sessionStart andsessionEnd do not run for Cloud Agents. Usestop orbeforeSubmitPrompt for anything that must run there.
  6. Bloating the always-on tier. EveryalwaysApply: true rule is paid for on every request. Keep each file well under 500 lines and push the rest behind globs or into skills.
  7. Confusing two kinds of hooks. Localhooks.json scripts can observe, block or modify the agent loop. Agent SDK hooks are read-only event subscribers and cannot change a turn. A guard written for one does nothing in the other.
  8. Expecting instant updates. Auto Refresh re-indexes at most once every 10 minutes, and agents that are already running keep the plugin versions they started with. Bumpversion , wait, and start a new agent.
  9. Marking an untested plugin Required. A broken required hook blocks everyone and cannot be uninstalled by them. Roll out Default Off, then Default On, then Required.

Troubleshooting Cursor Plugins: 10 Problems and Fixes #

  1. The plugin never appears after import. Run the validator. Cursor indexes plugins when you first import the repo, and a missing.cursor-plugin/plugin.json , a duplicate plugin name or an invalidsource path inmarketplace.json keeps the entry out. Fix the file, push, then click Refresh.
  2. Auto Refresh does nothing. Confirm the Cursor GitHub App is installed on the repository and that the marketplace tracks the branch you pushed to. The documentation describes Auto Refresh for GitHub imports, so use manual Refresh for GitLab, Bitbucket and Azure DevOps. Remember the 10-minute re-index window before you assume it failed.
  3. A rule is installed but ignored. Check the frontmatter. A rule withalwaysApply: false and no matchingglobs is only available on request. Also confirm the file lives inrules/ and has adescription . Rules shape Agent behavior, not Tab completions, so test in Agent.
  4. The command is missing from the slash menu. Commands need frontmatter withname anddescription , and the file must have one of the supported extensions. Start a new agent session, since running sessions keep the old plugin version.
  5. The shell hook never fires. Check that the event name is spelled exactly as in the reference list, that thematcher regex matches the command you tried, and that the script path resolves from where Cursor runs it. If the relative./scripts path fails in your build, test with an absolute path to isolate it. In Cloud Agents, remember only some events are confirmed.
  6. The hook blocks everything. Run the script by hand with a harmless payload. A traceback prints to stderr and exits non-zero, which a gate can read as a denial. Wrap the parse step in a try block, as the guard here does, and decide whether failure should ask or deny.
  7. The MCP server will not start. Runpython3 mcp/team_facts_server.py yourself and pipe a handshake in. The usual causes arepython3 not on the PATH of the process Cursor launches, a typo in${CURSOR_PLUGIN_ROOT} and a strayprint that corrupts the JSON-RPC stream on stdout.
  8. A variable resolves to an empty string. The placeholder inmcp.json must match a property name in the manifest schema exactly, including case. Admins set values under Plugins and Configure in the dashboard, so an unset required variable stays empty.
  9. Two copies of the same rule apply. You probably have the rule in both a project.cursor/rules folder and the plugin. Delete the project copy, since project, team and user rules stack with plugin rules and do not override each other.
  10. The validator flags a secret that is not one. The pattern matches strings shaped like cloud keys and private key headers. If a fixture needs a fake key, use a short placeholder such astest-key-0000 that stays below the length the pattern looks for.

If none of that explains it, reduce the plugin to a manifest and one rule, confirm that installs, and add components back one at a time. The component that breaks the install is the guilty one.

Advanced Tips for Cursor Plugin Authors #

  • Roll out in three stages. Ship at Default Off for a week, flip to Default On once the audit log shows clean runs, then move the guardrail pieces to Required. Split optional helpers such as the release-notes skill into a separate plugin so a Required install does not drag them along.
  • Pin versions like code. Bumpversion in the manifest on every change and tag the commit. When someone reports a blocked command, the audit log plus the tag tells you which guard was live.
  • Add a preToolUse backstop. If Cloud Agents matter to you, the events confirmed there arebeforeSubmitPrompt ,preToolUse andstop . A second guard onpreToolUse covers shell calls on surfaces wherebeforeShellExecution is unconfirmed. Test it before you rely on it.
  • Watch the allowlist rules. Cursor says that since November 3, 2026, Cloud Agent allowlists cover every MCP server a Cloud Agent uses, including servers from user settings, inline configurations and built-in connectors, and that an environment MCP rule marked read-only now permits no tools from that server instead of all of them. Check how your plugin server is treated before you depend on it in the cloud.
  • Keep the Agent SDK separate. Agent SDK hooks are read-only event subscribers that run side effects after events are recorded, and they cannot change a turn. Enforcement logic belongs in your localhooks.json scripts.
  • Rotate the audit log. The JSONL file grows forever. Add a size check toaudit_log.py , or ship the file to your log pipeline and truncate it nightly.
  • Stay portable where it is cheap. Skills and MCP servers also work in the Agent Plugins format, and Cursor expands${CLAUDE_PLUGIN_ROOT} as well as its own variable. Keep portable pieces in their own plugin if other agents matter to your team.

Frequently Asked Questions About Cursor Plugins #

What is a Cursor plugin?

A Cursor plugin is a Git repository with a manifest that bundles rules, skills, subagents, commands, hooks and MCP servers into one installable package. Cursor introduced plugins earlier this year, and teams install them from the marketplace or from a private team marketplace.

How is a plugin different from .cursor/rules?

Project rules live inside one repository and travel with its code. A plugin lives in its own repository, installs across many projects, and can carry hooks and MCP servers as well as rules. Use project rules for repo-specific facts and a plugin for guidance that must be identical everywhere.

Do Cursor plugins cost extra?

Cursor’s documentation does not list a separate price for plugins or rules. Private team marketplaces are a Teams and Enterprise feature. Model usage that your agents consume is billed under your plan as usual, so confirm the details on the pricing page before you roll out widely.

Can I test a plugin without publishing it?

Cursor’s checklist asks for local testing but the IDE has no official load-from-folder option. The dependable approach is to test every script offline as in Step 8, run the validator, and install through a private marketplace repository at Default Off. A community workaround exists, but its author tested it on one platform and one build family only.

Will my plugin work in Cloud Agents and the CLI?

Partly, and you should test each surface. Cursor confirms that Cloud Agents read command hooks from a repository hooks.json and from team hooks in the dashboard, with beforeSubmitPrompt, preToolUse and stop confirmed and the session events not running. Confirm that your specific hooks fire on each surface.

How do I ship an update to my team?

Bump version, merge, and let Auto Refresh pick up the push. Cursor re-indexes at most once every 10 minutes. Developers get the new version in new agent sessions, because a running agent keeps the version it started with.

Are Cursor plugins compatible with other agents?

Only partly. Cursor loads plugins that follow the open Agent Plugins specification, which covers skills and MCP servers, and it expands ${CLAUDE_PLUGIN_ROOT} as well as ${CURSOR_PLUGIN_ROOT}. Rules, agents, commands, hooks and variables are Cursor-format features, so do not expect them to load in other tools.

Is it safe to mark a security plugin as Required?

It is the right mode for guardrails, with a condition. A required plugin cannot be uninstalled, so a broken hook affects the whole team at once. Validate in CI, soak at Default Off and Default On first, and keep the guard’s failure mode deliberate.

── more in #ai-tools 4 stories · sorted by recency
── more on @cursor 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/cursor-plugins-build…] indexed:0 read:40min 2026-11-22 · —