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 (418 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 418 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.00418
Opus 5 $0.00017 $0.00209
Sonnet 5 $0.00007 $0.00084
Haiku 4.5 $0.00003 $0.00042

Measured 10d ago against content hash 4f40da7b3932, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d 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

归档已完成任务

.agents/workspace/completed/ 中的已完成任务移动到 .agents/workspace/archive/YYYY/MM/DD/TASK-xxx/,并重建三级归档索引:

  • 根 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.md frontmatter 中的 completed_at(缺失时回退到 updated_at
  • YYYY/MM/DD/TASK-xxx/ 目录直接移动任务,不压缩
  • 跳过已归档、缺少元数据或不存在的任务
  • 全量重建根 / 年 / 月三级 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. 10d 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 (83 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 418 once invoked, about $0.0002 per session on Opus 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

dream

Batch-execute SHIP-ready wishes overnight — pick wishes, orchestrate workers, review PRs, wake up to results.

automagik-dev/genie · 27 tokens

clickup

Use when managing ClickUp tasks, sprints, or comments via the cup CLI tool. Triggers: task queries, status updates, sprint tracking, creating subtasks, posting comments, threaded replies, standup summaries, searching tasks, checking overdue items, assigning tasks, listing spaces and lists, opening tasks in browser…

krodak/clickup-cli · 125 tokens

sw-do

Implement a SpecWeave increment task by task through the ledger, with evidence per task and a verified close. Use for "implement this", "start working", "continue the increment", "keep going".

anton-abyzov/specweave · 41 tokens

handoff

Write a portable, secret-scrubbed handoff doc so this work can continue in any AI tool or on any machine. Use when saying "handoff", "running out of tokens", or "continue elsewhere".

anton-abyzov/specweave · 44 tokens

linear-graphql-skill

Operate Linear workspace issues, projects, and teams through Linear GraphQL API using UXC. Use when tasks require querying or creating issues, managing projects, or interacting with Linear workflow. Supports both Personal API Key and OAuth authentication.

holon-run/uxc · 51 tokens

genie-orca-wish

Turn a brainstorm/design into an APPROVED-able wish whose Dispatch plan is the literal input to Orca tasks and Linear issues. High-reasoning pass: pre-decide everything so fast workers can execute without judgment calls.

automagik-dev/genie · 51 tokens