Save diary

From faizkhairi/claude-code-blueprint · View interactive version

Save diary is an AI agent skill from the GitHub repository faizkhairi/claude-code-blueprint. 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).

How to use this skill

Skill file

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

Step 2: Find or Create Today's File

# YYYY-MM-DD, Session N: Brief Description

Step 3: Compose and Append Diary Entry

Step 4: Update Session Memory

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/ |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.