技能图谱SKILLSGROVE
技能图谱/效率工具/Stellven/AI4Research/obsidian-daily

obsidian-daily

安装

$npx skills add https://github.com/Stellven/AI4Research --skill obsidian-daily
$git clone --depth 1 https://github.com/Stellven/AI4Research.git /tmp/AI4Research && mkdir -p ~/.claude/skills && cp -r /tmp/AI4Research/skills/obsidian-daily ~/.claude/skills/obsidian-daily
请帮我安装这个 Agent Skill:https://github.com/Stellven/AI4Research/tree/b0bf165f9ab073aae23e45b3b2796973e5677eea/skills/obsidian-daily ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITManage Obsidian Daily Notes via obsidian-cli. Create and open daily notes, append entries (journals, logs, tasks, links), read past notes by date, and search vault content. Handles relative dates like "yesterday", "last Friday", "3 days ago". Requires obsidian-cli installed via Homebrew (Mac/Linux) or Scoop (Windows).
以下 SKILL.md 内容转载自 Stellven/AI4Research(提交 b0bf165),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 Sihao Li 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

Obsidian Daily Notes

Interact with Obsidian Daily Notes: create notes, append entries, read by date, and search content.

Setup

Check if a default vault is configured:

obsidian-cli print-default --path-only 2>/dev/null && echo "OK" || echo "NOT_SET"

If NOT_SET, ask the user:

  1. Vault name (required)
  2. Daily notes folder (default: vault root, common: Daily Notes, Journal, daily)
  3. Date format (default: YYYY-MM-DD)

Configure the vault:

obsidian-cli set-default "VAULT_NAME"

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):

Reference Command
Today date +%Y-%m-%d
Yesterday date -d yesterday +%Y-%m-%d 2>/dev/null || date -v-1d +%Y-%m-%d
Last Friday date -d "last friday" +%Y-%m-%d 2>/dev/null || date -v-friday +%Y-%m-%d
3 days ago date -d "3 days ago" +%Y-%m-%d 2>/dev/null || date -v-3d +%Y-%m-%d
Next Monday date -d "next monday" +%Y-%m-%d 2>/dev/null || date -v+monday +%Y-%m-%d

Commands

Open/Create Today's Note

obsidian-cli daily

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

Append Entry

obsidian-cli daily && obsidian-cli create "$(date +%Y-%m-%d).md" --content "$(printf '\n%s' "ENTRY_TEXT")" --append

With custom folder:

obsidian-cli daily && obsidian-cli create "Daily Notes/$(date +%Y-%m-%d).md" --content "$(printf '\n%s' "ENTRY_TEXT")" --append

Read Note

Today:

obsidian-cli print "$(date +%Y-%m-%d).md"

Specific date:

obsidian-cli print "2025-01-10.md"

Relative date (yesterday):

obsidian-cli print "$(date -d yesterday +%Y-%m-%d 2>/dev/null || date -v-1d +%Y-%m-%d).md"

Search Content

obsidian-cli search-content "TERM"

Search Notes

Interactive fuzzy finder:

obsidian-cli search

Specific Vault

Add --vault "NAME" to any command:

obsidian-cli print "2025-01-10.md" --vault "Work"

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-cli daily && obsidian-cli create "$(date +%Y-%m-%d).md" --content "$(printf '\n%s' "- Went to the doctor")" --append

Task:

obsidian-cli daily && obsidian-cli create "$(date +%Y-%m-%d).md" --content "$(printf '\n%s' "- [ ] Buy groceries")" --append

Link:

obsidian-cli daily && obsidian-cli create "$(date +%Y-%m-%d).md" --content "$(printf '\n%s' "- https://github.com/anthropics/skills")" --append

Timestamped log:

obsidian-cli daily && obsidian-cli create "$(date +%Y-%m-%d).md" --content "$(printf '\n%s' "- $(date +%H:%M) This is a log line")" --append

Read last Friday:

obsidian-cli print "$(date -d 'last friday' +%Y-%m-%d 2>/dev/null || date -v-friday +%Y-%m-%d).md"

Search for "meeting":

obsidian-cli search-content "meeting"
查看许可证全文(MIT)
MIT License

Copyright (c) 2026 Sihao Li

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.