Rules(basic/01_pmbok_initiating.mdc)に準拠し、プロジェクト憲章のドラフトを作成します。既存のFlow文書から関連情報を自動収集し、回答を事前入力します。
- trigger: "プロジェクト憲章|プロジェクトチャーター"
priority: high
mode: "exclusive"
steps:
- name: "collect_existing_info"
action: "search_flow_files"
query:
doc_targets: "charter"
importance_gte: 3
lookback_days: 30
store_as: "charter_materials"
message: "プロジェクト憲章関連の既存情報を探しています..."
- name: "auto_prefill"
action: "prefill_question_answers"
target_questions: "basic/01_pmbok_initiating.mdc => charter_questions"
source: "{{charter_materials}}"
message: "見つかった情報を元に回答を自動入力しています..."
- name: "start_info_collection"
action: "call basic/01_pmbok_initiating.mdc => charter_questions"
message: "【プロジェクト憲章】の作成に必要な情報を収集します。以下の質問に回答してください。\\n※既存の情報から推測した回答をあらかじめ入力してあります。必要に応じて修正してください。特に決まっていなければ、おまかせといっていただければ、推測で内容を作成します"
- name: "wait_user_responses"
action: "wait_for_all_answers"
message: "必要な回答が揃うまで他のファイル作成を行いません。"
- name: "confirm_document_creation"
action: "confirm"
message: "収集した情報で「プロジェクト憲章」のドラフトを作成してよろしいですか?(はい/いいえ)"
- name: "create_draft"
action: "create_markdown_file"
path: "{{patterns.draft_charter}}"
template_reference: "basic/01_pmbok_initiating.mdc => charter_template"
message: "ドラフトを作成しました: {{patterns.draft_charter}}\\n必要に応じて修正・追記した後、Stockディレクトリへ確定反映できます。"