Skill

mece-decomposer

MECE decomposition methodology, scoring rubrics, and Agent SDK mapping for process analysis. Loaded automatically when decomposing goals, tasks, processes, or workflows into Mutually Exclusive, Collectively Exhaustive components. Provides the domain knowledge used by /decompose, /interview, /validate, and /export commands. Use when user says "decompose", "break down this process", "MECE analysis", "interview me about a workflow", "map process to agents", "validate decomposition", or "export to Agent SDK".

From mece-decomposer
Install
1
Run in your terminal
$
npx claudepluginhub fblissjr/fb-claude-skills --plugin mece-decomposer
Tool Access

This skill is limited to using the following tools:

Bash(uv run *)
Supporting Assets
View in Repository
references/agent_sdk_mapping.md
references/decomposition_methodology.md
references/output_schema.md
references/sme_interview_protocol.md
references/validation_heuristics.md
scripts/validate_mece.py
Skill Content

MECE Decomposer -- Domain Knowledge

This skill provides the methodology, scoring rubrics, and mapping rules that power the /decompose, /interview, /validate, and /export skills. Claude loads this automatically when those skills are invoked or when the conversation involves process decomposition.

Core Concept

Business subject matter experts carry tacit knowledge about processes that lives as assumptions in their heads. MECE decomposition extracts and structures that knowledge into components that are:

  • Mutually Exclusive: no overlap between sibling components
  • Collectively Exhaustive: no gaps -- all cases covered

The decomposition serves two audiences simultaneously:

  • Humans: readable tree for validation, communication, alignment
  • Agents: structured JSON mapping to Claude Agent SDK primitives (Agent, Runner, hooks, handoffs)

Decomposition Methodology

Detailed procedure in references/decomposition_methodology.md. Summary:

Dimension Selection

Score candidates using the 4-criteria rubric:

DimensionBest For
TemporalProcesses with clear sequential phases
FunctionalGoals or capabilities without strict ordering
StakeholderMulti-team processes with handoffs
StateWorkflows driven by entity state transitions
Input-OutputData transformation pipelines

Choose the dimension that produces the most natural, non-overlapping cut. Different branches may use different dimensions. When selecting the decomposition dimension and validating MECE boundaries, use ultrathink.

Atomicity Criteria

A node is atomic (stop decomposing) when ALL hold:

CriterionTest
Co-occurrenceSub-steps always execute together in this context
Single responsibilityDoes exactly one thing with one clear outcome
Stable interfaceInputs and outputs are well-defined
Independent testabilityCan verify without running the whole tree
SDK-mappableMaps to one Agent, one tool call, one human action, or one external call
Bounded durationPredictable, finite execution time

The co-occurrence test is primary. If sub-steps can execute independently, keep decomposing.

Fan-Out and Depth Limits

  • 3-7 children per branch (2 minimum, 7 maximum)
  • Max 7 parallel branches
  • Warn at >5 depth levels
  • Flag atoms with >5 tools or >500 word prompts

MECE Scoring

Score RangeME InterpretationCE Interpretation
0.85 - 1.0Strong: no overlapStrong: no gaps
0.70 - 0.84Acceptable: minor boundary issuesAcceptable: minor gaps documented
0.50 - 0.69Weak: redefine boundariesWeak: add missing components
< 0.50Failed: re-cut this levelFailed: fundamental restructuring

Quality gate: >= 0.70 for export, >= 0.85 for confidence.

Depth-Adaptive Rigor

  • L1 (top level): Full ME/CE validation -- definition-based, example-based, boundary-case
  • L2: Pairwise ME testing + scenario CE testing
  • L3: Spot-check ME + stakeholder CE test
  • L4+: Trust, only flag obvious issues

See references/validation_heuristics.md for the complete rubric.

Agent SDK Mapping

Each atom maps to an SDK primitive based on execution type:

Execution TypeSDK PrimitiveModel Tier
agentAgent + Runner.run()haiku / sonnet / opus based on complexity
humanHuman-in-the-loop (webhook, ask_user_question, manual)N/A
toolDirect tool callN/A
externalREST API, gRPC, message queueN/A

Branch orchestration types map to Python patterns:

  • sequential: chained await calls
  • parallel: asyncio.gather()
  • conditional: if/elif routing
  • loop: for with termination condition

See references/agent_sdk_mapping.md for complete mapping rules.

Interactive Visualizer (MCP App)

This plugin includes an MCP App server that provides interactive tree visualization. When the mece-decomposer MCP server is connected, four MCP tools are available:

MCP ToolPurpose
mece-decomposeRender decomposition as interactive collapsible tree with score gauges
mece-validateDisplay validation report with clickable issue navigation
mece-refine-nodeEdit a node from the UI (app-only, not model-invoked)
mece-export-sdkPreview generated Agent SDK code with copy button

On surfaces with MCP App support (Claude Desktop, Cowork, Claude.ai), these display a React UI. On CLI surfaces, they return text summaries.

The MCP server starts automatically when this plugin is installed. The bundled server at mcp-app/dist/index.cjs is self-contained (no node_modules needed).

Surface Compatibility

This plugin uses a stdio MCP server (auto-started by Claude Code). Consequences:

  • CLI, Desktop, VS Code: All 4 MCP tools available. Text fallback returned on tool calls.
  • Cowork: Full MCP App UI (interactive React tree). Preferred surface for interactive decomposition.
  • Claude.ai: MCP App UI not available (requires HTTP transport). Text fallback only.
  • Agent SDK (headless): All tools callable programmatically. Text fallback returned.

Output Schema

The decomposition JSON schema is defined in references/output_schema.md. Key structure:

{
  "metadata": { "scope", "trigger", "completion_criteria", "decomposition_dimension", ... },
  "tree": { "id", "label", "node_type", "children|atom_spec", ... },
  "cross_branch_dependencies": [{ "from_id", "to_id", "dependency_type", ... }],
  "validation_summary": { "me_score", "ce_score", "overall_score", "issues", ... }
}

Structural Validation

Deterministic validation via script:

uv run mece-decomposer/skills/mece-decomposer/scripts/validate_mece.py <decomposition.json>

References

ReferencePurpose
references/output_schema.mdFull JSON schema for decomposition output
references/decomposition_methodology.mdStep-by-step decomposition procedure
references/sme_interview_protocol.mdSME interview protocol (5 phases)
references/validation_heuristics.mdME/CE scoring rubrics and depth-adaptive rigor
references/agent_sdk_mapping.mdTree element to SDK primitive mapping rules
scripts/validate_mece.pyDeterministic structural validation

Credits

Concept by Ron Zika.

Stats
Parent Repo Stars0
Parent Repo Forks0
Last CommitMar 31, 2026