> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# PRD をスプリントチケットに落とし込む

export const UseCaseHero = ({title, description, prompt, category, features, devinUrl, agent, intent, playbookId, type}) => {
  const encodedPrompt = encodeURIComponent(prompt || '');
  const tag = 'docs-use-case-gallery';
  const utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=hero-cta';
  const agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  const devinHref = type === 'schedule' ? 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + (prompt ? '&prompt=' + encodedPrompt : '') : type === 'review' ? 'https://app.devin.ai/review?' + utm : agent === 'ada' ? 'https://app.devin.ai/search?' + utm + '&noSubmit=true' + (prompt ? '&prompt=' + encodedPrompt : '') : devinUrl ? devinUrl.includes('?') ? devinUrl + '&' + utm + agentParams : devinUrl + '?' + utm + agentParams : prompt ? 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encodedPrompt : 'https://app.devin.ai/?' + utm + agentParams;
  const buttonLabel = type === 'schedule' ? 'Schedule in Devin ↗' : type === 'review' ? 'Set Up Devin Review ↗' : agent === 'advanced' ? 'Try in Devin ↗' : agent === 'dana' ? 'Try in Dana ↗' : agent === 'ada' ? 'Try in Ask Devin ↗' : 'Try in Devin ↗';
  const featureList = features ? features.split(',').map(f => f.trim()) : [];
  return <div className="uc-hero">
      <div className="uc-hero-inner">
        <div className="uc-hero-left">
          <h1 className="uc-hero-title">{title}</h1>
          <p className="uc-hero-desc">{description}</p>
          <div>
            <a href={devinHref} target="_blank" rel="noopener noreferrer" className="try-in-devin-btn">
              {buttonLabel}
            </a>
          </div>
        </div>
        <div className="uc-hero-meta">
          <div className="uc-meta-item">
            <span className="uc-meta-label">Author</span>
            <span className="uc-meta-value">Cognition</span>
          </div>
          <div className="uc-meta-item">
            <span className="uc-meta-label">Category</span>
            <span className="uc-meta-value">{category}</span>
          </div>
          {featureList.length > 0 && <div className="uc-meta-item">
              <span className="uc-meta-label">Features</span>
              <span className="uc-meta-value">{featureList.join(', ')}</span>
            </div>}
        </div>
      </div>
    </div>;
};

export const PromptBlock = ({children, type, agent, intent, playbookId}) => {
  var utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=prompt-block';
  var tag = 'docs-use-case-gallery';
  var agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  var label = type === 'schedule' ? 'Schedule in Devin' : type === 'playbook' ? 'Create Playbook' : type === 'knowledge' ? 'Add to Knowledge' : agent === 'advanced' ? 'Try in Devin' : agent === 'dana' ? 'Try in Dana' : agent === 'ada' ? 'Try in Ask Devin' : 'Try in Devin';
  var buildUrl = function (text) {
    var encoded = encodeURIComponent(text);
    if (type === 'schedule') return 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + '&prompt=' + encoded;
    if (type === 'playbook') return 'https://app.devin.ai/settings/playbooks/create?' + utm + '&body=' + encoded;
    if (type === 'knowledge') return 'https://app.devin.ai/knowledge?' + utm + '&body=' + encoded;
    if (agent === 'ada') return 'https://app.devin.ai/search?' + utm + '&noSubmit=true&prompt=' + encoded;
    return 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encoded;
  };
  const ref = React.useRef(null);
  const [href, setHref] = React.useState('#');
  React.useEffect(() => {
    if (!ref.current) return;
    var codeEl = ref.current.querySelector('pre code');
    if (codeEl) {
      var text = codeEl.textContent.trim();
      if (text) setHref(buildUrl(text));
    }
    var header = ref.current.querySelector('[data-component-part="code-block-header"]');
    if (header && !header.querySelector('.prompt-block-devin-link')) {
      var link = document.createElement('a');
      link.href = href;
      link.target = '_blank';
      link.rel = 'noopener noreferrer';
      link.className = 'prompt-block-devin-link';
      link.style.cssText = 'display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#fff;font-size:11px;font-weight:500;padding:4px 10px;border-radius:6px;white-space:nowrap;background:#317CFF;transition:background 0.2s;margin-left:8px;';
      link.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg> ' + label;
      link.onmouseenter = function () {
        link.style.background = '#2968D9';
      };
      link.onmouseleave = function () {
        link.style.background = '#317CFF';
      };
      header.appendChild(link);
    }
    var existingLink = ref.current.querySelector('.prompt-block-devin-link');
    if (existingLink && href !== '#') existingLink.href = href;
  });
  return <div className="prompt-block" ref={ref}>{children}</div>;
};

