agentsclimarketplace

Mcp skill vs prompt discovery filtering

Skill ychampion/cskill-agents/agents/claude-code/skills/mcp-skill-vs-prompt-discovery-filtering

Ensure SkillTool only exposes MCP skills when they are registered as prompt-based commands and dedupe them against local commands.From its SKILL.md

Install
npx -y skills add ychampion/cskill-agents --skill mcp-skill-vs-prompt-discovery-filtering

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

2.1 KB, 375 tokens by cl100k_base, as published. Nobody here has run it

SKILL: MCP Skill vs Prompt Discovery Filtering

Domain: tool-design Trigger: Apply when SkillTool enumerates commands to decide which slash commands should be available, ensuring MCP prompt skills are disambiguated from generic prompts. Source Pattern: Distilled from reviewed command discovery, MCP integration, and skill-surface implementations.

Core Method

Inspect the MCP-discovered command surface, keep only entries that are actually prompt-based skills, and merge them with the local command registry into one unified list. Deduplicate by command name before validation or execution so MCP-discovered prompts cannot shadow or duplicate local skills by accident. Preserve source metadata so permission checks, telemetry, and UX can still tell whether a skill came from MCP or from a local registry.

Key Rules

  • Always filter MCP commands by cmd.type === 'prompt' before merging; prompts of other types should stay hidden because SkillTool only handles prompt-based skills.
  • Merge the filtered MCP list with the local command registry and dedupe by name so remote skills do not conflict with bundled commands.
  • Preserve metadata like loadedFrom or other source identifiers so permission checks and telemetry can tell whether the skill came from MCP or local registries.

Example Application

If an MCP server exposes a prompt named changelog and the local registry already has one, run this filter before permission checks so the merged skill surface stays coherent and the MCP entry does not silently shadow the local one.

Anti-Patterns (What NOT to do)

  • Do not merge MCP prompts without filtering type or deduping, which would let MCP prompts masquerade as local skills and break strict permission rules.
  • Do not treat MCP prompts as regular prompt commands without marking loadedFrom:'mcp', because telemetry and permission prompts rely on knowing which commands were discovered versus bundled.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.