Automatically detect task anomalies, intelligently analyze causes, and proactively propose solutions
ScenarioTrigger MethodAuto-triggerExecute during Heartbeat detectionManual triggerUser inputs "check tasks", "task status", "anomaly detection"Scheduled triggerAuto-scan every 6 hours
markdown
## Global Task Board
| TaskID | Task Name | Status | Progress | Deadline | Last Update | Block Reason |
|--------|-----------|--------|----------|----------|-------------|--------------|
| T001 | Initialize three-layer memory | Done | 100% | 2026-03-10 | 2026-03-10 | None |
| T002 | Integrate vector retrieval | Active | 60% | 2026-03-15 | 2026-03-12 | Waiting for API key |
| T003 | Test proactive thinking | Waiting | 0% | 2026-03-20 | 2026-03-11 | Depends on T002 |
Status Definitions:
StatusMeaningQueueWaiting to startActiveIn progressWaitingBlocked/WaitingDoneCompletedAbortedCancelled
All subtasks must include:
Auto-Detection Rules:
Detection ItemConditionMarkStalled tasksActive status + last update > 24h🔴 StalledPending confirmationWaiting status + empty block reason🟡 PendingOverdue tasksProgress < 100% + deadline < current time🔴 OverdueNo progress tasksActive status + 0% progress for > 48h🟡 No progressAbnormal tasksActive + no update > 24h🔴 Abnormal
Detection ItemConditionMarkDependency blockDownstream blocked by incomplete upstream🔗 Dependency blockDuplicate tasksTask name/content similarity > 80%⚠️ DuplicateZombie tasksDone status but no completion time👻 ZombieMeaningless tasksEmpty title or content < 10 chars🗑️ To cleanMissing required fieldsNo status/progress/owner⚠️ Incomplete
Analysis Steps:
Auto-attempt (No human needed):
Human intervention required:
Analysis Steps:
Auto-resolve scenarios:
Analysis Steps:
Auto-adjust:
Output TypeLocationTrigger ConditionDetection resultsmemory/hot/task-alert.mdAfter each detectionThinking conclusionsmemory/hot/thinking-log.mdAfter each analysisCritical alertsFeishu pushOverdue/serious blockSolutionsmemory/warm/lessons_learned.mdRecord after resolution
bash
# Manual trigger detection
node skills/task-detection-thinking/scripts/detect.js
# View detection results
cat memory/hot/task-alert.md
# View thinking log
cat memory/hot/thinking-log.md
yaml
task_detection:
# Detection frequency
heartbeat_check: true # Detect during Heartbeat
cron_schedule: "0 */6 * * *" # Every 6 hours
# Threshold settings
stale_threshold_hours: 24 # Stall threshold
overdue_check: true # Check overdue
dependency_check: true # Check dependency chain
# Auto-fix
auto_fix_enabled: true # Enable auto-fix
auto_fix_max_attempts: 3 # Max auto-attempts
# Notification settings
feishu_alert: true # Critical alert push
alert_on_overdue: true # Overdue alert
alert_on_blocking: true # Serious block alert
text
Heartbeat trigger / Scheduled trigger / Manual trigger
↓
Scan HEARTBEAT.md + WORKING.md
↓
Identify anomaly tasks (stalled/blocked/overdue/duplicate)
↓
Analyze causes (context + historical memory)
↓
Generate solutions (3 options)
↓
Attempt auto-fix (no-human-needed solutions)
↓
Write detection results + thinking log
↓
Push critical alerts to Feishu
Transform task management from reactive response to proactive prevention