{
  "id": "flapbase:topic-to-social-post",
  "source": "flapbase",
  "readOnly": true,
  "name": "話題から SNS の投稿を作る",
  "purpose": "話題から出典付きの下書き・人の投稿・数字の振り返りまで",
  "shape": "operation",
  "steps": [
    {
      "key": "choose",
      "title": "話題を選ぶ",
      "phase": "plan",
      "stepRef": "site.news.choose",
      "kind": "task",
      "acceptance": "human_acceptance",
      "deliverableKinds": [],
      "performer": "human",
      "agentPermission": "propose",
      "automation": {
        "executor": "human",
        "approval": "each_time",
        "trigger": "manual"
      },
      "procedure": {
        "what": "話題を選ぶ",
        "how": "topics_list の候補3つを /posts の「話題から投稿を作る」で読み、人が1つ選ぶ。MCP は project.decision.request で選択を依頼する。",
        "verify": "人が選んだ話題のIDと出典のURLがある",
        "tools": [
          "topics_list",
          "topic_get",
          "project.decision.request"
        ]
      },
      "startOffsetDays": null,
      "dueOffsetDays": null
    },
    {
      "key": "draft",
      "title": "投稿の下書きを作る",
      "phase": "create",
      "stepRef": null,
      "kind": "deliverable",
      "acceptance": "human_acceptance",
      "deliverableKinds": [
        "social-post-draft"
      ],
      "performer": "agent",
      "agentPermission": "draft",
      "automation": {
        "executor": "agent",
        "approval": "each_time",
        "trigger": "proposal_approval"
      },
      "procedure": {
        "what": "投稿の下書きを作る",
        "how": "/posts の「この話題で投稿を作る」から、日本語の題・要約・出典のURLと確認済みの事業の事実を copy_assist に渡す。原稿と金額を人が承認し、X・Instagram の下書きを保存する。要約をそのまま公開しない。数・名前は材料にある物だけ。雰囲気の一言にせず、店名・商品・読み手の得・次の行動を明示する。",
        "verify": "下書きに出典URLと話題のIDが残り、材料にない数・名前がない",
        "tools": [
          "copy_assist",
          "/posts"
        ]
      },
      "startOffsetDays": null,
      "dueOffsetDays": null
    },
    {
      "key": "image",
      "title": "Design で画像を作る",
      "phase": "create",
      "stepRef": "design.image.generate",
      "kind": "deliverable",
      "acceptance": "human_acceptance",
      "deliverableKinds": [
        "design"
      ],
      "performer": "agent",
      "agentPermission": "draft",
      "automation": {
        "executor": "agent",
        "approval": "each_time",
        "trigger": "proposal_approval"
      },
      "procedure": {
        "what": "Design で画像を作る",
        "how": "保存した投稿の「制作」で Design を開き、確認した原稿に合う画像を作る。「投稿に付ける」で同じ下書きへ戻す。",
        "verify": "Design の保存済み画像が投稿に付いている",
        "tools": [
          "design_preview",
          "/posts"
        ]
      },
      "startOffsetDays": null,
      "dueOffsetDays": null
    },
    {
      "key": "review",
      "title": "人が確かめる",
      "phase": "create",
      "stepRef": null,
      "kind": "deliverable",
      "acceptance": "human_acceptance",
      "deliverableKinds": [],
      "performer": "human",
      "agentPermission": "propose",
      "automation": {
        "executor": "human",
        "approval": "each_time",
        "trigger": "manual"
      },
      "procedure": {
        "what": "人が確かめる",
        "how": "/posts の「制作」で媒体ごとの文・画像・出典を開く。事実と権利、店名・商品・得・次の行動を確かめ、原稿を確定する。工程の成果物を受け入れるのは人。",
        "verify": "人が原稿と画像を確認し、受け入れた",
        "tools": [
          "/posts"
        ]
      },
      "startOffsetDays": null,
      "dueOffsetDays": null
    },
    {
      "key": "post",
      "title": "人が投稿して「投稿した」を押す",
      "phase": "publish",
      "stepRef": null,
      "kind": "task",
      "acceptance": "human_acceptance",
      "deliverableKinds": [],
      "performer": "human",
      "agentPermission": "propose",
      "automation": {
        "executor": "human",
        "approval": "each_time",
        "trigger": "manual"
      },
      "procedure": {
        "what": "人が投稿して「投稿した」を押す",
        "how": "/posts の「発信」で文と画像を取り出し、人が X・Instagram に投稿する。各媒体の「投稿した」を押し、投稿URLを残す。予約やAPIの送信は使わない。",
        "verify": "両媒体の投稿記録とURLが保存された",
        "tools": [
          "/posts"
        ]
      },
      "startOffsetDays": null,
      "dueOffsetDays": null
    },
    {
      "key": "measure",
      "title": "数を読む",
      "phase": "analyze",
      "stepRef": null,
      "kind": "task",
      "acceptance": "human_acceptance",
      "deliverableKinds": [],
      "performer": "human",
      "agentPermission": "propose",
      "automation": {
        "executor": "human",
        "approval": "each_time",
        "trigger": "manual"
      },
      "procedure": {
        "what": "数を読む",
        "how": "/posts の「改善」で、人がSNSで確かめた表示・いいね・保存・クリックなどの数を入れる。前の投稿と比べ、次に試すことを工程のメモに残す。",
        "verify": "入力した数が同じ投稿の改善画面に残った",
        "tools": [
          "/posts",
          "project.workitem.note"
        ]
      },
      "startOffsetDays": null,
      "dueOffsetDays": null
    }
  ],
  "transitions": [
    {
      "source": "choose",
      "target": "draft",
      "kind": "next"
    },
    {
      "source": "draft",
      "target": "image",
      "kind": "next"
    },
    {
      "source": "image",
      "target": "review",
      "kind": "next"
    },
    {
      "source": "review",
      "target": "post",
      "kind": "next"
    },
    {
      "source": "post",
      "target": "measure",
      "kind": "next"
    }
  ],
  "origin": {
    "kind": "flapbase",
    "patternId": "topic-to-social-post"
  },
  "version": 1,
  "createdAt": null,
  "archivedAt": null
}
