user-defined-command

user-defined-command is a skill for Claude Code, Codex from googlicius/obsidian-steward. It costs 40 tokens per session (4,259 once invoked), scanned A, original, MIT.

A guide for creating and editing Steward user-defined commands, which are custom workflows stored as YAML inside Markdown files. It describes the command fields and the checks needed after saving a command.

In plain words
What is it for?
Use it to create, change, or troubleshoot custom Steward commands, including their names, descriptions, required input, models, and system prompts.
Why use it?
It helps prevent invalid command definitions and catches YAML or status errors before the command is used.

Skill for Claude CodeCodex

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 skills/googlicius/obsidian-steward/user-defined-command
Any agent
npx skills add googlicius/obsidian-steward --skill user-defined-command
Clone the repo
git clone --depth 1 https://github.com/googlicius/obsidian-steward

Made for: Claude Code, Codex.

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 user-defined-command

README.md
[![agentmods](https://agentmods.dev/badge/skills/googlicius/obsidian-steward/user-defined-command.svg)](https://agentmods.dev/skills/googlicius/obsidian-steward/user-defined-command)
Your own site
<a href="https://agentmods.dev/skills/googlicius/obsidian-steward/user-defined-command"><img src="https://agentmods.dev/badge/skills/googlicius/obsidian-steward/user-defined-command.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,259 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.00040 $0.04259
Opus 5 $0.00020 $0.02129
Sonnet 5 $0.00008 $0.00852
Haiku 4.5 $0.00004 $0.00426

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

Security

Grade A, and why

user-defined-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 5d 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/user-defined-command/SKILL.md · 391 lines

How it starts

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

User-Defined Command Skill

This skill enables you to create and edit valid Steward user-defined commands — YAML-based command definitions stored as markdown files in the Steward/Commands folder.

File Format

Each command is a markdown file (.md) containing one or more YAML code blocks. The file can also contain plain text, headings, and other markdown content that can be referenced by system prompts.

After creating or updating a UDC note, re-read the file and check the frontmatter status. If it is invalid, use the status error to fix the YAML and re-read again.

YAML Schema

Command-Level Fields

Field Type Required Description
command_name string Yes The name (In kebab-case) to invoke the command (e.g., clean-up invoked as /clean-up)
description string No Short summary shown in / Help next to the command; omit if not needed
query_required boolean No If true, the command requires user input after the prefix. Default: false
model string No Default model for all steps (e.g., gpt-4o, gemini-2.5-flash)
system_prompt array of strings No Additional system prompts applied to all steps
tools array of strings No Super Agent tool names allowed for this command; omit for full set. Use [switch_agent_capacity] for chat-only until the user switches. If more than five tools, activate_tools is added when missing.
hidden boolean No If true, the command does not appear in the autocomplete menu
triggers array of trigger objects No Automatically execute when file events match criteria
cli object No Shell session settings (v2): optional shell executable and whitelist patterns for auto-approved model shell lines (see CLI settings)
steps array of step objects Yes The sequence of steps to execute

Read the full file on GitHub · 391 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. 5d ago First seen · 391 lines · 40 tokens per session scan A 463fdf09ba00

Subscribe to this mod's changes

user-defined-command is a skill published in the GitHub repository googlicius/obsidian-steward (86 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 4,259 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

marketing-psychology

When the user wants to apply psychological principles, mental models, or behavioral science to marketing. Also use when the user mentions 'psychology,' 'mental models,' 'cognitive bias,' 'persuasion,' 'behavioral science,' 'why people buy,' 'decision-making,' or 'consumer behavior.' This skill provides 70+ mental…

freekmurze/dotfiles · 79 tokens

ai-seo

When the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'generative engine optimization,' 'LLM optimization,' 'AI Overviews,' 'optimize for ChatGPT,' 'optimize for…

freekmurze/dotfiles · 147 tokens

churn-prevention

When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause…

freekmurze/dotfiles · 140 tokens

conductor

Working with Conductor (conductor.build), the parallel-agent app. Creating local and cloud workspaces, the conductor CLI and public API, auth, sessions and messages, deep links, settings and setup scripts, environment variables, and writing briefs for handed-off agents. Use when asked to open, create, rename, archive…

freekmurze/dotfiles · 117 tokens

ad-creative

When the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative…

freekmurze/dotfiles · 120 tokens

content-strategy

When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions "content strategy," "what should I write about," "content ideas," "blog strategy," "topic clusters," or "content planning." For writing individual pieces, see copywriting.…

freekmurze/dotfiles · 81 tokens