From mece-decomposer
Generate Claude Agent SDK Python code scaffolding from a validated MECE decomposition. Use when user says "export to Agent SDK", "generate agent code", "create SDK scaffolding", or wants to turn a decomposition tree into runnable Python code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mece-decomposer:exportThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate Claude Agent SDK Python code from a validated MECE decomposition tree.
Generate Claude Agent SDK Python code from a validated MECE decomposition tree.
/export <decomposition JSON or file path>
Examples:
/export after a /decompose session (exports the last output)/export output.json/export then paste decomposition JSONThe decomposition must pass validation first (overall score >= 0.70). If not validated, I'll run /validate first and show any issues.
Using the mapping rules from references/agent_sdk_mapping.md:
Agent definition per agent atom"""
Agent SDK scaffolding for: [Decomposition Scope]
Dimension: [temporal/functional/etc.]
"""
import asyncio
from agents import Agent, Runner, function_tool
# Node 1.1.1: Step Name
step_name_agent = Agent(
name="step-name",
model="claude-sonnet-4-6",
instructions="""...""",
tools=[...],
)
# Orchestration
async def execute_phase_1(input_data: str) -> str:
"""Phase 1 (sequential orchestration)"""
result = input_data
result = await execute_step_1(result)
result = await execute_step_2(result)
return result
async def main(input_data: str) -> str:
return await execute_root(input_data)
if __name__ == "__main__":
result = asyncio.run(main("initial input"))
print(result)
The mece-export-sdk MCP tool renders a preview panel with the generated code and a copy button.
main() entry point that executes the full tree/decompose or /interviewnpx claudepluginhub fblissjr/fb-claude-skills --plugin mece-decomposerGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.