From flight-portable
Archive completed or aged workbench files into flight-workbench/archive/<prefix>-<slug>/ (prefix from env var FLIGHT_FILE_PREFIX, default YYYY-MM-DD_HH-MM). Supports natural-language description ("archive everything older than April", "archive the closed decisions") or pre-defined tiers (recent / mid / deep). Surveys, proposes, asks for confirmation, then moves. Use when the workbench has grown crowded and you want to thin it out without deleting anything.
How this skill is triggered — by the user, by Claude, or both
Slash command
/flight-portable:archiveThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Move completed or aged files in the workbench into a single timestamped archive bundle. Nothing is deleted — everything stays on disk under `flight-workbench/archive/<prefix>-<slug>/` and can be retrieved any time. The `<prefix>` is the project's configured date-time prefix (env var `FLIGHT_FILE_PREFIX`, default `%Y-%m-%d_%H-%M` → `YYYY-MM-DD_HH-MM`).
Move completed or aged files in the workbench into a single timestamped archive bundle. Nothing is deleted — everything stays on disk under flight-workbench/archive/<prefix>-<slug>/ and can be retrieved any time. The <prefix> is the project's configured date-time prefix (env var FLIGHT_FILE_PREFIX, default %Y-%m-%d_%H-%M → YYYY-MM-DD_HH-MM).
This is distinct from /flight-cleanup:
/flight-cleanup operates on CLAUDE.md's open-task list only./flight-archive operates on workbench files (history, decisions, memos).If the user passed text as an argument (e.g. /flight-archive everything older than April), use it. Otherwise, present three pre-defined tiers via AskUserQuestion:
For natural-language scope, parse the user's text to determine: date range (older than X / between A and B), file types (history / memos / decisions / all), and any topic filter.
Walk flight-workbench/history/, flight-workbench/memos/, and flight-workbench/decisions/. For each file, check the mtime and filename date prefix. Build a candidate list of files that match the scope.
Never include in candidates:
flight-workbench/.flight-setupflight-workbench/stilwerk/* — these are reference files, not user contentflight-workbench/archive/ folder itselfShow the user the candidate list grouped by folder, with counts:
Archive proposal
Will move N files into
flight-workbench/archive/<prefix>-<slug>/:From
history/(X files):
- -session.md (modified )
- ...
From
memos/(Y files):
- (modified )
- ...
From
decisions/(Z files):
- (modified )
- ...
Proceed? (yes / review each / cancel)
AskUserQuestion (Archive / Keep).If the candidate list is empty:
Nothing to archive. No files match the scope. Try a wider scope (e.g.
/flight-archive everything older than April).
Build a short kebab-case slug describing the scope (older-than-14d, mid-tier, closed-decisions, pre-april-2026, etc.). Get the timestamp: date +"${FLIGHT_FILE_PREFIX:-%Y-%m-%d_%H-%M}" (env var FLIGHT_FILE_PREFIX overrides the default). Run it in the shell and use the output verbatim — never a time from your own sense of "now" (your clock is UTC and would be off by the local offset).
Create the archive bundle directory:
TS="$(date +"${FLIGHT_FILE_PREFIX:-%Y-%m-%d_%H-%M}")"
SLUG="<slug>"
mkdir -p "./flight-workbench/archive/${TS}-${SLUG}/history" "./flight-workbench/archive/${TS}-${SLUG}/memos" "./flight-workbench/archive/${TS}-${SLUG}/decisions"
For each file in the confirmed list, move it into the matching subfolder of the archive bundle, preserving the filename:
mv "./flight-workbench/history/<file>" "./flight-workbench/archive/${TS}-${SLUG}/history/"
Use mv (not cp) — the file leaves its original folder. The archive is the canonical location after this point.
Write ./flight-workbench/archive/<TS>-<SLUG>/README.md:
# Archive — <prefix> — <human-readable scope>
**Created:** <YYYY-MM-DD HH:MM>
**Scope:** <user's scope description or tier label>
**Total files:** N
## history/ (X files)
- <filename> — <one-line summary if derivable from first line>
## memos/ (Y files)
- <filename> — <one-line summary>
## decisions/ (Z files)
- <filename> — <decision title>
## How to retrieve
These are normal files. To use one again, copy or move it back from `flight-workbench/archive/<this-folder>/<subfolder>/<filename>` to its original location in `flight-workbench/`.
Add one line to today's session history file:
- <HH:MM> archive: moved N files to flight-workbench/archive/<TS>-<SLUG>/
Archive complete. Moved N files into
flight-workbench/archive/<TS>-<SLUG>/.Open
flight-workbench/archive/<TS>-<SLUG>/README.mdfor the index. Files can be moved back any time.
stilwerk/) or the setup marker.npx claudepluginhub digitalleadershipag/flight-portable --plugin flight-portableProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.