archive

archive is a skill for Claude Code, Codex from cliffren/swf. It costs 22 tokens per session (856 once invoked), scanned A, original, MIT.

A workflow that exports completed or canceled Linear issues to Documents in an Archive project. Linear is a task-tracking service, and archiving removes old issues from its active issue quota after export.

In plain words
What is it for?
Use it to find eligible issues, preview what will be archived, group entries by project and month, and then guide deletion of the original issues.
Why use it?
It preserves a record of finished work while helping reduce the number of active issues in Linear.

Skill for Claude CodeCodex

Part of the swf plugin — 16 skills, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cliffren/swf/archive
Any agent
npx skills add cliffren/swf --skill archive
Clone the repo
git clone --depth 1 https://github.com/cliffren/swf

Made for: Claude Code, Codex.

Or install swf, the plugin that ships this one along with the rest of its 16 skills, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/cliffren/swf/archive.svg)](https://agentmods.dev/skills/cliffren/swf/archive)
Your own site
<a href="https://agentmods.dev/skills/cliffren/swf/archive"><img src="https://agentmods.dev/badge/skills/cliffren/swf/archive.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 856 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00022 $0.00856
Opus 5 $0.00011 $0.00428
Sonnet 5 $0.00004 $0.00171
Haiku 4.5 $0.00002 $0.00086

Measured 3d ago against content hash 449810efe64e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

archive 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 3d ago.

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.

skills/archive/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Archive Issues

Export completed issues to the Archive project as Documents, then guide user to delete originals in Linear web UI to free up the 250 issue quota.

Input

$ARGUMENTS — optional project name. If omitted, archive across all projects.

Workflow

  1. Query archivable issues:

    • List all issues with status Done or Canceled (excluding Archive project itself)
    • Keep recent Done issues: only archive Done issues completed more than 7 days ago. Recent ones serve as working context for ongoing development.
    • Canceled issues can be archived immediately (no context value)
    • If a project is specified, filter by that project
    • Group by project
  2. Show quota and preview:

    当前 X/250 活跃 issues,其中 Y 个可归档:
    
    spaharmony (3):
    - TAO-11: 发布 v1 [Done, 2026-04-14]
    - ...
    
    Ideas (5):
    - TAO-5: Spatial Harmony 评估 [Done, 2026-04-14]
    - ...
    
    归档后释放 Y 个额度,剩余 Z/250。
    确认归档吗?
    
  3. Export to Archive project Document (按月合并):

    • Check if a Document titled 归档 YYYY-MM already exists in Archive project:
      • Use list_documents with project: "Archive" and search for current month title
    • If exists: use update_document to append new entries
    • If not: use create_document with project: "Archive", titled 归档 YYYY-MM
    • Content format, grouped by project and phase:
      # 归档 2026-04
      
      ## spaharmony — Phase 1
      
      ### [Done] TAO-11: 发布 v1:整理文档 + 发布 PyPI (2026-04-14)
      **Comments:**
      - [2026-04-14] 已发布 v1.0.0,README 包含安装说明...
      
      ### [Done] TAO-14: v2: Harmony 主循环迁移至 CuPy (2026-04-18)
      (no comments)
      
      ## Ideas
      ### [Done] TAO-5: Spatial Harmony 评估 (2026-04-14)
      (no comments)
      
      ### [Canceled] TAO-99: 某个放弃的想法 (2026-04-10)
      (no comments)
      
    • Record: status, issue ID, title, completion date, comments
    • Fetch comments with list_comments for each issue
    • Skip descriptions and labels — these live in git history
  4. Guide user to delete originals:

    归档文档已创建:Archive 项目 → "归档 2026-04-14"
    
    请在 Linear 网页上删除已归档的 issues:
    1. 打开对应项目
    2. Filter → Status = Done
    3. 全选 → 右键 → Delete issue
    
    或逐个:选中 issue → 右键 → Delete issue
    
    ⚠️ 删除不可恢复,但数据已保存在 Archive 项目的文档中。
    

Read the full file on GitHub · 94 lines

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. 3d ago First seen · 94 lines · 22 tokens per session scan A 449810efe64e

Subscribe to this mod's changes

archive is a skill published in the GitHub repository cliffren/swf (5 stars, last pushed 4mo ago), licensed MIT. It adds 22 tokens to every session and 856 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

sred-project-organizer

Take a list of projects and their related documentation, and organize them into the SRED format for submission.

getsentry/skills · 27 tokens

moai-workflow-project

Integrated project management system covering documentation, language initialization, template optimization, docs generation, and JIT document loading. Absorbed from moai-workflow-templates, moai-docs-generation, and moai-workflow-jit-docs.

modu-ai/moai-adk · 55 tokens

paper-sprint-review

Scrum-inspired paper review, revision, and R&R workflow. Handles docx/tex/md/PDF in English or Chinese. Auto-detects manuscript stage, estimates sprint count, runs multi-lens review (Contribution/Rigor/Writing/Editor), generates prioritized revision backlog, exports MD/DOCX/PDF/HTML reports. Use when asked to review a…

aipoch/medical-research-skills · 112 tokens

bkit-templates

PDCA + Sprint document templates — Plan, Design, Analysis, Report for individual features plus templates/sprint/{master-plan, prd, plan, design, iterate, qa, report}.template.md for sprint-level documents (v2.1.13). Triggers: template, plan document, design template.

ww-w-ai/bkit-claude-code · 67 tokens

notion-sync

Read, create, and update Notion pages and databases. Requires Notion API integration token.

fuyuxiang/echo-agent · 23 tokens

notion-recipes

Use this skill when a user wants to turn meeting notes into a tracked Action Items database in Notion, or to bulk-edit, find-replace, normalize, or repair Notion database rows or page text at a scale past Notion's native find-and-replace limits. Uses easy-notion's MCP tools.

Grey-Iris/easy-notion-mcp · 68 tokens