create-command

create-command is a command for Claude Code from eugeniughelbur/obsidian-second-brain. It costs 16 tokens per session (2,201 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 for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: names the AskUserQuestion tool; mentions Claude Code; mentions AGENTS.md.

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

Good fit 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.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/eugeniughelbur/obsidian-second-brain/create-command
About the project

obsidian-second-brain turns an Obsidian vault into persistent, searchable memory for Claude Code and other command-line coding agents, storing knowledge as linked Markdown notes. It is for developers, founders, writers, and researchers who want agents to retain project context across sessions. Its catalogue entries provide commands, hooks, a plugin, a skill, and instructions for capturing, finding, and maintaining that memory.

eugeniughelbur/obsidian-second-brain · 4,858 stars · on GitHub · theaioperator.io

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.

Clone the repo
git clone --depth 1 https://github.com/eugeniughelbur/obsidian-second-brain

Made for: Claude Code.

Or install obsidian-second-brain, the plugin that ships this one along with the rest of its 1 skill, 48 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/github.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/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 create-command

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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,201 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.00016 $0.02201
Opus 5.5 $0.00006 $0.00880
Sonnet 5.5 $0.00003 $0.00440
Haiku 4.5 $0.00002 $0.00220

Measured 26d ago against content hash d357311728e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 26d 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 · 172 lines

How it starts

The opening of the file, as written. The whole thing — 172 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 · 172 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. 26d ago Changed · +1 lines d357311728e5
  2. 1mo 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,858 stars, last pushed 2d ago), licensed MIT. It adds 16 tokens to every session and 2,201 once invoked, about $0.0001 per session on Opus 5.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.