<UseCaseHero title="PRD をスプリントチケットに変換" description="Notion の PRD を Devin に渡し、各作業パッケージに対するスコープが明確な Linear チケットを生成します。" prompt="この Notion ページ上の PRD を読んでください: [Notion の URL を貼り付け]。コードベースを調査して現在のアーキテクチャを理解し、そのうえでプロジェクトを独立した作業パッケージに分割してください。各作業パッケージごとに、説明、受け入れ条件、複雑さの見積もり (S/M/L)、および変更対象となるファイルの一覧を含む Linear チケットを作成してください。" category="プロジェクト管理" features="連携, MCP" />

<div className="uc-detail-wrapper">
  <Tip>手動で設定したくないですか？このページへのリンクを Devin のセッションに貼り付けて、設定をすべて行うよう依頼してください。</Tip>

  <Steps>
    <Step title="Notion と Linear を接続する">
      Devin は [Notion MCP](/ja/work-with-devin/mcp) を使って、Notion から直接あなたの PRD を読み取ります。**Settings > Connections > MCPサーバー** に移動し、**Notion** を探して **Enable** をクリックします。Notion ワークスペースへのアクセス許可を求められるので、PRD が保存されているワークスペースへの読み取りアクセスを付与してください。

      [Linear 連携](/ja/integrations/linear) も接続しておく必要があります。**Settings > Connections > Linear** に移動して **Connect** をクリックし、Devin にチケットを作成させたいチームを選択します。接続が完了すると、Devin は Linear のネイティブツールを自動的に利用できるようになり、別途 Linear MCP を用意する必要はありません。
    </Step>

    <Step title="Devin に PRD を指定する">
      Notion ページの URL を共有し、チケットをどのような構造にするかを Devin に正確に伝えます。Linear プロジェクト名、チケットのフォーマット、チームの慣習などを具体的に指定してください。

      <PromptBlock>
        ```txt PRD to tickets theme={null}
        この Notion ページ上の PRD を読んでください:
        https://notion.so/yourteam/user-profiles-v2-abc123

        現在のユーザープロファイルのアーキテクチャを理解するために
        コードベースを調査し、そのうえでこのプロジェクトを
        独立した作業パッケージに分割してください。

        各作業パッケージごとに、"User Profiles V2"
        プロジェクト内に次を含む Linear チケットを作成してください:
        - 変更内容とその必要性が明確にわかる説明
        - 受け入れ条件
        - 複雑さの見積もり (S/M/L)
        - 変更対象になりそうなファイルの一覧

        チケットは推奨される実装順に並べ、チケット間の依存関係があれば
        それも明記してください。
        ```
      </PromptBlock>

      チームで特定のチケットテンプレートを使用している場合は、毎回プロンプトに書かずに、それを [Knowledge](/ja/product-guides/knowledge) エントリとして追加してください。例: "すべてのエンジニアリングチケットには、Description、Acceptance Criteria、Technical Notes、T-shirt size estimate を含めること。" Devin は Knowledge をすべてのセッションに自動的に適用します。
    </Step>

    <Step title="チケットの分解結果を確認する">
      Devin は Notion MCP 経由で PRD 全体を読み取り、関連するアーキテクチャをマッピングするためにコードベースを検索したうえで、独立したコードの境界ごとにスコープされた Linear チケットを作成します。次のようなサマリーを出力します:

      | Ticket | Title                                                        | Size | Dependencies |
      | ------ | ------------------------------------------------------------ | ---- | ------------ |
      | UP-101 | Add avatar upload endpoint to `/api/users/avatar`            | S    | None         |
      | UP-102 | Create profile settings page in `src/pages/settings/profile` | M    | None         |
      | UP-103 | Migrate `users` table to support bio and social links        | M    | None         |
      | UP-104 | Build profile preview card component                         | S    | UP-103       |
      | UP-105 | Add public/private visibility toggle to profile settings     | M    | UP-103       |
      | UP-106 | Index new profile fields in Elasticsearch for user search    | L    | UP-103       |

      各 Linear チケットには、一般的な説明ではなく、実際の PRD とコードベースから抽出された受け入れ条件、ファイルパス、実装に関するメモが含まれます。
    </Step>

    <Step title="内容をブラッシュアップして実装を開始する">
      Linear 上のチケットを確認します。スコープが広すぎるチケットがある場合は、Devin に分割を依頼してください。準備ができたら、Linear でこれらの各チケットの担当者として Devin を割り当てて実装を開始するか、`!implement` ラベルを追加してデフォルトの実装プレイブックを使用できます。

      <PromptBlock playbookId="b6ba73c577084d2392720a2abf51dc26">
        ```txt Implement a ticket theme={null}
        UP-101: Add avatar upload endpoint to /api/users/avatar を実装してください。
        チケットの受け入れ条件に従ってください。完了したら PR を作成してください。
        ```
      </PromptBlock>
    </Step>
  </Steps>
</div>
