secondbrain-diary

Create and maintain dated diary notes in an Obsidian SecondBrain vault.

4|Updated May 20, 2024
One-click install
npx skills add https://github.com/SpreadZhao/spreadconfig --skill secondbrain-diary-spreadzhao
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: secondbrain-diary
Source: https://github.com/SpreadZhao/spreadconfig/tree/main/skills/local/secondbrain-diary
Command: npx skills add https://github.com/SpreadZhao/spreadconfig --skill secondbrain-diary-spreadzhao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Keeping a personal knowledge-base diary consistent is tedious: entries need the right date-based filenames, year folders, frontmatter fields, tags, and Obsidian-style image embeds. This Skill enforces those conventions automatically when creating, updating, or reviewing diary notes in the SecondBrain repository. ## Core Features & Use Cases - Structured Diary Entries: Creates notes named YYYY-MM-DD_slug.md under StudyLogNew/diary/<year>/ with a standard frontmatter shape (title, date, tags, mtrace, star, description). - Resource & Image Handling: Places pasted images in year-based resources/ folders and references them with Obsidian wikilink embeds like ![[...|200]]. - Consistency & Safety Checks: Searches existing entries with ripgrep before writing, reuses existing tags, never overwrites files, and preserves unrelated git changes. - Use Case: Ask the assistant to log today's learning about a Go concurrency pattern; it inspects nearby entries, picks matching tags, and writes a properly formatted Chinese or English note in the correct year folder. ## Quick Start Use the secondbrain-diary skill to create a diary entry for today summarizing what I learned about Nix flakes.

Frequently Asked Questions about secondbrain-diary

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a daily diary note in an Obsidian vault?▼

Invoke the skill with a date and topic; it creates a file named YYYY-MM-DD_slug.md under StudyLogNew/diary/<year>/ with standard frontmatter including title, date, tags, mtrace, star, and description fields.

How to embed images in Obsidian diary notes?▼

Images are stored in the year-specific resources/ folder and referenced with Obsidian wikilink embeds like ![[StudyLogNew/diary/<year>/resources/Pasted image YYYYMMDDHHMMSS.png]], optionally with a width suffix like |200.

Can the skill update an existing diary entry instead of creating a new one?▼

Yes. It searches existing entries with ripgrep before writing, and updates a same-day related entry when that matches the request while preserving the original frontmatter and tone.

What frontmatter format does the diary note use?▼

Each note uses YAML frontmatter with title, date, tags list, mtrace dates, a star boolean for featured notes, and a one-sentence description, followed by a single H1 heading in the body.

Does the skill overwrite existing diary files?▼

No. It never overwrites an existing diary file; if a same-day entry exists it either updates it when appropriate or creates a distinct slug, and it checks git status first to preserve unrelated changes.