Skip to content
Agentmart
Submit a tool

save-diary

MUST use when user says 'save diary', 'write diary', 'diary entry', 'update diary', or 'document session'.

Skill by faizkhairi

IndexedMIT★ 73
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/faizkhairi-save-diary

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

MUST use when user says 'save diary', 'write diary', 'diary entry', 'update diary', or 'document session'. Also auto-trigger at the end of any significant session (feature shipped, major bug fixed, architecture decision, new project started).

Use cases: documents, writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/save-diary

What's inside

Skill name
save-diary
Description
MUST use when user says 'save diary', 'write diary', 'diary entry', 'update diary', or 'document session'. Also auto-trigger at the end of any significant session (feature shipped, major bug fixed, architecture decision, new project started).
License
MIT
Instructions
79 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

**Prerequisite check (run first)**: if `./memory/diary/current/` does not exist OR `~/.claude/.memory-disabled` marker file is present, this skill is a no-op. Output: "Memory persistence is disabled. Run `./setup.sh` and choose to enable memory if you want diary entries to be saved."

# Dev Diary: Session Documentation Skill

*Today's story takes shape.*

## Activation

When this skill activates, output: "Dev Diary: documenting today's session."

## Context Guard

| Context | Status |
|---------|--------|
| User says "save diary" / "write diary" / "diary entry" | ACTIVE, full diary write |
| End of significant session | ACTIVE, auto-document |
| User says "review diary" | ACTIVE, read recent entries |
| Mid-conversation (no save request) | DORMANT, no diary action |

## Protocol

### Step 1: Monthly Archive Check

- Scan `./memory/diary/current/` for files from previous months
- For each file where month != current month:
  - Create `./memory/diary/archived/YYYY-MM/` folder if not exists
  - Move the file from `current/` to `archived/YYYY-MM/`
- Continue with diary write

### Step 2: Find or Create Today's File

- Check if `./memory/diary/current/YYYY-MM-DD.md` exists
- If exists: use it (will append new entry)
- If not: create new file with header:
```
# YYYY-MM-DD, Session N: Brief Description
```

### Step 3: Compose and Append Diary Entry

- Get current date via bash: `date +"%B %d, %Y"` or PowerShell `Get-Date -Format "MMMM dd, yyyy"`
- Analyze current session for key content
- Write structured entry using our actual diary format:
  - **Title**: `# YYYY-MM-DD, Session N: Brief Description`
  - **What Happened**: Concise summary of the session context and goals
  - **Fixes Applied / Key Changes**: Specific technical work done (commits, code changes)
  - **Key Insight**: Lessons learned or important observations
  - **Pending / Next Steps**: What's left to do
- **Session numbering**: Read the existing file first. Find the highest `Session N` number in today's entries and increment by 1. If this is the first entry of the day, check the previous day's file for the last session number and continue from there. If no previous entries exist, start at Session 1.
- **APPEND** to today's file (never overwrite existing content)
- Multiple entries per day are separated by `---`

### Step 4: Update Session Memory

- Update `./memory/core/session.md` with:
  - Session recap and key achievements
  - Current working state for continuity
  - Next steps identified
- Confirm diary entry saved

## Mandatory Rules

1. **Always APPEND**: never overwrite existing diary entries
2. **One file per day**: multiple entries separated by `---`
3. **Use real timestamps**: get current date via system command
4. **Archive first**: run monthly archive check before every write
5. **Evidence-based**: document actual session content, not generic summaries
6. **Use our format**: concise technical summaries (What Happened, Key Changes, Key Insight, Pending)

## Edge Cases

| Situation | Behavior |
|-----------|----------|
| First entry of the day | Create new file with header + first entry |
| Second+ entry same day | Append with `---` separator |
| No significant content | Create brief entry noting session type |
| "review diary" command | Read and present recent entries from current/ |

From faizkhairi/claude-code-blueprint, MIT.

More from faizkhairi/claude-code-blueprint

Signals

Stars
73
Forks
22
Open issues
4
Last commit (this folder)
Aug 11, 2026 (2 months ago)
Last release
Sep 25, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from faizkhairi

Cite this page

save-diary skill. Agent Mart. https://agentmart.dev/skills/faizkhairi-save-diary (last updated 2026-10-24)