archive-trip
Skill1 starsChanged 42 days agoMITView on GitHub
Finalize a completed Trip Companion agent group by verifying its trip-domain stage, pausing host wakes, creating and verifying a self-contained archive, then purging the central records, group workspace, and session tree. Use when a trip is finished and its archive is the only retained copy.
In this repository54 other files it gives its agents.
- container/AGENTS.mdAGENTS.md
- container/CLAUDE.mdCLAUDE.md
- add-atomic-chat-toolSkill
- add-codexSkill
- add-dashboardSkill
- add-deltachatSkill
- add-discordSkill
- add-emacsSkill
- add-gcal-toolSkill
- add-gchatSkill
- add-githubSkill
- add-gmail-toolSkill
- add-imessageSkill
- add-karpathy-llm-wikiSkill
- add-linearSkill
- add-macos-statusbarSkill
- add-matrixSkill
- add-mnemonSkill
- add-ollama-providerSkill
- add-ollama-toolSkill
- add-opencodeSkill
- add-piSkill
- add-resendSkill
- add-rtkSkill
- add-signalSkill
- add-slackSkill
- add-teamsSkill
- add-telegramSkill
- add-vercelSkill
- add-webexSkill
- add-wechatSkill
- add-whatsapp-cloudSkill
- add-whatsappSkill
- customizeSkill
- debugSkill
- get-qodo-rulesSkill
- init-first-agentSkill
- init-onecliSkill
- learnSkill
- manage-channelsSkill
- manage-mountsSkill
- migrate-from-openclawSkill
- migrate-from-v1Skill
- migrate-memorySkill
- migrate-nanoclawSkill
- nano-pvt-hubSkill
- new-knowledge-graph-tutorSkill
- new-tripSkill
- qodo-pr-resolverSkill
- reflectSkill
- setupSkill
- update-nanoclawSkill
- update-skillsSkill
- use-native-credential-proxySkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Use this skill for final host-side Trip Companion teardown.
- Distinctive: line 20
Run a read-only preflight:
- Distinctive: line 30
Create and finalize the archive with an explicit confirmation flag:
- Very specific: line 44
Before purging, the script verifies the required archive entries and SHA-256, writes the sidecar manifest, then removes the central …
- Very specific: line 52
Do not run trip-admin delete separately after this skill.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Archive and Purge Trip
For the complete setup-to-teardown operator runbook, see
docs/trip-companion-lifecycle.md.
Use this skill for final host-side Trip Companion teardown. The trip-core
skill owns the domain lifecycle (trip_complete → post_trip → archived); this
skill owns the final archive and purge. It is destructive after the archive has
been verified, so require explicit --yes confirmation.
Workflow
- Identify the agent group. Prefer the stable group id from
pnpm exec tsx scripts/trip-admin.ts list. Run a read-only preflight:
pnpm exec tsx .claude/skills/archive-trip/scripts/archive-trip.ts preview \ --id <agent-group-id> --jsonContinue only when the trip-domain
stageisarchived(orcancelled) and all session databases report zero pending or in-flight work. Resolve pending work before archiving; do not silently discard it.Create and finalize the archive with an explicit confirmation flag:
pnpm exec tsx .claude/skills/archive-trip/scripts/archive-trip.ts archive \ --id <agent-group-id> --yesThe script asks the running host to persist
desired_state=paused, waits for live containers to stop, and writes a compressed snapshot underdata/trip-archives/. The bundle contains the group workspace, session databases,manifest.json, and a trip-scopedhost-records.jsonexport. It excludesgroups/<folder>/node_modulesby default becausepackage.jsonand lockfiles are preserved; add--include-node-modulesonly when an offline runtime copy is required.- Before purging, the script verifies the required archive entries and SHA-256,
writes the sidecar manifest, then removes the central agent-group cascade,
groups/<folder>/, anddata/v2-sessions/<agent-group-id>/. It verifies that the central row and both filesystem paths are gone before succeeding. - Copy the
.tar.gzand.manifest.jsonto independent storage and retain the printed SHA-256. There is no normal resume path after this skill runs; reopening requires a future restore workflow from the archive.
Do not run trip-admin delete separately after this skill. The archive command
already performs the central cascade and on-disk purge.
Archive artifacts
Each archive has a .tar.gz bundle and a sidecar .manifest.json containing
the group id/folder, trip stage, lifecycle state, wires, session metadata,
archive contents, exclusions, byte size, and SHA-256. The bundle's
host-records.json contains the relevant host-side rows needed to understand
the deleted wiring and membership records.
The bundled script is intentionally host-side. The container already has the
correct domain behavior: trip-core heartbeat returns wakeAgent: false for
archived and cancelled stages. Once the host purge completes, no container
can be woken for the deleted group.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

