360 Secure SkillHub
360 安全技能中心

Task Tracker

该 Skill 在任务开始、进度更新、完成或失败时写入 memory/tasks.md,记录状态、背景进程会话 ID/PID、备注与结果,并在会话开始时读取以恢复上下文。文件限制在 50 行/2KB 内,完成任务折叠为单行并只保留最近 10 条,清理超过 3 天的条目。

rikouu
rikouu
热度 98.20
最近更新 2026-05-11 17:26:14
分类:知识依赖:读写文件应用场景:任务管理 / 笔记整理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add agent-task-tracker
Metadata
name
task-tracker
description
Proactive task state management. Use on EVERY task start, progress update, completion, or failure. Tracks what was requested, what's running (background processes, SSH sessions), what's done, and what's next. Survives session resets. Triggers automatically — not user-invoked.

Task Tracker

Maintain a live task state file so context survives session resets/compaction.

State File

memory/tasks.md — single source of truth.

When to Write

  1. Task received → add entry with status 🔄 进行中
  2. Background process started → record session ID, PID, server, command
  3. Progress update → update status/notes
  4. Task completed → mark ✅ 完成, record results/links
  5. Task failed → mark ❌ 失败, record error
  6. Session start → read memory/tasks.md to resume awareness

Format

# Active Tasks

## [task-id] Short description
- **Status**: 🔄 进行中 | ✅ 完成 | ❌ 失败 | ⏸️ 暂停
- **Requested**: YYYY-MM-DD HH:MM
- **Updated**: YYYY-MM-DD HH:MM
- **Background**: session-id (PID) on server-name — `command`
- **Notes**: progress details, partial results
- **Result**: final output, links, summary

# Completed (recent)
<!-- Move completed tasks here, keep last 10, prune older -->

Rules

  • Update the file BEFORE reporting to user (write-first)
  • Include enough detail to resume without prior conversation context
  • For background processes: always record session ID + what server + what command
  • For multi-step tasks: update after each step
  • Keep it concise — this isn't a log, it's a state snapshot
  • Size limit: keep under 50 lines / 2KB — this file is read every session start
  • Completed tasks: collapse to one-line summary, reference daily notes for details
  • Prune completed tasks older than 3 days
  • If Active is empty, write (无) to make it obvious