# Shard Doc v1.1 ```xml MANDATORY: Execute ALL steps in the flow section IN EXACT ORDER DO NOT skip steps or change the sequence HALT immediately when halt-conditions are met Each <action> within <step> is a REQUIRED action to complete that step Sections outside flow (validation, output, critical-context) provide essential context - review and apply throughout execution First check if md-tree command is available If not available, ask user permission to install: npm install -g @kayvan/markdown-tree-parser Use the explode command to split the document # Install the tool (if needed) npm install -g @kayvan/markdown-tree-parser # Shard a document md-tree explode [source-document] [destination-folder] # Examples md-tree explode docs/prd.md docs/prd md-tree explode docs/architecture.md docs/architecture HALT if md-tree command fails and user declines installation HALT if source document does not exist at specified path HALT if destination folder exists and user does not confirm overwrite Error Handling If the md-tree command fails: 1. Check if the tool is installed globally 2. Ask user permission to install it 3. Retry the operation after installation ```