task-management-protocol
БесплатноЗапускает вложенные скриптыНе проверенProtocol for task synchronization, context handoff, and cross-session coordination using Claude Code task tools. Ensures agents properly update tasks with…
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Task Management Protocol
Standardized protocol for task synchronization, progress tracking, and context handoff between agents and sessions using Claude Code's native task tools.
Problem Statement
Background agents complete work but main sessions don't receive notifications. Agents don't update task descriptions with findings. No protocol exists for structured context handoff between agents or sessions.
This skill solves:
- Lost context when sessions end or agents complete
- Background agent findings not surfacing to main session
- Duplicate work due to poor task visibility
- No structured way to pass information between agents
Core Tools Reference
| Tool | Purpose | When to Use |
|---|---|---|
TaskList() |
List all tasks with status | Start of work, after completion |
TaskGet(id) |
Get full task details | Before starting assigned task |
TaskCreate(...) |
Create new task | Planning phase, discovered subtasks |
TaskUpdate(...) |
Update status/metadata | Progress, discoveries, completion |
Plan File Update Protocol (IRON LAW)
When a task is part of a plan file (.claude/context/plans/*.md), the executing agent — NOT the router — is responsible for updating task markers.
On task start: Find the task line in the plan file and change - [ ] to - [~].
On task complete: Change - [~] to - [x] and append a one-line result note.
Tool: Use Edit on the specific line — do NOT rewrite the whole file.
Timing: Update the plan file BEFORE calling TaskUpdate(completed).
Silence: If the plan file does not exist, skip silently — do not error.
# Find the line number
grep -n "task subject keywords" .claude/context/plans/my-plan.md
# Then use Edit to change [ ] → [~] on start, [~] → [x] on complete
Anti-pattern: Leaving plan file updates to the router. The router only sees completed tasks — plan files must be updated live during execution.
The Protocol
Phase 1: Session Start (MANDATORY)
Before doing ANY work, execute this sequence:
// Step 1: Check existing tasks
TaskList();
// Step 2: If assigned task exists, read full details
TaskGet({ taskId: '<assigned-id>' });
// Step 3: Claim the task
TaskUpdate({
taskId: '<assigned-id>',
status: 'in_progress',
activeForm: 'Working on <task-subject>',
});
Why this matters:
- Prevents duplicate work (see what's already in progress)
- Gets full context from task description
- Signals to other agents/sessions that work has started
Phase 2: During Work (Progress Updates)
Update tasks when you:
- Discover important information
- Find blockers
- Identify subtasks
- Make significant progress
Discovery Update Pattern
// When you discover something important
TaskUpdate({
taskId: 'X',
description: `ORIGINAL: <original-description>
## Discoveries (${new Date().toISOString().split('T')[0]})
- Found: <what you discovered>
- Files: <relevant files>
- Impact: <why this matters>`,
metadata: {
discoveredFiles: ['path/to/file1.ts', 'path/to/file2.ts'],
discoveries: ['Pattern X found', 'Dependency Y required'],
lastUpdated: new Date().toISOString(),
},
});
Blocker Update Pattern
// When you hit a blocker
TaskUpdate({
taskId: 'X',
description: `<existing-description>
## BLOCKED (${new Date().toISOString().split('T')[0]})
- Blocker: <what's blocking>
- Needs: <what's required to unblock>
- Workaround: <possible workaround if any>`,
metadata: {
status: 'blocked',
blocker: 'Description of blocker',
blockerType: 'dependency|permission|information|external',
needsFrom: 'user|other-agent|external-system',
},
});
Subtask Creation Pattern
// When you discover subtasks
TaskCreate({
subject: 'Subtask: <specific-task>',
description: `Parent: Task #X
## Context
<why this subtask exists>
## Scope
<specific work to be done>
## Acceptance Criteria
- [ ] <criterion 1>
- [ ] <criterion 2>`,
activeForm: 'Working on <subtask>',
});
// Link to parent
TaskUpdate({
taskId: '<new-subtask-id>',
addBlockedBy: ['X'], // This subtask blocks parent completion
});
Phase 3: Completion (MANDATORY)
Never mark a task complete without structured metadata:
TaskUpdate({
taskId: 'X',
status: 'completed',
description: `<original-description>
## Completed (${new Date().toISOString().split('T')[0]})
- Summary: <one-line summary of what was done>
- Files modified: <list>
- Tests: <passed/added/none>`,
metadata: {
summary: 'Concise summary of completed work',
filesModified: ['path/to/file1.ts', 'path/to/file2.ts'],
filesCreated: ['path/to/new.ts'],
testsAdded: true,
testsPassing: true,
outputArtifacts: ['.claude/context/reports/backe
Установить task-management-protocol в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
TaskCreateTaskListTaskGetTaskUpdateReadWriteВложенные файлы
FAQ
Что делает скилл task-management-protocol?
Protocol for task synchronization, context handoff, and cross-session coordination using Claude Code task tools. Ensures agents properly update tasks with findings and enables seamless work continuation.
Как установить скилл task-management-protocol?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл task-management-protocol запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic