managing-task-lifecycle
Use when starting, pausing, completing, or transitioning task status in the development workflow.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o managing-task-lifecycle.zip https://jpskill.com/download/17579.zip && unzip -o managing-task-lifecycle.zip && rm managing-task-lifecycle.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17579.zip -OutFile "$d\managing-task-lifecycle.zip"; Expand-Archive "$d\managing-task-lifecycle.zip" -DestinationPath $d -Force; ri "$d\managing-task-lifecycle.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
managing-task-lifecycle.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
managing-task-lifecycleフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 3
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
PairCoder タスクライフサイクル
意思決定ツリー: どのコマンドを使うべきか?
Trello は接続されていますか? (確認: bpsai-pair trello status)
│
├── YES → `ttask` コマンドを使用 (推奨)
│ ├── 開始: bpsai-pair ttask start TRELLO-XX
│ ├── 完了: bpsai-pair ttask done TRELLO-XX --summary "..." --list "Deployed/Done"
│ └── ブロック: bpsai-pair ttask block TRELLO-XX --reason "..."
│
└── NO → `task update` コマンドを使用
├── 開始: bpsai-pair task update TASK-XXX --status in_progress
├── 完了: bpsai-pair task update TASK-XXX --status done
└── ブロック: bpsai-pair task update TASK-XXX --status blocked
経験則: TRELLO-XX ID が見られる場合は、ttask を使用します。TASK-XXX ID しかない場合は、task update を使用します。
重要: 必ず CLI コマンドを使用する
タスクの状態変更は、フック(Trello 同期、タイマー、状態更新)をトリガーするために、必ず CLI を通して行う必要があります。
絶対にタスクファイルを直接編集したり、「完了としてマークする」などと言ったりせずに、コマンドを実行してください。
自動フック
CLI を介してタスクの状態を変更すると、以下のフックが自動的に実行されます。
task update --status in_progress 時:
start_timer- 時間追跡を開始しますsync_trello- カードを "In Progress" に移動しますupdate_state-state.mdの現在のフォーカスを更新します
task update --status done 時:
stop_timer- タイマーを停止し、期間を記録しますrecord_metrics- トークンの使用量とコストを記録しますrecord_velocity- スプリントベロシティを追跡しますsync_trello- カードを "Deployed/Done" に移動しますupdate_state-state.mdを更新しますcheck_unblocked- 新しくブロック解除されたタスクを識別します
task update --status blocked 時:
sync_trello- カードを "Issues/Tech Debt" に移動しますupdate_state-state.mdを更新します
Trello の手動更新、タイマーの開始/停止、state.md の更新は不要です。フックが処理します。
タスクの開始
bpsai-pair task update TASK-XXX --status in_progress
これは以下を行います:
- タスクファイルのステータスを更新します
- Trello カードを "In Progress" リストに移動します
- タイマーを開始します (実装されている場合)
state.mdの現在のフォーカスを更新します
作業中 (進捗状況の更新)
bpsai-pair ttask comment TASK-XXX "API エンドポイントを完了、テストを開始"
これは、ステータスを変更せずに Trello カードにコメントを追加します。以下に使用します:
- マイルストーンの更新
- 決定事項の記録
- チームへの進捗状況の可視化
タスクの完了
Trello プロジェクトの場合 (推奨)
ttask done を使用します。これはすべてを 1 つのコマンドで処理します:
bpsai-pair ttask done TRELLO-XX --summary "何が達成されたか" --list "Deployed/Done"
この単一のコマンドは以下を行います:
- ✓ Trello カードを "Deployed/Done" リストに移動します
- ✓ すべての受け入れ基準項目を自動的にチェックします
- ✓ カードに完了サマリーを追加します
- ✓ ローカルタスクファイルのステータスを更新します
- ✓ すべての完了フック (タイマー、メトリクス、
state.md) をトリガーします
task update --status done を別途実行する必要はありません - ttask done が処理します。
Trello を使用しないプロジェクトの場合
task update を使用します:
bpsai-pair task update TASK-XXX --status done
これは以下を行います:
- タスクファイルのステータスを更新します
- 完了フック (タイマー、メトリクス、
state.md) をトリガーします
よくある間違い
| 間違い | 間違いの理由 | 正しいアプローチ |
|---|---|---|
Trello プロジェクトで task update のみを使用する |
Trello カードの AC をチェックしない | 代わりに ttask done を使用する |
| Trello プロジェクトで両方のコマンドを使用する | 不要な重複 | ttask done のみを使用する |
Trello を使用しないプロジェクトで ttask を使用する |
コマンドが機能しない | task update を使用する |
クイックリファレンス
ローカルタスクコマンド (task)
ステータス変更にはこれらを使用します。すべてのフックをトリガーします。
| アクション | コマンド |
|---|---|
| タスクの開始 | bpsai-pair task update TASK-XXX --status in_progress |
| タスクの完了 | bpsai-pair task update TASK-XXX --status done |
| タスクのブロック | bpsai-pair task update TASK-XXX --status blocked |
| 次のタスクを表示 | bpsai-pair task next |
| 次のタスクを自動割り当て | bpsai-pair task auto-next |
| すべてのタスクをリスト表示 | bpsai-pair task list |
| タスクの詳細を表示 | bpsai-pair task show TASK-XXX |
Trello カードコマンド (ttask)
Trello の直接操作にはこれらを使用します。
| アクション | コマンド |
|---|---|
| Trello カードをリスト表示 | bpsai-pair ttask list |
| カードの詳細を表示 | bpsai-pair ttask show TRELLO-XX |
| カードを開始 | bpsai-pair ttask start TRELLO-XX |
| カードを完了 | bpsai-pair ttask done TRELLO-XX --summary "..." --list "Deployed/Done" |
| 受け入れ項目をチェック | bpsai-pair ttask check TRELLO-XX "item text" |
| 進捗状況のコメントを追加 | bpsai-pair ttask comment TRELLO-XX "message" |
| カードをブロック | bpsai-pair ttask block TRELLO-XX --reason "why" |
| カードをリストに移動 | bpsai-pair ttask move TRELLO-XX "List Name" |
task と ttask の使い分け
Trello 接続プロジェクトの場合 (推奨):
| シナリオ | コマンド |
|---|---|
| タスクの開始 | ttask start TRELLO-XX |
| 進捗状況の更新 | ttask comment TRELLO-XX "message" |
| タスクの完了 | ttask done TRELLO-XX --summary "..." --list "Deployed/Done" |
| タスクのブロック | ttask block TRELLO-XX --reason "..." |
Trello を使用しないプロジェクトの場合:
| シナリオ | コマンド |
|---|---|
| タスクの開始 | task update TASK-XXX --status in_progress |
| タスクの完了 | task update TASK-XXX --status done |
| タスクのブロック | task update TASK-XXX --status blocked |
重要な洞察: ttask コマンドは、Trello とローカルの状態の両方を処理します。ttask done の後に task update を実行する必要はありません。すべて処理されます。
タスクステータスの値
| ステータス | 意味 | Trello リスト |
|---|---|---|
pending |
未着手 | Backlog / Planned |
in_progress |
作業中 | In Progress |
blocked |
何かを待っている | Issues / Blocked |
review |
レビュー準備完了 | Review |
done |
完了 | Deployed / Done |
ワークフローチェックリスト
タスク開始時
- 実行:
bpsai-pair task update TASK-XXX --status in_progress - Trello カードが移動したことを確認
- 実装計画についてタスクファイルを読む
- 作業を開始
作業中
- 進捗状況のコメントを追加
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
PairCoder Task Lifecycle
Decision Tree: Which Command to Use?
Is Trello connected? (check: bpsai-pair trello status)
│
├── YES → Use `ttask` commands (primary)
│ ├── Start: bpsai-pair ttask start TRELLO-XX
│ ├── Complete: bpsai-pair ttask done TRELLO-XX --summary "..." --list "Deployed/Done"
│ └── Block: bpsai-pair ttask block TRELLO-XX --reason "..."
│
└── NO → Use `task update` commands
├── Start: bpsai-pair task update TASK-XXX --status in_progress
├── Complete: bpsai-pair task update TASK-XXX --status done
└── Block: bpsai-pair task update TASK-XXX --status blocked
Rule of thumb: If you see TRELLO-XX IDs, use ttask. If you only have TASK-XXX IDs, use task update.
CRITICAL: Always Use CLI Commands
Task state changes MUST go through the CLI to trigger hooks (Trello sync, timers, state updates).
Never just edit task files or say "marking as done" - run the command.
Automatic Hooks
When you change task status via CLI, these hooks fire automatically:
On task update --status in_progress:
start_timer- Begins time trackingsync_trello- Moves card to "In Progress"update_state- Updates state.md current focus
On task update --status done:
stop_timer- Stops timer, records durationrecord_metrics- Records token usage and costsrecord_velocity- Tracks sprint velocitysync_trello- Moves card to "Deployed/Done"update_state- Updates state.mdcheck_unblocked- Identifies newly unblocked tasks
On task update --status blocked:
sync_trello- Moves card to "Issues/Tech Debt"update_state- Updates state.md
You don't need to manually update Trello, start/stop timers, or refresh state.md - hooks handle it.
Starting a Task
bpsai-pair task update TASK-XXX --status in_progress
This will:
- Update task file status
- Move Trello card to "In Progress" list
- Start timer (when implemented)
- Update state.md current focus
During Work (Progress Updates)
bpsai-pair ttask comment TASK-XXX "Completed API endpoints, starting tests"
This adds a comment to the Trello card without changing status. Use for:
- Milestone updates
- Noting decisions
- Progress visibility for team
Completing a Task
For Trello Projects (Recommended)
Use ttask done - it handles everything in one command:
bpsai-pair ttask done TRELLO-XX --summary "What was accomplished" --list "Deployed/Done"
This single command will:
- ✓ Move Trello card to "Deployed/Done" list
- ✓ Auto-check ALL acceptance criteria items
- ✓ Add completion summary to card
- ✓ Update local task file status
- ✓ Trigger all completion hooks (timer, metrics, state.md)
You do NOT need to also run task update --status done - ttask done handles it.
For Non-Trello Projects
Use task update:
bpsai-pair task update TASK-XXX --status done
This will:
- Update task file status
- Trigger completion hooks (timer, metrics, state.md)
Common Mistakes
| Mistake | Why It's Wrong | Correct Approach |
|---|---|---|
Using only task update on Trello projects |
Doesn't check AC on Trello card | Use ttask done instead |
| Using both commands on Trello projects | Unnecessary duplication | Just use ttask done |
Using ttask on non-Trello projects |
Commands won't work | Use task update |
Quick Reference
Local Task Commands (task)
Use these for status changes - they trigger all hooks.
| Action | Command |
|---|---|
| Start task | bpsai-pair task update TASK-XXX --status in_progress |
| Complete task | bpsai-pair task update TASK-XXX --status done |
| Block task | bpsai-pair task update TASK-XXX --status blocked |
| Show next task | bpsai-pair task next |
| Auto-assign next | bpsai-pair task auto-next |
| List all tasks | bpsai-pair task list |
| Show task details | bpsai-pair task show TASK-XXX |
Trello Card Commands (ttask)
Use these for direct Trello operations.
| Action | Command |
|---|---|
| List Trello cards | bpsai-pair ttask list |
| Show card details | bpsai-pair ttask show TRELLO-XX |
| Start card | bpsai-pair ttask start TRELLO-XX |
| Complete card | bpsai-pair ttask done TRELLO-XX --summary "..." --list "Deployed/Done" |
| Check acceptance item | bpsai-pair ttask check TRELLO-XX "item text" |
| Add progress comment | bpsai-pair ttask comment TRELLO-XX "message" |
| Block card | bpsai-pair ttask block TRELLO-XX --reason "why" |
| Move card to list | bpsai-pair ttask move TRELLO-XX "List Name" |
When to Use task vs ttask
For Trello-connected projects (preferred):
| Scenario | Command |
|---|---|
| Starting a task | ttask start TRELLO-XX |
| Progress updates | ttask comment TRELLO-XX "message" |
| Completing a task | ttask done TRELLO-XX --summary "..." --list "Deployed/Done" |
| Blocking a task | ttask block TRELLO-XX --reason "..." |
For non-Trello projects:
| Scenario | Command |
|---|---|
| Starting a task | task update TASK-XXX --status in_progress |
| Completing a task | task update TASK-XXX --status done |
| Blocking a task | task update TASK-XXX --status blocked |
Key insight: ttask commands handle both Trello AND local state. You don't need to run task update after ttask done - it handles everything.
Task Status Values
| Status | Meaning | Trello List |
|---|---|---|
pending |
Not started | Backlog / Planned |
in_progress |
Currently working | In Progress |
blocked |
Waiting on something | Issues / Blocked |
review |
Ready for review | Review |
done |
Completed | Deployed / Done |
Workflow Checklist
When Starting a Task
- Run:
bpsai-pair task update TASK-XXX --status in_progress - Verify Trello card moved
- Read the task file for implementation plan
- Begin work
During Work
- Add progress comments:
bpsai-pair ttask comment TASK-XXX "status update" - Commit frequently with task ID in message
When Completing a Task
For Trello projects:
- Ensure tests pass:
pytest -v - Find card ID:
bpsai-pair ttask list - Complete:
bpsai-pair ttask done TRELLO-XX --summary "..." --list "Deployed/Done" - Update state.md with what was done
- Commit changes with task ID in message
For non-Trello projects:
- Ensure tests pass:
pytest -v - Complete:
bpsai-pair task update TASK-XXX --status done - Update state.md with what was done
- Commit changes with task ID in message
Validation Scripts
Use these scripts to validate before completion:
Validate Task File Format
python .claude/skills/managing-task-lifecycle/scripts/validate_task_status.py TASK-XXX
Checks: frontmatter, required fields, valid status, acceptance criteria section.
Check Completion Readiness
python .claude/skills/managing-task-lifecycle/scripts/check_completion.py TASK-XXX
Runs: task file validation, tests, linting, git status.
Validation loop: Run → fix issues → re-run until all checks pass.
Trello Sync Commands
# Check Trello connection status
bpsai-pair trello status
# Sync plan to Trello (creates/updates cards)
bpsai-pair plan sync-trello PLAN-ID
# Force refresh from Trello
bpsai-pair trello refresh
Full CLI Reference
See reference/all-cli-commands.md for complete command documentation.
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (7,735 bytes)
- 📎 scripts/check_completion.py (3,166 bytes)
- 📎 scripts/validate_task_status.py (2,894 bytes)