Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

step-01b-continue.md 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. # Step 1b: Workflow Continuation Handler
  2. ## MANDATORY EXECUTION RULES (READ FIRST):
  3. - 🛑 NEVER generate content without user input
  4. - 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
  5. - 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
  6. - ✅ ALWAYS treat this as collaborative discovery between architectural peers
  7. - 📋 YOU ARE A FACILITATOR, not a content generator
  8. - 💬 FOCUS on understanding current state and getting user confirmation
  9. - 🚪 HANDLE workflow resumption smoothly and transparently
  10. - ⚠️ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed
  11. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  12. ## EXECUTION PROTOCOLS:
  13. - 🎯 Show your analysis before taking any action
  14. - 📖 Read existing document completely to understand current state
  15. - 💾 Update frontmatter to reflect continuation
  16. - 🚫 FORBIDDEN to proceed to next step without user confirmation
  17. ## CONTEXT BOUNDARIES:
  18. - Existing document and frontmatter are available
  19. - Input documents already loaded should be in frontmatter `inputDocuments`
  20. - Steps already completed are in `stepsCompleted` array
  21. - Focus on understanding where we left off
  22. ## YOUR TASK:
  23. Handle workflow continuation by analyzing existing work and guiding the user to resume at the appropriate step.
  24. ## CONTINUATION SEQUENCE:
  25. ### 1. Analyze Current Document State
  26. Read the existing architecture document completely and analyze:
  27. **Frontmatter Analysis:**
  28. - `stepsCompleted`: What steps have been done
  29. - `inputDocuments`: What documents were loaded
  30. - `lastStep`: Last step that was executed
  31. - `project_name`, `user_name`, `date`: Basic context
  32. **Content Analysis:**
  33. - What sections exist in the document
  34. - What architectural decisions have been made
  35. - What appears incomplete or in progress
  36. - Any TODOs or placeholders remaining
  37. ### 2. Present Continuation Summary
  38. Show the user their current progress:
  39. "Welcome back {{user_name}}! I found your Architecture work for {{project_name}}.
  40. **Current Progress:**
  41. - Steps completed: {{stepsCompleted list}}
  42. - Last step worked on: Step {{lastStep}}
  43. - Input documents loaded: {{number of inputDocuments}} files
  44. **Document Sections Found:**
  45. {list all H2/H3 sections found in the document}
  46. {if_incomplete_sections}
  47. **Incomplete Areas:**
  48. - {areas that appear incomplete or have placeholders}
  49. {/if_incomplete_sections}
  50. **What would you like to do?**
  51. [R] Resume from where we left off
  52. [C] Continue to next logical step
  53. [O] Overview of all remaining steps
  54. [X] Start over (will overwrite existing work)
  55. "
  56. ### 3. Handle User Choice
  57. #### If 'R' (Resume from where we left off):
  58. - Identify the next step based on `stepsCompleted`
  59. - Load the appropriate step file to continue
  60. - Example: If `stepsCompleted: [1, 2, 3]`, load `./step-04-decisions.md`
  61. #### If 'C' (Continue to next logical step):
  62. - Analyze the document content to determine logical next step
  63. - May need to review content quality and completeness
  64. - If content seems complete for current step, advance to next
  65. - If content seems incomplete, suggest staying on current step
  66. #### If 'O' (Overview of all remaining steps):
  67. - Provide brief description of all remaining steps
  68. - Let user choose which step to work on
  69. - Don't assume sequential progression is always best
  70. #### If 'X' (Start over):
  71. - Confirm: "This will delete all existing architectural decisions. Are you sure? (y/n)"
  72. - If confirmed: Delete existing document and read fully and follow: `./step-01-init.md`
  73. - If not confirmed: Return to continuation menu
  74. ### 4. Navigate to Selected Step
  75. After user makes choice:
  76. **Load the selected step file:**
  77. - Update frontmatter `lastStep` to reflect current navigation
  78. - Execute the selected step file
  79. - Let that step handle the detailed continuation logic
  80. **State Preservation:**
  81. - Maintain all existing content in the document
  82. - Keep `stepsCompleted` accurate
  83. - Track the resumption in workflow status
  84. ### 5. Special Continuation Cases
  85. #### If `stepsCompleted` is empty but document has content:
  86. - This suggests an interrupted workflow
  87. - Ask user: "I see the document has content but no steps are marked as complete. Should I analyze what's here and set the appropriate step status?"
  88. #### If document appears corrupted or incomplete:
  89. - Ask user: "The document seems incomplete. Would you like me to try to recover what's here, or would you prefer to start fresh?"
  90. #### If document is complete but workflow not marked as done:
  91. - Ask user: "The architecture looks complete! Should I mark this workflow as finished, or is there more you'd like to work on?"
  92. ## SUCCESS METRICS:
  93. ✅ Existing document state properly analyzed and understood
  94. ✅ User presented with clear continuation options
  95. ✅ User choice handled appropriately and transparently
  96. ✅ Workflow state preserved and updated correctly
  97. ✅ Navigation to appropriate step handled smoothly
  98. ## FAILURE MODES:
  99. ❌ Not reading the complete existing document before making suggestions
  100. ❌ Losing track of what steps were actually completed
  101. ❌ Automatically proceeding without user confirmation of next steps
  102. ❌ Not checking for incomplete or placeholder content
  103. ❌ Losing existing document content during resumption
  104. ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
  105. ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
  106. ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
  107. ## NEXT STEP:
  108. After user selects their continuation option, load the appropriate step file based on their choice. The step file will handle the detailed work from that point forward.
  109. Valid step files to load:
  110. - `./step-02-context.md`
  111. - `./step-03-starter.md`
  112. - `./step-04-decisions.md`
  113. - `./step-05-patterns.md`
  114. - `./step-06-structure.md`
  115. - `./step-07-validation.md`
  116. - `./step-08-complete.md`
  117. Remember: The goal is smooth, transparent resumption that respects the work already done while giving the user control over how to proceed.