archive

archive is a skill for Claude Code, Codex from MarsZ42/OrbitOS. It costs 9 tokens per session (1,469 once invoked), scanned A, original, MIT.

An archiving workflow for OrbitOS, a system that organizes projects and inbox notes as files.

In plain words
What is it for?
Use it to find completed projects and processed inbox items, review their links and metadata, and move selected items into the appropriate archive folders.
Why use it?
It keeps completed work out of active folders while preserving it in year- and month-based archive locations.

Skill for Claude CodeCodex

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/marsz42/orbitos/archive
Any agent
npx skills add MarsZ42/OrbitOS --skill archive
Clone the repo
git clone --depth 1 https://github.com/MarsZ42/OrbitOS

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/marsz42/orbitos/archive.svg)](https://agentmods.dev/skills/marsz42/orbitos/archive)
Your own site
<a href="https://agentmods.dev/skills/marsz42/orbitos/archive"><img src="https://agentmods.dev/badge/skills/marsz42/orbitos/archive.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,469 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.00009 $0.01469
Opus 5 $0.00005 $0.00734
Sonnet 5 $0.00002 $0.00294
Haiku 4.5 $0.00001 $0.00147

Measured 5d ago against content hash 1b45fdd9cb57, 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 5d 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.

CN/.agents/skills/archive/SKILL.md · 187 lines

How it starts

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

You are the Vault Archivist for OrbitOS.

OBJECTIVE

Help the user archive completed projects and processed inbox items, maintaining clean active spaces while preserving historical records.

WORKFLOW

Step 1: Identify Items to Archive

  1. Search for completed projects:

    • Find all files in 20_项目/ with status: done
  2. Search for processed inbox items:

    • Find all files in 00_收件箱/ with status: processed in frontmatter
    • Or files with [[ProjectName]] link indicating they've been converted
  3. Present findings in Chinese:

    ## 待归档项目
    
    **已完成项目 ([N]):**
    - [[Project1]] - 完成于 [date]
    - [[Project2]] - 完成于 [date]
    
    **已处理收件箱 ([N]):**
    - 关于X的想法 - 已转为 [[ProjectName]]
    - 关于Y的笔记 - 处理于 [date]
    
    请选择:
    1. 全部归档
    2. 仅归档项目
    3. 仅归档收件箱
    4. 选择特定项目
    

Step 2: Archive Process

For each project to be archived:

  1. Read the project file(s)

    • Get full content and metadata
    • Note any linked resources or assets
  2. Move to archives:

    For Projects:

    • Single file: Move to 99_系统/归档/项目/YYYY/ProjectName.md
    • Folder: Move to 99_系统/归档/项目/YYYY/ProjectName/
    • Organize by year based on completion date

    For Inbox Items:

    • Move to 99_系统/归档/收件箱/YYYY/MM/filename.md
    • Organize by year and month of processing
    • Preserves chronological capture history
  3. Update metadata:

    • Add archived: YYYY-MM-DD to frontmatter
    • Keep all other metadata intact
  4. Preserve links:

    • Update today's daily note with archive action
    • Note: Existing wikilinks will still work from new location
  5. Clean up:

    • Check for orphaned assets in 50_资源/
    • Ask user if any should be cleaned up

Step 3: Summary Report

Present completion summary in Chinese:

## 归档完成

**已归档 [N] 个项目至 `99_系统/归档/项目/YYYY/`:**
- [[Project1]] → 归档/项目/2026/Project1/
- [[Project2]] → 归档/项目/2026/Project2.md

**已归档 [N] 个收件箱条目至 `99_系统/归档/收件箱/YYYY/MM/`:**
- idea-note.md → 归档/收件箱/2026/01/
- quick-capture.md → 归档/收件箱/2026/01/

**库状态:**
- 正在进行项目: [N]
- 收件箱条目: [N]
- 已归档项目 (总计): [N]
- 已归档收件箱 (总计): [N]

**建议:**
- [ ] 检查暂停中的项目是否需要归档
- [ ] 处理剩余收件箱条目
- [ ] 清理孤立资源 (如有发现)

Read the full file on GitHub · 187 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. 5d ago First seen · 187 lines · 9 tokens per session scan A 1b45fdd9cb57

Subscribe to this mod's changes

archive is a skill published in the GitHub repository MarsZ42/OrbitOS (969 stars, last pushed 5mo ago), licensed MIT. It adds 9 tokens to every session and 1,469 once invoked, about $0.0000 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.