archive

archive is a skill for Claude Code from DavidROliverBA/ArchitectKB. It costs 0 tokens per session (1,522 once invoked), scanned A, original, MIT.

A note-management command that marks a note as archived and moves it into an archive folder. It supports projects, tasks, pages, and people, but leaves certain note types unchanged.

In plain words
What is it for?
Use it to archive completed projects and tasks, outdated pages, or records about people who have left an organisation, after finding and checking the note.
Why use it?
It removes old notes from active folders while preserving their content and recording their archived status. Its type checks help avoid moving notes that should remain visible or are archived in another way.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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/davidroliverba/architectkb/archive
Any agent
npx skills add DavidROliverBA/ArchitectKB --skill archive
Clone the repo
git clone --depth 1 https://github.com/DavidROliverBA/ArchitectKB

Made for: Claude Code.

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/davidroliverba/architectkb/archive.svg)](https://agentmods.dev/skills/davidroliverba/architectkb/archive)
Your own site
<a href="https://agentmods.dev/skills/davidroliverba/architectkb/archive"><img src="https://agentmods.dev/badge/skills/davidroliverba/architectkb/archive.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,522 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.1 $0.00000 $0.01522
Opus 5 $0.00000 $0.00761
Sonnet 5 $0.00000 $0.00304
Haiku 4.5 $0.00000 $0.00152

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

.claude/skills/archive/SKILL.md · 230 lines

How it starts

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

/archive Skill

Soft archive a note by adding archive metadata and moving to the +Archive folder.

Usage

/archive <note-name>
/archive "Project - Old Initiative"
/archive [[Task - Completed thing]]

Can use note title, filename, or wiki-link format.

Supported Note Types

Type Archive Location Trigger
Project +Archive/Projects/ Completed 6+ months ago
Task +Archive/Tasks/ Completed 3+ months ago
Page +Archive/Pages/ Outdated, superseded
Person +Archive/People/ Left organisation 3+ months ago

Not supported (leave as-is):

  • DailyNote — Year folders are the archive
  • Meeting — Already temporal records
  • ADR — Historical decisions must stay visible
  • Organisation — Reference material
  • AtomicNote — Update instead of archive
  • Zettel — Permanent by design
  • Incubator/IncubatorNote — Status field handles lifecycle

Instructions

  1. Find the note

    • Search for the note by name/title
    • If not found, inform user and stop
    • If multiple matches, ask user to clarify
  2. Check note type

    • Read the frontmatter type field
    • If type is not supported for archiving, inform user:

      "This note type ({{type}}) doesn't need archiving. [Explain why based on type]"

    • Stop if not supported
  3. Confirm with user

    • Show current note location and type
    • Ask: "Archive this note? (Y/n)"
    • If user declines, stop
  4. Ask for archive reason (optional)

    • "Reason for archiving? (or skip)"
    • Common reasons:
      • Project: "Project completed"
      • Task: "Task completed"
      • Page: "Content outdated" / "Superseded by [[New Page]]"
      • Person: "Left organisation"
  5. Update frontmatter Add these fields:

    archived: true
    archivedDate: YYYY-MM-DD  # Today's date
    archivedReason: "<reason>"  # If provided
    

    For Pages, also ask:

    • "Is this superseded by another page? (enter link or skip)"
    • If yes, add: supersededBy: "[[Page Name]]"

Read the full file on GitHub · 230 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. 6d ago First seen · 230 lines · 0 tokens per session scan A 197c57a6776f

Subscribe to this mod's changes

archive is a skill published in the GitHub repository DavidROliverBA/ArchitectKB (52 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,522 tokens. 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.