归档已完成任务
SkillProductivityLets your agent move completed tasks into date-organized archive folders and rebuild the archive index.
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the 归档已完成任务 skill
About this skill
Archives completed tasks into date-organized directories. Use when completed tasks pile up in the completed directory and need to be organized and archived.
What this skill tells your AI
The instructions your AI receives, as published by fitlab-ai/agent-infra in .agents/skills/archive-tasks/SKILL.md and read by ahel’s review.
将 .agents/workspace/completed/ 中的已完成任务归档到 .agents/workspace/archive/YYYY/MM/DD/TASK-xxx/local/,并重建三级归档索引。TASK 本地材料位于 local/,含按路径排序的 contents.sha256;TASK 根目录不存放普通文件。
- 根 manifest:
.agents/workspace/archive/manifest.md - 年 manifest:
.agents/workspace/archive/YYYY/manifest.md - 月 manifest:
.agents/workspace/archive/YYYY/MM/manifest.md
执行流程
1. 验证环境
确认 .agents/workspace/completed/ 存在,并根据用户输入选择以下四种调用方式之一:
- 无参数:归档全部已完成任务
--days N:保留最近N天,仅归档更早的任务--before YYYY-MM-DD:仅归档指定日期之前的任务TASK-ID...:仅归档指定任务
2. 运行归档脚本
执行以下命令:
bash .agents/skills/archive-tasks/scripts/archive-tasks.sh [--days N | --before YYYY-MM-DD | TASK-ID...]
脚本负责:
- 解析
task.mdfrontmatter 中的completed_at(缺失时回退到updated_at) - 按
YYYY/MM/DD/TASK-xxx/local/保存任务本地材料,不压缩 - 跳过已归档、缺少元数据或不存在的任务
- 全量重建根 / 年 / 月三级 manifest
- 输出归档与跳过摘要
3. 告知用户
向用户汇报:
- 本次归档的任务数量
- 跳过的任务数量和原因
- 根 manifest 的路径
Signals
- GitHub stars
- 86
- Forks
- 5
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
archive-tasks- Source
- github.com/fitlab-ai/agent-infra
github.com/fitlab-ai/agent-infra
More in Productivity
Skill · coreyhaines31
More in Productivitygws-calendar
Skill · googleworkspace
More in Productivitylark-minutes
Skill · larksuite
More in Productivitylark-workflow-standup-report
Skill · larksuite
More in Productivitywriting-plans
Skill · obra
More in Productivityhomelab-pihole-dns
Skill · affaan-m
More in Productivity