Install
$ agentstack add skill-trevorbyrum-claude-skills-suite-save ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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 No
- ✓ 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →About
Save
Preserve session state before compacting or clearing context. Refreshes project-plan.md status if work was completed during the session. Two end-states:
- Compact (default) — snapshot to DB, then
/compact - Clear —
/github-sync→ snapshot to DB →/clear
A heavy doc-refresh (full architecture or scope rewrite) is on-demand only.
Inputs
- Current session state (what was done, what's open, files touched)
project-plan.md,project-context.mdin repo root- Prior
compactrecords in artifact DB - Git working tree state
Outputs
db_write 'save' 'compact' 'claude/' "$COMPACT_CONTENT"— append-only snapshot- Updated
project-plan.mdstatus section (light) or both docs (heavy refresh) /compactor/clearexecuted at the end
Instructions
Phase 0: Detect mode
Detect from the user's words:
| Trigger | Mode | |---|---| | /save (no args) | compact | | "compact", "save session" | compact | | "wrap up", "done for today", "switching projects", "clear" | clear | | "update docs", "sync docs", "evolve" | heavy refresh → ask: compact or clear after? |
If ambiguous → AskUserQuestion: "Compact only, or commit + clear?"
> HARD GATE (clear mode only) — WAIT FOR USER RESPONSE before any /github-sync or /clear. Clear-mode loses the conversation context; the user must explicitly accept that before any commit or clear runs. Compact mode does not need this gate (recoverable).
Phase 1: Doc refresh (light by default)
Run the light path inline. Heavy path only if user explicitly asked for doc update.
Light refresh:
- Detect completed work since last save. Compare:
- Latest
db_read_all 'iterate' 'changelog'entries (if/iterateran) - Git log since last
savecompact label timestamp - Files modified in this session
- Update
project-plan.mdstatus section. Mark completed work units; add a one-line changelog entry at top:
```
- YYYY-MM-DD: completed WU-N, WU-N+1; in progress: WU-N+2
```
- Update
project-context.mdonly if a Key Decision changed in this session (rare). Otherwise leave alone. - Skip if no work units completed and no decisions changed.
Heavy refresh (user asked explicitly): Read references/doc-refresh.md.
Phase 2: Branch to compact or clear
- Compact mode → read
references/compact.md - Clear mode → read
references/clear.md
Both reference files cover: snapshot template, DB write, subagent review, and the terminal /compact or /clear.
DB Namespace Contract
All snapshots written by /save and its hooks share the save skill namespace:
| Writer | skill | phase | label pattern | |---|---|---|---| | User-invoked compact (this skill) | save | compact | claude/ | | PreCompact hook | save | snapshot | hook/ |
/iterate Phase 1 reads save/compact and save/snapshot for session-wake context.
Legacy backwards-compat: Sessions saved before the meta-context-save → save rename are stored under the meta-context-save namespace. /iterate falls back to that namespace if save/compact or save/snapshot returns empty — no data loss from the migration.
References (on-demand)
references/compact.md— snapshot template, DB write, subagent review,/compactreferences/clear.md— same chain plus prepended/github-sync, ends with/clearreferences/doc-refresh.md— heavy doc-refresh (discussion, cross-check). Use only when the user asks explicitly.
Examples
User: /save
→ Compact mode. Phase 1 light-updates plan status. Phase 2 reads compact.md:
snapshot, review, /compact.
User: I'm done for the day
→ Clear mode. Phase 1 light-updates. Phase 2 reads clear.md:
/github-sync → snapshot → review → /clear.
User: update docs, we switched from REST to GraphQL
→ Heavy refresh. Phase 1 reads doc-refresh.md: discussion
→ context update → plan update → cross-check. Then ask: compact or clear?
Then continue to Phase 2.
User: switching to a different project
→ Clear mode. Phase 1 light-updates current project (emphasis on
"Next Task Context" in the changelog entry so returning is seamless).
Phase 2 reads clear.md.
User: /save (working tree is clean, no work done)
→ Compact mode. Phase 1 skips (nothing changed). Phase 2 writes a minimal
snapshot ("session was read-only, no changes"). /compact.
Before completing, read and follow ../../references/cross-cutting-rules.md.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: trevorbyrum
- Source: trevorbyrum/claude-skills-suite
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.