agent-infra: Skill for Claude Code

.agents/skills/archive-tasks/SKILL.md

archive-tasks is a skill for Claude Code, Codex from fitlab-ai/agent-infra. It costs 35 tokens per session (459 once invoked), scanned A, original, MIT.

A task-archiving tool that moves completed work into folders organized by year, month, and day. It also rebuilds index files listing the archived tasks.

In plain words
What is it for?
Use it to move finished tasks into dated archive folders and create or refresh archive manifests.
Why use it?
It keeps the completed-work folder from becoming crowded and makes older tasks easier to find. You can archive everything, work older than a date, or selected task IDs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is fitlab-ai/agent-infra's own configuration. It tells Claude Code and Codex how to work on agent-infra itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-infra configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fitlab-ai/agent-infra. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fitlab-ai/agent-infra/main/.agents/skills/archive-tasks/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/fitlab-ai/agent-infra

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for archive-tasks

README.md
[![agentmods](https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/archive-tasks/github.svg)](https://agentmods.dev/skills/fitlab-ai/agent-infra/archive-tasks)
Your own site
<a href="https://agentmods.dev/skills/fitlab-ai/agent-infra/archive-tasks"><img src="https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/archive-tasks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for archive-tasks

Your own site · 80×15
<a href="https://agentmods.dev/skills/fitlab-ai/agent-infra/archive-tasks"><img src="https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/archive-tasks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 459 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00459
Opus 5.5 $0.00014 $0.00184
Sonnet 5.5 $0.00007 $0.00092
Haiku 4.5 $0.00003 $0.00046

Measured 6d ago against content hash 5b95730e72f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

archive-tasks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/archive-tasks.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/archive-tasks/SKILL.md · 46 lines

What it actually says

归档已完成任务

将 <task-workspace>/completed/ 中的已完成任务归档到 <task-workspace>/archive/YYYY/MM/DD/TASK-xxx/local/,并重建三级归档索引。TASK 本地材料位于 local/,含按路径排序的 contents.sha256;TASK 根目录不存放普通文件。

  • 根 manifest:<task-workspace>/archive/manifest.md
  • 年 manifest:<task-workspace>/archive/YYYY/manifest.md
  • 月 manifest:<task-workspace>/archive/YYYY/MM/manifest.md

执行流程

1. 验证环境

确认 <task-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.md frontmatter 中的 completed_at(缺失时回退到 updated_at)
  • 按 YYYY/MM/DD/TASK-xxx/local/ 保存任务本地材料,不压缩
  • 跳过已归档、缺少元数据或不存在的任务
  • 全量重建根 / 年 / 月三级 manifest
  • 输出归档与跳过摘要

3. 告知用户

向用户汇报:

  • 本次归档的任务数量
  • 跳过的任务数量和原因
  • 根 manifest 的路径
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed 5b95730e72f9
  2. 1mo ago Changed 7306f89f6d61
  3. 1mo ago First seen · 46 lines · 35 tokens per session scan A 4f40da7b3932

Subscribe to this mod's changes

archive-tasks is a skill published in the GitHub repository fitlab-ai/agent-infra (86 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 459 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories