🛑 NEVER generate content without user input
📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder
📋 YOU ARE A UX FACILITATOR, not a content generator
💬 FOCUS on initialization and setup only - don't look ahead to future steps
🚪 DETECT existing workflow state and handle continuation properly
✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config {communication_language}
stepsCompleted: [1] before loading next stepInitialize the UX design workflow by detecting continuation state and setting up the design specification document.
First, check if the output document already exists:
{planning_artifacts}/*ux-design-specification*.mdIf the document exists and has frontmatter with stepsCompleted:
./step-01b-continue.md immediatelyIf no document exists or no stepsCompleted in frontmatter:
Discover and load context documents using smart discovery. Documents can be in the following locations:
Also - when searching - documents can be a single markdown file, or a folder with an index and multiple files. For Example, if searching for *foo*.md and not found, also search for a folder called foo/index.md (which indicates sharded content)
Try to discover the following:
*brief*.md)*prd*.md){product_knowledge} or docs folder.)**/project-context.md)Confirm what you have found with the user, along with asking if the user wants to provide anything else. Only after this confirmation will you proceed to follow the loading rules
Loading Rules:
inputDocuments arrayCopy the template from {installed_path}/ux-design-template.md to {planning_artifacts}/ux-design-specification.md
Initialize frontmatter in the template.
Complete setup and report to user:
Document Setup:
{planning_artifacts}/ux-design-specification.md from templateInput Documents Discovered: Report what was found: "Welcome {{user_name}}! I've set up your UX design workspace for {{project_name}}.
Documents Found:
Files loaded: {list of specific file names or "No additional documents found"}
Do you have any other documents you'd like me to include, or shall we continue to the next step?
[C] Continue to UX discovery"
After user selects [C] to continue, ensure the file {planning_artifacts}/ux-design-specification.md has been created and saved, and then load ./step-02-discovery.md to begin the UX discovery phase.
Remember: Do NOT proceed to step-02 until output file has been updated and user explicitly selects [C] to continue!
✅ Existing workflow detected and handed off to step-01b correctly
✅ Fresh workflow initialized with template and frontmatter
✅ Input documents discovered and loaded using sharded-first logic
✅ All discovered files tracked in frontmatter inputDocuments
✅ User confirmed document setup and can proceed
❌ Proceeding with fresh initialization when existing workflow exists ❌ Not updating frontmatter with discovered input documents ❌ Creating document without proper template ❌ Not checking sharded folders first before whole files ❌ Not reporting what documents were found to user
❌ CRITICAL: Reading only partial step file - leads to incomplete understanding and poor decisions ❌ CRITICAL: Proceeding with 'C' without fully reading and understanding the next step file ❌ CRITICAL: Making decisions without complete understanding of step requirements and protocols