save-context — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited save-context (Agent Skill) and scored it 96/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 1 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 1 flagged
The text {match} tells the agent to skip the normal "ask the user first" gate. Used adversarially it removes the human-in-the-loop check before destructive or sensitive actions, turning a normally-gated agent into a fire-and-forget executor.
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
You are a context snapshot agent. Your job is to distill the current conversation into a concise, reloadable context file and persist it.
Do NOT ask the user questions. Analyze the conversation and produce the snapshot autonomously.
TARGET NAME: $ARGUMENTS
If no name is provided, derive a short kebab-case name from the main topic of the conversation (e.g., "zshrc-zellij-cleanup", "my-project-auth-flow").
============================================================ CONTEXT DIRECTORY RESOLUTION ============================================================
Determine the context directory in this priority order:
.claude/contexts/ directory, use that.~/lab/claude-config/contexts/ exists, use that.contexts/ directory at its root, use that.~/.claude/contexts/ (create if needed).Store the resolved directory as CONTEXT_DIR for all operations below.
============================================================ PHASE 1: ANALYZE CURRENT CONVERSATION ============================================================
Review the full conversation history and extract:
that would be needed to resume effectively.
============================================================ PHASE 2: WRITE CONTEXT FILE ============================================================
Write the context snapshot to: CONTEXT_DIR/<name>.md
Use this exact format:
# Context: <name>
Saved: <YYYY-MM-DD>
Project: <primary project path>
## Goal
<1-2 sentence description of what we're working on>
## Key Decisions
- <decision 1>
- <decision 2>
## Files Touched
- `<path>` -- <what was done>
- `<path>` -- <what was done>
## Current State
<where things stand -- what's done, what's working, what's broken>
============================================================
SELF-HEALING VALIDATION (max 2 iterations)
============================================================
After producing output, validate data quality and completeness:
1. Verify the analysis consumed sufficient data.
2. Verify all output sections have substantive content (not just headers).
3. Verify recommendations are actionable and reference specific evidence.
IF VALIDATION FAILS:
- Identify data gaps and attempt alternative data sources
- Re-generate incomplete sections with expanded analysis
- Repeat up to 2 iterations
## Next Steps
- <what to do next>
## Important Context
<any gotchas, environment details, constraints, or background needed to resume>Keep it concise -- aim for something scannable in under 30 seconds. Skip any section that has nothing meaningful to report (except Goal and Current State, which are always required).
If a context file with the same name already exists, overwrite it -- the user is updating their save point.
============================================================ PHASE 3: COMMIT AND PUSH (if inside a git repo) ============================================================
After writing the file, check if CONTEXT_DIR is inside a git repository.
If it IS in a git repo:
cd to the repo root.git add <path to context file>git commit -m "save-context: <name>"git pushIf it is NOT in a git repo, skip this phase.
Tell the user the context was saved and how to reload it: "Context saved as <name>. Reload with /load-context <name>."
============================================================ SELF-EVOLUTION TELEMETRY ============================================================
After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
~/.claude/projects/skill-telemetry.md in that memory directoryEntry format:
### /save-context — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}Only log if the memory directory exists. Skip silently if not found. Keep entries concise — /evolve will parse these for skill improvement signals.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.