archive

Files finished shift records into dated archive folders while keeping live state lean.

63|3|Updated Jul 14, 2026
One-click install
npx skills add https://github.com/orwa-mahmoud/nightshift --skill archive-orwa-mahmoud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: archive
Source: https://github.com/orwa-mahmoud/nightshift/tree/main/plugins/nightshift/skills/archive
Command: npx skills add https://github.com/orwa-mahmoud/nightshift --skill archive-orwa-mahmoud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Long-running agent shifts accumulate punch lists, receipts, shift logs, snag logs, and parking-lot notes in live state files. Without filing, finished work clutters the live workspace and historical evidence gets lost or mixed with open items. ## Core Features & Use Cases - Selective filing: Moves ticked punch-list items into an archive shipped.md, retires receipts of completed items, and files only handled snag-log entries and answered parking-lot questions, leaving open work live. - Dated archive layout: Organizes records under archive/<YYYY-MM-DD>/ or shift-<id>/ per the resolved policy, rewriting receipt links so archived evidence keeps working from its new location. - Retention and indexing: Previews opt-in history pruning via ns retain-history with explicit owner confirmation, and writes a private index of archived shifts for later comparison. - Use Case: After a multi-hour coding shift ends with some items ticked and some open, run Archive to file the completed receipts and logs into a dated folder while keeping open items, unanswered questions, and the contract live for the next shift. ## Quick Start Ask the agent to archive the finished shift's records into a dated archive folder, retiring ticked receipts and leaving open items live.

Frequently Asked Questions about archive

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I archive a finished Nightshift shift?

Run the Archive skill between shifts. It moves ticked punch-list items into the archive's shipped.md, retires their receipts with archive-receipts, and files handled snag-log and parking-lot entries under a dated folder while open items stay live.

What happens to open items when archiving shift records?

Open punch-list items, unanswered parking-lot questions, and pending work orders stay live exactly where they are. Only ticked items, entries with a disposition, and answered questions are filed into the archive.

Does archiving work on Windows with PowerShell?

Yes. On native Windows, run the runtime through ns.ps1 in the PowerShell tool with the same verbs, using -Retire with a comma-separated list and -Apply for retention. The same git -C commit flags also work in PowerShell.

Can I archive records while a shift is still active?

Archiving is best done between shifts. During an active shift with open boxes, the skill says so and asks before moving anything, since ticked lines serve as the scoreboard for the owner's morning review.

How does retention pruning of archived history work?

Run ns retain-history to preview eligible paths governed by retention.runtimeLogDays and retention.archiveDays, which default to 0 (keep forever). Deletion requires a second explicit --apply step with owner confirmation in the session.