Sharing Skills, Prompts and MCP Servers Across Teams: One Quality Gate Before the Shared Catalog
Seven SupportDesk submissions go through one gate with six checks: owner, a 'Use when' trigger, no literal secrets, no bare Bash, five or more passing evals and a pinned sha. One enters the catalog, six come back with the exact reason, and managed settings make the catalog the only road.
What you will learn
- Explain why anything in a shared catalog runs on every machine that installs it
- Name the three roads into the fleet: a skill in the repo, a plugin in a marketplace, an MCP server in .mcp.json
- Write a gate that checks owner, trigger, secrets, tool scope, evals and a pinned sha
- Tell the gate's job (what is worth listing) from managed settings (what can be installed)
Before you start
- Claude Code skills (SKILL.md)
- Configuring MCP servers in Claude Code
- Basic Python
Picture a support team that has built something useful: a skill that drafts refund replies. Now other teams want it. Someone else wants to share an MCP server as well.
In this article we set the bar for what goes into the shared catalog, for prompts, skills and MCP servers alike. One gate, before anything goes in. A submission comes out of it either as an approved entry or back to the team with its reasons.
Shared means run everywhere
Look at what each shared thing carries. A skill puts instructions into Claude's context. An MCP server is a process on the laptop. Its config can hold a key. With one shared catalog, no owner and no checks, every install runs whatever is in it. One sloppy share reaches the whole fleet.
Think of a restaurant chain with a shared recipe book. Whose recipe is it? A named cook, so someone can be asked. When do you cook it? The page says so. Is there a house key written in the book? There shouldn't be. Did anyone taste it? Five dishes, all good. Nobody cooks from a recipe with no name, no note and no taste test.
Three roads into the fleet
- A skill is a folder with a
SKILL.mdin it, committed to the repository. A shared prompt travels this way too (see authoring a Claude skill). - A plugin goes into a marketplace, a catalog described in a
marketplace.jsonfile. Teams add the marketplace, then install from it (see plugins and marketplaces). - An MCP server sits in a
.mcp.jsonfile at the project root, and teams approve it the first time they use it (see configuring MCP servers in Claude Code).
gate.py: every reason to reject
The project is plain Python with no model call and no API key: seven submissions and one gate. The checklist is SupportDesk's own team rule, not a Claude Code setting.
"""The quality bar: what a skill or MCP server must show before it enters the shared catalog."""
MIN_CASES = 5
BROAD = {"Bash", "Bash(*)", "*"}
def check(sub):
"""Every reason to reject a submission; an empty list means it may enter."""
why = []
if not sub.get("owner"):
why.append("no owner")
if "use when" not in sub["description"].lower():
why.append("description has no 'Use when' trigger")
for key, value in sub.get("env", {}).items():
if not value.startswith("${"):
why.append(f"literal secret in env: {key}")
if BROAD & set(sub.get("allowed_tools", [])):
why.append("allowed-tools too broad: Bash")
p, n = sub["evals"]["passed"], sub["evals"]["total"]
if n < MIN_CASES or p < n:
why.append(f"evals {p}/{n}: need {MIN_CASES}+ passing")
if not sub.get("sha"):
why.append("not pinned to a commit sha")
return why
def review(sub):
why = check(sub)
return ("reject" if why else "approve"), why
- An owner. With no owner, nobody can be asked when it breaks.
- A trigger. The description must say Use when. That is how Claude knows when to load it.
- No literal secrets. A plain key in the
envblock is rejected. A variable reference such as${CRM_KEY}is fine. - A narrow scope. Bare
Bashin allowed tools is too broad. - Evidence. At least five test cases, and every one passes.
- A pin. The submission names a commit sha, so the catalog lists the exact version that was reviewed.
The gate collects every reason it finds instead of stopping at the first. A clean submission has none.
Seven submissions, one decision each
submissions.py holds one clean submission and six copies of it that each break one check. For example:
GOOD = dict(owner="billing-support", description="Draft a refund reply. Use when a ticket asks about a refund.",
allowed_tools=["Read"], env={}, evals={"passed": 6, "total": 6}, sha="a1b2c3d")
SUBMISSIONS = [
dict(GOOD, name="refund-reply", kind="skill"),
dict(GOOD, name="crm-lookup", kind="mcp", env={"CRM_KEY": "demo-key-123"}),
dict(GOOD, name="search-help", kind="mcp", evals={"passed": 4, "total": 6}),
# ... four more, one broken check each
]
Running every submission through the gate printed:
shared catalog gate
refund-reply skill approve enters the catalog
orphan-notes skill reject no owner
tone-helper skill reject description has no 'Use when' trigger
crm-lookup mcp reject literal secret in env: CRM_KEY
bulk-close skill reject allowed-tools too broad: Bash
search-help mcp reject evals 4/6: need 5+ passing
email-draft skill reject not pinned to a commit sha
approved 1 | rejected 6
refund-replypasses all six checks and enters the catalog.orphan-notesis rejected with one reason: no owner.crm-lookupholds a literal key, and the reason names the variable,CRM_KEY.search-helppassed four of six evals. That isn't enough, so it is rejected.
A pass is for one version
Passing the gate isn't forever. It applies to the version you reviewed. Three habits keep it true:
- Release. If you push new commits to a plugin but leave its version at
1.0.0, users keep their cached copy. Bump the version on every release. - Pin. A plugin entry can name a
refand asha, and you can run a stable and a latest marketplace, so users stay on what you reviewed. - Watch. Claude Code can emit
plugin_installedandplugin_loadedevents, so you can see what is actually running.
The gate fills the list, settings lock it
There are two different jobs here:
- The gate decides what is worth listing. That is your team's rule, not a Claude Code setting.
- Managed settings decide what can be installed at all.
strictKnownMarketplaceslimits plugins to your marketplace.allowedMcpServers, withallowManagedMcpServersOnly, limits servers to the approved set.
One warning: an MCP server's name is only a label the user picks. Match servers by their URL (serverUrl) or their command (serverCommand), not by name.
Common mistakes
- Publishing a style guide instead of a gate. A guide is not a check. Nothing stops a share that ignores it.
- Banning sharing and copying per team. The copies drift, and nobody owns any of them. The packaged skill article shows that drift in action.
- Reviewing after install. Too late. It already ran on every machine.
- Stopping at the first failed check. Return every reason, so the team fixes everything in one round.
- Allowlisting MCP servers by name. Names are labels. Match on URL or command.
Quick recap
| Check | Why | Rejected here |
|---|---|---|
| Owner | Someone answers when it breaks | orphan-notes |
| "Use when" trigger | Claude knows when to load it | tone-helper |
| No literal secrets | Config travels to every machine | crm-lookup |
| Narrow tools | No bare Bash | bulk-close |
| Evals, 5+ all passing | Someone tasted it | search-help (4/6) |
| Pinned sha | The pass is for one version | email-draft |
Try it yourself
Add a seventh check: an MCP server submission must name a serverUrl or serverCommand, so it can be allowlisted by what it is rather than by its name. Write the failing submission first, predict the reject line, then add the check to gate.py.
Related course on Udemy
Claude Certified Developer - Professional (CCDV-P) Exam Prep
Claude agents in production: reliability, observability, evals, cost, guardrails and fleets.View on Udemy ↗: Claude Certified Developer - Professional (CCDV-P) Exam Prep (paid course, opens in a new tab)Related posts
CLAUDE.md, settings.json and Plugins: Which Claude Code File Advises, Which Enforces, Which Packages
Three needs in one repo: a test command, a rule that Claude must never read .env, and a shared deploy skill. See which file each belongs in, how the settings layers merge, and what a plugin manifest carries.
Authoring a Claude Skill: SKILL.md, Frontmatter, Progressive Disclosure and the Description That Triggers It
Pack a support team's ticket-triage routine into one skill folder, then watch three requests load one, two or all three levels: the catalog, the SKILL.md body, and a script whose code never enters the context.
One Change, Four Environments: Where a Claude Config Edit Lands in Dev, Staging, Prod and CI
Change one line in a repo and ask where it lands. A small resolver for bookshop-bot shows that a new model id in settings.json reaches only CI, a prompt bump reaches dev and CI, and a prod block edit reaches only prod.
Claude in the SDLC: Prompts in Git, a Change Gate by Path, a Claude Review That Advises and a Person Who Merges
Follow one prompt edit from a branch to a merge: version prompts and the model pin like code, keep the API key in GitHub Secrets, gate changes by path, let Claude review the diff, and leave the merge to a person.
