create-command

create-command is a command for coding agents from eugeniughelbur/obsidian-second-brain. It costs 16 tokens per session (2,168 once invoked), scanned A, original, MIT.

A command for creating a new Obsidian second-brain command through a short interview instead of manual Markdown editing. It gathers the command's purpose, name, triggers, steps, category, and whether it writes to the vault.

In plain words
What is it for?
Use it to design and create a new reusable command for tasks such as collecting information, processing notes, or saving results to an Obsidian vault.
Why use it?
It turns command design into a guided process and reduces errors in frontmatter, templates, and file structure. A vault is the folder where Obsidian stores its notes and commands.

Command

Part of the obsidian-second-brain plugin — 1 skill, 47 commands, 3 hooks shipped together

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.

agentmods
npx agentmods add commands/eugeniughelbur/obsidian-second-brain/create-command
Clone the repo
git clone --depth 1 https://github.com/eugeniughelbur/obsidian-second-brain

Or install obsidian-second-brain, the plugin that ships this one along with the rest of its 1 skill, 47 commands, 3 hooks.

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 create-command

README.md
[![agentmods](https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/create-command.svg)](https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/create-command)
Your own site
<a href="https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/create-command"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/create-command.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,168 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00016 $0.02168
Opus 5 $0.00008 $0.01084
Sonnet 5 $0.00003 $0.00434
Haiku 4.5 $0.00002 $0.00217

Measured 3d ago against content hash ac9f879da73f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-command 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 3d 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.

commands/create-command.md · 171 lines

How it starts

The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Use the obsidian-second-brain skill. Execute /create-command $ARGUMENTS:

This command runs a short interview, then writes a new commands/<name>.md file that the build pipeline picks up automatically. The user never touches frontmatter, never edits a template, and never copies an existing command file.

Hard rule: You MUST use the AskUserQuestion tool for every question in this flow. ONE question per call. Wait for the answer before the next question. Do not batch.

The optional argument is a free-text seed describing what the command should do (e.g., summarize my notion pages and save to vault). If given, use it to pre-fill suggestions in the interview. If empty, the first question opens with "what problem do you want to solve?".

Fast path (skip the interview when the seed already answers it)

If the seed argument is detailed enough to fill every field yourself - the intent is clear AND you can confidently derive a name, category, trigger phrases, the step outline, and whether it writes to the vault - do NOT run the six-question interview. Instead:

  1. Draft the complete spec (name, category, triggers, 3-5 steps, vault-write yes/no) from the seed.
  2. Present it in ONE AskUserQuestion tool call as a single confirm-or-adjust gate: option A "Create it as specced" (show the name + one-line behaviour), option B "Let me adjust" (falls back to the full interview). Include the proposed name in the option label so the user sees it.
  3. On "Create it as specced", validate the name (Phase 2 checks: regex ^[a-z][a-z0-9-]*$, and commands/<name>.md does not already exist), then jump straight to Phase 8 (generate the file) and Phase 9 (confirm).

Only the truly under-specified seeds need the full interview. A seed like "summarize my notion pages and save to vault as AI-first notes, call it obsidian-notion, research category" is enough to fast-path. When in doubt, run the interview - one confirmation is fine, but never invent behaviour the seed did not state (see the anti-fabrication rule).


Read the full file on GitHub · 171 lines

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. 3d ago First seen · 171 lines · 16 tokens per session scan A ac9f879da73f

Subscribe to this mod's changes

create-command is a command published in the GitHub repository eugeniughelbur/obsidian-second-brain (4,290 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 2,168 once invoked, about $0.0001 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-08-30.