templates
Obsidian Templates plugin: list, read, insert templates with {{date}}/{{time}}/{{title}} variables. Use when inserting or applying a template.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 60
- Forks
- 6
01 前言 Front Matter
- name
- templates
- created
- 1777507200000
- modified
- 1790035200000
- reviewed
- 1790035200000
- description
- Obsidian Templates plugin: list, read, insert templates with {{date}}/{{time}}/{{title}} variables. Use when inserting or applying a template.
- allowed-tools
- Bash(obsidian *), Read, Grep, Glob
- user-invocable
- false
02 资源文件 2
- 参考文档SOURCE.md206 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
Obsidian Templates
When to Use This Skill
| Use this skill when... | Use the alternative instead when... |
|---|---|
| Listing or previewing the templates configured in the vault | Editing template content as a plain note — use vault-files |
| Inserting a template into the currently open note | Creating a new note from a template — use vault-files create … template=… |
Reading the resolved ({{date}} → real date) form of a template |
Working with Templater plugin scripts — use command-palette for templater-obsidian:* |
This skill covers the core Templates plugin. The community Templater
plugin uses a different command surface — invoke it via command-palette
(templater-obsidian:*) instead.
Prerequisites
- Obsidian desktop 1.12.7+ installer with CLI enabled
- Obsidian must be running
- Core Templates plugin enabled, with a templates folder configured
List Templates
# All templates
obsidian templates
# Just the count
obsidian templates total
Read a Template
# Raw template content (variables unresolved)
obsidian template:read name="Meeting"
# Resolve variables ({{date}}, {{time}}, {{title}})
obsidian template:read name="Meeting" resolve
# Provide a title for {{title}} resolution
obsidian template:read name="Meeting" title="Standup 2026-04-30" resolve
Insert a Template
# Insert into the active file at the cursor
obsidian template:insert name="Meeting"
template:insert only works on the active editor. To create a new note
from a template instead, reach for vault-files:
obsidian create name="Meeting 2026-04-30" template="Meeting"
Common Patterns
"Preview what a template will produce before inserting"
obsidian template:read name="Daily" resolve
"Bulk-create a week of daily notes from a template"
for offset in 0 1 2 3 4; do
date=$(date -v+${offset}d +%F) # macOS; use date -d "+$offset days" +%F on Linux
obsidian create path="Daily/$date.md" template="Daily"
done
"Open today's daily template raw vs resolved (debugging)"
obsidian template:read name="Daily" # raw, with {{date}}
obsidian template:read name="Daily" resolve # with today's date filled in
Template Variables
The core Templates plugin understands:
| Variable | Resolves to |
|---|---|
{{date}} |
Current date (format from Templates settings) |
{{time}} |
Current time (format from Templates settings) |
{{title}} |
The new note's title (or title= parameter) |
Use the resolve flag to apply these — without it, template:read returns
the raw source, which is what you want for editing the template itself.
Agentic Optimizations
| Context | Command |
|---|---|
| List templates | obsidian templates |
| Template count | obsidian templates total |
| Raw template body | obsidian template:read name=X |
| Resolved template body | obsidian template:read name=X resolve |
| Insert into active file | obsidian template:insert name=X |
| Create new note from template | obsidian create name=X template=Y (see vault-files) |
Related Skills
- vault-files — Create new notes from templates (
create … template=…) - command-palette — Invoke Templater (
templater-obsidian:*) commands - plugins-themes — Enable / configure the Templates core plugin
04 同仓库更多 Skills
kitty-show-image
Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no /dev/tty.
kitty-session-persistence
Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.
kitty-remote-control
Safe kitty remote control from an agent — read panes with kitty @ ls/get-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.
docs-reference-check
Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved/deleted files, or wiring a doc-drift lint.
youtube-upload
Upload a video to YouTube via the Data API v3 and edit its title, description, tags or thumbnail afterwards. Use when publishing or retitling a YouTube video.
youtube-studio-share
Share a private YouTube video with a whole Google Workspace organization by scripting YouTube Studio in the browser. Use when a video must be org-only.