원클릭으로
task-decomposition
Break a high-level goal into concrete actionable tasks with dependencies
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Break a high-level goal into concrete actionable tasks with dependencies
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Discover team members, delegate tasks, and track progress to completion
Prepare structured meeting agendas and pre-reads from task board, artifacts, and team context
Classify, prioritize, and route incoming incidents based on severity, category, and affected components
Classify incoming requests and route to the appropriate specialist agent
How to communicate with other agents on the system. Use when you need to ask questions, share information, or coordinate.
Compare options against weighted criteria with scored matrix, sensitivity analysis, and quantified recommendation
| name | task-decomposition |
| description | Break a high-level goal into concrete actionable tasks with dependencies |
Use this skill when given a high-level goal that needs to be broken into specific, assignable tasks for a team of agents.
# Read the goal from the task or input
GOAL_FILE="${1:-/home/shared/goal.md}"
cat "$GOAL_FILE" 2>/dev/null
# Or read from task board
bash /home/shared/scripts/task.sh get "$TASK_ID" | jq -r '.description' 2>/dev/null
Write down:
echo "=== Available Agents ==="
# List all agent users in the system
getent group agents 2>/dev/null | cut -d: -f4 | tr ',' '\n' | while read agent; do
if [ -n "$agent" ]; then
# Get their role from passwd GECOS field
ROLE=$(getent passwd "$agent" 2>/dev/null | cut -d: -f5)
echo " $agent — $ROLE"
fi
done
echo ""
echo "=== Agent Capabilities ==="
# Check each agent's persona/skills
for agent_home in /home/*/; do
agent=$(basename "$agent_home")
[ "$agent" = "shared" ] && continue
if [ -f "$agent_home/.claude/CLAUDE.md" ]; then
echo "--- $agent ---"
head -5 "$agent_home/.claude/CLAUDE.md" 2>/dev/null
fi
done
Break the goal into tasks following these rules:
For each task, specify:
### Task [ID]: [Subject]
- **Owner:** [persona/agent name]
- **Description:** [What to do — specific and actionable]
- **Input:** [What to read, where to find it]
- **Output:** [What to produce, where to put it]
- **Depends on:** [Task IDs that must complete first, or "none"]
- **Estimate:** [S/M/L — Small: <30min, Medium: 30min-2hr, Large: 2hr+]
# Visualize as text DAG
cat <<'EOF'
Goal: [High-level goal]
T1 (researcher) ──┐
├──> T3 (architect) ──> T5 (coder) ──> T7 (qa)
T2 (researcher) ──┘ │
└──> T6 (writer) ──> T8 (editor)
T4 (security) ─────────────────────────────────────────────────> T7 (qa)
EOF
Run these checks:
# Check 1: Every task has exactly one owner
echo "=== Owner check ==="
# (Manually verify each task has one owner field)
# Check 2: No dependency cycles
echo "=== Cycle check ==="
# List all edges and check for cycles
cat <<'EOF' > /tmp/deps.txt
T3 T1
T3 T2
T5 T3
T6 T3
T7 T5
T7 T4
T8 T6
EOF
# Simple cycle detection: if tsort fails, there is a cycle
tsort /tmp/deps.txt 2>&1
if [ $? -ne 0 ]; then
echo "ERROR: Dependency cycle detected!"
else
echo "OK: No cycles"
fi
# Check 3: Clear end state
echo "=== End state check ==="
echo "Final deliverable tasks (no task depends on them):"
# Tasks that appear in column 1 but never in column 2
comm -23 <(cut -d' ' -f1 /tmp/deps.txt | sort -u) <(cut -d' ' -f2 /tmp/deps.txt | sort -u)
# Check 4: Parallelism
echo "=== Parallelism check ==="
echo "Tasks with no dependencies (can start immediately):"
# Tasks in column 2 that never appear in column 1
comm -23 <(cut -d' ' -f2 /tmp/deps.txt | sort -u) <(cut -d' ' -f1 /tmp/deps.txt | sort -u)
# Add each task to the shared task board
bash /home/shared/scripts/task.sh add \
--subject "Research authentication options" \
--description "Survey available auth libraries for Node.js. Compare JWT vs session-based. Write findings to /home/shared/research-auth.md" \
--owner "researcher" \
--depends ""
bash /home/shared/scripts/task.sh add \
--subject "Design auth architecture" \
--description "Based on research, design auth system. Produce design doc at /home/shared/design-auth.md" \
--owner "architect" \
--depends "T1"
# ... continue for all tasks
SPEC_FILE="/home/shared/taskplan-$(date +%Y%m%d).md"
cat > "$SPEC_FILE" <<'EOF'
# Task Plan: [Goal]
**Date:** YYYY-MM-DD
**Planner:** [agent name]
## Goal
[High-level goal statement]
## End State
[What "done" looks like — specific deliverables]
## Task Breakdown
### T1: [Subject] (owner: [persona])
- Description: ...
- Input: ...
- Output: ...
- Depends: none
### T2: ...
## Dependency Graph
T1 ──> T3 ──> T5 T2 ──> T3
## Parallelism
- Wave 1 (parallel): T1, T2, T4
- Wave 2 (after wave 1): T3
- Wave 3 (after wave 2): T5, T6
- Wave 4 (final): T7, T8
## Risks
- [What could go wrong and how to mitigate]
EOF
# Register as artifact
bash /home/shared/scripts/artifact.sh register \
--name "task-plan" \
--type "plan" \
--path "$SPEC_FILE" \
--description "Task decomposition plan for: [goal]"