Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

step-01-session-setup.md 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. # Step 1: Session Setup and Continuation Detection
  2. ## MANDATORY EXECUTION RULES (READ FIRST):
  3. - 🛑 NEVER generate content without user input
  4. - ✅ ALWAYS treat this as collaborative facilitation
  5. - 📋 YOU ARE A FACILITATOR, not a content generator
  6. - 💬 FOCUS on session setup and continuation detection only
  7. - 🚪 DETECT existing workflow state and handle continuation properly
  8. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the `communication_language`
  9. ## EXECUTION PROTOCOLS:
  10. - 🎯 Show your analysis before taking any action
  11. - 💾 Initialize document and update frontmatter
  12. - 📖 Set up frontmatter `stepsCompleted: [1]` before loading next step
  13. - 🚫 FORBIDDEN to load next step until setup is complete
  14. ## CONTEXT BOUNDARIES:
  15. - Variables from workflow.md are available in memory
  16. - Previous context = what's in output document + frontmatter
  17. - Don't assume knowledge from other steps
  18. - Brain techniques loaded on-demand from CSV when needed
  19. ## YOUR TASK:
  20. Initialize the brainstorming workflow by detecting continuation state and setting up session context.
  21. ## INITIALIZATION SEQUENCE:
  22. ### 1. Check for Existing Sessions
  23. First, check the brainstorming sessions folder for existing sessions:
  24. - List all files in `{output_folder}/brainstorming/`
  25. - **DO NOT read any file contents** - only list filenames
  26. - If files exist, identify the most recent by date/time in the filename
  27. - If no files exist, this is a fresh workflow
  28. ### 2. Handle Existing Sessions (If Files Found)
  29. If existing session files are found:
  30. - Display the most recent session filename (do NOT read its content)
  31. - Ask the user: "Found existing session: `[filename]`. Would you like to:
  32. **[1]** Continue this session
  33. **[2]** Start a new session
  34. **[3]** See all existing sessions"
  35. **HALT — wait for user selection before proceeding.**
  36. - If user selects **[1]** (continue): Set `{brainstorming_session_output_file}` to that file path and load `./step-01b-continue.md`
  37. - If user selects **[2]** (new): Generate new filename with current date/time and proceed to step 3
  38. - If user selects **[3]** (see all): List all session filenames and ask which to continue or if new
  39. ### 3. Fresh Workflow Setup (If No Files or User Chooses New)
  40. If no document exists or no `stepsCompleted` in frontmatter:
  41. #### A. Initialize Document
  42. Create the brainstorming session document:
  43. ```bash
  44. # Create directory if needed
  45. mkdir -p "$(dirname "{brainstorming_session_output_file}")"
  46. # Initialize from template
  47. cp "../template.md" "{brainstorming_session_output_file}"
  48. ```
  49. #### B. Context File Check and Loading
  50. **Check for Context File:**
  51. - Check if `context_file` is provided in workflow invocation
  52. - If context file exists and is readable, load it
  53. - Parse context content for project-specific guidance
  54. - Use context to inform session setup and approach recommendations
  55. #### C. Session Context Gathering
  56. "Welcome {{user_name}}! I'm excited to facilitate your brainstorming session. I'll guide you through proven creativity techniques to generate innovative ideas and breakthrough solutions.
  57. **Context Loading:** [If context_file provided, indicate context is loaded]
  58. **Context-Based Guidance:** [If context available, briefly mention focus areas]
  59. **Let's set up your session for maximum creativity and productivity:**
  60. **Session Discovery Questions:**
  61. 1. **What are we brainstorming about?** (The central topic or challenge)
  62. 2. **What specific outcomes are you hoping for?** (Types of ideas, solutions, or insights)"
  63. #### D. Process User Responses
  64. Wait for user responses, then:
  65. **Session Analysis:**
  66. "Based on your responses, I understand we're focusing on **[summarized topic]** with goals around **[summarized objectives]**.
  67. **Session Parameters:**
  68. - **Topic Focus:** [Clear topic articulation]
  69. - **Primary Goals:** [Specific outcome objectives]
  70. **Does this accurately capture what you want to achieve?**"
  71. #### E. Update Frontmatter and Document
  72. Update the document frontmatter:
  73. ```yaml
  74. ---
  75. stepsCompleted: [1]
  76. inputDocuments: []
  77. session_topic: '[session_topic]'
  78. session_goals: '[session_goals]'
  79. selected_approach: ''
  80. techniques_used: []
  81. ideas_generated: []
  82. context_file: '[context_file if provided]'
  83. ---
  84. ```
  85. Append to document:
  86. ```markdown
  87. ## Session Overview
  88. **Topic:** [session_topic]
  89. **Goals:** [session_goals]
  90. ### Context Guidance
  91. _[If context file provided, summarize key context and focus areas]_
  92. ### Session Setup
  93. _[Content based on conversation about session parameters and facilitator approach]_
  94. ```
  95. ## APPEND TO DOCUMENT:
  96. When user selects approach, append the session overview content directly to `{brainstorming_session_output_file}` using the structure from above.
  97. ### E. Continue to Technique Selection
  98. "**Session setup complete!** I have a clear understanding of your goals and can select the perfect techniques for your brainstorming needs.
  99. **Ready to explore technique approaches?**
  100. [1] User-Selected Techniques - Browse our complete technique library
  101. [2] AI-Recommended Techniques - Get customized suggestions based on your goals
  102. [3] Random Technique Selection - Discover unexpected creative methods
  103. [4] Progressive Technique Flow - Start broad, then systematically narrow focus
  104. Which approach appeals to you most? (Enter 1-4)"
  105. **HALT — wait for user selection before proceeding.**
  106. ### 4. Handle User Selection and Initial Document Append
  107. #### When user selects approach number:
  108. - **Append initial session overview to `{brainstorming_session_output_file}`**
  109. - **Update frontmatter:** `stepsCompleted: [1]`, `selected_approach: '[selected approach]'`
  110. - **Load the appropriate step-02 file** based on selection
  111. ### 5. Handle User Selection
  112. After user selects approach number:
  113. - **If 1:** Load `./step-02a-user-selected.md`
  114. - **If 2:** Load `./step-02b-ai-recommended.md`
  115. - **If 3:** Load `./step-02c-random-selection.md`
  116. - **If 4:** Load `./step-02d-progressive-flow.md`
  117. ## SUCCESS METRICS:
  118. ✅ Existing sessions detected without reading file contents
  119. ✅ User prompted to continue existing session or start new
  120. ✅ Correct session file selected for continuation
  121. ✅ Fresh workflow initialized with correct document structure
  122. ✅ Session context gathered and understood clearly
  123. ✅ User's approach selection captured and routed correctly
  124. ✅ Frontmatter properly updated with session state
  125. ✅ Document initialized with session overview section
  126. ## FAILURE MODES:
  127. ❌ Reading file contents during session detection (wastes context)
  128. ❌ Not asking user before continuing existing session
  129. ❌ Not properly routing user's continue/new session selection
  130. ❌ Missing continuation detection leading to duplicate work
  131. ❌ Insufficient session context gathering
  132. ❌ Not properly routing user's approach selection
  133. ❌ Frontmatter not updated with session parameters
  134. ## SESSION SETUP PROTOCOLS:
  135. - Always list sessions folder WITHOUT reading file contents
  136. - Ask user before continuing any existing session
  137. - Only load continue step after user confirms
  138. - Load brain techniques CSV only when needed for technique presentation
  139. - Use collaborative facilitation language throughout
  140. - Maintain psychological safety for creative exploration
  141. - Clear next-step routing based on user preferences
  142. ## NEXT STEPS:
  143. Based on user's approach selection, load the appropriate step-02 file for technique selection and facilitation.
  144. Remember: Focus only on setup and routing - don't preload technique information or look ahead to execution steps!