Ctx archive

From ActiveMemory/ctx · View interactive version

Ctx archive is an AI agent skill from the GitHub repository ActiveMemory/ctx. Archive completed tasks. Use when TASKS.md has many completed items cluttering the view.

How to use this skill

Skill file

Move completed tasks from TASKS.md to the archive.

Before Archiving

Two questions: if any answer is "no", don't archive:

  1. "Are the completed tasks cluttering the view?" → If TASKS.md is

still easy to scan, there's no urgency

  1. "Are all [x] items truly done?" → Verify nothing was checked off

prematurely

When to Use

When NOT to Use

Constitution Rules

These are inviolable:

the only sanctioned "move" and it's to the archive directory

Execution

ctx task archive $ARGUMENTS

Example: preview first (recommended):

ctx task archive --dry-run

Example: archive after confirming the preview:

ctx task archive

Archived tasks go to archive/tasks-YYYY-MM-DD.md in the context directory,

preserving Phase headers for traceability.

Report how many tasks were archived and where the archive file was written.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.