Skip to content
Back to skills

Pm Archive

ASecurity

Move aged completed tasks from tasks/done/ to tasks/archive/ to reduce clutter

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
developmentpythongobash

Works with

  • cli

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add Hank95/mdpm --skill pm-archive --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pm Archive?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pm Archive
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hank95-pm-archive/badge)](https://www.skillsdirectory.com/skills/hank95-pm-archive)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Move aged completed tasks from tasks/done/ to tasks/archive/ to reduce clutter
argument-hint: "[--older-than <days>] [--tag <tag>] [--all]"
---

# /pm-archive

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

## How to run

```bash
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.