pm-archive

pm-archive is a skill for Claude Code, Codex from Hank95/mdpm. It costs 16 tokens per session (432 once invoked), scanned A, original, MIT.

A command that moves older completed tasks from the done folder into an archive folder. Archiving reduces clutter while keeping the task files searchable.

In plain words
What is it for?
For previewing and archiving completed tasks older than a chosen number of days or matching a tag.
Why use it?
It keeps the active completed-task list manageable without deleting historical work.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the mdpm plugin — 17 skills 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/hank95/mdpm/pm-archive
Any agent
npx skills add Hank95/mdpm --skill pm-archive
Clone the repo
git clone --depth 1 https://github.com/Hank95/mdpm

Made for: Claude Code, Codex.

Or install mdpm, the plugin that ships this one along with the rest of its 17 skills.

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 pm-archive

README.md
[![agentmods](https://agentmods.dev/badge/skills/hank95/mdpm/pm-archive.svg)](https://agentmods.dev/skills/hank95/mdpm/pm-archive)
Your own site
<a href="https://agentmods.dev/skills/hank95/mdpm/pm-archive"><img src="https://agentmods.dev/badge/skills/hank95/mdpm/pm-archive.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 432 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.00016 $0.00432
Opus 5 $0.00008 $0.00216
Sonnet 5 $0.00003 $0.00086
Haiku 4.5 $0.00002 $0.00043

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

Security

Grade A, and why

pm-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.

skills/pm-archive/SKILL.md · 43 lines

What it actually says

/pm-archive

Move tasks from tasks/done/ into tasks/archive/ to reduce clutter while keeping them searchable.

How to run

python3 "${CLAUDE_PLUGIN_ROOT}/bin/mdpm" --json archive [--older-than N] [--tag T] [--all]

Default: --older-than 30 (tasks completed more than 30 days ago).

Pre-flight confirmation

Always preview before running. Archival is a bulk operation — show the user what's about to move:

  1. Run mdpm --json list --status done and filter by the same criteria (--older-than → compare updated against today minus N days).
  2. Show a compact list:
    Archiving N tasks (completed > 30 days ago):
      - [PRJ-001] Gallery page component — 2026-03-15
      - [PRJ-004] Nav bar refactor — 2026-03-18
      ...
    Proceed? [y/N]
    
  3. If the user confirms, run the CLI. Otherwise stop.

Interpreting the result

  • count: N, moved: [...] — confirm with a one-line summary: "Archived N tasks. Still in done/: M tasks completed within the last 30 days."
  • warnings: ["no eligible tasks to archive"] — say so and suggest checking mdpm list --status done to see what's there.

Notes

  • Never delete. Archival is just a file move; archived tasks remain searchable via mdpm search.
  • Don't archive tasks that aren't in tasks/done/. The CLI enforces this, but don't suggest otherwise.
  • The kanban board excludes the archive column by design — the point of archiving is to stay focused on current work.
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 · 43 lines · 16 tokens per session scan A 937829b4f278

Subscribe to this mod's changes

pm-archive is a skill published in the GitHub repository Hank95/mdpm (3 stars, last pushed 4mo ago), licensed MIT. It adds 16 tokens to every session and 432 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