技能图谱SKILLSGROVE
技能图谱/效率工具/jholhewres/devclaw-skills/obsidian

obsidian

安装

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

简介

原文描述 · MITManage Obsidian vaults: notes, links, tags, daily notes, search
以下 SKILL.md 内容转载自 jholhewres/devclaw-skills(提交 0177c36),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 DevClaw 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

Obsidian

Use read_file, write_file, edit_file, and bash to manage Obsidian vaults.

Locate Vault

# Common vault locations
ls -d ~/Documents/Obsidian* ~/Obsidian* ~/.obsidian* 2>/dev/null
# Or find .obsidian folders
find ~/ -maxdepth 4 -name ".obsidian" -type d 2>/dev/null | head -5

Daily Notes

# Create/open today's daily note
VAULT="$HOME/Documents/ObsidianVault"
TODAY=$(date +%Y-%m-%d)
cat "$VAULT/Daily/$TODAY.md" 2>/dev/null || echo "# $TODAY" > "$VAULT/Daily/$TODAY.md"

Use write_file to create: <vault>/Daily/YYYY-MM-DD.md

Search Notes

VAULT="$HOME/Documents/ObsidianVault"
grep -rl "TERM" "$VAULT" --include="*.md" | head -20
grep -rl "#tag" "$VAULT" --include="*.md" | head -20

Create Note

Use write_file with path <vault>/<folder>/<name>.md:

  • Use [[wikilinks]] for internal links
  • Use #tags for categorization
  • Use YAML frontmatter for metadata

List & Organize

VAULT="$HOME/Documents/ObsidianVault"
find "$VAULT" -name "*.md" -not -path "*/.obsidian/*" | wc -l              # total notes
find "$VAULT" -name "*.md" -not -path "*/.obsidian/*" -newer "$VAULT/Daily/$(date -d '7 days ago' +%Y-%m-%d).md" | head -20  # recent
ls -lt "$VAULT"/**/*.md 2>/dev/null | head -20                              # recently modified
grep -roh '\[\[.*\]\]' "$VAULT" --include="*.md" | sort | uniq -c | sort -rn | head -20  # most linked
grep -roh '#[a-zA-Z0-9_-]*' "$VAULT" --include="*.md" | sort | uniq -c | sort -rn | head -20  # top tags

Templates

Use write_file to create templates in <vault>/Templates/:

  • Meeting: frontmatter + attendees + agenda + action items
  • Project: goals + tasks + references
  • Fleeting: quick capture with timestamp

Tips

  • Always ask user for vault path if unknown, or use memory_search to recall
  • Use memory_save to remember vault path after first use
  • Respect existing folder structure
  • Use wikilinks [[Note Name]] for cross-references
  • Daily notes go in Daily/ folder by convention
查看许可证全文(MIT)
MIT License

Copyright (c) 2026 DevClaw

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.