ヘルプ Top Getting Started MCP セットアップ Purple Red Blue Green Auth ユースケース Tools Errors Pricing トラブルシュート

Help / ユースケース

4 つの実用ユースケース

代表的なシナリオを 4 つ紹介します。各ユースケースは agent との会話例 + 実際に呼ばれる tool の流れで示します。

A. 開発タスクを Codens に投げて自動実装 — Purple Codens

手元のリポジトリで実装タスクを切り出し、Purple Codens の Fargate / VPS 上で Claude Code が自動実装 → PR 作成までを行います。複数タスクの並行実行も可能です。

User: 「auth-codens の login API に rate limiting を追加して、PR を出してほしい」 Agent: 1. 既存 project を確認(organization_id は credentials から自動解決) → purple_project({ action: "list_projects" }) 2. workflow run を作成して実行開始 → purple_workflow({ action: "create_workflow", project_id: "...", name: "Add rate limiting to login API", spec: { repository: "Corevice/auth-codens", base_branch: "develop", description: "Apply 10 req/min per IP using Redis-backed limiter. Add tests." } }) 3. 進捗を確認(status: pending → running → succeeded / failed) → purple_workflow({ action: "get_run_status", run_id: "..." }) 4. 完了後、PR URL を user に共有

B. バグ報告 → 自動修正 PR — Red → Purple chain

Sentry / 手動報告から検知したエラーを Red Codens で解析し、修正 plan を Purple Codens に提出して PR を生成します。Red 単独でも fix proposal を出せますが、複雑な fix は Purple chain が高品質です。

User: 「auth-codens のエラーを直して」 Agent: 1. Bug report を作成(auto_analyze=true で解析も同時にキック) → red_bug_report({ action: "create", project_id: "...", title: "Login endpoint returns 500 on empty password", description: "...", severity: "high", auto_analyze: true }) 2. 解析後、Bug fix plan を生成 → red_bug_fix_plan({ action: "generate", bug_id: "..." }) 3. 生成された plan を Purple に提出して PR 化 → red_bug_fix_plan({ action: "submit_to_purple", plan_id: "..." }) → PR URL: https://github.com/Corevice/.../pull/512

C. E2E テストを AI で自動生成 + 実行 — Blue Codens

自然言語の要件から E2E テスト(Playwright)を自動生成し、Blue 側で実行 → 結果を取得します。失敗時のトレースは Red にチェインして自動修正可能です。

User: 「green-codens の checkout flow に E2E テストを追加して」 Agent: 1. テスト生成 → blue_e2e_test({ action: "generate", project_id: "...", requirement: "Verify that a user can complete a checkout flow with an annual plan.", language: "playwright" }) 2. 実行 → blue_e2e_test({ action: "run", e2e_test_id: "..." }) 3. 結果取得 → blue_e2e_test({ action: "get_results", e2e_test_id: "..." }) // → { run_status, passed, failed, video_url, trace_url, ... }

D. 相談 → PRD 化 → 実装まで — Green → Purple

曖昧な要望を Green Codens が consultation → PRD → Plan の流れで構造化し、そのまま Purple Codens に提出して実装まで自動化します。Notion との link / unlink もサポート。

User: 「課金画面に年額プランの選択肢を増やしたい。要件整理から実装まで頼む」 Agent: 1. Consultation を開始してチャット → green_consultation({ action: "create_with_message", project_id: "...", title: "年額プラン選択 UI", content: "課金画面に年額プランの選択肢を増やしたい..." }) 2. Consultation を PRD に変換(テンプレ指定) → green_consultation({ action: "convert_to_prd", consultation_id: "...", template_id: "..." }) 3. PRD から Plan を生成し Purple に提出 → green_plan({ action: "generate_from_prd", prd_id: "..." }) → green_plan({ action: "submit_to_purple", plan_id: "..." }) 4. 完了後、PR URL を user に共有

次のステップ