Agent Skillscoleam00/Archon › save-task-list

save-task-list

GitHub

保存当前会话的任务列表,记录会话ID与任务映射,并验证启动钩子配置,以便在后续会话中恢复和复用之前的任务上下文。

.claude/skills/save-task-list/SKILL.md coleam00/Archon

Trigger Scenarios

用户希望跨会话保留任务进度 需要持久化当前工作流状态

Install

npx skills add coleam00/Archon --skill save-task-list -g -y
More Options

Non-standard path

npx skills add https://github.com/coleam00/Archon/tree/dev/.claude/skills/save-task-list -g -y

Use without installing

npx skills use coleam00/Archon@save-task-list

指定 Agent (Claude Code)

npx skills add coleam00/Archon --skill save-task-list -a claude-code -g -y

安装 repo 全部 skill

npx skills add coleam00/Archon --all -g -y

预览 repo 内 skill

npx skills add coleam00/Archon --list

SKILL.md

Frontmatter
{
    "name": "save-task-list",
    "hooks": {
        "Stop": [
            {
                "hooks": [
                    {
                        "type": "prompt",
                        "prompt": "A skill just finished saving a task list for session reuse.\nEvaluate the assistant's final message below.\n\n$ARGUMENTS\n\nVerify:\n1. A task list ID was found and displayed\n2. A startup command (CLAUDE_CODE_TASK_LIST_ID=<id> claude) was provided\n3. A task summary was shown\n\nReturn {\"ok\": true} if all three are present.\nReturn {\"ok\": false, \"reason\": \"Missing: <what>\"} if anything is missing.\n",
                        "statusMessage": "Verifying task list was saved..."
                    }
                ]
            }
        ],
        "PostToolUse": [
            {
                "hooks": [
                    {
                        "once": true,
                        "type": "command",
                        "command": "jq -r '[.tool_name, .tool_input.command \/\/ \"n\/a\"] | join(\": \")' | head -1",
                        "statusMessage": "Logging tool use..."
                    }
                ],
                "matcher": "Bash"
            }
        ]
    },
    "description": "Save current task list for reuse across sessions",
    "disable-model-invocation": true
}

Save Task List for Reuse

Save the current session's task list so it can be restored in future sessions.

Session Context

  • Session ID: ${CLAUDE_SESSION_ID}
  • Active task directories: !ls -1t ~/.claude/tasks/ 2>/dev/null | head -5 || echo "none found"
  • Current tasks in session: !ls -1t ~/.claude/tasks/ 2>/dev/null | head -1 | xargs -I{} ls ~/.claude/tasks/{} 2>/dev/null | head -10 || echo "no tasks"

Instructions

  1. Find the current task list ID by checking ~/.claude/tasks/ for the most recently modified directory. List the directories sorted by modification time.

  2. Verify the match — read the task files inside the directory and compare them to any tasks you know about from this session. Confirm you have the correct task list.

  3. Log the session mapping — write the mapping to .claude/archon/sessions/:

    mkdir -p .claude/archon/sessions
    echo '{"session": "${CLAUDE_SESSION_ID}", "task_list": "<TASK_LIST_ID>", "saved_at": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"}' \
      >> .claude/archon/sessions/task-lists.jsonl
    
  4. Verify the SessionStart hook is installed — the project-level .claude/settings.json already includes a SessionStart hook that runs verify-task-list.sh on every session start. Confirm it's present by reading the file. If it's missing for some reason, add it back:

    {
      "hooks": {
        "SessionStart": [
          {
            "hooks": [
              {
                "type": "command",
                "command": ".claude/skills/save-task-list/hooks/verify-task-list.sh",
                "statusMessage": "Checking for restored task list..."
              }
            ]
          }
        ]
      }
    }
    

    Important: Merge — don't overwrite existing settings. If hooks or SessionStart already exists, append to the array. If the hook is already installed, skip this step.

  5. Output the startup command for the user:

    To continue with this task list in a new session:
    
    CLAUDE_CODE_TASK_LIST_ID=<task_list_id> claude
    

    Explain: On startup, the SessionStart hook will verify the task list exists and show a confirmation message.

  6. Show the current task summary so the user knows what's preserved (task subjects, statuses, and any dependencies).

Version History

  • ace0a41 Current 2026-07-25 08:54

Same Skill Collection

.claude/skills/agent-browser/SKILL.md
.claude/skills/playwright-cli/SKILL.md
.claude/skills/release/SKILL.md
.claude/skills/remotion-best-practices/SKILL.md
.claude/skills/rulecheck/SKILL.md
.claude/skills/triage/SKILL.md
.claude/skills/archon-cli/SKILL.md
.claude/skills/archon-dev/SKILL.md
.claude/skills/archon/SKILL.md
.claude/skills/docker-extend/SKILL.md
.claude/skills/manage-run/SKILL.md
.claude/skills/replicate-issue/SKILL.md
.claude/skills/validate-ui/SKILL.md

Metadata

Files
0
Version
dd2838c
Hash
4616f0b5
Indexed
2026-07-25 08:54

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 09:57
浙ICP备14020137号-1 $Гость$