Rules(basic/00_master_rules.mdc・basic/02_pmbok_research.mdc)に準拠し、TAM/SAM/SOMの試算と、Googleスプレッドシートで再計算可能なCSV・操作手順、仮置き数字の蓋然性(根拠URL付き)を自動生成します。
- trigger: "(市場規模推定|Market Size|TAM|SAM|SOM)"
priority: high
steps:
- name: "collect_market_inputs"
action: "ask_questions"
questions:
- key: "project_name"
question: "調査対象のプロジェクト名を入力してください"
required: true
- key: "region"
question: "対象地域を入力してください(例:日本、北米、グローバル)"
required: true
- key: "company_threshold"
question: "企業規模の閾値(例:従業者500名以上)"
required: false
- key: "enterprise_companies"
question: "該当企業数(分かる範囲で、未入力可)"
required: false
- key: "seats_per_company"
question: "初期対象席数/社(例:20)"
required: false
default: 20
- key: "seat_price_month"
question: "席課金(月額/席)(例:5000)"
required: false
default: 5000
- key: "platform_fee_year"
question: "プラットフォーム年額(SSO/監査/ガバナンス等)(例:1000000)"
required: false
default: 1000000
- key: "adoption_rates"
question: "シナリオ別採用率(保守/標準/強気をカンマ区切りで、例:0.03,0.07,0.15)"
required: false
default: "0.03,0.07,0.15"
- key: "scenario_seats"
question: "シナリオ別席数/社(保守/標準/強気をカンマ区切りで、例:8,15,30)"
required: false
default: "8,15,30"
store_as: "ms_params"
- name: "confirm_market_calc"
action: "confirm"
message: |
以下の設定で市場規模推定を実行します:
プロジェクト: {{ms_params.project_name}}
地域: {{ms_params.region}}
企業閾値: {{ms_params.company_threshold}}
企業数(仮): {{ms_params.enterprise_companies}}
席/社: {{ms_params.seats_per_company}}
席課金(月/席): {{ms_params.seat_price_month}}
PF年額: {{ms_params.platform_fee_year}}
採用率(保守/標準/強気): {{ms_params.adoption_rates}}
席数(保守/標準/強気): {{ms_params.scenario_seats}}
- name: "create_market_size_draft"
action: "edit_file"
path: "{{patterns.flow_date}}/market_size_estimation.md"
message: "TAM/SAM/SOMの枠組みと式をFlowに出力します"
content: |
---
doc_targets: [market_size_estimation, pricing, roadmap]
importance: 5
program: {{program_id}}
project: {{ms_params.project_name}}
date: {{today}}
---
# 市場規模推定(TAM/SAM/SOM) - {{ms_params.project_name}}
## 入力パラメータ
- 地域: {{ms_params.region}}
- 企業閾値: {{ms_params.company_threshold}}
- 企業数(仮): {{ms_params.enterprise_companies}}
- 席/社(初期): {{ms_params.seats_per_company}}
- 席課金(月/席): {{ms_params.seat_price_month}}
- PF年額: {{ms_params.platform_fee_year}}
- 採用率(保守,標準,強気): {{ms_params.adoption_rates}}
- 席数/社(保守,標準,強気): {{ms_params.scenario_seats}}
## 式
- 年間/社 = (席/社 × 席課金 × 12) + PF年額
- TAM(ウェッジ) = 企業数 × 年間/社(初期席数)
- TAM(拡張例) = 企業数 × ((200席 × 席課金 × 12) + PF年額)
- SAM = TAM(ウェッジ) × 到達率(例: 40%)
- SOM(シナリオ別) = 採用社数 × 年間/社(各シナリオ席数)
※ Sheets用CSVと操作手順は同フォルダ内 `gsheets/` に出力します。
- name: "create_gsheets_folder"
action: "execute_shell"
command: "mkdir -p {{patterns.flow_date}}/gsheets"
- name: "create_params_csv"
action: "edit_file"
path: "{{patterns.flow_date}}/gsheets/market_size_params.csv"
content: |
param,value
region,{{ms_params.region}}
enterprise_companies,{{ms_params.enterprise_companies}}
seats_per_company,{{ms_params.seats_per_company}}
seat_price_month,{{ms_params.seat_price_month}}
platform_fee_year,{{ms_params.platform_fee_year}}
months,12