Provides guidance on Cursor ↔ Claude Code 2-agent workflow. Use when user mentions ワークフローについて, Cursorとの連携, 作業の流れ, 2-agent workflow, collaboration. Do NOT load for: 実装作業, ワークフロー設定, ハンドオフ実行.
/plugin marketplace add Chachamaru127/claude-code-harness/plugin install claude-code-harness@claude-code-harness-marketplaceThis skill is limited to using the following tools:
examples/typical-workflow.mdreferences/commands.mdCursor ↔ Claude Code 2エージェントワークフローのガイダンスを提供するスキル。
このスキルは以下のフレーズで起動します:
このスキルは、Cursor(PM)と Claude Code(Worker)の役割分担と連携方法を説明します。
| エージェント | 役割 | 責務 |
|---|---|---|
| Cursor | PM(プロジェクトマネージャー) | タスク割り当て、レビュー、本番デプロイ判断 |
| Claude Code | Worker(作業者) | 実装、テスト、CI修正、staging デプロイ |
┌─────────────────────────────────────────────────────────┐
│ Cursor (PM) │
│ ・タスクを Plans.md に追加 │
│ ・Claude Code に作業を依頼(/handoff-to-claude) │
│ ・完了報告をレビュー │
│ ・本番デプロイの判断 │
└─────────────────────┬───────────────────────────────────┘
│ タスク依頼
▼
┌─────────────────────────────────────────────────────────┐
│ Claude Code (Worker) │
│ ・/work でタスク実行(並列実行対応) │
│ ・実装 → テスト → コミット │
│ ・CI 失敗時は自動修正(3回まで) │
│ ・/handoff-to-cursor で完了報告 │
└─────────────────────┬───────────────────────────────────┘
│ 完了報告
▼
┌─────────────────────────────────────────────────────────┐
│ Cursor (PM) │
│ ・変更内容を確認 │
│ ・staging 動作確認 │
│ ・本番デプロイ実行(承認後) │
└─────────────────────────────────────────────────────────┘
| マーカー | 意味 | 設定者 |
|---|---|---|
pm:依頼中 | PM から依頼(互換: cursor:依頼中) | PM(Cursor/PM Claude) |
cc:TODO | Claude Code 未着手 | どちらでも |
cc:WIP | Claude Code 作業中 | Claude Code |
cc:完了 | Claude Code 完了 | Claude Code |
pm:確認済 | PM 確認完了(互換: cursor:確認済) | PM(Cursor/PM Claude) |
cursor:依頼中 | (互換)pm:依頼中 と同義 | Cursor |
cursor:確認済 | (互換)pm:確認済 と同義 | Cursor |
blocked | ブロック中 | どちらでも |
pm:依頼中 → cc:WIP → cc:完了 → pm:確認済
| コマンド | 用途 |
|---|---|
/harness-init | プロジェクトセットアップ |
/plan-with-agent | 計画・タスク分解 |
/work | タスク実行(並列実行対応) |
/handoff-to-cursor | 完了報告(Cursor PMへ) |
/sync-status | 状態確認 |
| スキル | トリガー例 |
|---|---|
handoff-to-pm | 「PMに完了報告」 |
handoff-to-impl | 「実装役に渡して」 |
| コマンド | 用途 |
|---|---|
/handoff-to-claude | Claude Code にタスク依頼 |
/review-cc-work | 完了報告のレビュー |
CI が 3回連続で失敗した場合:
A: 一人で作業する場合も、Plans.md でタスク管理することを推奨します。 本番デプロイは手動で慎重に行ってください。
A: Cursor に確認を依頼するか、/sync-status で現状を整理してください。
A: 3回以上は自動修正せず、Cursor にエスカレーションしてください。
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.