template-execute

template-execute is a skill for Claude Code from tboome33/obsidian-mcp-router. It costs 184 tokens per session (652 once invoked), scanned A, original, Apache-2.0.

A template runner that fills an Obsidian Templater file with supplied values and can save the result as a new note.

In plain words
What is it for?
Use it to preview a template or generate files such as daily notes and trade records from named arguments.
Why use it?
It avoids manually copying a template, replacing placeholders, and creating the output file each time.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the obsidian-router plugin — 48 skills, 53 commands, 2 agents, 3 hooks, 1 MCP server shipped together

Good fit Use it to preview a template or generate files such as daily notes and trade records from named arguments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tboome33/obsidian-mcp-router/template-execute
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tboome33/obsidian-mcp-router --skill template-execute
Clone the repo
git clone --depth 1 https://github.com/tboome33/obsidian-mcp-router

Made for: Claude Code.

Or install obsidian-router, the plugin that ships this one along with the rest of its 48 skills, 53 commands, 2 agents, 3 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for template-execute

README.md
[![agentmods](https://agentmods.dev/badge/skills/tboome33/obsidian-mcp-router/template-execute/github.svg)](https://agentmods.dev/skills/tboome33/obsidian-mcp-router/template-execute)
Your own site
<a href="https://agentmods.dev/skills/tboome33/obsidian-mcp-router/template-execute"><img src="https://agentmods.dev/badge/skills/tboome33/obsidian-mcp-router/template-execute/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for template-execute

Your own site · 80×15
<a href="https://agentmods.dev/skills/tboome33/obsidian-mcp-router/template-execute"><img src="https://agentmods.dev/badge/skills/tboome33/obsidian-mcp-router/template-execute.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 184 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 652 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00184 $0.00652
Opus 5 $0.00092 $0.00326
Sonnet 5 $0.00037 $0.00130
Haiku 4.5 $0.00018 $0.00065

Measured 6d ago against content hash 555493b1c6c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

template-execute scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/template-execute/SKILL.md · 59 lines

What it actually says

template-execute

Call the obsidian-router execute_template MCP tool with arguments parsed from $ARGUMENTS.

Arguments

Required:

  • name — path to the template file in the vault (e.g. Templates/Daily.md).

Optional:

  • vault — omit for default.
  • arguments — key/value object exposed inside the template via tp.mcpTools.prompt("key"). Note: directly under tp, NOT under tp.user.
  • createFile — if true, save the rendered output to targetPath.
  • targetPath — path where to save (required when createFile: true).

Argument parsing from $ARGUMENTS

  • bare path → name only, no createFile (preview mode)
  • name=X arguments={"k":"v"} createFile=true targetPath=Y
  • conversational: "execute Templates/Trade.md with ticker AAPL and create file Trades/AAPL.md" → infer the structure

Pre-requisites

The target vault must have the templater-obsidian plugin enabled. If the tool returns 503 with "Templater plugin is not available", surface that clearly.

Footgun — tp.mcpTools is NOT under tp.user

The obsidian-mcp-router-bridge plugin (which exposes /templates/execute) monkey-patches Templater so tp.mcpTools.prompt("key") returns whatever you put in the arguments map. This is directly under tp, not under tp.user (which is the convention for Templater user scripts) — easy footgun.

When writing a template that will be invoked via this skill, prompt arguments like:

<% tp.mcpTools.prompt("ticker") %>

NOT:

<% tp.user.mcpTools.prompt("ticker") %>   <!-- WRONG — returns undefined -->

After execution

  • If createFile was true: report the rendered content and confirm the file was written at targetPath.
  • If createFile was false: just show the rendered content (preview mode).
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 59 lines · 184 tokens per session scan A 555493b1c6c9

Subscribe to this mod's changes

template-execute is a skill published in the GitHub repository tboome33/obsidian-mcp-router (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 184 tokens to every session and 652 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

google-workspace

Gmail, Calendar, Drive, Docs, Sheets via gws CLI or Python.

NousResearch/hermes-agent · 21 tokens

box

Box manages cloud files, sharing, search, and metadata.

NousResearch/hermes-agent · 14 tokens

google-apps-script

Build Google Apps Script automation for Sheets and Workspace. Custom menus, triggers (onEdit / time-driven / form submit), dialogs, sidebars, email batches, PDF export, external API. Use whenever the user wants to automate a Google Sheet, build a Sheets menu / sidebar / dialog, hit a Sheets row from email or a…

jezweb/claude-skills · 89 tokens

pdf-tools-workflow

Run bounded, evidence-first PDF work through a separately configured PDF Tools MCP connection. Use for inspecting, comparing, filling, stamping, organizing, preparing for signature, validating, or returning PDFs when the source must remain unchanged and every result must be independently read back. Do not use as…

Open-Document-Alliance/PDF-Tools · 86 tokens

google-workspace

Gmail, Calendar, Drive, Contacts, Sheets, and Docs integration via gws CLI (googleworkspace/cli). Uses OAuth2 with automatic token refresh via bridge script. Requires gws binary.

graniet/kheish · 40 tokens

setup-vault-types

Use when configuring which document types a vault tracks: after installing ai-brain-starter, when a new kind of note appears (journals, books, meetings, clients, podcasts, travel, WhatsApp/Slack/iMessage exports), when extraction skips files because no extractor matches their type, or to add, list, or remove a custom…

mycelium-hq/ai-brain-starter · 114 tokens