claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.
Claude Code
$ npx -y skills add athola/claude-night-market --skill mcp-code-execution --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill mcp-code-execution -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill mcp-code-execution -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill mcp-code-execution -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill mcp-code-execution -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill mcp-code-execution -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill mcp-code-execution -a windsurf -y
name: mcp-code-execution description: Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks. alwaysApply: false progressive_loading: true dependencies: hub: - context-optimization - token-conservation modules: - mcp-subagents - mcp-patterns - mcp-validation
This skill is an orchestration hub, not a CLI. It activates inside a Claude Code session when one of the trigger keywords below appears, or when invoked explicitly:
Skill(conserve:mcp-code-execution)
The hub then routes to the relevant sub-skill modules (`mcp-subagents`, `mcp-patterns`, `mcp-validation`) based on the detected workflow shape. There is no separate install step or CLI entry point.
> **MCP Tool Search (Claude Code 2.1.7+)**: When MCP tool > descriptions exceed 10% of context, tools are automatically > deferred and discovered via MCPSearch instead of being loaded > upfront. This reduces token overhead by ~85% but means tools > must be discovered on-demand. Haiku models do not support tool > search. Configure threshold with `ENABLE_TOOL_SEARCH=auto:N` > where N is the percentage.
> **Subagent MCP Access Fix (Claude Code 2.1.30+)**: SDK-provided > MCP tools are now properly synced to subagents. Prior to 2.1.30, > subagents could not access SDK-provided MCP tools: workflows > delegating MCP tool usage to subagents were silently broken. No > workarounds needed on 2.1.30+.
> **Claude.ai MCP Connectors (Claude Code 2.1.46+)**: Users logged > into Claude Code with a claude.ai account may have additional > MCP tools auto-loaded from claude.ai/settings/connectors. These > tools contribute to the tool search threshold count. If > workflows unexpectedly trigger tool search or context inflation, > check `/mcp` for claude.ai-sourced connectors. Known reliability > issue: connectors can silently disappear (GitHub #21817).
> **MCP Prompt Cache Fix (Claude Code 2.1.70+)**: MCP servers with > instructions connecting after the first turn no longer bust the > prompt cache. Previously, a late-connecting MCP server would > invalidate cached prompt prefixes, increasing token costs for > the rest of the session. On 2.1.70+, prompt cache reuse is > preserved regardless of when MCP servers connect.
> **ToolSearch Reliability Fix (Claude Code 2.1.70+)**: Empty > model responses after ToolSearch are fixed. The server was > rendering tool schemas with system-prompt-style tags that could > confuse models into stopping early. ToolSearch-heavy workflows > (many deferred MCP tools) are now more reliable.
1. `mcp-code-execution:assess-workflow` 2. `mcp-code-execution:route-to-modules` 3. `mcp-code-execution:coordinate-mecw` 4. `mcp-code-execution:synthesize-results`
def classify_workflow_for_mecw(workflow):
"""Determine appropriate MCP modules and MECW strategy"""
if has_tool_chains(workflow) and workflow.complexity == "high":
return {
"modules": ["mcp-subagents", "mcp-patterns"],
"mecw_strategy": "aggressive",
"token_budget": 600,
}
elif workflow.data_size > "10k_rows":
return {
"modules": ["mcp-patterns", "mcp-validation"],
"mecw_strategy": "moderate",
"token_budget": 400,
}
else:
return {
"modules": ["mcp-patterns"],
"mecw_strategy": "conservative",
"token_budget": 200,
}Delegate to mcp-validation module for detailed risk analysis:
def delegate_mecw_assessment(workflow):
return mcp_validation_assess_mecw_risk(
workflow, hub_allocated_tokens=self.token_budget * 0.5
)class MCPExecutionHub:
def __init__(self):
self.modules = {
"mcp-subagents": MCPSubagentsModule(),
"mcp-patterns": MCPatternsModule(),
"mcp-validation": MCPValidationModule(),
}
def execute_workflow(self, workflow, classification):
results = []
# Execute modules in optimal order
for module_name in classification["modules"]:
module = self.modules[module_name]
result = module.execute(
workflow,
mecw_budget=classification["token_budget"]
// len(classification["modules"]),
)
results.append(result)
return self.synthesize_results(results)def synthesize_module_results(module_results):
"""Combine module results into a single status dict."""
return {
"status": "completed",
"token_savings": calculate_savings(module_results),
"mecw_compliance": verify_mecA plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.