Skip to content
Back to skills

Hafez Save

ASecurity

Save this session to the Hafez vault. Use when the user invokes hafez-save or says "save", "save the session" or "wrap up". Never run it unprompted.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 10, 2026
ai-agentsgoshell

Security analysis

A100/100

Scanned October 10, 2026

npx -y skills add shrvn-r/hafez --skill hafez-save --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hafez Save?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hafez Save
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shrvn-r-hafez-save/badge)](https://www.skillsdirectory.com/skills/shrvn-r-hafez-save)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hafez-save
description: >
  Save this session to the Hafez vault. Use when the user invokes hafez-save
  or says "save", "save the session" or "wrap up". Never run it unprompted.
hash: 91351681e779
---

# Save the session

1. List the slugs you read, updated or created this session. Use only those; a slug you did not see in `hafez` output this session does not go in. No slugs: tell the user there is nothing to save and stop.
2. Run this once, with today's date:

```
hafez digest --data '{
  "entities_touched": ["<slug>", "<slug>"],
  "decisions": ["<a decision made this session>"],
  "narrative": "<one to three sentences: what happened and how it connects>",
  "session_date": "<YYYY-MM-DD>"
}' | hafez batch
```

In the JSON, write each apostrophe as `’` (`isn’t`): a straight `'` ends the quoted argument and the save fails.

No pipe (PowerShell 5.1): put the JSON in `summary.json`, then `hafez digest --file summary.json > ops.json`, then `hafez batch --file ops.json`.

3. Tell the user in one line: the session note's slug and the entities it logged to.

`decisions` may be an empty array. Each slug in `entities_touched` gets a session log entry and the session note links them all. An unknown slug fails the save and names the slug: fix the list and run it again. A session already saved is skipped, so a second run does no harm.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…