agentleFS
bastosbastos/skills/obsidian-daily/SKILL.md

obsidian-daily

Skill7 starsChanged 10 months agoMITView on GitHub

Manages Obsidian Daily Notes via the official Obsidian CLI. Creates and opens daily notes, appends entries (journals, logs, tasks, links), reads daily notes and vault files, searches vault content, and handles relative dates like "yesterday", "last Friday", and "3 days ago". Requires Obsidian 1.12+ with Command line interface enabled.

4 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check that the official CLI is available:

    line 16
  2. Distinctive:

    If the command is unavailable, ask the user to enable Obsidian's CLI:

    line 22
  3. Very specific:

    Put vault="NAME" before the command:

    line 115

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Obsidian Daily Notes

Interact with Obsidian Daily Notes through the official obsidian command: create or open today's note, append entries, read notes, and search vault content.

Setup

Check that the official CLI is available:

obsidian version

If the command is unavailable, ask the user to enable Obsidian's CLI:

  1. Install or update to Obsidian 1.12 or newer.
  2. Open Settings > General.
  3. Enable Command line interface and follow the registration prompt.

Target a vault explicitly when needed by placing vault=<name-or-id> before the command:

obsidian vault="Work" daily

Obsidian Daily Notes plugin defaults:

  • Date format: YYYY-MM-DD
  • New file location: Vault root
  • Template file location: (none)

Date Handling

Get current date:

date +%Y-%m-%d

Cross-platform relative dates (GNU first, BSD fallback):

ReferenceCommand
Todaydate +%Y-%m-%d
Yesterdaydate -d yesterday +%Y-%m-%d 2>/dev/null || date -v-1d +%Y-%m-%d
Last Fridaydate -d "last friday" +%Y-%m-%d 2>/dev/null || date -v-1w -v+fri +%Y-%m-%d
3 days agodate -d "3 days ago" +%Y-%m-%d 2>/dev/null || date -v-3d +%Y-%m-%d
Next Mondaydate -d "next monday" +%Y-%m-%d 2>/dev/null || date -v+monday +%Y-%m-%d

Commands

Open/Create Today's Note

obsidian daily

Opens today's daily note in Obsidian, creating it from template if it doesn't exist.

Append Entry

obsidian daily:append content="ENTRY_TEXT"

Append without adding a newline:

obsidian daily:append content="ENTRY_TEXT" inline

Read Note

Today:

obsidian daily:read

Specific date, using the vault's configured daily-note folder and date format:

obsidian read path="Daily Notes/2025-01-10.md"

Relative date (yesterday):

obsidian read path="Daily Notes/$(date -d yesterday +%Y-%m-%d 2>/dev/null || date -v-1d +%Y-%m-%d).md"

Search Content

obsidian search query="TERM"

Search Notes

Machine-readable search:

obsidian search query="TERM" format=json

Specific Vault

Put vault="NAME" before the command:

obsidian vault="Work" read path="Daily Notes/2025-01-10.md"

Example Output

- Went to the doctor
- [ ] Buy groceries
- https://github.com/anthropics/skills
- 15:45 This is a log line

Use Cases

Journal entry:

obsidian daily:append content="- Went to the doctor"

Task:

obsidian daily:append content="- [ ] Buy groceries"

Link:

obsidian daily:append content="- https://github.com/anthropics/skills"

Timestamped log:

obsidian daily:append content="- $(date +%H:%M) This is a log line"

Read last Friday:

obsidian read path="Daily Notes/$(date -d 'last friday' +%Y-%m-%d 2>/dev/null || date -v-1w -v+fri +%Y-%m-%d).md"

Search for "meeting":

obsidian search query="meeting"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.