AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Handoff Archive

skill-aploe-claude-handoff-skill-handoff-archive · by aploe

Archive stale handoff documents into the project's archive subdir and update INDEX statuses. Reversible. Triggers on phrases like "archive handoffs", "clean up old handoffs", "tidy up handoffs", "archive resumed handoffs".

No reviews yet
0 installs
41 views
0.0% view→install

Install

$ agentstack add skill-aploe-claude-handoff-skill-handoff-archive

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access Used
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-aploe-claude-handoff-skill-handoff-archive)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Handoff Archive? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Handoff Archive

Move stale handoff docs into per-project archive/ subdirs and update INDEX statuses. The operation is reversible (it's just a mv).

Args

/handoff-archive [--older-than=30d] [--status=done|resumed|open|all] [--project=current|all] [--dry-run]

Defaults: --older-than=30d, --status=done,resumed, --project=current, --dry-run=false. Multiple statuses comma-separated.

The defaults match the most common housekeeping case: tidy up handoffs that have already been picked up or completed and are over a month old. To archive open (un-resumed) handoffs, pass --status=open explicitly.

Steps

1. Resolve candidates

Read the INDEX ($HANDOFF_INDEX_PATH or ~/.claude/handoffs/INDEX.md) or scan the FS as fallback. Rely on column ORDER (Date | Project | Slug | Status | Path), never on header text — headers may be localized in a pre-existing INDEX. Apply all three filters: --older-than (against the first/date column), --status, --project. Status matching compares ONLY the first token of the status cell — annotations like resumed @ 2026-06-16 09:16 or done @ ... (verified) must never break parsing.

--older-than formats: Nd (days), Nw (weeks), Nm (months, treated as 30d). Default 30d.

2. Plan moves

For each candidate doc at /.handoffs/.md:

  • Target: /.handoffs/archive/.md. Create archive/ if missing.
  • INDEX status transition: current → archived.

3. Dry-run path

If --dry-run is passed, output planned moves as a table; do not touch the filesystem:

Would archive (dry-run, no changes made):

  /.handoffs/2026-04-12-1130-foo.md → archive/  (resumed, 42 days old)
  /.handoffs/2026-04-15-1500-bar.md → archive/  (resumed, 39 days old)

2 candidates. Re-run without --dry-run to apply.

4. Execute moves (non-dry-run)

For each candidate:

  1. mv via the Bash tool (real mv, not Write+Delete — preserves mtime).
  2. Update the INDEX row: status cell → archived @ YYYY-MM-DD HH:MM (timestamp via date '+%Y-%m-%d %H:%M'), preserving prior status info as an annotation, e.g. archived @ 2026-06-07 17:31 (done 2026-06-07). Also update the link in the path cell to the new archive/ location.

If mv fails for one file, continue with the rest, collect errors, report all at the end.

5. Report

Archived:  handoff(s).
  ✅ 2026-04-12-1130-foo.md → archive/
  ✅ 2026-04-15-1500-bar.md → archive/
  ❌ 2026-04-20-0900-baz.md  (mv failed: )

INDEX updated:  rows.

Undo: mv /.handoffs/archive/.md /.handoffs/ and edit INDEX manually.

Edge cases

  • --older-than=0d: allowed (archives even just-created docs). Useful for cleaning up an accidental write.
  • Cross-project archive (--project=all): never silent — list affected projects first, ask y/n. Always.
  • Source file missing (already moved manually): skip with note, don't error.
  • Target file exists in archive/ (rare collision): append -archive-N suffix to the filename, log in the report.
  • No matches: "No candidates for the current filters. Try --status=all or --older-than=0d."

Restoration

Not a separate sub-skill (rare operation). Documented in the report output: the user runs mv manually and edits the INDEX. Building a dedicated restore skill would be over-engineering for the frequency.

Universal rules (apply to this skill)

  • Paths absolute in output.
  • Timestamps local time, YYYY-MM-DD HH:MM — obtain via date '+%Y-%m-%d %H:%M', never estimate.
  • Output language follows user's conversation language.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.